Language

PolicyIdentity Class

Definition

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

Constructors

Name Description
PolicyIdentity()

Creates an new PolicyIdentity instance.

Properties

Name Description
Id

Resource identity path

ManagementGroupId

The management group ID.

ManagementGroupName

The name of the management group. The name is case insensitive.

ParentResourcePath

The parent resource path. Use empty string if there is none.

PolicyAssignmentId

The ID of the policy assignment. Restored for backward compatibility: this identity property existed in the pre-migration surface and was dropped when the policy cmdlets were migrated to TypeSpec generation. It is re-exposed here so existing scripts that set the policy assignment ID on an IPolicyIdentity continue to compile and run.

PolicyAssignmentName

The name of the policy assignment to get.

PolicyDefinitionName

The name of the policy definition to get.

PolicyDefinitionVersion

The policy definition version. The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number

PolicyEnrollmentName

The name of the policy enrollment.

PolicyExemptionName

The name of the policy exemption to get.

PolicyMode

The policy mode of the data policy manifest to get.

PolicySetDefinitionName

The name of the policy set definition to get.

ResourceGroupName

The name of the resource group. The name is case insensitive.

ResourceName

The name of the resource.

ResourceProviderNamespace

The namespace of the resource provider. For example, the namespace of a virtual machine is Microsoft.Compute (from Microsoft.Compute/virtualMachines)

ResourceType

The resource type name. For example the type name of a web app is 'sites' (from Microsoft.Web/sites).

Scope

The fully qualified Azure Resource manager identifier of the resource.

SubscriptionId

The ID of the target subscription. The value must be an UUID.

VariableName

The name of the variable to operate on.

VariableValueName

The name of the variable value to operate on.

Methods

Name Description
DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of PolicyIdentity.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of PolicyIdentity.

FromJson(JsonNode)

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

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of PolicyIdentity into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Applies to