You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
│ Error: failed creating Static Site: (Name "********" / Resource Group "shutter-app-sbox-rg"): web.StaticSitesClient#CreateOrUpdateStaticSite: Failure sending request: StatusCode=0 -- Original Error: Code="BadRequest" Message="RepositoryUrl is invalid. Cannot change the RepositoryUrl. Please detach your static site first if you wish to attach to another repository." Details=[{"Message":"RepositoryUrl is invalid. Cannot change the RepositoryUrl. Please detach your static site first if you wish to attach to another repository."},{"Code":"BadRequest"},{"ErrorEntity":{"Code":"BadRequest","ExtendedCode":"51021","Message":"RepositoryUrl is invalid. Cannot change the RepositoryUrl. Please detach your static site first if you wish to attach to another repository.","MessageTemplate":"{0} is invalid. {1}","Parameters":["RepositoryUrl","Cannot change the RepositoryUrl. Please detach your static site first if you wish to attach to another repository."]}}]
│
│ with module.shutter_swa.azurerm_static_site.static_webapp["reformscan"],
│ on ../../modules/shutter_page_swa/static_webapps.tf line 5, in resource "azurerm_static_site" "static_webapp":
│ 5: resource "azurerm_static_site" "static_webapp" {
Steps to Reproduce
Create a static site with no tags
Attach it to a repo by adding the github action and deploying content
Error: failed creating Static Site: (Name "stapp-dem-spoke002-prod-sami" / Resource Group "rg-dem-spoke002-prod-web-app"):
web.StaticSitesClient#CreateOrUpdateStaticSite: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure:
Service returned an error. Status=400 Code="BadRequest" Message="Provider is invalid. Cannot change the Provider. Please detach your static site first if you wish to use to another deployment provider."
Details=[{"Message":"Provider is invalid. Cannot change the Provider. Please detach your static site first if you wish to use to another deployment provider."},{"Code":"BadRequest"},{"ErrorEntity":
{"Code":"BadRequest","ExtendedCode":"51021","Message":"Provider is invalid. Cannot change the Provider. Please detach your static site first if you wish to use to another deployment provider.","MessageTemplate":"{0} is invalid. {1}","Parameters":["Provider","Cannot change the Provider. Please detach your static site first if you wish to use to another deployment provider."]}}]
with azurerm_static_site.static_web_app
on main.tf line 15, in resource "azurerm_static_site" "static_web_app":
Community Note
Terraform (and AzureRM Provider) Version
Affected Resource(s)
azurerm_static_site
Terraform Configuration Files
Debug Output
Panic Output
Expected Behaviour
Tags were applied
Actual Behaviour
Steps to Reproduce
terraform apply
Important Factoids
References
I suspect this line is the issue https://github.com/terraform-providers/terraform-provider-azurerm/blob/1199ef3b2e169c2d807d4ad5f58b3c373ce505d4/azurerm/internal/services/web/static_site_resource.go#L113
It's expected that these are linked outside of the azurerm provider, but we need to fill these values in if we're doing an update
The text was updated successfully, but these errors were encountered: