ManagementLocks
Creates or updates a management lock at the subscription level.
Changed onWhen you apply a lock at a parent scope, all child resources inherit the same lock. To create 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.
put/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}
Request
- Base URLhttps://management.azure.com
- URLhttps://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}
- AuthOAuth 2Implicit: https://login.microsoftonline.com/common/oauth2/authorizeScopes: user_impersonation
Path parameters
lockNamestring required
The name of lock. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, , ?, /, or any control characters.
subscriptionIdstring required
The ID of the target subscription.
Query parameters
api-versionstring required
The API version to use for the operation.
Request body
Response
OK - Returns information about the lock.
Changes
- warning
deleted the
queryrequest parameterapi-version
- warning