You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to export a resource group and it was chugging along great until it hit this error:
Error: Failed to import /subscriptions/aaaaaaaa-0000-aaaa-aa-aaaaaaaaaaaa/resourceGroups/defaultresourcegroup-eus/providers/Microsoft.OperationsManagement/solutions/SQLAuditing[defaultworkspace-defaultworkspace-aaaaaaaa-0000-aaaa-aa-aaaaaaaaaaaa-eus] as azurerm_log_analytics_solution.res-575: exit status 1
Error: expected "SQLAuditing[defaultworkspace-aaaaaaaa-0000-aaaa-aa-aaaaaaaaaaaa-eus]" to match 'Solution(WorkspaceName)'
When I investigated the issue, I saw that the rest of the resources use this as the resource group name:
// Reversing the mapping used to get .solution_name// expecting resp.Name to be in format "SolutionName(WorkspaceName)".ifv:=model.Name; v!=nil {
val:=pointer.From(v)
segments:=strings.Split(val, "(")
iflen(segments) !=2 {
returnfmt.Errorf("expected %q to match 'Solution(WorkspaceName)'", val)
}
solutionName:=segments[0]
workspaceName:=strings.TrimSuffix(segments[1], ")")
state.SolutionName=solutionNamestate.WorkspaceName=workspaceName
}
This means if you manually run terraform import to import this resource, you'll get the same error. This either indicates the provider doesn't support importing this resource, or you shall not import this resource at all (as it is a built-in resource managed by other means)?
I'm trying to export a resource group and it was chugging along great until it hit this error:
When I investigated the issue, I saw that the rest of the resources use this as the resource group name:
DefaultWorkspace-aaaaaaaa-0000-aaaa-aa-aaaaaaaaaaaa-EUS
but this one uses:
defaultworkspace-aaaaaaaa-0000-aaaa-aa-aaaaaaaaaaaa-eus
Any chance this match could be made case insensitive?
The text was updated successfully, but these errors were encountered: