CompositionalIT / farmer

Repeatable Azure deployments with ARM templates - made easy!
https://compositionalit.github.io/farmer
MIT License
523 stars 157 forks source link

Deploy.tryExecute hanging #985

Closed JonTheTurnip closed 1 year ago

JonTheTurnip commented 1 year ago

Hi there,

I'm testing using Farmer for the first time within my organisation.

We don't have permission to create resource groups, therefore I'm trying to deploy to a resource group that already exists.

If I use Farmer with an fsx script to generate the ARM template and then use the Azure cli to deploy the generated ARM template to my resource group then that works fine.

However, if I use Farmer to deploy then I get the message "Creating resource group...." after which the spinner keeps spinning indefinitely. I wouldn't expect it to say 'creating resource group...' if the resource group already exists?

Not sure if I'm doing something wrong or if it's something else. Any help will be much appreciated :)

image

JonTheTurnip commented 1 year ago

Looks like the issue is that there are tagging requirements on the existing resource group, therefore to in order to successfully 'az group create' I need to pass in all of the existing tags.

Not sure why Farmer hangs in this scenario rather than errors out. I can do some more investigations next week and potentially raise a suggestion.