How to change Source for web static apps #1093
-
How do you change Source for Static Web Apps? When I set up my Static Web App, I gave it a GitHub Source. I then decided I needed to fully switch GitHub repositories. How is that done? I know you can do so on regular web apps under deployment but deployment doesn't show under options for Static Web Apps. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Thanks for the feedback @fndmeghanshannon , this is not currently available via the Azure Portal. You may do so via the Az CLI using the disconnect and reconnect commands: https://learn.microsoft.com/en-us/cli/azure/staticwebapp?view=azure-cli-latest#az-staticwebapp-reconnect https://learn.microsoft.com/en-us/cli/azure/staticwebapp?view=azure-cli-latest#az-staticwebapp-disconnect. Alternatively, you can create a new Static Web App in the Portal |
Beta Was this translation helpful? Give feedback.
-
It is also not working az staticwebapp reconnect -n Testing-web-app --source https://github.com/harshitsahu2311/Nodejs-Project.git -b main --login-with-github ERROR: Static Web App Testing-web-app already exists in resource group Demo-RG |
Beta Was this translation helpful? Give feedback.
Thanks for the feedback @fndmeghanshannon , this is not currently available via the Azure Portal. You may do so via the Az CLI using the disconnect and reconnect commands: https://learn.microsoft.com/en-us/cli/azure/staticwebapp?view=azure-cli-latest#az-staticwebapp-reconnect https://learn.microsoft.com/en-us/cli/azure/staticwebapp?view=azure-cli-latest#az-staticwebapp-disconnect. Alternatively, you can create a new Static Web App in the Portal