Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bicep-azure-static-web-apps-azure-devops -> error "Cannot change the RepositoryUrl" #131

Open
StefH opened this issue Dec 16, 2021 · 4 comments

Comments

@StefH
Copy link

StefH commented Dec 16, 2021

I ran into alike problem which was described by Shane Neff :

I got this error:

Starting template validation.
Deployment name is main-20211216-190201-a25c
There were errors in your deployment. Error code: InvalidTemplateDeployment.
##[error]The template deployment 'main-20211216-190201-a25c' is not valid according to the validation procedure. The tracking id is '0dc2b50a-78bf-4b07-b8ea-e4a87dc8104f'. See inner errors for details.
##[error]Details:
##[error]BadRequest: RepositoryUrl is invalid.  Cannot change the RepositoryUrl. Please detach your static site first if you wish to attach to another repository.
##[warning]Validation errors were found in the Azure Resource Manager template. This can potentially cause template deployment to fail. Task failed while creating or updating the template deployment.. Please follow https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/template-syntax

And this is also solved with disconnecting the static website.

Maybe you can also add my problem to your blog?

@johnnyreilly
Copy link
Owner

What sort of update would you suggest?

@StefH
Copy link
Author

StefH commented Dec 17, 2021

@johnnyreilly

That besides the error "Provider is invalid workaround 2​", a new workaround can be added like "RepositoryUrl is invalid workaround".

The solution would be the same as suggested by Shane Neff.

@johnnyreilly
Copy link
Owner

Would you like to send a pr?

@StefH
Copy link
Author

StefH commented Dec 17, 2021

I will do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants