Azure-docs: Got error when run "mvn azure-functions:deploy" in Azure China Env

Created on 6 May 2020  Â·  7Comments  Â·  Source: MicrosoftDocs/azure-docs

I got an error when run "mvn azure-functins:deploy" in Azure China Env which says:

[ERROR] Failed to execute goal com.microsoft.azure:azure-functions-maven-plugin:1.4.1:deploy (default-cli) on project fabrikam-functions: Status code 400, {"Code":"BadRequest","Message":"There was a conflict. The remote name could not be resolved: '47d41cdf4f4743339918.file.core.windows.net'","Target":null,"Details":[{"Message":"There was a conflict. The remote name could not be resolved: '47d41cdf4f4743339918.file.core.windows.net'"},{"Code":"BadRequest"},{"ErrorEntity":{"ExtendedCode":"01020","MessageTemplate":"There was a conflict. {0}","Parameters":["The remote name could not be resolved: '47d41cdf4f4743339918.file.core.windows.net'"],"Code":"BadRequest","Message":"There was a conflict. The remote name could not be resolved: '47d41cdf4f4743339918.file.core.windows.net'"}}],"Innererror":null} -> [Help 1]

It seems the endpoint is wrong. We use ".chinacloudapi.cn" in China instead of ".windows.net". But I can't find anywhere to change the endpoint. Need your help to fix this issue so that your sample can run in Azure China Env.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri1 azure-functionsvc cxp product-question triaged

Most helpful comment

Adding our Maven team @Flanker32 @andxu

All 7 comments

@alexchen2016 Thank you for your feedback! We will review and update as appropriate.

@Hazhzeng do you know if the Maven archetype is supported for China cloud?

Hi @ggailey777, I'm not familiar with the Mooncake cloud and not an expert in Java Functions.

Hi @amamounelsayed, do you know if we support deploying to sovereign cloud by using mvn azure-functions toolings?

Adding our Maven team @Flanker32 @andxu

Any more update from your side? I got the same error in /azure-functions/functions-create-first-java-gradle and /azure-functions/functions-create-first-kotlin-maven.

Hey @alexchen2016 - Since this channel is for driving improvements toward MS Docs and we haven't determined any change for this particular documentation, we will now proceed to close this thread.

I have reached out to both @andxu and @Flanker32 internally regarding your query but it'd be great if you move this issue to the Azure/azure-functions-java-worker repo.

@alexchen2016 Thanks for your report and sorry for the late reply, the maven toolkit support specify environment when auth with service principal, here is the document, we are working to enable specify azure environment in other environments too, here is the issue

Was this page helpful?
0 / 5 - 0 ratings

Related issues

varma31 picture varma31  Â·  3Comments

spottedmahn picture spottedmahn  Â·  3Comments

mrdfuse picture mrdfuse  Â·  3Comments

ianpowell2017 picture ianpowell2017  Â·  3Comments

bdcoder2 picture bdcoder2  Â·  3Comments