Priority
(Urgent) I can't use the CLI
Description
When trying to run the m365 flow export command with --format json option, I get the following error: "Calling Power Automate through ARM is no longer supported. Please use "https://api.flow.microsoft.com/" instead"
This seems to be the same error as previously reported here: #5715 , although that bug report is about the m365 flow list command while here I'm trying to use the flow export command.
Running the same command with --format zip (or excluding it altogether) works as expected, it only returns this error when you use --format json
Steps to reproduce
- Run
m365 login and login
- Run
m365 flow export --environmentName $environmentId --name $flowId --format json
Expected results
The exported flow in JSON format.
Actual results
The aforementioned error: Error: Calling Power Automate through ARM is no longer supported. Please use "https://api.flow.microsoft.com/" instead.
Diagnostics
Executing command flow export with options {"options":{"environmentName":"REDACTED","name":"REDACTED","format":"json","debug":true,"output":"text"}}
Executing command as 'REDACTED', appId: REDACTED, tenantId: REDACTED
Retrieving package resources for Microsoft Flow REDACTED...
format = json, skipping listing package resources step
Initiating package export for Microsoft Flow REDACTED...
Existing access token REDACTED still valid. Returning...
Request:
{
"url": "https://management.azure.com/providers/Microsoft.ProcessSimple/environments/REDACTED/flows/REDACTED?api-version=2016-11-01",
"method": "get",
"headers": {
"Accept": "application/json",
"user-agent": "NONISV|SharePointPnP|CLIMicrosoft365/9.0.0",
"accept-encoding": "gzip, deflate",
"X-ClientService-ClientTag": "M365CLI:9.0.0",
"authorization": "REDACTED"
},
"responseType": "json",
"decompress": true
}
Request error:
{
"url": "https://management.azure.com/providers/Microsoft.ProcessSimple/environments/REDACTED/flows/REDACTED?api-version=2016-11-01",
"status": 400,
"statusText": "Bad Request",
"headers": {
"cache-control": "no-store, no-cache",
"content-length": "182",
"content-type": "application/json; charset=utf-8",
"strict-transport-security": "max-age=31536000; includeSubDomains",
"x-ms-islandgateway": "ga00000O2",
"x-ms-request-id": "westeurope:4d3016d1-c7b5-4a46-8fbe-cba8a2ba0c20",
"x-ms-correlation-request-id": "453cfda0-c764-456c-867a-867c08e974ac",
"x-ms-flow-mobile-ios-version": "3.0.421",
"x-ms-flow-routing-request-id": "WESTEUROPE:20240902T155731Z:4d3016d1-c7b5-4a46-8fbe-cba8a2ba0c20",
"server-timing": "x-ms-igw-upstream-headers;dur=4.5,x-ms-igw-req-overhead;dur=1.0",
"x-content-type-options": "nosniff",
"x-ms-service-request-id": "f171dda8-cc3e-4caf-a102-afe742cd6b86",
"x-ms-correlation-id": "88cd7923-90c3-4a0e-acc8-146d59957166",
"x-ms-activity-vector": "IN.01.00",
"x-ms-ratelimit-remaining-tenant-reads": "499",
"x-ms-routing-request-id": "GERMANYWESTCENTRAL:20240902T155731Z:453cfda0-c764-456c-867a-867c08e974ac",
"x-cache": "CONFIG_NOCACHE",
"x-msedge-ref": "Ref A: 49436D2A837C49CBAC66952E9F2C4FDA Ref B: AMS231022012051 Ref C: 2024-09-02T15:57:31Z",
"date": "Mon, 02 Sep 2024 15:57:31 GMT",
"connection": "close"
},
"error": {
"error": {
"code": "ArmEndpointDeprecatedForNewClients",
"message": "Calling Power Automate through ARM is no longer supported. Please use "https://api.flow.microsoft.com/\" instead."
}
}
}
Timings:
api: 319.7776ms
core: 9.4351ms
command: 356.6142ms
options: 0.2145ms
total: 367.7026ms
validation: 0.4922ms
Error: Calling Power Automate through ARM is no longer supported. Please use "https://api.flow.microsoft.com/" instead.
CLI for Microsoft 365 version
v9.0.0
nodejs version
v18.16.0
Operating system (environment)
Windows
Shell
PowerShell
cli doctor
Additional Info
No response
Priority
(Urgent) I can't use the CLI
Description
When trying to run the m365 flow export command with
--format jsonoption, I get the following error: "Calling Power Automate through ARM is no longer supported. Please use "https://api.flow.microsoft.com/" instead"This seems to be the same error as previously reported here: #5715 , although that bug report is about the m365 flow list command while here I'm trying to use the flow export command.
Running the same command with
--format zip(or excluding it altogether) works as expected, it only returns this error when you use--format jsonSteps to reproduce
m365 loginand loginm365 flow export --environmentName $environmentId --name $flowId --format jsonExpected results
The exported flow in JSON format.
Actual results
The aforementioned error: Error: Calling Power Automate through ARM is no longer supported. Please use "https://api.flow.microsoft.com/" instead.
Diagnostics
Executing command flow export with options {"options":{"environmentName":"REDACTED","name":"REDACTED","format":"json","debug":true,"output":"text"}}
Executing command as 'REDACTED', appId: REDACTED, tenantId: REDACTED
Retrieving package resources for Microsoft Flow REDACTED...
format = json, skipping listing package resources step
Initiating package export for Microsoft Flow REDACTED...
Existing access token REDACTED still valid. Returning...
Request:
{
"url": "https://management.azure.com/providers/Microsoft.ProcessSimple/environments/REDACTED/flows/REDACTED?api-version=2016-11-01",
"method": "get",
"headers": {
"Accept": "application/json",
"user-agent": "NONISV|SharePointPnP|CLIMicrosoft365/9.0.0",
"accept-encoding": "gzip, deflate",
"X-ClientService-ClientTag": "M365CLI:9.0.0",
"authorization": "REDACTED"
},
"responseType": "json",
"decompress": true
}
Request error:
{
"url": "https://management.azure.com/providers/Microsoft.ProcessSimple/environments/REDACTED/flows/REDACTED?api-version=2016-11-01",
"status": 400,
"statusText": "Bad Request",
"headers": {
"cache-control": "no-store, no-cache",
"content-length": "182",
"content-type": "application/json; charset=utf-8",
"strict-transport-security": "max-age=31536000; includeSubDomains",
"x-ms-islandgateway": "ga00000O2",
"x-ms-request-id": "westeurope:4d3016d1-c7b5-4a46-8fbe-cba8a2ba0c20",
"x-ms-correlation-request-id": "453cfda0-c764-456c-867a-867c08e974ac",
"x-ms-flow-mobile-ios-version": "3.0.421",
"x-ms-flow-routing-request-id": "WESTEUROPE:20240902T155731Z:4d3016d1-c7b5-4a46-8fbe-cba8a2ba0c20",
"server-timing": "x-ms-igw-upstream-headers;dur=4.5,x-ms-igw-req-overhead;dur=1.0",
"x-content-type-options": "nosniff",
"x-ms-service-request-id": "f171dda8-cc3e-4caf-a102-afe742cd6b86",
"x-ms-correlation-id": "88cd7923-90c3-4a0e-acc8-146d59957166",
"x-ms-activity-vector": "IN.01.00",
"x-ms-ratelimit-remaining-tenant-reads": "499",
"x-ms-routing-request-id": "GERMANYWESTCENTRAL:20240902T155731Z:453cfda0-c764-456c-867a-867c08e974ac",
"x-cache": "CONFIG_NOCACHE",
"x-msedge-ref": "Ref A: 49436D2A837C49CBAC66952E9F2C4FDA Ref B: AMS231022012051 Ref C: 2024-09-02T15:57:31Z",
"date": "Mon, 02 Sep 2024 15:57:31 GMT",
"connection": "close"
},
"error": {
"error": {
"code": "ArmEndpointDeprecatedForNewClients",
"message": "Calling Power Automate through ARM is no longer supported. Please use "https://api.flow.microsoft.com/\" instead."
}
}
}
Timings:
api: 319.7776ms
core: 9.4351ms
command: 356.6142ms
options: 0.2145ms
total: 367.7026ms
validation: 0.4922ms
Error: Calling Power Automate through ARM is no longer supported. Please use "https://api.flow.microsoft.com/" instead.
CLI for Microsoft 365 version
v9.0.0
nodejs version
v18.16.0
Operating system (environment)
Windows
Shell
PowerShell
cli doctor
Additional Info
No response