Closed DamaniN closed 1 month ago
@johan3141592, this is a different issue. #88 asks for custom resource groups to be created. This is issue is a bug where the resource groups are not created at all, even the default ones.
@DamaniN I see, thank you for clarifying. I think we need to raise a ticked for RSC to have this fixed, the TF provider doesn't do anything special to have resource groups created.
Has anyone created a Jira for ENG to look into this? This is an issue in the UI as well?
@pmilano1, not at this point. The thought was to get the granular permissions issues worked out with the provider first and see if that resolves the issue. If it doesn't, then we would pursue this with Engineering.
@DamaniN and @pmilano1, I have experimented with this today and can confirm that the resource group is not created when onboarding a subscription without specifying a resource group. According to engineering this is the expected behaviour. Fortunately the support for custom resource groups just landed in the latest beta release (v0.9.0-beta.1
), specifying an existing resource group using resource_group_name
and resource_group_region
work around this problem. I've successfully taken snapshots of Azure VMs and have them stored in the custom resource group. Note, AZURE_SQL_DB_PROTECTION
and AZURE_SQL_MI_PROTECTION
does not support custom resource groups in RSC, we might need to investigate further if those features still are affected.
@DamaniN and @pmilano1 can we close this? I don't believe this is an issue with the TF provider. When manually onboarding a subscription using the UI and the Configure without OAuth workflow, the wizard explicitly prompts you to confirm that the resource groups you've entered already exist in Azure, i.e. they won't be created by RSC.
It's not possible to onboard a subscription without specifying a resource group using the UI.
@johan3141592, the provider wasn't giving us a way to configure RSC since it didn't provide a method to specify the Resource Group. Now that it does, this ticket can be closed. Please reference the commit that adds the specification of the resource groups to this ticket when you close it.
Commit 1f1b81752d30340b67811ef3faee8e603ed4b3d0 adds support for specifying resource groups to the TF provider. Commit d1242552a36a730289cde2255ba778a29fd04ecd improves the resource group documentation. It was first introduced in the v0.9.0-beta.1
release, however, using the latest beta probably makes more sense.
Expected Behavior
When adding a subscription to Azure an RSC generated resource group is supposed to be crated in the subscription that is being added. New snapshots are then stored in this resource group.
Current Behavior
New snapshots are failing on Terraform added subscriptions stating that the resource group cannot be found for the snapshot.
Failure Information (for bugs)
This is a sample error that was received:
Steps to Reproduce
Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
Failure Logs
See above