azure iot-edege 快速入门 linux 教程使用哪种 VM 大小? [关闭]

问题描述 投票:0回答:3

我正在按照 https://learn.microsoft.com/en-us/azure/iot-edge/quickstart-linux?view=iotedge-1.4

中的说明进行操作

跑步时

    az deployment group create \
--resource-group IoTEdgeResources \
--template-uri "https://raw.githubusercontent.com/Azure/iotedge-vm-deploy/1.4/edgeDeploy.json" \
--parameters dnsLabelPrefix=<my vm label> \
--parameters adminUsername='azureUser' \
--parameters deviceConnectionString=$(az iot hub device-identity connection-string show --device-id myEdgeDevice --hub-name <my hub name> -o tsv) \
--parameters authenticationType='password' \
--parameters adminPasswordOrKey=<my password>

我在这里得到以下内容

{"code": "SkuNotAvailable", "message": "The requested VM size for resource 'Following SKUs have failed for Capacity Restrictions: Standard_DS1_v2' is currently not available in location 'westus2'. Please try another size or deploy to a different location or different zone. See https://aka.ms/azureskunotavailable for details."}

我看到我可以在上面的命令中添加一个

vmSize
参数,但我不知道应该选择哪个。

我应该使用哪种 VM 大小和位置组合才能继续教程?

azure azure-iot-hub
3个回答
0
投票

教程引用了一个 Standard_DS1_v2 大小,应该在美国西部 2 区域可用(我刚刚在门户中创建了一个)。您可以尝试不同的区域,看看是否可行。或者它可能是 Azure 中的暂时性错误。

此外,曾经有模板可以在 B1S 大小的 VM 上运行 Azure IoT Edge,因此您也可以尝试一下。


0
投票

我最终通过使用“eastus2”作为我的区域并在云 shell 中而不是在我的终端中运行命令来让它工作。


0
投票

来自解决SKU不可用的错误

当您选择的资源 SKU(例如 VM 大小)不适用于某个位置或区域时,[您收到]此错误。

正如 Matthijs 所建议的,您所引用的文档使用 Standard_DS1_v2 VM 大小。您可以使用不同的区域和大小,看看是否可行。

我应该使用哪种 VM 大小和位置组合才能 继续教程?

您可以使用以下 cmdlet 获取特定区域的可用 SKU 列表。

az vm list-skus --location westus2 --size Standard_D --all --output table

此外,请参阅上面的链接以获取更多详细信息。

© www.soinside.com 2019 - 2024. All rights reserved.