Issue when getting the information about the list of Azure AI services keys

Fernando Aguilar 290 Reputation points Student Ambassador
2024-03-10T21:53:08.7133333+00:00

Hello!

I am following the instructions provided in this learning path related to Azure AI Services Security: https://learn.microsoft.com/en-us/training/modules/secure-ai-services/4-exercise-secure-ai-services

As you can see, I am using the correct command and also providing in a properly way both the resource name and the resource group but I am not getting the appropriate response in the terminal.

What do you suggest to solve this issue?User's image

Thank you very much,

Fernando

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

Accepted answer
  1. Vahid Ghafarpour 23,385 Reputation points Volunteer Moderator
    2024-03-11T04:24:39.17+00:00

    If you have multiple subscriptions, set your subscription first as below and then try again:

    • az account set --subscription <subscription-id>
    • or using Powershell - Set-AzContext <subscription_id>

    ** Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful **

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Fernando Aguilar 290 Reputation points Student Ambassador
    2024-03-12T22:08:45.62+00:00

    Hello again!

    I followed your suggestion and solved my issue, but now I am facing another issue within the same learning path. The issue is the following: when I follow this instruction:

    To test your Azure AI service, you can use curl - a command line tool for HTTP requests. In the 02-ai-services-security folder, open rest-test.cmd and edit the curl command it contains (shown below), replacing <yourEndpoint> and <yourKey> with your endpoint URI and Key1 key to use the Analyze Text API in your Azure AI services resource.

    I do it correctly but I do not get the supposed result. I am allocating my endpoint and my key but I get the following message:
    User's image

    User's image

    Thank you,

    Fernando
    User's image

    0 comments No comments

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.