GovernanceRulesOperationsExtensions.DeleteAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Delete a Governance rule over a given scope
public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Security.Models.GovernanceRulesDeleteHeaders> DeleteAsync(this Microsoft.Azure.Management.Security.IGovernanceRulesOperations operations, string scope, string ruleId, System.Threading.CancellationToken cancellationToken = default);
static member DeleteAsync : Microsoft.Azure.Management.Security.IGovernanceRulesOperations * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Security.Models.GovernanceRulesDeleteHeaders>
<Extension()>
Public Function DeleteAsync (operations As IGovernanceRulesOperations, scope As String, ruleId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of GovernanceRulesDeleteHeaders)
Parameters
- operations
- IGovernanceRulesOperations
The operations group for this extension method.
- scope
- String
The scope of the Governance rules. Valid scopes are: management group (format: 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: 'subscriptions/{subscriptionId}'), or security connector (format: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'
- ruleId
- String
The governance rule key - unique key for the standard governance rule (GUID)
- cancellationToken
- CancellationToken
The cancellation token.