I'm trying to deploy an angular app as a web app to azure with this .yml
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
image: node:10.14
pipelines:
default:
- step:
caches:
- node
script: # Modify the commands below to build your repository.
- npm install
- npm build
- pipe: microsoft/azure-web-apps-deploy:1.0.1
variables:
AZURE_APP_ID: **************
AZURE_PASSWORD: ***********
AZURE_TENANT_ID: ********
AZURE_RESOURCE_GROUP: 'Application'
AZURE_APP_NAME: 'Application'
ZIP_FILE: '?? which zip file ??'
# SLOT: '<string>' # Optional.
# DEBUG: '<boolean>' # Optional.
I'm having trouble understanding which ZIP_FILE this is targeting? Is the build generating this zip file or should I have it uploaded somewhere? I can see this error when building:INFO: Starting deployment to Azure app service...
az webapp deployment source config-zip --resource-group Application --name Application --src app.zip
ERROR: [Errno 2] No such file or directory: '/opt/atlassian/pipelines/agent/build/app.zip'
Traceback (most recent call last):
Any help? I can't find any valuable documentation.
Thanks
Hey @[deleted] ,
You need to create an artifact (zip file) of your application to deploy it to Azure Web Apps.
You can check this example: https://bitbucket.org/microsoft/example-azure-web-apps-deploy/src/master/bitbucket-pipelines.yml
Regards,
Raul
Great! Thanks a lot for your answer, this helped me out!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Great answer - but there's an issue with the "zip" command, as it doesn't appear to use the variable to name the zip file, but rather just uses the actual text. Any tips here?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ignore me - I figured out what I was doing wrong (changed the filename, but forgot to change the "artifacts" directive). Thanks for the solution! 👍🏼
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please update the documentation on https://bitbucket.org/atlassian/azure-web-apps-deploy/src/master/README.md .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@geoffrey-ttro hi.
What do you want to be updated in documentation?
Regards, Igor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Igor Stoyanov it should mention that a prior step is necessary to create the Zip artifact of the repository, like the example shows in the Microsoft repository in the accepted answer.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@geoffrey-ttro Thanks for feedback, we will update the documentation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.