Export-AzureRemoteAppTemplateImage
將一個 Azure RemoteApp 集合的範本映射匯出至指定的 Azure 記憶體帳戶。
注意
本文件中參考的 Cmdlet 用於管理使用 Azure Service Manager(ASM) API 的舊版 Azure 資源。 建立新的資源時,不建議使用此舊版 PowerShell 模組,因為 ASM 已排定淘汰。 如需詳細資訊,請參閱 Azure Service Manager 淘汰。
Az PowerShell 模組是使用 PowerShell 管理 Azure Resource Manager (ARM) 資源的建議 PowerShell 模組。
語法
Export-AzureRemoteAppTemplateImage
[-CollectionName] <String>
[-DestinationStorageAccountName] <String>
[-DestinationStorageAccountKey] <String>
[-DestinationStorageAccountContainerName] <String>
[-OverwriteExistingTemplateImage]
[-Profile <AzureSMProfile>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Export-AzureRemoteAppTemplateImage Cmdlet 會將一個 Azure RemoteApp 集合的範本映射導出至指定的 Azure 記憶體帳戶。
範例
範例 1:將範本映射導出至 Azure 記憶體帳戶
PS C:\> Export-AzureRemoteAppTemplateImage -CollectionName "Contoso" -DestinationStorageAccountName "AccountName" -DestinationStorageAccountKey "AccountKey" -DestinationStorageAccountContainerName "ContainerName" -OverwriteExistingTemplateImage
此命令會將名為 Contoso 的集合範本映射匯出至名稱為 AccountName 和密鑰 AccountKey 的指定 Azure 記憶體帳戶中名為 ContainerName 的容器。
參數
-CollectionName
指定來源 Azure RemoteApp 集合的名稱。
類型: | String |
Position: | 1 |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-Confirm
執行 Cmdlet 之前先提示您確認。
類型: | SwitchParameter |
別名: | cf |
Position: | Named |
預設值: | False |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-DestinationStorageAccountContainerName
指定目的地 Azure 記憶體帳戶中的容器名稱。
類型: | String |
Position: | 4 |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-DestinationStorageAccountKey
指定目的地 Azure 記憶體帳戶的金鑰。
類型: | String |
Position: | 3 |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-DestinationStorageAccountName
指定目的地 Azure 記憶體帳戶的名稱。
類型: | String |
Position: | 2 |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-OverwriteExistingTemplateImage
表示 Cmdlet 會覆寫現有的範本映像。
類型: | SwitchParameter |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-Profile
指定此 Cmdlet 從中讀取的 Azure 設定檔。 如果您未指定設定檔,此 Cmdlet 會從本機預設配置檔讀取。
類型: | AzureSMProfile |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-WhatIf
顯示執行 Cmdlet 後會發生的情況。 未執行 Cmdlet。
類型: | SwitchParameter |
別名: | wi |
Position: | Named |
預設值: | False |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |