IManagementLockOperations.CreateOrUpdateAtResourceLevelAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Create or update a management lock at the resource level or any level below resource.
public System.Threading.Tasks.Task<Microsoft.Azure.Management.Resources.Models.ManagementLockReturnResult> CreateOrUpdateAtResourceLevelAsync (string resourceGroupName, Microsoft.Azure.ResourceIdentity identity, string lockName, Microsoft.Azure.Management.Resources.Models.ManagementLockProperties parameters, System.Threading.CancellationToken cancellationToken);
abstract member CreateOrUpdateAtResourceLevelAsync : string * Microsoft.Azure.ResourceIdentity * string * Microsoft.Azure.Management.Resources.Models.ManagementLockProperties * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Resources.Models.ManagementLockReturnResult>
Public Function CreateOrUpdateAtResourceLevelAsync (resourceGroupName As String, identity As ResourceIdentity, lockName As String, parameters As ManagementLockProperties, cancellationToken As CancellationToken) As Task(Of ManagementLockReturnResult)
Parameters
- resourceGroupName
- String
The name of the resource group.
- identity
- Microsoft.Azure.ResourceIdentity
Resource identity.
- lockName
- String
The name of lock.
- parameters
- ManagementLockProperties
Create or update management lock parameters.
- cancellationToken
- CancellationToken
Cancellation token.
Returns
Management lock information.