Open jphines57 opened 1 month ago
If I make this update to /scripts.v3/utils.js it works for Azure Gov Cloud: const managementApiEndpoint = "management.usgovcloudapi.net"; //management.azure.com";
Maybe allow for a flag parameter on migrate to allow Commercial or Government Cloud but default to Commercial.
That is a good idea. We will mark it as a feature request
In previous versions (2.24.0) this has worked fine but the latest version broke Azure Government Cloud hosted APIM from migrating. When I attempt to run the command I get this:
Exporting... Unable to complete migration. Unable to complete export. Unable to capture content. Unable to fetch content types. Resource not found: https://management.azure.com/subs criptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes?api-version=2021-08-01
I think the issue is with the beginning domain is https://management.azure.com instead of something like https://portal.azure.us