Dela via


Get-AzBlueprint

Hämta en eller flera skissdefinitioner.

Syntax

Get-AzBlueprint
   [-SubscriptionId <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzBlueprint
   -Name <String>
   -ManagementGroupId <String>
   [-Version] <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzBlueprint
   [-Name <String>]
   [-SubscriptionId <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzBlueprint
   -Name <String>
   -ManagementGroupId <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzBlueprint
   -Name <String>
   -ManagementGroupId <String>
   [-LatestPublished]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzBlueprint
   -Name <String>
   [-SubscriptionId <String>]
   [-LatestPublished]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzBlueprint
   -Name <String>
   [-SubscriptionId <String>]
   [-Version] <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzBlueprint
   -ManagementGroupId <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

Hämta en eller flera skissdefinitioner. Skissdefinitioner finns i hanteringsgruppens eller prenumerationsomfånget.

Exempel

Exempel 1

Get-AzBlueprint

Name                 : PS-BlueprintDefinition
Id                   : /subscriptions/00000000-1111-0000-1111-000000000000/providers/Microsoft.Blueprint/blueprints/PS-BlueprintDefinition
SubscriptionId       : 00000000-1111-0000-1111-000000000000
Versions             : {1.0}
Description          : Powershell test blueprint
TimeCreated          : 2019-02-01
TargetScope          : Subscription
Parameters           : {storageData_storageAccountType, storageData_location, allowedlocations_listOfAllowedLocations}
ResourceGroups       : ResourceGroup

Hämta skissdefinitionerna i den aktuella prenumerationen och prenumerationens hanteringsgruppshierarki.

Exempel 2

Get-AzBlueprint -ManagementGroupId "myManagementGroupId"

Name                 : PS-MG-BlueprintDefinition
Id                   : /providers/Microsoft.Management/managementGroups/myManagementGroupId/providers/Microsoft.Blueprint/blueprints/PS-MG-BlueprintDefinition
ManagementGroupId    : myManagementGroupId
Versions             : {1.0, 2.0, 3.0, 4.0}
TimeCreated          : 2019-03-04
TargetScope          : Subscription
Parameters           : {enforcetaganditsvalue_tagName, enforcetaganditsvalue_tagValue, [Usergrouporapplicationname]:Contributor_RoleAssignmentName,
                       [Usergrouporapplicationname]:Owner_RoleAssignmentName}
ResourceGroups       : {ResourceGroup, ResourceGroup2}

Hämta skissdefinitionerna i den angivna hanteringsgruppen.

Exempel 3

Get-AzBlueprint -SubscriptionId "00000000-1111-0000-1111-000000000000"

Name                 : PS-BlueprintDefinition
Id                   : /subscriptions/00000000-1111-0000-1111-000000000000/providers/Microsoft.Blueprint/blueprints/PS-BlueprintDefinition
SubscriptionId       : 00000000-1111-0000-1111-000000000000
Versions             : {1.0}
Description          : Powershell test blueprint
TimeCreated          : 2019-02-01
TargetScope          : Subscription
Parameters           : {storageData_storageAccountType, storageData_location, allowedlocations_listOfAllowedLocations}
ResourceGroups       : ResourceGroup

Hämta skissdefinitionerna i den angivna prenumerationen och prenumerationens hanteringsgruppshierarki.

Exempel 4

Get-AzBlueprint -SubscriptionId "00000000-1111-0000-1111-000000000000" -Name "myBlueprintName"

Hämta skissdefinitionen med det angivna namnet i den angivna prenumerationen.

Exempel 5

Get-AzBlueprint -ManagementGroupId "myManagementGroupId" -Name "myBlueprintName" -Version "myBlueprintVersion"

Hämta skissdefinitionen med förnamnet och versionen i den angivna hanteringsgruppen.

Exempel 6

Get-AzBlueprint -ManagementGroupId "myManagementGroupId" -Name "myBlueprintName" -LatestPublished

Hämta den senaste publicerade skissdefinitionen med det angivna namnet i den angivna hanteringsgruppen.

Parametrar

-DefaultProfile

Autentiseringsuppgifter, konto, klientorganisation och prenumeration som används för kommunikation med Azure.

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-LatestPublished

Den senaste publicerade skissdefinitionsflaggan. När den har angetts returnerar körningen den senaste publicerade versionen av skissdefinitionen. Standardvärdet är falskt.

Type:SwitchParameter
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ManagementGroupId

Hanteringsgrupps-ID där skissdefinitionen sparas.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Name

Skissdefinitionsnamn.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-SubscriptionId

Prenumerations-ID där skissdefinitionen sparas.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-Version

Publicerad skissdefinitionsversion.

Type:String
Position:2
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

Indata

String

Utdata

Object