Skip to content

Commit

Permalink
add import for default group
Browse files Browse the repository at this point in the history
  • Loading branch information
Tommi-Sensa committed Jun 28, 2024
1 parent 7f66569 commit bf23278
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions efaultResourceGroup-EUS.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import {
id = "/subscriptions/3846f4f0-152c-49d5-9779-9998df4a2c0c/resourceGroups/DefaultResourceGroup-EUS"
to = azurerm_resource_group.DefaultResourceGroup-EUS
}

resource "azurerm_resource_group" "DefaultResourceGroup-EUS" {
name = "DefaultResourceGroup-EUS"
location = "East US"
}

import {
id = "/subscriptions/3846f4f0-152c-49d5-9779-9998df4a2c0c/resourcegroups/defaultresourcegroup-eus/providers/microsoft.operationalinsights/workspaces/defaultworkspace-3846f4f0-152c-49d5-9779-9998df4a2c0c-eus"
to = azurerm_log_analytics_workspace.DefaultWorkspace-3846f4f0-152c-49d5-9779-9998df4a2c0c-EUS
}
resource "azurerm_log_analytics_workspace" "DefaultWorkspace-3846f4f0-152c-49d5-9779-9998df4a2c0c-EUS" {
location = azurerm_resource_group.DefaultResourceGroup-EUS.location
resource_group_name = azurerm_resource_group.DefaultResourceGroup-EUS.name
name = "DefaultWorkspace-3846f4f0-152c-49d5-9779-9998df4a2c0c-EUS"
}

0 comments on commit bf23278

Please sign in to comment.