generated from Azure/terraform-azurerm-avm-template
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support for attaching to AMPLS (#80)
* connect to existing AMPLS * post pr-check update
- Loading branch information
1 parent
dcc4071
commit 9786c4c
Showing
4 changed files
with
52 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
resource "azapi_resource" "ampls" { | ||
for_each = var.monitor_private_link_scoped_resource | ||
|
||
type = "Microsoft.Insights/privateLinkScopes/scopedResources@2021-07-01-preview" | ||
body = jsonencode({ | ||
properties = { | ||
linkedResourceId = azurerm_log_analytics_workspace.this.id | ||
} | ||
}) | ||
ignore_casing = true | ||
name = each.value.name != null ? each.value.name : azurerm_log_analytics_workspace.this.name | ||
parent_id = each.value.resource_id | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters