Can we publish/deploy a code to azure static webapp using powershell commands without github actions, SWA CLI and ADO static web task? If yes can I get the script for the same?

Kireeti Dharma 20 Reputation points
2023-05-17T07:30:00.5033333+00:00

With the help of New-AzStaticWebapp command I can only able to create a webapp but unable to publish/deploy a code into webapp using the deployment token.

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,329 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
851 questions
{count} votes

Accepted answer
  1. SnehaAgrawal-MSFT 20,856 Reputation points
    2023-05-24T04:30:34.69+00:00

    @Kireeti Dharma Apologies for late response here! After Internal discussions and more research on your ask here it came out that-

    Unfortunately, there isn’t currently a proper direct/zip deployment API for Static Web Apps so there’s no Azure CLI or PowerShell support.

    The best way to accomplish this today is via the SWA-CLI: https://azure.github.io/static-web-apps-cli/docs/cli/swa-deploy

    Having said that suggest you share your feedback for Azure Static webapp on Uservoice - All of the feedback, you share in these forums will be monitored and reviewed by the Microsoft engineering teams responsible for building Azure. Additionally, users with a similar request can up-vote you post and add their comments.

    Hope this helps. Please let us know if further query or issue remains.


0 additional answers

Sort by: Most helpful