简体   繁体   English

如何默认关闭 Azure 虚拟机(VM)的端点,之后不删除?

[英]How to switch off the endpoints of Azure Virtual Machines(VMs) by default, not deletion afterwards?

How to configure endpoints of Azure VMs, having them shut down by default, when or before I creating VMs?如何配置 Azure VM 的端点,让它们在创建 VM 时或之前默认关闭?

In another word, how to create Azure VMs without any endpoints assignment?换句话说,如何在没有任何端点分配的情况下创建 Azure VM?

Removal after VMs creation does not count as the solution for this question.创建 VM 后删除不算作此问题的解决方案。

When using PowerShell / CLI to create ASM VMs you need to explicitly declare the endpoints.使用 PowerShell / CLI 创建 ASM VM 时,您需要显式声明端点。 See, for example, here .例如,请参见此处

ARM doesn't have the concept of endpoints. ARM 没有端点的概念。 If you do not declare a Microsoft.Network/publicIPAddresses resource and attach it to a NIC (and that to the VM) then the VM won't be on the public internet for inbound traffic.如果您不声明 Microsoft.Network/publicIPAddresses 资源并将其附加到 NIC(以及附加到 VM),则 VM 将不会在公共 Internet 上用于入站流量。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM