azure-files-samples icon indicating copy to clipboard operation
azure-files-samples copied to clipboard

Error when creating Azure DNS forwarders

Open mcampsteyn opened this issue 5 years ago • 2 comments

When I try to set up DNS forwarding I get an error that I'm not running the latest version bit I'm using the 2.0 version and hadn't installed a lover version previously.

PS C:\Users\xxxxx> $ruleSet = New-AzDnsForwardingRuleSet -AzureEndpoints StorageAccountEndpoint PS C:\Users\xxxxx> New-AzDnsForwarder `

    -DnsForwardingRuleSet $ruleSet `
    -VirtualNetworkResourceGroupName "xxxxxxxxxxx" `
    -VirtualNetworkName "xxxxxxxxxxx" `
    -VirtualNetworkSubnetName "xxxxxxxxxxxxx"

Create Azure DNS forwarders This action will fully configure DNS forwarding end-to-end, including deploying DNS forwarders in Azure VMs and configuring on-premises DNS to forward the appropriate zones to Azure. [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): A Write-Error: C:\Users\xxxxx\Documents\PowerShell\Modules\AzFilesHybrid\0.2.0.0\AzFilesHybrid.psm1:4872 Line | 4872 | Assert-DnsForwarderArmTemplateVersion | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | The template for deploying DNS forwarders in the Azure repository is a newer version than the AzureFilesHybrid module expects. This likely indicates that you are using an older version of the AzureFilesHybrid module and | should upgrade. This can be done by getting the newest version of the module from https://github.com/Azure-Samples/azure-files-samples/releases.

image

mcampsteyn avatar Jun 10 '20 14:06 mcampsteyn

Same issue as OP for me too.

MoondewCoUK avatar Aug 12 '20 00:08 MoondewCoUK

I Have the same issue as well. Tried various PowerShell versions. no difference.

DJITS-NL avatar Aug 18 '20 08:08 DJITS-NL