Gets a list of Rights Management templates.


   [-TemplateId <Guid>]


The Get-AadrmTemplate cmdlet gets all existing or selected templates from the active Azure Rights Management tenant. Use the TemplateID parameter to get a specific template. If you do not specify the TemplateId, all templates are retrieved.

Similar configuration information can also be viewed in the Azure classic portal, but this cmdlet also returns the template GUID that isn't available in the portal.

The cmdlet output is a list of template objects that contain all the template properties that you can use for further processing. The output of this command displays the template GUID, name, and description in the current locale. For additional template properties, such as usage rights and whether the template is published or archived, use the Get-AadrmTemplateProperty cmdlets.

For more information about custom templates, including how to configure them in the Azure classic portal, see Configuring custom templates for the Azure Rights Managementservice.


Example 1: Get all templates

PS C:\> Get-AadrmTemplate

This command gets all templates for your tenant, so you can get the template ID that you want to use, by identifying the template by its name and description.

Example 2: Get a specific template

PS C:\> Get-AadrmTemplate -TemplateId 28168524-29c3-44f1-9e11-ea6c60bb6428

This command gets a specific template, specified by its template ID (GUID), so that you can confirm from its name and description that it is the template that you want to use.

Optional Parameters


Specifies the GUID of an Rights Management template.

Default value:None
Accept pipeline input:False
Accept wildcard characters:False