简体   繁体   中英

Get APIM access token using Powershell

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?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM