Skip to content
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

The latest version of scripts.v3 using migrate.js does not work in Azure Government Cloud #2486

Open
jphines57 opened this issue May 17, 2024 · 2 comments

Comments

@jphines57
Copy link

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

@jphines57
Copy link
Author

If I make this update to /scripts.v3/utils.js it works for Azure Gov Cloud:
const managementApiEndpoint = "management.usgovcloudapi.net"; //management.azure.com";

@jphines57
Copy link
Author

Maybe allow for a flag parameter on migrate to allow Commercial or Government Cloud but default to Commercial.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant