【发布时间】:2019-12-15 22:57:20
【问题描述】:
我正在尝试通过使用Powershell 指定虚拟网络 ID 来创建私有 DNS 区域,我的命令如下所示,
New-AzDnsZone -Name 'dnszone01' -ResourceGroupName 'thisRG' -ZoneType 'Private' -RegistrationVirtualNetworkId @($vnet.Id)
我收到一个错误,
New-AzDnsZone :区域名称“dnszone01”没有足够的标签。 区域名称必须有两个或更多标签。在行:1 字符:1 + New-AzDnsZone -Name 'dnszone01' -ResourceGroupName 'thisRG' -Zon ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : CloseError: (:) [New-AzDnsZone], CloudException + FullyQualifiedErrorId : Microsoft.Azure.Commands.Dns.NewAzureDnsZone
我在这里错过了什么?
【问题讨论】:
标签: azure powershell dns