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.
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@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.
Most helpful comment
Adding our Maven team @Flanker32 @andxu