Update Azure cloud service extended load balancer tags

Unknown-2795 51 Reputation points
2024-09-24T04:53:44.1233333+00:00

Hi there,

We have deployed azure Cloud service (extended support). And it creates load balancer as part of it. We have applied tags on cloud service itself but we are not able to apply tags on load balancer. I can do it on UI, so I was wondering if thee is a way to do it with power-shell or arm template. Can you please suggest

When I try to do it with

Set-AzLoadBalancer

I get

Set-AzLoadBalancer : Load balancers with SKU Classic cannot be updated using PUT LoadBalancer operation. Use PUT
Microsoft.Compute/cloudServices instead.
Azure Cloud Services
Azure Cloud Services
An Azure platform as a service offer that is used to deploy web and cloud applications.
696 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Mounika Reddy Anumandla 410 Reputation points Microsoft Vendor
    2024-09-24T06:19:20.3566667+00:00

    Hi Unknown-2795,

    Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.

    As per my understanding, you were able to add tag for load balancer from the UI portal. Were you able to add tag for the Cloud service as a whole or just the LB of the Cloud Services extended support?
    Can you please share me the screenshots?

    Thank you!

    0 comments No comments

  2. Unknown-2795 51 Reputation points
    2024-09-24T12:21:41.07+00:00

    Yes UI Portal. I was able to add tag to just the LB of the Cloud Services extended support. Here is the screen shot

    0 comments No comments

  3. Unknown-2795 51 Reputation points
    2024-09-24T12:23:36.4033333+00:00

    Yes Portal UI. I was able to add tags for just the LB of the Cloud Services extended support. Here is the screen shot

    User's image

    0 comments No comments

  4. Mounika Reddy Anumandla 410 Reputation points Microsoft Vendor
    2024-09-25T05:51:54.2266667+00:00

    Hi Unknown-2795,
    Thank you for providing more information.
    We understand your concern with updating tags using PowerShell commands, specifically with a load balancer. We were able to update the tags for the whole cloudservice but not for the loadbalancer. But with GUI, it is possible. We have done some investigation and reached a conclusion about the possible cause.

    The documentation mentions: https://learn.microsoft.com/en-us/azure/cloud-services-extended-support/deploy-powershell
    In Azure Resource Manager, certain resources, including the load balancer, are designated as read-only. This means that while you can view and use these resources, you cannot directly modify them through the Azure Resource Manager interface. Instead, any updates or changes to these resources must be made through specific configuration files.

    For Cloud Services (extended support), you can update resources using the following files:

    Service Configuration (.cscfg) File: This file specifies the number of role instances to deploy for each role in the service, the values of any configuration settings, and the thumbprints for any certificates associated with a role. You can add or update settings within this file to configure your load balancer.

    Service Definition (.csdef) File: This file defines the service model, including the roles and their configurations. It includes settings for endpoints, load balancer probes, and other configurations necessary for the service.

    By using these files, you can manage and update the configuration of your load balancer and other resources in a structured and controlled manner. This approach ensures that changes are consistently applied across your deployment and helps maintain the integrity of your service configuration.

    .If you have any further queries, do let us know.

    If the answer is helpful, please click "Accept Answer" and "Upvote it."


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.