Get-AzBlueprintAssignment
Get one or more blueprint assignments.
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
Get-AzBlueprintAssignment -SubscriptionId "aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e"
Name : Assignment-PS-BlueprintDefinition
Id : /subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/providers/Microsoft.Blueprint/blueprintAssignments/Assignment-PS-BlueprintDefinition
Scope : /subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e
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
Get-AzBlueprintAssignment -SubscriptionId "aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e" -Name "myAssignmentName"
Get the blueprint assignment with the given name within the specified subscription.
Example 3
Get-AzBlueprintAssignment -ManagementGroupId "myManagementGroup"
Get the blueprint assignments within the specified management group.
Example 4
Get-AzBlueprintAssignment -ManagementGroupId "myManagementGroup" -Name "myAssignmentName"
Get the blueprint assignment with the given name within the specified management group.
Parameters
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ManagementGroupId
The ID of the management group where the Blueprint assignment is saved.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Name
Blueprint assignment name.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-SubscriptionId
Subscription Id the blueprint assignment is deployed to.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Inputs
Outputs
Azure PowerShell