How to install custom scripts and powershell commands in azure cloud services extended support

Kruthiventi, BalaSuryaSarathSairam 65 Reputation points
2024-11-13T15:17:36.2833333+00:00

Hi team,

we are using azure cloud services extended support service and we spin up web and worker roles. While deploying the web role, we wanted to run a command, install bat file and run a powershell script in web role VMS. From docs, i got to know that we need custom script extension. can you guide us with example of ARM template and also do we need to touch startup task any of cloud service definition files .

Thanks

Azure Cloud Services
Azure Cloud Services
An Azure platform as a service offer that is used to deploy web and cloud applications.
704 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,097 questions
{count} votes

Accepted answer
  1. deherman-MSFT 37,666 Reputation points Microsoft Employee
    2024-11-13T18:53:19.8033333+00:00

    @Kruthiventi, BalaSuryaSarathSairam

    Updating:
    Custom extensions are not supported. Azure Cloud Services (Extended Support) primarily focuses on maintaining compatibility with existing applications and workloads that were previously using Azure Cloud Services (classic), but it does not have feature parity with other Azure services like Virtual Machines or Azure Resource Manager (ARM) templates, which support custom extensions more broadly.

    The error message you are encountering indicates that the specific extension you are trying to use ("Microsoft.Compute" - "CustomScriptExtension" - "1.10") is not available for Azure Cloud Services (Extended Support). This is consistent with the general limitations of Azure Cloud Services (Extended Support) when it comes to custom extensions.

    If you require the use of custom extensions or more advanced configuration and management capabilities, you might want to consider migrating your application to Azure Virtual Machines or other services that support ARM templates and custom extensions. This will provide you with a broader range of customization options and better alignment with modern Azure management practices.


    If you still have questions, please let us know in the "comments" and we would be happy to help you. Comment is the fastest way of notifying the experts.

    If the answer has been helpful, we appreciate hearing from you and would love to help others who may have the same question. Accepting answers helps increase visibility of this question for other members of the Microsoft Q&A community.

    Thank you for helping to improve Microsoft Q&A! User's image


0 additional answers

Sort by: Most helpful

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.