ResourcesPolicyExtensions Class

Definition

A class to add extension methods to Azure.ResourceManager.Resources.Policy.

public static class ResourcesPolicyExtensions
type ResourcesPolicyExtensions = class
Public Module ResourcesPolicyExtensions
Inheritance
ResourcesPolicyExtensions

Methods

Name Description
Acquire(SubscriptionResource, PolicyTokenRequestContent, CancellationToken)

This operation acquires a policy token in the given subscription for the given request body. <item> Mocking. To mock this method, please mock Acquire(PolicyTokenRequestContent, CancellationToken) instead. </item>

AcquireAsync(SubscriptionResource, PolicyTokenRequestContent, CancellationToken)

This operation acquires a policy token in the given subscription for the given request body. <item> Mocking. To mock this method, please mock AcquireAsync(PolicyTokenRequestContent, CancellationToken) instead. </item>

AcquireAtManagementGroup(ManagementGroupResource, PolicyTokenRequestContent, CancellationToken)

This operation acquires a policy token in the given management group for the given request body. <item> Mocking. To mock this method, please mock AcquireAtManagementGroup(PolicyTokenRequestContent, CancellationToken) instead. </item>

AcquireAtManagementGroupAsync(ManagementGroupResource, PolicyTokenRequestContent, CancellationToken)

This operation acquires a policy token in the given management group for the given request body. <item> Mocking. To mock this method, please mock AcquireAtManagementGroupAsync(PolicyTokenRequestContent, CancellationToken) instead. </item>

CreateById(TenantResource, String, PolicyAssignmentData, CancellationToken)

This operation creates or updates the policy assignment with the given ID. Policy assignments made on a scope apply to all resources contained in that scope. For example, when you assign a policy to a resource group that policy applies to all resources in the group. Policy assignment IDs have this format: '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'. <item> Mocking. To mock this method, please mock CreateById(String, PolicyAssignmentData, CancellationToken) instead. </item>

CreateByIdAsync(TenantResource, String, PolicyAssignmentData, CancellationToken)

This operation creates or updates the policy assignment with the given ID. Policy assignments made on a scope apply to all resources contained in that scope. For example, when you assign a policy to a resource group that policy applies to all resources in the group. Policy assignment IDs have this format: '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'. <item> Mocking. To mock this method, please mock CreateByIdAsync(String, PolicyAssignmentData, CancellationToken) instead. </item>

DeleteById(TenantResource, String, CancellationToken)

This operation deletes the policy with the given ID. Policy assignment IDs have this format: '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. Valid formats for {scope} are: '/providers/Microsoft.Management/managementGroups/{managementGroup}' (management group), '/subscriptions/{subscriptionId}' (subscription), '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' (resource group), or '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' (resource). <item> Mocking. To mock this method, please mock DeleteById(String, CancellationToken) instead. </item>

DeleteByIdAsync(TenantResource, String, CancellationToken)

This operation deletes the policy with the given ID. Policy assignment IDs have this format: '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. Valid formats for {scope} are: '/providers/Microsoft.Management/managementGroups/{managementGroup}' (management group), '/subscriptions/{subscriptionId}' (subscription), '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' (resource group), or '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' (resource). <item> Mocking. To mock this method, please mock DeleteByIdAsync(String, CancellationToken) instead. </item>

GetById(TenantResource, String, CancellationToken)

The operation retrieves the policy assignment with the given ID. Policy assignment IDs have this format: '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'. <item> Mocking. To mock this method, please mock GetById(String, CancellationToken) instead. </item>

GetByIdAsync(TenantResource, String, CancellationToken)

The operation retrieves the policy assignment with the given ID. Policy assignment IDs have this format: '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'. <item> Mocking. To mock this method, please mock GetByIdAsync(String, CancellationToken) instead. </item>

GetDataPolicyManifest(TenantResource, String, CancellationToken)

This operation retrieves the data policy manifest with the given policy mode. <item> Mocking. To mock this method, please mock GetDataPolicyManifest(String, CancellationToken) instead. </item>

GetDataPolicyManifestAsync(TenantResource, String, CancellationToken)

This operation retrieves the data policy manifest with the given policy mode. <item> Mocking. To mock this method, please mock GetDataPolicyManifestAsync(String, CancellationToken) instead. </item>

GetDataPolicyManifestResource(ArmClient, ResourceIdentifier)

Gets an object representing a DataPolicyManifestResource along with the instance operations that can be performed on it but with no data. <item> Mocking. To mock this method, please mock GetDataPolicyManifestResource(ResourceIdentifier) instead. </item>

GetDataPolicyManifests(TenantResource)

Gets a collection of DataPolicyManifests in the TenantResource<item> Mocking. To mock this method, please mock GetDataPolicyManifests() instead. </item>

GetPolicyAssignment(ArmClient, ResourceIdentifier, String, String, CancellationToken)

This operation retrieves a single policy assignment, given its name and the scope it was created at. <item> Mocking. To mock this method, please mock GetPolicyAssignment(ResourceIdentifier, String, String, CancellationToken) instead. </item>

GetPolicyAssignmentAsync(ArmClient, ResourceIdentifier, String, String, CancellationToken)

This operation retrieves a single policy assignment, given its name and the scope it was created at. <item> Mocking. To mock this method, please mock GetPolicyAssignmentAsync(ResourceIdentifier, String, String, CancellationToken) instead. </item>

GetPolicyAssignmentResource(ArmClient, ResourceIdentifier)

Gets an object representing a PolicyAssignmentResource along with the instance operations that can be performed on it but with no data. <item> Mocking. To mock this method, please mock GetPolicyAssignmentResource(ResourceIdentifier) instead. </item>

GetPolicyAssignments(ArmClient, ResourceIdentifier)

Gets a collection of PolicyAssignmentCollection objects within the specified scope. <item> Mocking. To mock this method, please mock GetPolicyAssignments(ResourceIdentifier) instead. </item>

GetPolicyAssignments(ManagementGroupResource, String, String, Nullable<Int32>, CancellationToken)

This operation retrieves the list of all policy assignments applicable to the management group that match the given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()' or 'policyDefinitionId eq '{value}''. If $filter=atScope() is provided, the returned list includes all policy assignments that are assigned to the management group or the management group's ancestors. If $filter=atExactScope() is provided, the returned list only includes all policy assignments that at the management group. If $filter=policyDefinitionId eq '{value}' is provided, the returned list includes all policy assignments of the policy definition whose id is {value} that apply to the management group. <item> Mocking. To mock this method, please mock GetPolicyAssignments(String, String, Nullable<Int32>, CancellationToken) instead. </item>

GetPolicyAssignments(ResourceGroupResource, String, String, Nullable<Int32>, CancellationToken)

This operation retrieves the list of all policy assignments associated with the given resource group in the given subscription that match the optional given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()' or 'policyDefinitionId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy assignments associated with the resource group, including those that apply directly or apply from containing scopes, as well as any applied to resources contained within the resource group. If $filter=atScope() is provided, the returned list includes all policy assignments that apply to the resource group, which is everything in the unfiltered list except those applied to resources contained within the resource group. If $filter=atExactScope() is provided, the returned list only includes all policy assignments that at the resource group. If $filter=policyDefinitionId eq '{value}' is provided, the returned list includes all policy assignments of the policy definition whose id is {value} that apply to the resource group. <item> Mocking. To mock this method, please mock GetPolicyAssignments(String, String, Nullable<Int32>, CancellationToken) instead. </item>

GetPolicyAssignments(ResourceGroupResource, String, String, String, String, String, String, Nullable<Int32>, CancellationToken)

This operation retrieves the list of all policy assignments associated with the specified resource in the given resource group and subscription that match the optional given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()' or 'policyDefinitionId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy assignments associated with the resource, including those that apply directly or from all containing scopes, as well as any applied to resources contained within the resource. If $filter=atScope() is provided, the returned list includes all policy assignments that apply to the resource, which is everything in the unfiltered list except those applied to resources contained within the resource. If $filter=atExactScope() is provided, the returned list only includes all policy assignments that at the resource level. If $filter=policyDefinitionId eq '{value}' is provided, the returned list includes all policy assignments of the policy definition whose id is {value} that apply to the resource. Three parameters plus the resource name are used to identify a specific resource. If the resource is not part of a parent resource (the more common case), the parent resource path should not be provided (or provided as ''). For example a web app could be specified as ({resourceProviderNamespace} == 'Microsoft.Web', {parentResourcePath} == '', {resourceType} == 'sites', {resourceName} == 'MyWebApp'). If the resource is part of a parent resource, then all parameters should be provided. For example a virtual machine DNS name could be specified as ({resourceProviderNamespace} == 'Microsoft.Compute', {parentResourcePath} == 'virtualMachines/MyVirtualMachine', {resourceType} == 'domainNames', {resourceName} == 'MyComputerName'). A convenient alternative to providing the namespace and type name separately is to provide both in the {resourceType} parameter, format: ({resourceProviderNamespace} == '', {parentResourcePath} == '', {resourceType} == 'Microsoft.Web/sites', {resourceName} == 'MyWebApp'). <item> Mocking. To mock this method, please mock GetPolicyAssignments(String, String, String, String, String, String, Nullable<Int32>, CancellationToken) instead. </item>

GetPolicyAssignments(SubscriptionResource, String, String, Nullable<Int32>, CancellationToken)

This operation retrieves the list of all policy assignments associated with the given subscription that match the optional given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()' or 'policyDefinitionId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy assignments associated with the subscription, including those that apply directly or from management groups that contain the given subscription, as well as any applied to objects contained within the subscription. If $filter=atScope() is provided, the returned list includes all policy assignments that apply to the subscription, which is everything in the unfiltered list except those applied to objects contained within the subscription. If $filter=atExactScope() is provided, the returned list only includes all policy assignments that at the subscription. If $filter=policyDefinitionId eq '{value}' is provided, the returned list includes all policy assignments of the policy definition whose id is {value}. <item> Mocking. To mock this method, please mock GetPolicyAssignments(String, String, Nullable<Int32>, CancellationToken) instead. </item>

GetPolicyAssignmentsAsync(ManagementGroupResource, String, String, Nullable<Int32>, CancellationToken)

This operation retrieves the list of all policy assignments applicable to the management group that match the given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()' or 'policyDefinitionId eq '{value}''. If $filter=atScope() is provided, the returned list includes all policy assignments that are assigned to the management group or the management group's ancestors. If $filter=atExactScope() is provided, the returned list only includes all policy assignments that at the management group. If $filter=policyDefinitionId eq '{value}' is provided, the returned list includes all policy assignments of the policy definition whose id is {value} that apply to the management group. <item> Mocking. To mock this method, please mock GetPolicyAssignmentsAsync(String, String, Nullable<Int32>, CancellationToken) instead. </item>

GetPolicyAssignmentsAsync(ResourceGroupResource, String, String, Nullable<Int32>, CancellationToken)

This operation retrieves the list of all policy assignments associated with the given resource group in the given subscription that match the optional given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()' or 'policyDefinitionId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy assignments associated with the resource group, including those that apply directly or apply from containing scopes, as well as any applied to resources contained within the resource group. If $filter=atScope() is provided, the returned list includes all policy assignments that apply to the resource group, which is everything in the unfiltered list except those applied to resources contained within the resource group. If $filter=atExactScope() is provided, the returned list only includes all policy assignments that at the resource group. If $filter=policyDefinitionId eq '{value}' is provided, the returned list includes all policy assignments of the policy definition whose id is {value} that apply to the resource group. <item> Mocking. To mock this method, please mock GetPolicyAssignmentsAsync(String, String, Nullable<Int32>, CancellationToken) instead. </item>

