使用 Azure 入口網站產生適用於雲端服務 (延伸支援) 的 ARM 範本

本文說明如何從 Azure 入口網站下載適用於雲端服務的 ARM 範本和參數檔案。 您可以透過 PowerShell 在部署中使用 ARM 範本和參數檔案來建立或更新雲端服務

透過入口網站取得 ARM 範本

  1. 前往 Azure 入口網站,然後建立新的雲端服務。 新增您的雲端服務設定、封裝和定義檔案。 Image shows the upload section of the basics tab during creation.

  2. 填寫所有欄位之後,移至 [檢閱和建立] 索引標籤來驗證部署設定,然後在雲端服務 (延伸支援) 下方按 [下載自動化的範本]Image shows downloading the template under cloud service (extended support) on the Azure portal.

  3. 下載範本檔案和參數檔案。 Image shows downloading template file on the Azure portal.

  4. 從 [檢閱和建立] 索引標籤複製 [套件 SAS URI] 和 [設定 SAS URI],然後新增至 parameter.json 檔案。 現在可以透過 PowerShell 使用這些檔案建立新的雲端服務。 Image shows the package SAS URI and configuration SAS URI parameters on the Azure portal.

下一步