You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.