Azure VM: Adding a Reserved IP address to an existing VM

前端 未结 8 1675
情话喂你
情话喂你 2021-02-05 23:13

What I have read so far on the web is that there is no way to add a reserved IP to an existing VM (unless I recreate the VM which I am trying to avoid). However, I have noticed

8条回答
  •  暖寄归人
    2021-02-05 23:44

    New-AzureReservedIP -ReservedIPName "nameIP" -Location "East US" -ServiceName "azureA2vm"
    

    Get this:

    New-AzureReservedIP : A parameter cannot be found that matches parameter name 'ServiceName'.
    At line:1 char:70
    + New-AzureReservedIP -ReservedIPName "nameIP" -Location "East US" -ServiceNam ...
    +                                                                      ~~~~~~~~~~~
        + CategoryInfo          : InvalidArgument: (:) [New-AzureReservedIP], ParameterBindingException
        + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.NewAzureReservedIPCmdlet
    

    Check PowerShell version. Update to latest version.

提交回复
热议问题