Skip to content

Retrieving Flows as admin in debug mode fails with AAD error #1114

@waldekmastykarz

Description

@waldekmastykarz

Run:

o365 flow list -e Default-d5a3eec1-8132-4dde-89ff-8bcf28420903 --debug --asAdmin

Error:

Error: AADSTS500011: The resource principal named https://emea.api.flow.microsoft.com:11777 was not found in the tenant named d5123ec1-8132-4dde-89ff-8bcf28420903. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You might have sent your authentication request to the wrong tenant.

This is related to the Azure Management API returning https://emea.api.flow.microsoft.com:11777 in the nextLink property, for which we're trying to automatically retrieve an access token and fail, because it's not a valid resource. We should rewrite the host to keep retrieving data from the Azure Management API.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions