generated from Azure/terraform-azurerm-avm-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvalidate.tf
33 lines (29 loc) · 912 Bytes
/
validate.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
data "azurerm_arc_machine" "arcservers" {
for_each = {
for index, server in var.servers :
server.name => server.ipv4Address
}
name = each.key
resource_group_name = local.resource_group_name
}
resource "azapi_resource" "validatedeploymentsetting" {
type = "Microsoft.AzureStackHCI/clusters/deploymentSettings@2024-01-01"
body = {
properties = local.deployment_setting_properties_omit_null
}
name = "default"
parent_id = azapi_resource.cluster.id
depends_on = [
azurerm_key_vault_secret.default_arb_application,
azurerm_key_vault_secret.azure_stack_lcm_user_credential,
azurerm_key_vault_secret.local_admin_credential,
azurerm_key_vault_secret.witness_storage_key,
azapi_resource.cluster,
azurerm_role_assignment.service_principal_role_assign,
]
lifecycle {
ignore_changes = [
body.properties.deploymentMode
]
}
}