[英]Get APIM access token using Powershell
I am trying to get an access token from an azure apim.我正在尝试从 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..." 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..."但是当我使用 Get-AzApiManagementSsoToken 时,返回的值看起来不同:“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?是否有不同的 powershell 命令来检索类似于门户中的访问令牌?
Use New-AzApiManagementUserToken
instead改用New-AzApiManagementUserToken
https://docs.microsoft.com/en-us/powershell/module/az.apimanagement/new-azapimanagementusertoken?view=azps-5.4.0 https://docs.microsoft.com/en-us/powershell/module/az.apimanagement/new-azapimanagementusertoken?view=azps-5.4.0
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.