< Back

Get-AzureRmPolicySetDefinition

Tue Jan 29, 2019 10:05 pm

NAME Get-AzureRmPolicySetDefinition



SYNOPSIS

Gets policy set definitions.





SYNTAX

Get-AzureRmPolicySetDefinition [-ApiVersion <String>] [-DefaultProfile <IAzureContextContainer>] -Id <String> [-Pre] [<CommonParameters>]



Get-AzureRmPolicySetDefinition [-ApiVersion <String>] [-DefaultProfile <IAzureContextContainer>] -Name <String> [-Pre] [<CommonParameters>]





DESCRIPTION

The Get-AzureRmPolicySetDefinition cmdlet gets all the policy set definitions or a specific policy set definition identified by name or ID.





PARAMETERS

-ApiVersion <String>

When set, indicates the version of the resource provider API to use. If not specified, the API version is automatically determined as the

latest available.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Id <String>

The fully qualified policy set definition Id, including the subscription. e.g.

/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}



Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Name <String>

The policy set definition name.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Pre [<SwitchParameter>]

When set, indicates that the cmdlet should use pre-release API versions when automatically determining which version to use.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

System.String







OUTPUTS

System.Management.Automation.PSObject







NOTES









Example 1: Get all policy set definition



PS C:\\>Get-AzureRmPolicySetDefinition



This command gets all the policy set definitions.





Example 2: Get policy set definition by name



PS C:\\>Get-AzureRmPolicySetDefinition -Name "VMPolicyDefinition"



This command gets the policy set definition named VMPolicyDefinition.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... definition