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:
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!