1

I am trying to get an access token from an azure apim.

The token, when I retrieve from the Azure Portal (Azure portal -> APIM instance -> Management API -> Enable Management REST API -> Access Token -> Generate) looks like "SharedAccessSignature integration&2021022706..."

But when I use Get-AzApiManagementSsoToken the value returned looks different : "https://myapi.portal.azure-api.net:443/signin-sso?token=1%2620210128070..."

Is there a different powershell command to retrieve the Access Token similar to the one in the portal?

1 Answer 1

1

Use New-AzApiManagementUserToken instead

https://learn.microsoft.com/en-us/powershell/module/az.apimanagement/new-azapimanagementusertoken?view=azps-5.4.0

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.