ManagementLockOperationsExtensions.CreateOrUpdateAtResourceLevelAsync Method

Definition

Create or update a management lock at the resource level or any level below resource.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Resources.Models.ManagementLockReturnResult> CreateOrUpdateAtResourceLevelAsync (this Microsoft.Azure.Management.Resources.IManagementLockOperations operations, string resourceGroupName, Microsoft.Azure.ResourceIdentity identity, string lockName, Microsoft.Azure.Management.Resources.Models.ManagementLockProperties parameters);
static member CreateOrUpdateAtResourceLevelAsync : Microsoft.Azure.Management.Resources.IManagementLockOperations * string * Microsoft.Azure.ResourceIdentity * string * Microsoft.Azure.Management.Resources.Models.ManagementLockProperties -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Resources.Models.ManagementLockReturnResult>
<Extension()>
Public Function CreateOrUpdateAtResourceLevelAsync (operations As IManagementLockOperations, resourceGroupName As String, identity As ResourceIdentity, lockName As String, parameters As ManagementLockProperties) As Task(Of ManagementLockReturnResult)

Parameters

operations
IManagementLockOperations

Reference to the Microsoft.Azure.Management.Resources.IManagementLockOperations.

resourceGroupName
String

Required. The name of the resource group.

identity
Microsoft.Azure.ResourceIdentity

Required. Resource identity.

lockName
String

Required. The name of lock.

parameters
ManagementLockProperties

Required. Create or update management lock parameters.

Returns

Management lock information.

Applies to