Share via


ManagementLocksOperationsExtensions.CreateOrUpdateAtSubscriptionLevelAsync メソッド

定義

サブスクリプション レベルで管理ロックを作成または更新します。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.ResourceManager.Models.ManagementLockObject> CreateOrUpdateAtSubscriptionLevelAsync (this Microsoft.Azure.Management.ResourceManager.IManagementLocksOperations operations, string lockName, Microsoft.Azure.Management.ResourceManager.Models.ManagementLockObject parameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAtSubscriptionLevelAsync : Microsoft.Azure.Management.ResourceManager.IManagementLocksOperations * string * Microsoft.Azure.Management.ResourceManager.Models.ManagementLockObject * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ResourceManager.Models.ManagementLockObject>
<Extension()>
Public Function CreateOrUpdateAtSubscriptionLevelAsync (operations As IManagementLocksOperations, lockName As String, parameters As ManagementLockObject, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ManagementLockObject)

パラメーター

operations
IManagementLocksOperations

この拡張メソッドの操作グループ。

lockName
String

ロックの名前。 ロック名には、最大 260 文字を指定できます。 、%、、:、&?、/、またはコントロール文字を含<>めることはできません。

parameters
ManagementLockObject

管理ロック パラメーター。

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

注釈

親スコープでロックを適用すると、すべての子リソースは同じロックを継承します。 管理ロックを作成するには、Microsoft.Authorization/* または Microsoft.Authorization/locks/* アクションにアクセスできる必要があります。 組み込みロールのうち、所有者とユーザー アクセス管理者にのみこれらのアクションが許可されています。

適用対象