GetPolicyAssignmentsAsync(ResourceGroupResource, String, String, String, String, String, String, Nullable<Int32>, CancellationToken)

This operation retrieves the list of all policy assignments associated with the specified resource in the given resource group and subscription that match the optional given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()' or 'policyDefinitionId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy assignments associated with the resource, including those that apply directly or from all containing scopes, as well as any applied to resources contained within the resource. If $filter=atScope() is provided, the returned list includes all policy assignments that apply to the resource, which is everything in the unfiltered list except those applied to resources contained within the resource. If $filter=atExactScope() is provided, the returned list only includes all policy assignments that at the resource level. If $filter=policyDefinitionId eq '{value}' is provided, the returned list includes all policy assignments of the policy definition whose id is {value} that apply to the resource. Three parameters plus the resource name are used to identify a specific resource. If the resource is not part of a parent resource (the more common case), the parent resource path should not be provided (or provided as ''). For example a web app could be specified as ({resourceProviderNamespace} == 'Microsoft.Web', {parentResourcePath} == '', {resourceType} == 'sites', {resourceName} == 'MyWebApp'). If the resource is part of a parent resource, then all parameters should be provided. For example a virtual machine DNS name could be specified as ({resourceProviderNamespace} == 'Microsoft.Compute', {parentResourcePath} == 'virtualMachines/MyVirtualMachine', {resourceType} == 'domainNames', {resourceName} == 'MyComputerName'). A convenient alternative to providing the namespace and type name separately is to provide both in the {resourceType} parameter, format: ({resourceProviderNamespace} == '', {parentResourcePath} == '', {resourceType} == 'Microsoft.Web/sites', {resourceName} == 'MyWebApp'). <item> Mocking. To mock this method, please mock GetPolicyAssignmentsAsync(String, String, String, String, String, String, Nullable<Int32>, CancellationToken) instead. </item>

GetPolicyAssignmentsAsync(SubscriptionResource, String, String, Nullable<Int32>, CancellationToken)

This operation retrieves the list of all policy assignments associated with the given subscription that match the optional given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()' or 'policyDefinitionId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy assignments associated with the subscription, including those that apply directly or from management groups that contain the given subscription, as well as any applied to objects contained within the subscription. If $filter=atScope() is provided, the returned list includes all policy assignments that apply to the subscription, which is everything in the unfiltered list except those applied to objects contained within the subscription. If $filter=atExactScope() is provided, the returned list only includes all policy assignments that at the subscription. If $filter=policyDefinitionId eq '{value}' is provided, the returned list includes all policy assignments of the policy definition whose id is {value}. <item> Mocking. To mock this method, please mock GetPolicyAssignmentsAsync(String, String, Nullable<Int32>, CancellationToken) instead. </item>

GetPolicyDefinition(SubscriptionResource, String, CancellationToken)

This operation retrieves the policy definition in the given subscription with the given name. <item> Mocking. To mock this method, please mock GetPolicyDefinition(String, CancellationToken) instead. </item>

GetPolicyDefinitionAsync(SubscriptionResource, String, CancellationToken)

This operation retrieves the policy definition in the given subscription with the given name. <item> Mocking. To mock this method, please mock GetPolicyDefinitionAsync(String, CancellationToken) instead. </item>

GetPolicyDefinitionResource(ArmClient, ResourceIdentifier)

Gets an object representing a PolicyDefinitionResource along with the instance operations that can be performed on it but with no data. <item> Mocking. To mock this method, please mock GetPolicyDefinitionResource(ResourceIdentifier) instead. </item>

GetPolicyDefinitions(ManagementGroupResource, CancellationToken)

This operation lists all the policy definition versions for all policy definitions at the management group scope. <item> Mocking. To mock this method, please mock GetPolicyDefinitions(CancellationToken) instead. </item>

GetPolicyDefinitions(SubscriptionResource)

Gets a collection of PolicyDefinitions in the SubscriptionResource<item> Mocking. To mock this method, please mock GetPolicyDefinitions() instead. </item>

