question

TraceyBrown-0095 avatar image
0 Votes"
TraceyBrown-0095 asked karishmatiwari-msft commented

How to associate public IP to classic load balancer after migrating to Cloud Service (extended support)

I am manually redeploying a cloud service classic project to Cloud service(extended support) . I followed this guide. https://techcommunity.microsoft.com/t5/azure-paas-blog/manual-migration-from-classic-cloud-service-to-cloud-service/ba-p/2263817

I have added my ip name to my .cscfg file in visual studio

<ReservedIPs>t

        <ReservedIP name="xxxxxxx" />

</ReservedIPs>

when I deploy if get this error.

Reserved IP xxxxxxxis not found in loadBalancerConfigurations/frontendIPConfigurations section. Please ensure that the reserved IP is referenced through the publicIPAddress field in the loadBalancerConfigurations/frontendIPConfigurations section and retry. For more details please refer to the network profile section of the ARM template https://aka.ms/cses-arm-template.

When I try to use the portal and associate my public IP to the new Classic Load balance I get this error.

Failed to save IP configueration change for load balancer 'xxx'. Error:Load balancer with SKU Classic cannot be updated using PUT LoadBalancer operation. Use Put Microsoft.Compute/cloudServices instead.

Thanks

azure-cloud-services-extended-support
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for posting your query on Microsoft Q&A. I am investigating this issue and will get back to you shortly.

0 Votes 0 ·

@TraceyBrown-0095

The static public IP should be in the same resource group (RG) as the Cloud service if only the name of the reserved IP is specified in the cscfg as
<ReservedIP name="xxxxxxx" />
If the static IP is in another resource group (RG), then the name of the reserved IP has be specified as <ReservedIP name="Group RGName ReservedIPName" />.

Load balancer cannot be updated directly in Cloud services Extended support (CS_ES) and the validation returned is by design.

Hope that helps. Let me know if you have further questions. Thanks.

0 Votes 0 ·
TraceyBrown-0095 avatar image TraceyBrown-0095 karishmatiwari-msft ·

I am still getting the error: Reserved IP test2ip is not found in loadBalancerConfigurations/frontendIPConfigurations section. Please ensure that the reserved IP is referenced through the publicIPAddress field in the loadBalancerConfigurations/frontendIPConfigurations section and retry.

How do I add the reservedIP to the loadbalancer?

Thanks for the assistance

My .cscfg

<NetworkConfiguration>
<VirtualNetworkSite name="MyVNet" />
<AddressAssignments>
<InstanceAddress roleName="WebRole1">
<Subnets>
<Subnet name="WebTier" />
</Subnets>
</InstanceAddress>
<ReservedIPs>
<ReservedIP name="Group MyResourceGroup test2ip" />
</ReservedIPs>
</AddressAssignments>
<LoadBalancers>
<LoadBalancer name="MyLB">
<FrontendIPConfiguration>
?????????? <-- Not sure what to put here
</FrontendIPConfiguration>
</LoadBalancer>
</LoadBalancers>

</NetworkConfiguration>

0 Votes 0 ·

@TraceyBrown-0095

As per the error it looks like you have not defined the reserved IP under the networkProfile/loadBalancerConfigurations/frontendIPConfigurations section in the ARM template. You need to update your ARM template and refer the reserved IP through public IP address field under networkProfile/loadBalancerConfigurations/frontendIPConfigurations.
If you don't need any internal load balancer then you need to remove loadbalancer section from your CSCFG.
Load balancer creation for CS_ES is implicit and defined by networkProfile/loadBalancerConfigurations section in your template

Please refer to this document: https://docs.microsoft.com/en-us/azure/cloud-services-extended-support/deploy-template

Let me know if you have further questions.

0 Votes 0 ·

0 Answers