IManagementLockOperations.CreateOrUpdateAtResourceLevelAsync Method

Definition

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.

Applies to