Management Locks - Delete At Resource Level

Deletes the management lock of a resource or any level below the resource.
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}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}?api-version=2016-09-01

URI Parameters

Name In Required Type Description
lockName
path True

string

The name of the lock to delete.

parentResourcePath
path True

string

The parent resource identity.

resourceGroupName
path True

string

The name of the resource group containing the resource with the lock to delete.

Regex pattern: ^[-\w\._\(\)]+$

resourceName
path True

string

The name of the resource with the lock to delete.

resourceProviderNamespace
path True

string

The resource provider namespace of the resource with the lock to delete.

resourceType
path True

string

The resource type of the resource with the 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 resource level

Sample request

DELETE https://management.azure.com/subscriptions/subscriptionId/resourcegroups/resourcegroupname/providers/Microsoft.Storage/parentResourcePath/storageAccounts/teststorageaccount/providers/Microsoft.Authorization/locks/testlock?api-version=2016-09-01

Sample response