Management Locks - Delete At Subscription Level

Deletes the management lock at the subscription level.
To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.

DELETE https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}?api-version=2016-09-01

URI Parameters

Name In Required Type Description
lockName
path True

string

The name of lock to delete.

subscriptionId
path True

string

The ID of the target subscription.

api-version
query True

string

The API version to use for the operation.

Responses

Name Type Description
200 OK

OK

204 No Content

NoContent

Security

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

Delete management lock at subscription level

Sample request

DELETE https://management.azure.com/subscriptions/subscriptionId/providers/Microsoft.Authorization/locks/testlock?api-version=2016-09-01

Sample response