次の方法で共有


PolicyAssignmentsOperationsExtensions.DeleteAsync メソッド

定義

ポリシー割り当てを削除します。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.ResourceManager.Fluent.Models.PolicyAssignmentInner> DeleteAsync (this Microsoft.Azure.Management.ResourceManager.Fluent.IPolicyAssignmentsOperations operations, string scope, string policyAssignmentName, System.Threading.CancellationToken cancellationToken = default);
static member DeleteAsync : Microsoft.Azure.Management.ResourceManager.Fluent.IPolicyAssignmentsOperations * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ResourceManager.Fluent.Models.PolicyAssignmentInner>
<Extension()>
Public Function DeleteAsync (operations As IPolicyAssignmentsOperations, scope As String, policyAssignmentName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of PolicyAssignmentInner)

パラメーター

operations
IPolicyAssignmentsOperations

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

scope
String

ポリシー割り当てのスコープ。 有効なスコープは、管理グループ (形式: '/providers/Microsoft.Management/managementGroups/{managementGroup}')、サブスクリプション (形式: '/subscriptions/{subscriptionId}')、リソース グループ (形式: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}') です。 またはリソース (形式: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'

policyAssignmentName
String

削除するポリシー割り当ての名前。

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

注釈

この操作では、名前と作成されたスコープを指定して、ポリシー割り当てを削除します。 ポリシー割り当てのスコープは、'/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName} より前の ID の一部です。

適用対象