我尝试在Azure Powershell中创建一个虚拟机以及这些管道命令,并且我收到了错误消息。这是我的命令的副本,底部有错误。我加倍检查我的设置变量,他们没问题。此命令来自this microsoft doc,我刚编辑了它。有什么想法吗?
PS C:\> New-AzureVMConfig `
-Name $quorumServerName `
-InstanceSize Medium `
-ImageName $winImageName `
-MediaLocation "$storageAccountContainer$quorumServerName.vhd" `
-AvailabilitySetName $availabilitySetName `
-DiskLabel "OS" |
Add-AzureProvisioningConfig `
-WindowsDomain `
-AdminUserName $vmAdminUser `
-Password $vmAdminPassword `
-DisableAutomaticUpdates `
-Domain $domainName `
-JoinDomain $FQDN `
-DomainUserName $vmAdminUser `
-DomainPassword $vmAdminPassword |
Set-AzureSubnet `
-SubnetNames $subnetName |
New-AzureVM `
-ServiceName $sqlServiceName `
–AffinityGroup $affinityGroupName `
-VNetName $virtualNetworkName `
-DnsSettings $dnsSettings
错误:
New-AzureVMConfig : Invalid URI: The format of the URI could not be determined.
At line:1 char:1
+ New-AzureVMConfig `
+ ~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [New-AzureVMConfig], UriFormatException
+ FullyQualifiedErrorId : System.UriFormatException,Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.NewAzur
eVMConfigCommand