New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug report: Calling Power Automate through ARM is no longer supported error when using m365 flow commands #5715
Comments
Thanks @StevieBleeds for raising the issue 👍. Maybe that is something new that is gradually being updated and my dev tenant didn't receive the memo yet 😉. BTW @StevieBleeds I think you do not need to specify |
Thanks @Adam-it |
No problem at all here. Strange. In which region is your tenant located @StevieBleeds? @appieschot are you aware of a change for this API? |
I recall a conversation we had a while back about Power Platform deprecating the support for ARM-based APIs, starting with newer tenants. I wonder if this wouldn't be related. The |
It's in UK South. Thanks again. |
We have similar issue. We are in Canada m365 flow list --environmentName $flowEnvironment --asAdmin
Error: Calling Power Automate through ARM is no longer supported. Please use "https://api.flow.microsoft.com/" instead. |
I just did some checking @pnp/cli-for-microsoft-365-maintainers, we can replace the base URL with https://api.flow.microsoft.com. As to auth, that doesn't work out of the box. I got it working when swapping the resource with management.azure.com. if (resource === 'https://api.flow.microsoft.com') {
resource = 'https://management.azure.com/';
} I only checked |
Ok, I've pushed a fix for all the |
@martinlingstuyl merged ✅. I checked locally and on my tenant it (still 😉) works as expected |
I have updated my Function with the Beta release and it seems to be working again! Thank you! |
That's nice to hear! |
thanks @martinlingstuyl for fix :) it also affected PnP.Powershell same way and I was able to fix it by taking your code's reference...!! |
Sharing is caring! 🙂🥳 |
Priority
(Urgent) I can't use the CLI
Description
I have a number of Power Automate reporting Functions and they've recently stopped working. Upon checking, it appears that when running the m365 flow list and/or get commands, the following error is thrown:
{"error":"Calling Power Automate through ARM is no longer supported. Please use \"https://api.flow.microsoft.com/\" instead."}
I've tried using Managed Identity and Username/Password authentication and the error persists.
Steps to reproduce
m365 login --authType identity
m365 flow list -e $environmentId -o json --asAdmin | ConvertTo-Json
Expected results
A list of flows within the specified environment
Actual results
{"error":"Calling Power Automate through ARM is no longer supported. Please use \"https://api.flow.microsoft.com/\" instead."}
Diagnostics
CLI for Microsoft 365 version
7.2.0
nodejs version
16.16.0
Operating system (environment)
Windows
Shell
PowerShell
cli doctor
No response
Additional Info
No response
The text was updated successfully, but these errors were encountered: