Azure-docs: Error trying to implement this

Created on 26 Mar 2018  Â·  23Comments  Â·  Source: MicrosoftDocs/azure-docs

$vnet = Get-AzureRmVirtualNetwork -Name VN-WUS-01 -ResourceGroupName RG-Infrastructure-PROD
New-AzureRmDnsZone -Name domain.local -ResourceGroupName RG-DNS-Prod -ZoneType Private -RegistrationVirtualNetworkId @($vnet.Id)

This outputs an error
New-AzureRmDnsZone : Virtual networks with network interface cards are not allowed during association with a private zone.
At line:1 char:1

  • New-AzureRmDnsZone -Name civeo.local -ResourceGroupName RG-DNS-Prod - ...
  • ~~~~~~~~~~~~~~~~~

    • CategoryInfo : CloseError: (:) [New-AzureRmDnsZone], CloudException

    • FullyQualifiedErrorId : Microsoft.Azure.Commands.Dns.NewAzureDnsZone

Does this mean I can't implement private DNS on existing resource groups?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

cxp dnsvc doc-bug triaged

Most helpful comment

I'm not sure I follow, to create a private zone (To allow me to use reverse lookup in my own domain for example) I need to create it on an empty vnet first? What is the intended plan to allow existing environments to incorporate Azure VM DNS into their existing ecosystem if that's the case?

All 23 comments

@hawkbox
Thanks for your feedback! We will investigate and update as appropriate.

@hawkbox I have followed the tutorial but did not get the same error you are seeing. I also have multiple resources in my existing resource group so that should not be the issue.

Can you try just running the following and see if it errors out:

$vnet = Get-AzureRmVirtualNetwork -Name MyAzureVnet -ResourceGroupName VnetResourceGroup
New-AzureRmDnsZone -Name contoso.local -ResourceGroupName MyResourceGroup -ZoneType Private 

That ran without erroring out.
Name : contoso.local
ResourceGroupName : rg-dns-prod
Etag : 00000002-0000-0000-059f-bd7439c5d301
Tags : {}
NameServers : {}
ZoneType : Private
RegistrationVirtualNetworkIds : {}
ResolutionVirtualNetworkIds : {}
NumberOfRecordSets : 1
MaxNumberOfRecordSets : 5000

@hawkbox thanks for confirming.

Can you run the following and send me the output:

Get-InstalledModule

Get-InstalledModule

Version Name Repository Description
------- ---- ---------- -----------
5.1.1 Azure PSGallery Microsoft Azure PowerShell - Service Management
0.5.0 Azure.AnalysisServices PSGallery Microsoft Azure PowerShell - Analysis Services server management
4.0.2 Azure.Storage PSGallery Microsoft Azure PowerShell - Storage service cmdlets. Manages blobs, queues, tables and files in Microsoft Azure storag...
5.1.1 AzureRM PSGallery Azure Resource Manager Module
0.6.1 AzureRM.AnalysisServices PSGallery Microsoft Azure PowerShell - Analysis Services
5.0.1 AzureRM.ApiManagement PSGallery Microsoft Azure PowerShell - Api Management service cmdlets for Azure Resource Manager
0.1.0 AzureRM.ApplicationInsights PSGallery Microsoft Azure PowerShell - Application Insights service management cmdlets for Azure Resource Manager. Creates and m...
4.1.1 AzureRM.Automation PSGallery Microsoft Azure PowerShell - Automation service cmdlets for Azure Resource Manager
4.0.1 AzureRM.Backup PSGallery Microsoft Azure PowerShell - Azure Backup service cmdlets for Azure Resource Manager
4.0.3 AzureRM.Batch PSGallery Microsoft Azure PowerShell - Batch service cmdlets for Azure Resource Manager
0.14.0 AzureRM.Billing PSGallery Microsoft Azure PowerShell - Billing service cmdlets for Azure Resource Manager
4.0.0 AzureRM.Cdn PSGallery Microsoft Azure PowerShell - CDN service cmdlets for Azure Resource Manager
0.9.0 AzureRM.CognitiveServices PSGallery Microsoft Azure PowerShell - Cognitive Services management cmdlets for Azure Resource Manager. Creates and manages cogn...
4.1.1 AzureRM.Compute PSGallery Microsoft Azure PowerShell - Compute service cmdlets for Azure Resource Manager. Manages virtual machines, hosted serv...
0.3.0 AzureRM.Consumption PSGallery Microsoft Azure PowerShell - Consumption service cmdlets for Azure Resource Manager
0.2.1 AzureRM.ContainerInstance PSGallery Microsoft Azure PowerShell - Container Instance cmdlets for Azure Resource Manager
1.0.1 AzureRM.ContainerRegistry PSGallery Microsoft Azure PowerShell - ContainerRegistry service cmdlets for Azure Resource Manager
4.0.3 AzureRM.DataFactories PSGallery Microsoft Azure PowerShell - DataFactories service cmdlets for Azure Resource Manager
0.4.1 AzureRM.DataFactoryV2 PSGallery Microsoft Azure PowerShell - DataFactories service cmdlets for Azure Resource Manager
4.1.1 AzureRM.DataLakeAnalytics PSGallery Microsoft Azure PowerShell - Data Lake Analytics
5.0.0 AzureRM.DataLakeStore PSGallery Microsoft Azure PowerShell - Data Lake Store
4.0.0 AzureRM.DevTestLabs PSGallery Microsoft Azure PowerShell - DevTestLabs service cmdlets for Azure Resource Manager
4.1.0 AzureRM.Dns PSGallery Microsoft Azure PowerShell - Dns service cmdlets for Azure Resource Manager
0.2.0 AzureRM.EventGrid PSGallery Microsoft Azure PowerShell - EventGrid service cmdlets for Azure Resource Manager
0.5.0 AzureRM.EventHub PSGallery Microsoft Azure PowerShell - EventHubs service cmdlets for Azure Resource Manager
4.0.1 AzureRM.HDInsight PSGallery Microsoft Azure PowerShell - HDInsight service cmdlets for Azure Resource Manager
4.0.0 AzureRM.Insights PSGallery Microsoft Azure PowerShell - Insights service cmdlets for Azure Resource Manager
3.0.0 AzureRM.IotHub PSGallery Microsoft Azure PowerShell - IotHub service cmdlets for Azure Resource Manager
4.0.1 AzureRM.KeyVault PSGallery Microsoft Azure PowerShell - KeyVault service cmdlets for Azure Resource Manager
4.0.0 AzureRM.LogicApp PSGallery Microsoft Azure PowerShell - LogicApp cmdlets for Azure Resource Manager
0.16.0 AzureRM.MachineLearning PSGallery Microsoft Azure PowerShell - Machine Learning Web Services cmdlets for Azure Resource Manager
0.3.1 AzureRM.MachineLearningCompute PSGallery Microsoft Azure PowerShell - Machine Learning Compute cmdlets for Azure Resource Manager
0.2.0 AzureRM.MarketplaceOrdering PSGallery Microsoft Azure PowerShell - MarketplaceOrdering agreements service cmdlets for Azure Resource Manager
0.8.0 AzureRM.Media PSGallery Microsoft Azure PowerShell - Media service cmdlets for Azure Resource Manager
5.4.0 AzureRM.Network PSGallery Microsoft Azure PowerShell - Network service cmdlets for Azure Resource Manager
4.0.0 AzureRM.NotificationHubs PSGallery Microsoft Azure PowerShell - NotificationHubs
4.0.0 AzureRM.OperationalInsights PSGallery Microsoft Azure PowerShell - OperationalInsights service cmdlets for Azure Resource Manager
4.1.1 AzureRM.PowerBIEmbedded PSGallery Microsoft Azure PowerShell - Power BI Embedded service management cmdlets for Azure Resource Manager. Creates and mana...
4.4.0 AzureRM.profile PSGallery Microsoft Azure PowerShell - Profile credential management cmdlets for Azure Resource Manager
4.0.1 AzureRM.RecoveryServices PSGallery Microsoft Azure PowerShell - RecoveryServices cmdlets for Azure Resource Manager
4.0.3 AzureRM.RecoveryServices.Backup PSGallery Microsoft Azure PowerShell - Azure Backup service cmdlets for Azure Resource Manager
0.2.1 AzureRM.RecoveryServices.SiteRec... PSGallery Microsoft Azure PowerShell - SiteRecovery service cmdlets for Azure Resource Manager
4.0.1 AzureRM.RedisCache PSGallery Microsoft Azure PowerShell - RedisCache service cmdlets for Azure Resource Manager
0.3.0 AzureRM.Relay PSGallery Microsoft Azure PowerShell - Relay service cmdlets for Azure Resource Manager
5.1.1 AzureRM.Resources PSGallery Microsoft Azure PowerShell - Azure Resource Manager cmdlets. Manages subscriptions, tenants, resource groups, deployme...
0.16.0 AzureRM.Scheduler PSGallery Microsoft Azure PowerShell - Scheduler cmdlets for Azure Resource Manager
4.0.0 AzureRM.ServerManagement PSGallery Microsoft Azure PowerShell - ServerManagement cmdlets for Azure Resource Manager
0.5.0 AzureRM.ServiceBus PSGallery Microsoft Azure PowerShell - ServiceBus service cmdlets for Azure Resource Manager
0.3.0 AzureRM.ServiceFabric PSGallery Microsoft Azure PowerShell - Service Fabric cmdlets for Azure Resource Manager
5.0.3 AzureRM.SiteRecovery PSGallery Microsoft Azure PowerShell - SiteRecovery service cmdlets for Azure Resource Manager
4.1.1 AzureRM.Sql PSGallery Microsoft Azure PowerShell - Sql service cmdlets for Azure Resource Manager
4.0.1 AzureRM.Storage PSGallery Microsoft Azure PowerShell - Storage service management cmdlets for Azure Resource Manager. Creates and manages storag...
4.0.1 AzureRM.StreamAnalytics PSGallery Microsoft Azure PowerShell - StreamAnalytics service cmdlets for Azure Resource Manager
4.0.0 AzureRM.Tags PSGallery Microsoft Azure PowerShell - Tags service cmdlets for Azure Resource Manager
4.0.0 AzureRM.TrafficManager PSGallery Microsoft Azure PowerShell - TrafficManager service cmdlets for Azure Resource Manager
4.0.0 AzureRM.UsageAggregates PSGallery Microsoft Azure PowerShell - UsageAggregates service cmdlets for Azure Resource Manager
4.0.0 AzureRM.Websites PSGallery Microsoft Azure PowerShell - Websites service cmdlets for Azure Resource Manager

