We have been using the bitbucket pipe to deploy web apps to azure commercial environment for a long time and all works fine.
We now have a requirement to deploy a web app in Azure Gov Cloud. The pipe "atlassian/azure-web-apps-deploy" has an option to specify the Azure environment using "AZURE_CLOUD_ENVIRONMENT" as a parameter.
However, our web app in Azure Gov Cloud does not allow public access and allows traffic only via an Azure Application Gateway. Kudu environment of the Web App is only available after connecting to Azure VPN. Zip Deploy works when doing it manually via the browser.
I see the problem here - how can Bitbucket connect to a Web App that is running in a closed container? But I'm sure this is a problem faced by most people wanting to deploy to Azure Gov Cloud.
Any ideas are welcome! Thanks.
Here is the error we get when deploying using the pipe:
