在 Azure 中将 ip 分配给实例时出现错误
In Azure while assigning ip to the instance i'm getting error
在Azure中如何为实例配置预留ip?
使用 powershell 配置时
我看到以下错误
New-AzureVMConfig -Name "ubuntu" -InstanceSize "Small" -ImageName "Ubuntu*"| Add-AzureProvisioningConfig -Window
s -AdminUsername "ubuntu" -Password "dangerous09"| New-AzureVM -ServiceName "newinstance.localdomain" -ReservedIPName "MyReserv
edIP" -Location "South Central US"
错误:
WARNING: The specified DNS name is already taken.
VERBOSE: 5:10:07 PM - Begin Operation: New-AzureVM - Create Deployment with VM ubuntu
New-AzureVM : BadRequest: The supplied password must be 8-123 characters long and meet password complexity
requirements.
At line:1 char:167
+ New-AzureVMConfig -Name "ubuntu" -InstanceSize "Small" -ImageName "Ubuntu*"| Add ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [New-AzureVM], CloudException
+ FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.PersistentVMs.NewAzureVMCommand
如有任何建议,我们将不胜感激。
错误消息似乎很容易解释:
BadRequest: The supplied password must be 8-123 characters long and meet password complexity
requirements.
对于 Windows VM,以下是复杂性要求,我假设这同样适用于 Ubuntu VM:
The password that is input when prompted above must meet password
complexity requirements of at least 3 of the following: 1 UPPER case
letter, 1 lower case letter, 1 number and/or 1 symbol
看起来您只满足 2 个要求(小写字母和数字)。尝试添加一个大写字母 and/or 一个符号。
首先,如果您尝试提供基于 Linux 的 VM,则需要将 Windows 中的“-Windows”参数更改为“-Linux” =12=]行。
这是我修复它的方法。
New-AzureVMConfig -Name "ubuntutest" -InstanceSize "Basic_A0" –ImageName "ubuntutestimage-20150611-543899" | New-AzureVM -ServiceName "ubuntutestimage" –ReservedIPName " demoreservedip " -Location "West US”
OperationDescription OperationId OperationStatus
-----New-AzureVM 2e8c084b-0077-8551-9734-d1f2f3c3c1d2 Succeeded
在Azure中如何为实例配置预留ip? 使用 powershell 配置时 我看到以下错误
New-AzureVMConfig -Name "ubuntu" -InstanceSize "Small" -ImageName "Ubuntu*"| Add-AzureProvisioningConfig -Window
s -AdminUsername "ubuntu" -Password "dangerous09"| New-AzureVM -ServiceName "newinstance.localdomain" -ReservedIPName "MyReserv
edIP" -Location "South Central US"
错误:
WARNING: The specified DNS name is already taken.
VERBOSE: 5:10:07 PM - Begin Operation: New-AzureVM - Create Deployment with VM ubuntu
New-AzureVM : BadRequest: The supplied password must be 8-123 characters long and meet password complexity
requirements.
At line:1 char:167
+ New-AzureVMConfig -Name "ubuntu" -InstanceSize "Small" -ImageName "Ubuntu*"| Add ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [New-AzureVM], CloudException
+ FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.PersistentVMs.NewAzureVMCommand
如有任何建议,我们将不胜感激。
错误消息似乎很容易解释:
BadRequest: The supplied password must be 8-123 characters long and meet password complexity requirements.
对于 Windows VM,以下是复杂性要求,我假设这同样适用于 Ubuntu VM:
The password that is input when prompted above must meet password complexity requirements of at least 3 of the following: 1 UPPER case letter, 1 lower case letter, 1 number and/or 1 symbol
看起来您只满足 2 个要求(小写字母和数字)。尝试添加一个大写字母 and/or 一个符号。
首先,如果您尝试提供基于 Linux 的 VM,则需要将 Windows 中的“-Windows”参数更改为“-Linux” =12=]行。
这是我修复它的方法。
New-AzureVMConfig -Name "ubuntutest" -InstanceSize "Basic_A0" –ImageName "ubuntutestimage-20150611-543899" | New-AzureVM -ServiceName "ubuntutestimage" –ReservedIPName " demoreservedip " -Location "West US”
OperationDescription OperationId OperationStatus
-----New-AzureVM 2e8c084b-0077-8551-9734-d1f2f3c3c1d2 Succeeded