共用方式為


Export-AzBlueprintWithArtifact

將指定的藍圖定義匯出至指定的輸出位置作為 JSON 檔案。

語法

Export-AzBlueprintWithArtifact
      -Blueprint <PSBlueprintBase>
      -OutputPath <String>
      [-Version <String>]
      [-Force]
      [-PassThru]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

匯出藍圖定義及其成品並儲存至磁碟。 此 Cmdlet 會匯出藍圖的最新版本(草稿或已發佈)。

範例

範例 1

$bp = Get-AzBlueprint -Name SimpleBlueprint
Export-AzBlueprintWithArtifact -Blueprint $bp -Version 1.0 -OutputPath C:\Blueprints

匯出藍圖定義及其成品並儲存至磁碟。

參數

-Blueprint

要導出的藍圖定義物件。

類型:PSBlueprintBase
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-Confirm

執行 Cmdlet 之前先提示您確認。

類型:SwitchParameter
別名:cf
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-DefaultProfile

用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。

類型:IAzureContextContainer
別名:AzContext, AzureRmContext, AzureCredential
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Force

當設定為 true 時,執行不會要求確認。

類型:SwitchParameter
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-OutputPath

磁碟上檔案的路徑,其中要匯出 JSON 格式的藍圖定義。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-PassThru

設定時,Cmdlet 會傳回代表導出藍圖定義的物件。 根據預設,此 Cmdlet 不會產生任何輸出。

類型:SwitchParameter
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Version

已發佈的藍圖定義版本。

類型:String
Position:Named
預設值:None
必要:False
接受管線輸入:True
接受萬用字元:False

-WhatIf

顯示執行 Cmdlet 後會發生的情況。 未執行 Cmdlet。

類型:SwitchParameter
別名:wi
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

輸入

PSBlueprintBase

String

輸出

String