-
Notifications
You must be signed in to change notification settings - Fork 708
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into visiativ/feat/azurerm…
…_maintenance_assignment_dynamic_scope
- Loading branch information
Showing
27 changed files
with
719 additions
and
20 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
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
64 changes: 64 additions & 0 deletions
64
examples/messaging/eventgrid/300-simple-eventgrid-system-topic/configuration.tfvars
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,64 @@ | ||
global_settings = { | ||
default_region = "region1" | ||
regions = { | ||
region1 = "southeastasia" | ||
} | ||
} | ||
|
||
resource_groups = { | ||
evg_examples = { | ||
name = "eventgrid" | ||
region = "region1" | ||
} | ||
} | ||
|
||
storage_accounts = { | ||
sa1 = { | ||
name = "0665ba08d3ae" | ||
resource_group_key = "evg_examples" | ||
account_kind = "BlobStorage" | ||
account_tier = "Standard" | ||
# account_replication_type = "LRS" | ||
containers = { | ||
dev = { | ||
name = "random" | ||
} | ||
} | ||
} | ||
} | ||
|
||
eventgrid_system_topic = { | ||
egt1 = { | ||
name = "egt1" | ||
resource_group = { | ||
key = "evg_examples" | ||
} | ||
region = "region1" | ||
|
||
# topic_type can be one of these, more resource types can be supported | ||
# Microsoft.AppConfiguration.ConfigurationStores | ||
# Microsoft.Communication.CommunicationServices | ||
# Microsoft.ContainerRegistry.Registries | ||
# Microsoft.Devices.IoTHubs | ||
# Microsoft.EventGrid.Domains | ||
# Microsoft.EventGrid.Topics | ||
# Microsoft.Eventhub.Namespaces | ||
# Microsoft.KeyVault.vaults | ||
# Microsoft.MachineLearningServices.Workspaces | ||
# Microsoft.Maps.Accounts | ||
# Microsoft.Media.MediaServices | ||
# Microsoft.Resources.ResourceGroups | ||
# Microsoft.Resources.Subscriptions | ||
# Microsoft.ServiceBus.Namespaces | ||
# Microsoft.SignalRService.SignalR | ||
# Microsoft.Storage.StorageAccounts | ||
# Microsoft.Web.ServerFarms | ||
# Microsoft.Web.Sites | ||
topic_type = "Microsoft.Storage.StorageAccounts" | ||
|
||
source_resource = { | ||
type = "storage_accounts" | ||
key = "sa1" | ||
} | ||
} | ||
} |
110 changes: 110 additions & 0 deletions
110
examples/mysql_flexible_server/103-mysql-flexible-private-endpoint/configuration.tfvars
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,110 @@ | ||
global_settings = { | ||
default_region = "region1" | ||
regions = { | ||
region1 = "australiaeast" | ||
} | ||
} | ||
|
||
resource_groups = { | ||
mysql_region1 = { | ||
name = "mysql-region1" | ||
region = "region1" | ||
} | ||
security_region1 = { | ||
name = "security-region1" | ||
} | ||
} | ||
|
||
mysql_flexible_server = { | ||
primary_region1 = { | ||
name = "vks-flexible-testservers" | ||
version = "8.0.21" #Possible values are 5.7, and 8.0.21 | ||
sku_name = "GP_Standard_D2ds_v4" | ||
zone = 1 | ||
resource_group = { | ||
key = "mysql_region1" | ||
# lz_key = "" # Set the lz_key if the resource group is remote. | ||
} | ||
|
||
private_dns_zone_id = "dns_zone1" | ||
|
||
# Auto-generated administrator credentials stored in azure keyvault when not set (recommended). | ||
#administrator_username = "psqladmin" | ||
#administrator_password = "ComplxP@ssw0rd!" | ||
keyvault = { | ||
key = "mysql_region1" # (Required) when auto-generated administrator credentials needed. | ||
# lz_key = "" # Set the lz_key if the keyvault is remote. | ||
} | ||
|
||
# [Optional] Server Configurations | ||
mysql_configurations = { | ||
mysql_configurations = { | ||
name = "interactive_timeout" | ||
value = "600" | ||
} | ||
|
||
} | ||
# [Optional] Database Configurations | ||
mysql_databases = { | ||
flex_mysql_database = { | ||
name = "exampledb" | ||
collation = "utf8mb3_unicode_ci" | ||
charset = "utf8mb3" | ||
} | ||
} | ||
|
||
tags = { | ||
server = "MysqlFlexible" | ||
} | ||
|
||
private_endpoints = { | ||
private-link-level4 = { | ||
name = "sales-sql-rg1" | ||
vnet_key = "vnet_region1" | ||
subnet_key = "private_dns" | ||
resource_group_key = "sql_region1" | ||
|
||
private_service_connection = { | ||
name = "sales-sql-rg1" | ||
is_manual_connection = false | ||
subresource_names = ["mysqlServer"] | ||
} | ||
} | ||
} | ||
|
||
} | ||
|
||
} | ||
|
||
keyvaults = { | ||
mysql_region1 = { | ||
name = "mysql-region123" | ||
resource_group_key = "security_region1" | ||
sku_name = "standard" | ||
soft_delete_enabled = true | ||
creation_policies = { | ||
logged_in_user = { | ||
secret_permissions = ["Set", "Get", "List", "Delete", "Purge"] | ||
} | ||
} | ||
} | ||
} | ||
|
||
vnets = { | ||
vnet_region1 = { | ||
resource_group_key = "mysql_region1" | ||
region = "region1" | ||
vnet = { | ||
name = "mysql" | ||
address_space = ["10.10.0.0/24"] | ||
} | ||
subnets = { | ||
private_dns = { | ||
name = "private-dns" | ||
cidr = ["10.10.0.0/25"] | ||
enforce_private_link_endpoint_network_policies = true | ||
enforce_private_link_service_network_policies = false | ||
} | ||
} | ||
} | ||
} |
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
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
9 changes: 9 additions & 0 deletions
9
modules/cognitive_services/cognitive_services_account/diagnostics.tf
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,9 @@ | ||
module "diagnostics" { | ||
source = "../../diagnostics" | ||
count = var.diagnostic_profiles == null ? 0 : 1 | ||
|
||
resource_id = azurerm_cognitive_account.service.id | ||
resource_location = local.location | ||
diagnostics = var.diagnostics | ||
profiles = var.diagnostic_profiles | ||
} |
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
20 changes: 20 additions & 0 deletions
20
modules/cognitive_services/cognitive_services_account/private_endpoints.tf
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,20 @@ | ||
# | ||
# Private endpoint | ||
# | ||
|
||
module "private_endpoint" { | ||
source = "../../networking/private_endpoint" | ||
for_each = var.private_endpoints | ||
|
||
resource_id = azurerm_cognitive_account.service.id | ||
name = each.value.name | ||
location = var.resource_groups[try(each.value.resource_group.lz_key, var.client_config.landingzone_key)][try(each.value.resource_group.key, each.value.resource_group_key)].location | ||
resource_group_name = var.resource_groups[try(each.value.resource_group.lz_key, var.client_config.landingzone_key)][try(each.value.resource_group.key, each.value.resource_group_key)].name | ||
subnet_id = can(each.value.subnet_id) ? each.value.subnet_id : var.vnets[try(each.value.lz_key, var.client_config.landingzone_key)][each.value.vnet_key].subnets[each.value.subnet_key].id | ||
settings = each.value | ||
global_settings = var.global_settings | ||
base_tags = var.base_tags | ||
tags = local.tags | ||
private_dns = var.private_dns | ||
client_config = var.client_config | ||
} |
Oops, something went wrong.