Partager via


PolicyAssignmentUpdate Class

Definition

The policy assignment for Patch request.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Policy.Models.PolicyAssignmentUpdateTypeConverter))]
public class PolicyAssignmentUpdate : Microsoft.Azure.PowerShell.Cmdlets.Policy.Models.IPolicyAssignmentUpdate
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Policy.Models.PolicyAssignmentUpdateTypeConverter))>]
type PolicyAssignmentUpdate = class
    interface IPolicyAssignmentUpdate
    interface IJsonSerializable
Public Class PolicyAssignmentUpdate
Implements IPolicyAssignmentUpdate
Inheritance
PolicyAssignmentUpdate
Attributes
Implements

Constructors

PolicyAssignmentUpdate()

Creates an new PolicyAssignmentUpdate instance.

Properties

IdentityPrincipalId

The principal ID of the resource identity. This property will only be provided for a system assigned identity

IdentityTenantId

The tenant ID of the resource identity. This property will only be provided for a system assigned identity

IdentityType

The identity type. This is the only required field when adding a system or user assigned identity to a resource.

IdentityUserAssignedIdentity

The user identity associated with the policy. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.

Location

The location of the policy assignment. Only required when utilizing managed identity.

Override

The policy property value override.

ResourceSelector

The resource selector list to filter policies by resource properties.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of PolicyAssignmentUpdate.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of PolicyAssignmentUpdate.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Policy.Models.IPolicyAssignmentUpdate.

FromJsonString(String)

Creates a new instance of PolicyAssignmentUpdate, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of PolicyAssignmentUpdate into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Applies to