没有公共(public) DNS 的 Azure VM

标签 azure automation cloud azure-rm-template

我正在尝试使用 ARM 模板在没有公共(public) DNS 的情况下启动 Azure VM simple Linux VM

但我不想让这个虚拟机上的公共(public) DNS 只是私有(private) IP。我尝试删除以下与公共(public)IP相关的部分

"publicIPAddressName": "myPublicIP",
"publicIPAddressType": "Dynamic",

{
  "apiVersion": "[variables('apiVersion')]",
  "type": "Microsoft.Network/publicIPAddresses",
  "name": "[variables('publicIPAddressName')]",
  "location": "[resourceGroup().location]",
  "properties": {
    "publicIPAllocationMethod": "[variables('publicIPAddressType')]",
    "dnsSettings": {
      "domainNameLabel": "[parameters('dnsLabelPrefix')]"
    }
  }
},

但是我在运行模板时遇到了麻烦。

如果有人知道如何做到这一点,我将不胜感激?

谢谢

最佳答案

网络接口(interface) (NIC) 资源取决于您删除的 publicIPAdress 资源。因此,当您删除破坏依赖链的 publicIPAddress 资源时。

要解决此问题,您需要删除网络接口(interface)资源中对其的引用,如此处以红色突出显示的那样。

enter image description here

关于没有公共(public) DNS 的 Azure VM,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38489687/

相关文章:

c# - 使用 System.Windows.Automation 的 DDE

azure - 如何将请求重定向到通过 Azure 应用服务托管的不同 Web 应用

node.js - 即使所有资源均可访问,Node.js Web 服务器日志中也会出现 "IIS Detailed Error - 404.0"

azure - DocumentDB 请求无结果时收费

java - RestAssured 响应被覆盖

java - 如何忽略 cucumber 中的特定情况?

php - 未找到请求的 URL 在 PHP Cloud + Zend Framework 应用程序的此服务器上未找到

visual-studio-2010 - Microsoft JScript 运行时错误 : 'bobj' is undefined

json - Youtube数据Api乘以2您的查询

azure - 删除-AzureADUser 需要哪些 API 权限?