• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: Powershell command to publish to Azure static web app

Resolved: Powershell command to publish to Azure static web app

0
By Isaac Tonny on 17/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

I am looking for deploy an angular website to an Azure static website. Unfortunately i am running under Azure DevOps Server (so on-premises) and there is no task to deploy to static website (but it is possible with Azure DevOps Services).
So basically i try to find powershell command which take as input an output artificat (a zip file) and deploy to static website.
Usually i used command Publish-AzWebApp but this one supports only Azure appservice and not Azure static website.
How can you achieve this ? Regards

Answer:

For Creating New or Publishing the existing Static Site to Static Web Apps, it’s the same command used in Azure PowerShell.
New-AzStaticWebApp – This command creates a new static site or updates an existing static side in an existing resource group.
While creating the Static Web App or Publishing in Azure, you will use the GitHub RepositoryUrl and Repository token for continuous deployment.
Azure PowerShell Syntax of Creating or Publishing the Static Web App:
enter image description here
Refer to this Microsoft Doc – PowerShell Modules of Static web app for more information.

If you have better answer, please add a comment about this, thank you!

azure-powershell azure-static-web-app
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: PyCharm cannot see my newly compiled .pyc see on import

27/03/2023

Resolved: I am facing ERR_HTTP2_PROTOCOL_ERROR on my website

27/03/2023

Resolved: TypeScript does not recognize properties when instantiating interface array

27/03/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.