[英]"DiskImageNotReady" error when creating VM in Azure using ARM template and JSON
[英]The template deployment failed with error when creating azure spot vm machine
我是 azure 的新手,並嘗試使用 windows 服務器 2019 gen2 部署 Spot 虛擬機。 當我嘗試創建虛擬機時出現此錯誤
“模板部署失敗並出現錯誤:'ID 為 '/subscriptions/6b3845e9-2c4e-44c6-baaf-5efb515334c2/resourceGroups/cloud-vcenter/providers/Microsoft.Compute/virtualMachines/EXsi 的資源驗證失敗並顯示消息:'資源 '/subscriptions/6b3845e9-2c4e-44c6-baaf-5efb515334c2/resourceGroups/cloud-vcenter/providers/Microsoft.Compute/virtualMachines/EXsi' 的請求大小當前在訂閱 'eastus' 區域'' 位置不可用"
我該如何解決這個錯誤? 我的帳戶屬於“Azure for Students”訂閱。
“模板部署失敗並出現錯誤:'ID 為 '/subscriptions/6b3845e9-2c4e-44c6-baaf-5efb515334c2/resourceGroups/cloud vcenter/providers/Microsoft.Compute/virtualMachines/EXsi' 的資源驗證失敗,並顯示消息:'The對於訂閱 '6b3845e9-2c4e -44c6-baaf-5efb515334c2'。請嘗試其他尺寸或部署到不同的位置或區域。有關詳細信息,請參閱https://aka.ms/azureskunotavailable 。'。'。(代碼:InvalidTemplateDeployment)
這個錯誤是由於
如果 SKU 不可用,則向 Azure 支持發送 SKU 請求,如果某個區域或區域中沒有為您的訂閱提供 SKU。
您可以使用命令Get-AzureRmComputeResourceSku檢查所選區域中的可用資源,然后繼續啟動 VM。
Get-AzureRmComputeResourceSku | where {$_.Locations -icontains "eastus"}
Output:
如果您的訂閱\位置組合實際可用,您應該使用:
Get-AzVMSize -Location %location%
Output:
它們在 VM 大小方面也有一些限制,Azure Spot 虛擬機不支持
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.