我想自动化虚拟网络(与另一个网络进行监视)和连接到该网络的容器实例的部署。我只想确认我会做正确的步骤。我将使用Azure REST。
步骤3对我来说有点奇怪,因为它不同于我在Azure门户中所做的工作。在Portal中,我只选择要将容器连接到的虚拟网络。从MSDN文档来看,在我看来,REST要求我首先创建网络配置文件。我说的对吗?
发布于 2020-04-28 14:11:30
使用az container create部署容器时,az将在后台为您创建网络配置文件。
这可能是您以前可能没有看到网络配置文件的显式创建的原因。
A network profile is a network configuration template for Azure resources. It specifies certain network properties for the resource, for example, the subnet into which it should be deployed. When you first use the az container create command to deploy a container group to a subnet (and thus a virtual network), Azure creates a network profile for you. You can then use that network profile for future deployments to the subnet.https://learn.microsoft.com/en-us/azure/container-instances/container-instances-vnet#network-profile
你的舞步看上去不错。
https://stackoverflow.com/questions/61476640
复制相似问题