Closed craig-martin closed 2 years ago
@craig-martin , thanks for reporting. please share me the value of resource URL.
Discussed in email. The URL is not supported by Azure PowerShell yet.
Close this issue now.
Commenting to follow.
@dingmeng-xue is this something that has being considered, I assume closed because this is not a current priority?
We have priority to improve Invoke-AzRestMethod
. It will analyze user's input URL and figure out correct resource name (scope) according to Azure environment variables for further authentication. Since your endpoint cannot be recognized by Azure PowerShell, it cannot be supported even we improve it as I mentioned above.
What was the type of URL that Azure PowerShell cannot recognize? @dingmeng-xue
I am having a similar issue when trying to get access token to a custom AAD app that has as resource ID the following pattern: api://<tenant_id>/<name>
That gives me the exactly same error reported here.
For custom AAD app, user needs to authorize Azure PowerShell client app. Add client id 1950a258-227b-4e31-a9cf-717495945fc2. Some tenant requires consent from admin, user needs to do that via Portal. Current Azure PowerShell doesn't support it.
Close this issue now.
Description
Attempting to use Get-AzAccessToken for a custom application and running into this error.
Steps to reproduce
Environment data
Module versions
Debug output
Error output