From d3e9a5099d46e15fb50493e3bc92bd1b536ec57b Mon Sep 17 00:00:00 2001 From: karthikka4820 <88366202+karthikka4820@users.noreply.github.com> Date: Tue, 3 Aug 2021 02:36:02 -0700 Subject: [PATCH] Add the publicIpPrefix prop during VmssUpdate When a customer tries to scale VMSS using Terraform, since the current definitions do not have publicIpPrefix property, the new VM will be assigned a random IP address which is outside the range of public Ip prefix. Customer has to resolve the issue by deleting the Vmss and recreating it. This PR tries to resolve the issue by adding the publicIpPrefix property in the JSON definition which is used to generate a request for VMSS update. More details about the issue can be found here - Azure/azure-rest-api-specs#10190 --- .../Microsoft.Compute/stable/2021-04-01/compute.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-04-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-04-01/compute.json index 5e4fb02d0c17..28939ed2da87 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-04-01/compute.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-04-01/compute.json @@ -13147,6 +13147,10 @@ "$ref": "#/definitions/VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings", "description": "The dns settings to be applied on the publicIP addresses ." }, + "publicIPPrefix": { + "$ref": "#/definitions/SubResource", + "description": "The PublicIPPrefix from which to allocate publicIP addresses." + }, "deleteOption": { "type": "string", "description": "Specify what happens to the public IP when the VM is deleted",