GetPolicyDefinitions(TenantResource, CancellationToken)

This operation lists all the built-in policy definition versions for all built-in policy definitions. <item> Mocking. To mock this method, please mock GetPolicyDefinitions(CancellationToken) instead. </item>

GetPolicyDefinitionsAsync(ManagementGroupResource, CancellationToken)

This operation lists all the policy definition versions for all policy definitions at the management group scope. <item> Mocking. To mock this method, please mock GetPolicyDefinitionsAsync(CancellationToken) instead. </item>

GetPolicyDefinitionsAsync(TenantResource, CancellationToken)

This operation lists all the built-in policy definition versions for all built-in policy definitions. <item> Mocking. To mock this method, please mock GetPolicyDefinitionsAsync(CancellationToken) instead. </item>

GetPolicyDefinitionVersionResource(ArmClient, ResourceIdentifier)

Gets an object representing a PolicyDefinitionVersionResource along with the instance operations that can be performed on it but with no data. <item> Mocking. To mock this method, please mock GetPolicyDefinitionVersionResource(ResourceIdentifier) instead. </item>

GetPolicyExemption(ArmClient, ResourceIdentifier, String, CancellationToken)

This operation retrieves a single policy exemption, given its name and the scope it was created at. <item> Mocking. To mock this method, please mock GetPolicyExemption(ResourceIdentifier, String, CancellationToken) instead. </item>

GetPolicyExemptionAsync(ArmClient, ResourceIdentifier, String, CancellationToken)

This operation retrieves a single policy exemption, given its name and the scope it was created at. <item> Mocking. To mock this method, please mock GetPolicyExemptionAsync(ResourceIdentifier, String, CancellationToken) instead. </item>

GetPolicyExemptionResource(ArmClient, ResourceIdentifier)

Gets an object representing a PolicyExemptionResource along with the instance operations that can be performed on it but with no data. <item> Mocking. To mock this method, please mock GetPolicyExemptionResource(ResourceIdentifier) instead. </item>

GetPolicyExemptions(ArmClient, ResourceIdentifier)

Gets a collection of PolicyExemptionCollection objects within the specified scope. <item> Mocking. To mock this method, please mock GetPolicyExemptions(ResourceIdentifier) instead. </item>

GetPolicyExemptions(ManagementGroupResource, String, CancellationToken)

This operation retrieves the list of all policy exemptions applicable to the management group that match the given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter=atScope() is provided, the returned list includes all policy exemptions that are assigned to the management group or the management group's ancestors. <item> Mocking. To mock this method, please mock GetPolicyExemptions(String, CancellationToken) instead. </item>

GetPolicyExemptions(ResourceGroupResource, String, CancellationToken)

This operation retrieves the list of all policy exemptions associated with the given resource group in the given subscription that match the optional given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy exemptions associated with the resource group, including those that apply directly or apply from containing scopes, as well as any applied to resources contained within the resource group. <item> Mocking. To mock this method, please mock GetPolicyExemptions(String, CancellationToken) instead. </item>

GetPolicyExemptions(ResourceGroupResource, String, String, String, String, String, CancellationToken)

This operation retrieves the list of all policy exemptions associated with the specified resource in the given resource group and subscription that match the optional given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy exemptions associated with the resource, including those that apply directly or from all containing scopes, as well as any applied to resources contained within the resource. Three parameters plus the resource name are used to identify a specific resource. If the resource is not part of a parent resource (the more common case), the parent resource path should not be provided (or provided as ''). For example a web app could be specified as ({resourceProviderNamespace} == 'Microsoft.Web', {parentResourcePath} == '', {resourceType} == 'sites', {resourceName} == 'MyWebApp'). If the resource is part of a parent resource, then all parameters should be provided. For example a virtual machine DNS name could be specified as ({resourceProviderNamespace} == 'Microsoft.Compute', {parentResourcePath} == 'virtualMachines/MyVirtualMachine', {resourceType} == 'domainNames', {resourceName} == 'MyComputerName'). A convenient alternative to providing the namespace and type name separately is to provide both in the {resourceType} parameter, format: ({resourceProviderNamespace} == '', {parentResourcePath} == '', {resourceType} == 'Microsoft.Web/sites', {resourceName} == 'MyWebApp'). <item> Mocking. To mock this method, please mock GetPolicyExemptions(String, String, String, String, String, CancellationToken) instead. </item>

