gpt4 book ai didi

azure - 如何使用 Azure CLI 将 Azure 容器实例部署到 VNET

转载 作者:行者123 更新时间:2023-12-03 05:37:26 29 4
gpt4 key购买 nike

我需要使用 Azure CLI 部署具有 VNet 连接的 Azure 容器实例。这是我正在使用的命令:

az container create -g My_RG --name ubuntu-aci-2 --image ubuntu --vnet /subscriptions/f2ees954-606e-4480-b05f-48c85c8c05cf/resourceGroups/My_RG/providers/Microsoft.Network/virtualNetworks/aci-vnet --subnet default

我收到以下错误:

Resource /subscriptions/f2ees954-606e-4480-b05f-48c85c8c05cf/resourceGroups/My_RG/providers/Microsoft.Network/virtualNetworks/ACI-VNET referenced by resource /subscriptions/f2ees954-606e-4480-b05f-48c85c8c05cf/resourceGroups/My_RG/providers/Microsoft.Network/networkProfiles/aci-network-profile-aci-vnet-default was not found. Please make sure that the referenced resource exists, and that both resources are in the same region

我做错了什么?

//编辑

在创建容器之前,VNET“aci-vnet”及其子域“default”已存在。

最佳答案

您应该将容器实例部署在与 Vnet 所在区域相同的区域中。

关于azure - 如何使用 Azure CLI 将 Azure 容器实例部署到 VNET,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61383415/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com