Menyebarkan file Bicep dari Azure Cloud Shell

Anda dapat menggunakan Azure Cloud Shell untuk menyebarkan file Bicep. Saat ini Anda hanya dapat menyebarkan file Bicep lokal dari Cloud Shell.

Anda dapat menyebarkan ke cakupan apa pun. Artikel ini menunjukkan penyebaran ke grup sumber daya.

Menyebarkan file Bicep lokal

Untuk menyebarkan file Bicep lokal, Anda harus mengunggah file Bicep anda terlebih dahulu ke sesi Cloud Shell Anda.

  1. Masuk ke Cloud Shell.

  2. Pilih PowerShell atau Bash.

    Pilih Bash atau PowerShell

  3. Select Unggah/Unduh file, dan kemudian pilih Unggah.

    Mengunggah file

  4. Pilih file Bicep yang ingin Anda unggah, lalu pilih Buka.

  5. Untuk menyebarkan file Bicep, gunakan perintah berikut ini:

    az group create --name ExampleGroup --location "South Central US"
    az deployment group create \
      --resource-group ExampleGroup \
      --template-file azuredeploy.bicep \
      --parameters storageAccountType=Standard_GRS
    

Langkah berikutnya