-
Notifications
You must be signed in to change notification settings - Fork 214
Closed
Labels
Description
Hello,
I was unable to import azurerm_monitor_scheduled_query_rules_alert resource using
aztfy version v0.6.0(18b614b)
aztfy resource -f '/subscriptions/D5CCAED7-D6BE-4ACF-A028-59369C7012CE/resourceGroups/my-rg/providers/microsoft.insights/scheduledqueryrules/Rule name with spaces'
Resource Type: azurerm_monitor_scheduled_query_rules_alert
...
Error: failed to import /subscriptions/D5CCAED7-D6BE-4ACF-A028-59369C7012CE/resourceGroups/my-rg/providers/Microsoft.Insights/scheduledqueryrules/Rule name with spaces as azurerm_monitor_scheduled_query_rules_alert.res-0: exit status 1
Error: parsing Resource ID "/subscriptions/D5CCAED7-D6BE-4ACF-A028-59369C7012CE/resourceGroups/my-rg/providers/Microsoft.Insights/scheduledqueryrules/Rule name with spaces": ID was missing the `scheduledQueryRules` element
I found this fix: https://github.com/hashicorp/terraform-provider-azurerm/pull/17932/files
But I am not able to convince the azcli to use scheduledQueryRules instead of scheduledqueryrules