我正在尝试通过使用 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/