Get-AzBlueprintArtifact
從藍圖定義擷取成品。
語法
Get-AzBlueprintArtifact
[-Name <String>]
-Blueprint <PSBlueprintBase>
[-BlueprintVersion <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
從藍圖定義擷取成品。 如果未指定藍圖定義版本,則會擷取草稿版本。 如果沒有草稿版本,則會傳回最新的已發佈藍圖定義。
範例
範例 1
$bp = Get-AzBlueprint -Name SimpleBlueprint
Get-AzBlueprintArtifact -Blueprint $bp
DisplayName : Audit use of classic virtual machines
Description :
DependsOn :
PolicyDefinitionId : /providers/Microsoft.Authorization/policyDefinitions/1d84d5fb-01f6-4d12-ba4f-4a26081d403d
Parameters : {[effect, Microsoft.Azure.Commands.Blueprint.Models.PSParameterValue]}
ResourceGroup : SimpleBlueprintRG
Id : /providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Blueprint/blueprints/SimpleBlueprint/artifacts/3ab44511-0228-4275-9641-7e93e6f34178
Type : Microsoft.Blueprint/blueprints/artifacts
Name : 3ab44511-0228-4275-9641-7e93e6f34178
DisplayName : Enforce tag and its value
Description :
DependsOn :
PolicyDefinitionId : /providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62
Parameters : {[tagName, Microsoft.Azure.Commands.Blueprint.Models.PSParameterValue], [tagValue,
Microsoft.Azure.Commands.Blueprint.Models.PSParameterValue]}
ResourceGroup :
Id : /providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Blueprint/blueprints/SimpleBlueprint/artifacts/0e1593da-47d5-4b75-800c-9a797dd23192
Type : Microsoft.Blueprint/blueprints/artifacts
Name : 0e1593da-47d5-4b75-800c-9a797dd23192
從藍圖定義擷取成品。
參數
-Blueprint
藍圖物件。
類型: | PSBlueprintBase |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-BlueprintVersion
要從中取得成品的藍圖版本。
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-DefaultProfile
用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。
類型: | IAzureContextContainer |
別名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-Name
成品的名稱
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | True |
接受萬用字元: | False |
輸入
List<T>[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]
String[]