首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >使用虚拟网络部署容器实例的步骤

使用虚拟网络部署容器实例的步骤
EN

Stack Overflow用户
提问于 2020-04-28 09:14:33
回答 1查看 875关注 0票数 0

我想自动化虚拟网络(与另一个网络进行监视)和连接到该网络的容器实例的部署。我只想确认我会做正确的步骤。我将使用Azure REST。

  1. 部署带有子网的虚拟网络
  2. 创建对其他虚拟网络的窥视
  3. 创建网络配置文件
  4. 使用创建的网络配置文件部署容器。

步骤3对我来说有点奇怪,因为它不同于我在Azure门户中所做的工作。在Portal中,我只选择要将容器连接到的虚拟网络。从MSDN文档来看,在我看来,REST要求我首先创建网络配置文件。我说的对吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-04-28 14:11:30

使用az container create部署容器时,az将在后台为您创建网络配置文件。

这可能是您以前可能没有看到网络配置文件的显式创建的原因。

代码语言:javascript
运行
复制
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

你的舞步看上去不错。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/61476640

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档