Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Deploy Azure Static Web App

lprada
Contributor
November 10, 2021

Hi, any help deploy to a azure static web app? is the same as to a normal web app?

1 answer

0 votes
Igor Stoyanov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 12, 2021

@lprada hi. Thanks for your question. It's a good case to use Pipe: Azure CLI Deploy :

script:
  - pipe: atlassian/azure-cli-run:1.0.1
    variables:
      AZURE_APP_ID: $AZURE_APP_ID
      AZURE_PASSWORD: $AZURE_PASSWORD
      AZURE_TENANT_ID: $AZURE_TENANT_ID
      CLI_COMMAND: 'az staticwebapp <your params>'

To discover more pipes, visit our Bitbucket Pipes Marketplace.

Regards, Igor. 

Saqib Ur Rehman
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 24, 2023

HI @Igor Stoyanov .

I used this command in azure cli:

az ad sp create-for-rbac --name MyServicePrincipal

I added directly there values to your above mentioned script but im faced by this error.

 azureissuse.PNG

Is there any other way so that i can push my app to azure web app.

Also are we only required to send our app as zip file or only the build app. can we directly send build files or we have to send them as zip folder? 

Igor Stoyanov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 28, 2023

@Saqib Ur Rehman hi. The error points you, that you dont have Azure subscription when trying to login.
Answering your question,  take a look at Azure pipes here.

Maybe this azure-web-apps-deploy pipe is what are you looking for.

Also, please, next time create a new question with your own issue instead.

Regards, Igor.

Saqib Ur Rehman
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 28, 2023

Thanks.
The issue was solved but i dont know why.

Our manager bought Azure subscription im added as a contributor to it. When i created a ServicePrincipal and gave it access, still the credentials were not working, But when manager created a servicePrincipal it worked. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Upcoming Bitbucket Events