Closed jeff-block closed 5 years ago
@jeff-block are you providing the parameter as -DnsServer val1, val2
or as -DnsServer "val1, val2"
as -DnsServer “val1, val2”
Jeff Block || Private Equity | Healthcare | Manufacturing (Big) Data Driven Technology and Business Leader | IN:fluencer, Presenter +1.312.927.1590 || +1.312.604.7381 || jmblock@outlook.com ||Skype: jmblock@outlook.com || @bigDataDictum ||
From: Mark Cowlishaw notifications@github.com Sent: Tuesday, March 26, 2019 3:08 PM To: Azure/azure-powershell Cc: Jeff; Mention Subject: Re: [Azure/azure-powershell] new-AZVirtualNetwork -Dnsserver parameter does not accept more than a single address (#8859)
@jeff-blockhttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjeff-block&data=02%7C01%7C%7C6034e03b3012437c513b08d6b2378d30%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636892348987888886&sdata=qM%2BlEHtH8vWrZqsb%2BOIuNExEhcUeWL2H2khQ5XIxQ1A%3D&reserved=0 are you providing the parameter as -DnsServer val1, val2 or as -DnsServer "val1, val2"
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure%2Fazure-powershell%2Fissues%2F8859%23issuecomment-476871529&data=02%7C01%7C%7C6034e03b3012437c513b08d6b2378d30%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636892348987898891&sdata=jhRUEgen5TGtLB9ZqCUl%2BIqqJnFdlU5ryl4RzVOH2Ck%3D&reserved=0, or mute the threadhttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAPoruIF1F7uqvWFzQnn-XAcgmMTlRp6pks5vappRgaJpZM4cMhMy&data=02%7C01%7C%7C6034e03b3012437c513b08d6b2378d30%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636892348987908903&sdata=DYKbDUR5h4OX4iZTsLyar6dOGLk9lSlW%2B%2FgpQc7SqVM%3D&reserved=0.
PS C:\> get-help New-AzVirtualNetwork -Parameter DnsServer
-DnsServer <System.String[]>
Specifies the DNS server for a subnet.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
Powershell Arrays are given by comma-separating the values. You passed it a string of a single DNS server containing a comma character.
Closing as resolved - please let us know if you are still seeing an issue after applying the fix above.
Description
-Dnsserver parameter will not accept a comma or ; delimited list of dnservers. Will only accept a single ip address
Steps to reproduce
Environment data
Name Value
PSVersion 5.1.17763.316 PSEdition Desktop PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} BuildVersion 10.0.17763.316 CLRVersion 4.0.30319.42000 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1
Debug output
Error output
IP address is not valid '10.17.0.20;10.17.128.20;10.19.96.20;10.21.96.20'. StatusCode: 400 ReasonPhrase: Bad Request OperationID : '670447bf-bcf7-4847-8ecf-37a846f41c71'