@hawkbox - the error message is basically implying that you are trying to link a non-empty VNET to a private zone as either a registration or resolution virtual network, which this feature doesn't support at this time (public preview). The error message is a bit cryptic so apologies, we will look into updating that to be more clear as to the underlying cause.

I'm not sure I follow, to create a private zone (To allow me to use reverse lookup in my own domain for example) I need to create it on an empty vnet first? What is the intended plan to allow existing environments to incorporate Azure VM DNS into their existing ecosystem if that's the case?

Yes, in public preview we have this limitation. We will remove this restriction when we get this feature to GA planned for sometime in the next few months. i.e at that point existing virtual networks will be fully supported for linking to private zones.

Ok, I will wait then. I hope it's soon because this limitation is incredibly annoying.

Thanks for clarifying this @subsarma!

@hawkbox sorry for the limitation at this point in time but thank you for working along with me while we figured this out.

I will go ahead and close this issue out but if feel we should continue the conversation please reopen and we can.

Hi Guys,

Any update on the GA? Will there be any major changes to DNS private zone that will affect me? I really need to know so I can use this in my project. I am using type A records.

Thank you,

@jarekw1 Nothing from me.

@subsarma ?

We are working towards GA but can't provide the ETA in a public forum such as this one. Rest assured that there will be no changes to the APIs between now and GA.

That is a great news, I greatly appreciate a quick response!

@subsarma Thank you for the update, and reassurance, very helpful!!!

@subsarma Not sure if this is an appropriate place to post questions regarding the issue of DNS private zone that I am running in to so please direct me to correct people.

I am currently testing Azure AD DS configured with Remote Desktop Connection Broker HA, Gateway, and Session Hosts. RD Connection Broker HA (I have 2 connection brokers) requires DNS RR entries. I have configured DNS private zone with RR however it doesn't seem like there is a replication occurring between Azure AD DS - DNS servers and DNS private zone. Not sure if this is possible and if it will ever be possible. Please advice.

Hello @subsarma,

Wanted to let you all know that I have found a solution to my issue. After reviewing the link below I have learned that there is a way to access the DNS on Azure AC DS:

Administer DNS on an Azure AD Domain Services managed domain
https://docs.microsoft.com/en-us/azure/active-directory-domain-services/active-directory-ds-admin-guide-administer-dns

Thank you,

@jarekw1 if you have another issue directly related to this doc then I suggest opening a new issue. Otherwise, if it is an issue on another doc you can open an issue on that doc as well.

If that is not the case then I suggest asking your question on MSDN or Stack Overflow for the correct support.

Hi, everybody!

I've tried this script and the problem is still happening.
Any news?

Or... I want to build a dns for my internal environment, which does not have a public IP address.
Is there a way for doing it going around this problem and/or without having to build a new vm?

Thanks in advance!

@hawkbox as the feature is still in preview the limitation of deploying to a Vnet with resources in it already is still in place.

Any estimation on when this limitation of linking a private Zone to a non-empty vnet will be removed?
I understand this limitation will be removed when the feature becomes GA, but when is that expected?

Thanks!

Any updates to this? It would be very helpful.

What's the status on this? If I'm reading the comments correctly this was supposed to get out of testing in late May 2018.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

behnam89 picture behnam89  Â·  3Comments

bityob picture bityob  Â·  3Comments

Favna picture Favna  Â·  3Comments

JeffLoo-ong picture JeffLoo-ong  Â·  3Comments

monteledwards picture monteledwards  Â·  3Comments