how to start an azure cognitive services language service for sentiment analysis using a powershell script

Steve S 20 Reputation points
2025-01-02T19:07:44.6533333+00:00

I would like to be able to start and stop Azure cognitive services from powershell instead of going through the portal. I'm particularly interested in Azure AI Language so that I can build a conversational interfaces, summarizes documents, and analyzes text. Once the Azure AI Language service is running, I plan to write a Python app on my local machine to interact with it through the API. Can someone please show how to start an azure cognitive services language service for sentiment analysis using a powershell script? Thanks

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,071 questions
{count} votes

Accepted answer
  1. AshokPeddakotla-MSFT 35,926 Reputation points
    2025-01-03T03:07:23.6866667+00:00

    Steve S Greetings & Welcome to Microsoft Q&A forum!

    I would like to be able to start and stop Azure cognitive services from powershell instead of going through the portal. I'm particularly interested in Azure AI Language so that I can build a conversational interfaces, summarizes documents, and analyzes text. Once the Azure AI Language service is running

    I don't think it has an option to directly start/stop using powershell. Instead, you can manage the resource by create, update, or delete it using powershell.

    Please see Azure Cognitive Services cmdlets for list of avilable commands.

    Also, note that Azure Cognitive Services once created, are always running. You can delete them by using Remove cmdlets.

    Once your Azure AI Language service is up and running, you can use it for sentiment analysis by making API calls from your Python application.

    Incase if you haven't checked earlier, see Quickstart: Sentiment analysis and opinion mining for more information.

    I hope this helps. Do let me know if you have any further queries.

    If the response helped, please do click Accept Answer and Yes for was this answer helpful.

    Doing so would help other community members with similar issue identify the solution. I highly appreciate your contribution to the community.

    1 person found this answer helpful.

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.