Get-AzBlueprintAssignment
Get one or more blueprint assignments.
Note
This is the previous version of our documentation. Please consult the most recent version for up-to-date information.
Syntax
Get-AzBlueprintAssignment
[-SubscriptionId <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzBlueprintAssignment
-Name <String>
[-SubscriptionId <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzBlueprintAssignment
-Name <String>
-ManagementGroupId <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzBlueprintAssignment
-ManagementGroupId <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Get one or more blueprint assignments. Blueprint assignments exist at the subscription scope.
Examples
Example 1
PS C:\> Get-AzBlueprintAssignment -SubscriptionId "00000000-1111-0000-1111-000000000000"
Name : Assignment-PS-BlueprintDefinition
Id : /subscriptions/00000000-1111-0000-1111-000000000000/providers/Microsoft.Blueprint/blueprintAssignments/Assignment-PS-BlueprintDefinition
Scope : /subscriptions/00000000-1111-0000-1111-000000000000
LastModified : 2019-01-08
LockMode : AllResourcesReadOnly
ProvisioningState : Succeeded
Parameters : {applytaganditsdefaultvalue_tagName, applytaganditsdefaultvalue_tagValue}
ResourceGroups : ResourceGroup
Get the blueprint assignments within the specified subscription.
Example 2
PS C:\> Get-AzBlueprintAssignment -SubscriptionId "00000000-1111-0000-1111-000000000000" -Name "myAssignmentName"
Get the blueprint assignment with the given name within the specified subscription.
Example 3
PS C:\> Get-AzBlueprintAssignment -ManagementGroupId "myManagementGroup"
Get the blueprint assignments within the specified management group.
Example 4
PS C:\> Get-AzBlueprintAssignment -ManagementGroupId "myManagementGroup" -Name "myAssignmentName"
Get the blueprint assignment with the given name within the specified management group.
Parameters
The credentials, account, tenant, and subscription used for communication with Azure.
| Type: | IAzureContextContainer |
| Aliases: | AzContext, AzureRmContext, AzureCredential |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
The ID of the management group where the Blueprint assignment is saved.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Blueprint assignment name.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Subscription Id the blueprint assignment is deployed to.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |