Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Azure private tag prefix support (fixes azure_vm_virtualmachine idempotency and stranded resources) #61870
It was possible for tags used internally to track resources that a module manages (like azure_vm_virtualmachine manages the Storage Account and saves it with own_sa as a tag) to be corrupted by an external update in module params. If the user modified own_sa then the original storage account would be orphaned, and a new one would be created.
Generally, internal tags SHOULD have a better prefix than "own" however that's what is there now.
Without this change if one creates a VM with azure_vm_virtualmachine using a playbook that contains a tag, then runs the playbook again, the old storage account would be orphaned and a new storage account would be created. This issue likely appeared with support for boot diagnostics.