你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

GovernanceRulesOperationsExtensions.CreateOrUpdate Method

Definition

Creates or updates a governance rule over a given scope

public static Microsoft.Azure.Management.Security.Models.GovernanceRule CreateOrUpdate (this Microsoft.Azure.Management.Security.IGovernanceRulesOperations operations, string scope, string ruleId, Microsoft.Azure.Management.Security.Models.GovernanceRule governanceRule);
static member CreateOrUpdate : Microsoft.Azure.Management.Security.IGovernanceRulesOperations * string * string * Microsoft.Azure.Management.Security.Models.GovernanceRule -> Microsoft.Azure.Management.Security.Models.GovernanceRule
<Extension()>
Public Function CreateOrUpdate (operations As IGovernanceRulesOperations, scope As String, ruleId As String, governanceRule As GovernanceRule) As GovernanceRule

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)

governanceRule
GovernanceRule

Returns

Applies to