ManagementLocks

Create or update a management lock by scope.

put/{scope}/providers/Microsoft.Authorization/locks/{lockName}

Request

  • Base URL
    https://management.azure.com
  • URL
    https://management.azure.com/{scope}/providers/Microsoft.Authorization/locks/{lockName}
  • Auth
    OAuth 2
    Implicit: https://login.microsoftonline.com/common/oauth2/authorize
    Scopes: user_impersonation

Path parameters

scopestring required

The scope for the lock. When providing a scope for the assignment, use '/subscriptions/{subscriptionId}' for subscriptions, '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}' for resources.

lockNamestring required

The name of lock.

Query parameters

api-versionstring required

The API version to use for the operation.

Request body

idstring

The resource ID of the lock.

typestring

The resource type of the lock - Microsoft.Authorization/locks.

namestring

The name of the lock.

Response

OK

idstring

The resource ID of the lock.

typestring

The resource type of the lock - Microsoft.Authorization/locks.

namestring

The name of the lock.

Changes