Primary key for online endpoint get differ when seen on azure ml workspace and powershell command

Arvind Dige 0 Reputation points
2023-08-18T06:21:59.42+00:00

I have created ML endpoint and when I try to access, I see a message "Unauthorized, no token matched".
I know its Key based Auth. So I found the key on endpoint from the consume tab, also I have tried the same from azure powershell command

Get-AzMLWorkspaceOnlineEndpointKey
   -Name <String>
   -ResourceGroupName <String>
   -WorkspaceName <String>

and here is the issue begins.

The primary and secondary key I got from powershell is different as compared to what I saw on consume tab. Also key I got through powershell is not getting authenticated.

So kindly help.

Regards,

Arvind

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
3,248 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,922 questions
{count} votes

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.