-
Notifications
You must be signed in to change notification settings - Fork 400
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
[AVM Module Issue]: resource-group omits managedBy
which makes migrating to AVM impossible
#2795
Comments
@snelis, thanks for submitting this issue for the Important A member of the @Azure/avm-res-resources-resourcegroup-module-owners-bicep or @Azure/avm-res-resources-resourcegroup-module-contributors-bicep team will review it soon! |
Hi @snelis thanks for bringing this up, have you thought about raising a PR for this? |
Yes, but have not found time to look into this further, for now i stuck with CARML to avoid being blocked. |
I'd like to understand your use case in a bit more detail. The reason we removed the |
We come from the CARML, they transition into AVM. The latest tag that was in use is 0.11.1 which is here This tag deploys resource groups with the Therefore we now have resourcegroups with this property already in place (as an empty string).
So this makes me unable to transition this module from CARML into AVM because they are incompatible with each other. |
I also thought about a PR, but if you want this to be either a string, or omit the property we land in this issue: |
@snelis, just fyi I have this on my backlog. |
@snelis did you try using the resource group resource and setting the |
Since the parameter was removed due to the decision of immutable string issues in CARML and before moving into AVM, we are not going to reintroduce the parameter again. We recommend using the generic resource group resource and setting the |
It's immutable, so yes i can use the generic resource group to maintain it's current value, but i wont be able to transition into AVM. |
Hello all, After logging the same issue I found this as a closed issue, We have just transitioned to AVM for all our code and in testing phase, If nothing is to change is the only solution to use resource deployment in the root bicep or a custom module? |
Check for previous/existing GitHub issues
Issue Type?
Bug
Module Name
avm/res/resources/resource-group
(Optional) Module Version
0.2.4 (latest)
Description
The module identifies that the managedBy propery is immutable, yet it does not make it configurable.
// managedBy: managedBy // removed due to immutable string, only used for managed resource groups
Since CARML used to set it to an empty string by default, you end up with the property:
"managedBy": "",
AVM then tries to deploy without this property and you get this error:
The managed by property of the resource group cannot be changed from its current value ''
Can we make this configurable so i can configure it to an empty string?
(Optional) Correlation Id
No response
The text was updated successfully, but these errors were encountered: