Bearbeiten

Freigeben über


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 "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

Get-AzBlueprintAssignment -SubscriptionId "00000000-1111-0000-1111-000000000000" -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

String

Outputs

Object