GetPolicyExemptions(SubscriptionResource, String, CancellationToken)

This operation retrieves the list of all policy exemptions associated with the given subscription that match the optional given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy exemptions associated with the subscription, including those that apply directly or from management groups that contain the given subscription, as well as any applied to objects contained within the subscription. <item> Mocking. To mock this method, please mock GetPolicyExemptions(String, CancellationToken) instead. </item>

GetPolicyExemptionsAsync(ManagementGroupResource, String, CancellationToken)

This operation retrieves the list of all policy exemptions applicable to the management group that match the given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter=atScope() is provided, the returned list includes all policy exemptions that are assigned to the management group or the management group's ancestors. <item> Mocking. To mock this method, please mock GetPolicyExemptionsAsync(String, CancellationToken) instead. </item>

GetPolicyExemptionsAsync(ResourceGroupResource, String, CancellationToken)

This operation retrieves the list of all policy exemptions associated with the given resource group in the given subscription that match the optional given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy exemptions associated with the resource group, including those that apply directly or apply from containing scopes, as well as any applied to resources contained within the resource group. <item> Mocking. To mock this method, please mock GetPolicyExemptionsAsync(String, CancellationToken) instead. </item>

GetPolicyExemptionsAsync(ResourceGroupResource, String, String, String, String, String, CancellationToken)

This operation retrieves the list of all policy exemptions associated with the specified resource in the given resource group and subscription that match the optional given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy exemptions associated with the resource, including those that apply directly or from all containing scopes, as well as any applied to resources contained within the resource. Three parameters plus the resource name are used to identify a specific resource. If the resource is not part of a parent resource (the more common case), the parent resource path should not be provided (or provided as ''). For example a web app could be specified as ({resourceProviderNamespace} == 'Microsoft.Web', {parentResourcePath} == '', {resourceType} == 'sites', {resourceName} == 'MyWebApp'). If the resource is part of a parent resource, then all parameters should be provided. For example a virtual machine DNS name could be specified as ({resourceProviderNamespace} == 'Microsoft.Compute', {parentResourcePath} == 'virtualMachines/MyVirtualMachine', {resourceType} == 'domainNames', {resourceName} == 'MyComputerName'). A convenient alternative to providing the namespace and type name separately is to provide both in the {resourceType} parameter, format: ({resourceProviderNamespace} == '', {parentResourcePath} == '', {resourceType} == 'Microsoft.Web/sites', {resourceName} == 'MyWebApp'). <item> Mocking. To mock this method, please mock GetPolicyExemptionsAsync(String, String, String, String, String, CancellationToken) instead. </item>

GetPolicyExemptionsAsync(SubscriptionResource, String, CancellationToken)

This operation retrieves the list of all policy exemptions associated with the given subscription that match the optional given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy exemptions associated with the subscription, including those that apply directly or from management groups that contain the given subscription, as well as any applied to objects contained within the subscription. <item> Mocking. To mock this method, please mock GetPolicyExemptionsAsync(String, CancellationToken) instead. </item>

GetPolicySetDefinition(SubscriptionResource, String, String, CancellationToken)

This operation retrieves the policy set definition in the given subscription with the given name. <item> Mocking. To mock this method, please mock GetPolicySetDefinition(String, String, CancellationToken) instead. </item>

GetPolicySetDefinitionAsync(SubscriptionResource, String, String, CancellationToken)

This operation retrieves the policy set definition in the given subscription with the given name. <item> Mocking. To mock this method, please mock GetPolicySetDefinitionAsync(String, String, CancellationToken) instead. </item>

GetPolicySetDefinitionResource(ArmClient, ResourceIdentifier)

Gets an object representing a PolicySetDefinitionResource along with the instance operations that can be performed on it but with no data. <item> Mocking. To mock this method, please mock GetPolicySetDefinitionResource(ResourceIdentifier) instead. </item>

GetPolicySetDefinitions(ManagementGroupResource, CancellationToken)

This operation lists all the policy set definition versions for all policy set definitions at the management group scope. <item> Mocking. To mock this method, please mock GetPolicySetDefinitions(CancellationToken) instead. </item>

GetPolicySetDefinitions(SubscriptionResource)

Gets a collection of PolicySetDefinitions in the SubscriptionResource<item> Mocking. To mock this method, please mock GetPolicySetDefinitions() instead. </item>

GetPolicySetDefinitions(TenantResource, CancellationToken)

This operation lists all the built-in policy set definition versions for all built-in policy set definitions. <item> Mocking. To mock this method, please mock GetPolicySetDefinitions(CancellationToken) instead. </item>

GetPolicySetDefinitionsAsync(ManagementGroupResource, CancellationToken)

This operation lists all the policy set definition versions for all policy set definitions at the management group scope. <item> Mocking. To mock this method, please mock GetPolicySetDefinitionsAsync(CancellationToken) instead. </item>

GetPolicySetDefinitionsAsync(TenantResource, CancellationToken)

This operation lists all the built-in policy set definition versions for all built-in policy set definitions. <item> Mocking. To mock this method, please mock GetPolicySetDefinitionsAsync(CancellationToken) instead. </item>

GetPolicySetDefinitionVersionResource(ArmClient, ResourceIdentifier)

Gets an object representing a PolicySetDefinitionVersionResource along with the instance operations that can be performed on it but with no data. <item> Mocking. To mock this method, please mock GetPolicySetDefinitionVersionResource(ResourceIdentifier) instead. </item>

GetVariable(SubscriptionResource, String, CancellationToken)

This operation retrieves a single variable, given its name and the subscription it was created at. <item> Mocking. To mock this method, please mock GetVariable(String, CancellationToken) instead. </item>

GetVariableAsync(SubscriptionResource, String, CancellationToken)

This operation retrieves a single variable, given its name and the subscription it was created at. <item> Mocking. To mock this method, please mock GetVariableAsync(String, CancellationToken) instead. </item>

GetVariableResource(ArmClient, ResourceIdentifier)

Gets an object representing a VariableResource along with the instance operations that can be performed on it but with no data. <item> Mocking. To mock this method, please mock GetVariableResource(ResourceIdentifier) instead. </item>

GetVariables(SubscriptionResource)

Gets a collection of Variables in the SubscriptionResource<item> Mocking. To mock this method, please mock GetVariables() instead. </item>

GetVariableValueResource(ArmClient, ResourceIdentifier)

Gets an object representing a VariableValueResource along with the instance operations that can be performed on it but with no data. <item> Mocking. To mock this method, please mock GetVariableValueResource(ResourceIdentifier) instead. </item>

UpdateById(TenantResource, String, PolicyAssignmentPatch, CancellationToken)

This operation updates the policy assignment with the given ID. Policy assignments made on a scope apply to all resources contained in that scope. For example, when you assign a policy to a resource group that policy applies to all resources in the group. Policy assignment IDs have this format: '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'. <item> Mocking. To mock this method, please mock UpdateById(String, PolicyAssignmentPatch, CancellationToken) instead. </item>

UpdateByIdAsync(TenantResource, String, PolicyAssignmentPatch, CancellationToken)

This operation updates the policy assignment with the given ID. Policy assignments made on a scope apply to all resources contained in that scope. For example, when you assign a policy to a resource group that policy applies to all resources in the group. Policy assignment IDs have this format: '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'. <item> Mocking. To mock this method, please mock UpdateByIdAsync(String, PolicyAssignmentPatch, CancellationToken) instead. </item>

Applies to