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

bugfix: format azurerm resource ID when move resource #797

Merged
merged 2 commits into from
Mar 4, 2025
Merged

Conversation

ms-henglu
Copy link
Member

fixes #704

@ms-henglu ms-henglu requested a review from magodo February 28, 2025 07:58
func AzurermIdToAzureId(azurermResourceType string, azurermId string) (string, error) {
switch azurermResourceType {
case "azurerm_monitor_diagnostic_setting":
// input: <target id>|<diagnostic setting name>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a couple of these unsual resource id in azurerm, is there a plan to handle them comprehensively?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I did check all the unusual resource IDs from aztft, but most of them are associations or part of a resource, the ID could be parsed to an azure resource ID correctly, so I didn't handle them.

I'll keep adding more similar cases here.

@ms-henglu ms-henglu merged commit d218c35 into main Mar 4, 2025
10 checks passed
@ms-henglu ms-henglu deleted the issue-704 branch March 4, 2025 07:06
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

Successfully merging this pull request may close these issues.

using moved() on a diagnostic setting results in a resource create conflict
2 participants