Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/arduino/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何为我的Azure VM创建静态保留公共IP地址?_Ip_Virtual Machine - Fatal编程技术网

如何为我的Azure VM创建静态保留公共IP地址?

如何为我的Azure VM创建静态保留公共IP地址?,ip,virtual-machine,Ip,Virtual Machine,我已使用资源管理器在Microsoft Azure中创建了Windows 2012虚拟机。为了将我的站点的DNS指向这个VM,我需要创建一个保留的IP地址。我正在Azure Powershell中运行以下命令: 新AzureReservedIP–Reservedip名称MyReservedPublicIP–位置“WestUS” 但我得到了这个错误: New AzureReservedIP:BadRequest:位置约束无效 操作ID:'90cc8e815938695ca2fcfd6bba0cc0

我已使用资源管理器在Microsoft Azure中创建了Windows 2012虚拟机。为了将我的站点的DNS指向这个VM,我需要创建一个保留的IP地址。我正在Azure Powershell中运行以下命令:

新AzureReservedIP–Reservedip名称MyReservedPublicIP–位置“WestUS”

但我得到了这个错误:

New AzureReservedIP:BadRequest:位置约束无效 操作ID:'90cc8e815938695ca2fcfd6bba0cc04d' 第1行字符:1 +新AzureReservedIP–Reservedip名称MyReservedPublicIP–位置“美国西部” + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +CategoryInfo:CloseError:(:)[New AzureReservedIP],ComputeCloudException +FullyQualifiedErrorId:Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.NewAzureReserveCmdlet


我遗漏了什么?

我尝试了“West US”并得到了相同的结果。好的,我为我的虚拟机创建了一个FQDN,并使用了一个C名称记录来指向该域,它似乎正在工作。这就是我所需要的吗?