azure - 如何解决 "DNS Zone does not have enough labels via PowerShell"错误

标签 azure powershell dns

我正在尝试通过使用 Powershell 指定虚拟网络 ID 来创建私有(private) DNS 区域。 ,我的命令如下,

New-AzDnsZone -Name 'dnszone01' -ResourceGroupName 'thisRG' -ZoneType 'Private' -RegistrationVirtualNetworkId @($vnet.Id)

我收到一个错误,

New-AzDnsZone : The zone name 'dnszone01' does not have enough labels. Zone names must have two or more labels. At line:1 char:1 + New-AzDnsZone -Name 'dnszone01' -ResourceGroupName 'thisRG' -Zon ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : CloseError: (:) [New-AzDnsZone], CloudException + FullyQualifiedErrorId : Microsoft.Azure.Commands.Dns.NewAzureDnsZone

我在这里缺少什么?

最佳答案

DNS 名称必须是完全限定的。例如:

  • dnszone1.local
  • dnszone.mysite.com

关于azure - 如何解决 "DNS Zone does not have enough labels via PowerShell"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59344432/

相关文章:

javascript - 将 sql 对象转换为 node.js 中的有效 Json 字符串 - Azure

azure - 如何登录azure函数和api管理

html - 在 Linux 服务器上使用 DNS

azure - 突触管道中的 DF-Executor-OutOfMemoryError

powershell - 如何在powershell中获取下一个工作日

excel - 如何将 Excel 中的一个工作表导出到单个 htm 文件?

用于从文件夹列表中省略遍历访问被拒绝的文件夹的 Powershell 脚本

amazon-web-services - EC2/Route53 : How Do I Point Apex Record at Load Balancer?

mysql - 根据 DNS 名称分配 MySQL 权限

具有 Azure SQL DB(托管标识)的 Azure 应用服务