Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Int azrm 3.7.0 #1

Open
wants to merge 31 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
329a03f
WIP
SergioMiyama Feb 8, 2022
9a1c154
Update to azurerm 3.0.1
LaurentLesle Mar 25, 2022
896ce8e
Update for 3.0
LaurentLesle Mar 25, 2022
fe46587
Support 3.0.1
LaurentLesle Mar 25, 2022
4fbea55
Update 3.0.1
LaurentLesle Mar 25, 2022
aa9e91d
Update data factory for azurerm 3.0
LaurentLesle Mar 28, 2022
a839e6d
Update load balancer
LaurentLesle Mar 28, 2022
7d9481c
Update storage insights
LaurentLesle Mar 28, 2022
7d673ed
Update to APIM
LaurentLesle Mar 28, 2022
404d5fc
Networking updates
LaurentLesle Mar 28, 2022
a86d409
Update provider
LaurentLesle May 20, 2022
8bd65c7
Fix azurerm_template_deployment
LaurentLesle May 20, 2022
e0aa230
Update storage account attributes
LaurentLesle May 20, 2022
54841ab
Update to azurerm_resource_group_template_deployment
LaurentLesle May 20, 2022
26ad0b1
Update attributes
LaurentLesle May 20, 2022
38fe48b
Merge remote-tracking branch 'origin/patch.3.0' into int-azrm-3.7.0
LaurentLesle May 20, 2022
3399cf2
Update for 3.7.0
LaurentLesle May 20, 2022
9ab85df
Update aks, nsg and synapse for 3.7.0
LaurentLesle May 24, 2022
62485fe
Merge remote-tracking branch 'origin/main' into int-azrm-3.7.0
LaurentLesle May 24, 2022
f6af0fc
Merge remote-tracking branch 'origin' into int-azrm-3.7.0
LaurentLesle May 30, 2022
b6d81b3
Merge remote-tracking branch 'origin/sm-vmssextension' into int-azrm-…
LaurentLesle May 30, 2022
f0c946d
Add support remote network profile
LaurentLesle May 31, 2022
96d1970
Merge branch 'main' into int-azrm-3.7.0
arnaudlh Aug 12, 2022
8224a3a
Update to azurerm 3.9.0
arnaudlh Aug 17, 2022
a8ed979
Merge remote-tracking branch 'origin/main' into int-azrm-3.7.0
arnaudlh Sep 28, 2022
311edd6
Updating to Terraform 1.3
arnaudlh Sep 28, 2022
e5f71b1
Udpate rover
arnaudlh Oct 3, 2022
70ca1fc
Merge branch 'main' into int-azrm-3.7.0
arnaudlh Oct 5, 2022
4b082f9
Revert "Update to azurerm_resource_group_template_deployment"
arnaudlh Oct 5, 2022
4aa2b60
Restore legacy azurerm_template_deployment objects
arnaudlh Oct 6, 2022
c6ee1ac
Examples update
arnaudlh Oct 6, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/standalone-scenarios.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
"compute/virtual_machine_scale_set/101-linux-win-vmss-agw",
"compute/virtual_machine_scale_set/102-linux-win-vmss-custom-script-extension",
"compute/virtual_machine_scale_set/104-linux-win-vmss-as-lb",
"compute/virtual_machine_scale_set/106-linux-win-vmss-lb",
"compute/virtual_machine_scale_set/106-vmss_monitoring",
"compute/virtual_machine_scale_set/106-linux-win-vmss-lb",
"compute/virtual_machine_scale_set/107-linux-win-vmss-application-health-extension",
"compute/virtual_machine_scale_set/108-linux-win-vmss-keyvault-extension",
"compute/virtual_machine/101-single-windows-vm",
Expand Down Expand Up @@ -100,12 +100,12 @@
"databricks/101-standard-databricks-vnet",
"databricks/102-premium-aml",
"datalake/101-datalake-storage",
"diagnostics_profiles/100-multiple-destinations",
"diagnostics_profiles/200-diagnostics-eventhub-namespaces",
"diagnostics_profiles/201-multi-eventhub-diagnostics",
"digital_twins/100-basic",
"digital_twins/101-adt-servicebus",
"digital_twins/102-digital_twins_instance_eventhub",
"diagnostics_profiles/100-multiple-destinations",
"diagnostics_profiles/200-diagnostics-eventhub-namespaces",
"diagnostics_profiles/201-multi-eventhub-diagnostics",
"eventhub/100-simple-eventhub-namespace",
"eventhub/101-evh-namespace-with-private-endpoint",
"eventhub/102-namespace-and-evh-with-auth-rules",
Expand Down
55 changes: 51 additions & 4 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,24 @@

When upgrading to a newer version of the CAF module, some configuration structures must be updated before applying the modifications.

## 5.7.0

Minimum rover version of 1.1.x. Lower versions not supported anymore.

Version 5.6.0 includes support for azurerm 3.7.0 which requires your attention if you are deploying the following components:

- vpn_gateway_connections:
- The deprecated field ```propagated_route_tables``` will be removed in favour of the ```propagated_route_table``` property. If you've been using ```propagated_route_tables```, rename with the new name ```propagated_route_table```.

## 5.6.0

Version 5.6.0 includes support for azurerm 2.99 which requires your attention if you are deploying the following components:
Version 5.6.0 includes support for azurerm 2.98 which requires your attention if you are deploying the following components:

- signal_r:
- The ```features``` block is deprecated, favor of use ```connectivity_logs_enabled```, ```messaging_logs_enabled```, ```live_trace_enabled``` and ```service_mode``` instead. Module has been updated to reflect that. You must update the settings in your configuration file accordingly.

- data factory:
- The `data_factory_name` reference method is deprecated in favour of `data_factory_id` and will be removed in version 3.0 of the AzureRM provider.
- The `data_factory_name` reference method is deprecated in favour of `data_factory_id` and has been removed.
- If you are referencing literals for data factory name inside ```data_factory.datasets``` (azure_blob, cosmosdb_sqlapi, delimited_text, http, json, mysql, postgresql, sql_server_table) or ```data_factory.linked_services``` (azure_blob_storage, cosmosdb, web, mysql, postgresql, key_vault) you will need to update to use the ```id``` attribute instead of ```name```.
- **If you are referencing objects with ```key``` and ```lz_key``` inside your model, you dont need to update anything.**

Expand All @@ -21,8 +30,46 @@ Version 5.6.0 includes support for azurerm 2.99 which requires your attention if
- **If you are referencing objects with ```key``` and ```lz_key``` inside your model, you dont need to update anything.**

- apim:
- The ```proxy``` block is deprecated in favour of `gateway` and will be removed in version 3.0 of the AzureRM provider.
- Azurerm 2.98 does not have ```gateway``` implemented yet, even with ```ARM_THREEPOINTZERO_BETA_RESOURCES=true```
- The ```proxy``` block is deprecated in favour of `gateways` to support multiple gateways. See example apim/109

from
```hcl
api_management_custom_domain = {
apimcd1 = {
api_management = {
key = "apim1"
}
proxy = {
host_name = "api.example.com"
key_vault_certificate = {
certificate_request_key = "example"
}
}
}
}
```

to

```hcl
api_management_custom_domain = {
apimcd1 = {
api_management = {
key = "apim1"
}
gateways = {
gw1 = {
{
host_name = "api.example.com"
key_vault_certificate = {
certificate_request_key = "example"
}
}
}
}
}
}
```

- azure virtual desktop:
- azurerm 2.97 addedd support for new token method - azurerm_virtual_desktop_host_pool_registration_info - updated and should be transparent.
Expand Down
23 changes: 9 additions & 14 deletions data_factory.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ module "data_factory_pipeline" {
global_settings = local.global_settings
client_config = local.client_config
settings = each.value

resource_group_name = can(each.value.resource_group.name) || can(each.value.resource_group_name) ? try(each.value.resource_group.name, each.value.resource_group_name) : local.combined_objects_resource_groups[try(local.client_config.landingzone_key, each.value.resource_group.lz_key)][try(each.value.resource_group_key, each.value.resource_group.key)].name
data_factory_id = can(each.value.data_factory.id) ? each.value.data_factory.id : local.combined_objects_data_factory[try(local.client_config.landingzone_key, each.value.data_factory.lz_key)][try(each.value.data_factory.key, each.value.data_factory_key)].id
data_factory_id = can(each.value.data_factory.id) ? each.value.data_factory.id : local.combined_objects_data_factory[try(local.client_config.landingzone_key, each.value.data_factory.lz_key)][try(each.value.data_factory.key, each.value.data_factory_key)].id
}

output "data_factory_pipeline" {
Expand All @@ -52,9 +50,8 @@ module "data_factory_trigger_schedule" {
client_config = local.client_config
settings = each.value

resource_group_name = can(each.value.resource_group.name) || can(each.value.resource_group_name) ? try(each.value.resource_group.name, each.value.resource_group_name) : local.combined_objects_resource_groups[try(local.client_config.landingzone_key, each.value.resource_group.lz_key)][try(each.value.resource_group_key, each.value.resource_group.key)].name
data_factory_id = can(each.value.data_factory.id) ? each.value.data_factory.id : local.combined_objects_data_factory[try(local.client_config.landingzone_key, each.value.data_factory.lz_key)][try(each.value.data_factory.key, each.value.data_factory_key)].id
pipeline_name = can(each.value.data_factory_pipeline.name) ? each.value.data_factory_pipeline.name : local.combined_objects_data_factory_pipeline[try(each.value.data_factory_pipeline.lz_key, local.client_config.landingzone_key)][each.value.data_factory_pipeline.key].name
data_factory_id = can(each.value.data_factory.id) ? each.value.data_factory.id : local.combined_objects_data_factory[try(local.client_config.landingzone_key, each.value.data_factory.lz_key)][try(each.value.data_factory.key, each.value.data_factory_key)].id
pipeline_name = can(each.value.data_factory_pipeline.name) ? each.value.data_factory_pipeline.name : local.combined_objects_data_factory_pipeline[try(each.value.data_factory_pipeline.lz_key, local.client_config.landingzone_key)][each.value.data_factory_pipeline.key].name

}

Expand All @@ -66,11 +63,10 @@ module "data_factory_integration_runtime_self_hosted" {
source = "./modules/data_factory/data_factory_integration_runtime_self_hosted"
for_each = local.data_factory.data_factory_integration_runtime_self_hosted

global_settings = local.global_settings
client_config = local.client_config
settings = each.value
data_factory_id = can(each.value.data_factory.id) ? each.value.data_factory.id : local.combined_objects_data_factory[try(local.client_config.landingzone_key, each.value.data_factory.lz_key)][try(each.value.data_factory.key, each.value.data_factory_key)].id
resource_group_name = can(each.value.resource_group.name) || can(each.value.resource_group_name) ? try(each.value.resource_group.name, each.value.resource_group_name) : local.combined_objects_resource_groups[try(local.client_config.landingzone_key, each.value.resource_group.lz_key)][try(each.value.resource_group_key, each.value.resource_group.key)].name
global_settings = local.global_settings
client_config = local.client_config
settings = each.value
data_factory_id = can(each.value.data_factory.id) ? each.value.data_factory.id : local.combined_objects_data_factory[try(local.client_config.landingzone_key, each.value.data_factory.lz_key)][try(each.value.data_factory.key, each.value.data_factory_key)].id

remote_objects = {
data_factory = local.combined_objects_data_factory
Expand All @@ -89,9 +85,8 @@ module "data_factory_integration_runtime_azure_ssis" {
client_config = local.client_config
settings = each.value

data_factory_id = can(each.value.data_factory.id) ? each.value.data_factory.id : local.combined_objects_data_factory[try(local.client_config.landingzone_key, each.value.data_factory.lz_key)][try(each.value.data_factory.key, each.value.data_factory_key)].id
resource_group_name = can(each.value.resource_group.name) || can(each.value.resource_group_name) ? try(each.value.resource_group.name, each.value.resource_group_name) : local.combined_objects_resource_groups[try(local.client_config.landingzone_key, each.value.resource_group.lz_key)][try(each.value.resource_group_key, each.value.resource_group.key)].name
location = can(local.global_settings.regions[each.value.region]) ? local.global_settings.regions[each.value.region] : local.combined_objects_resource_groups[try(local.client_config.landingzone_key, each.value.resource_group.lz_key)][try(each.value.resource_group.key, each.value.resource_group_key)].location
data_factory_id = can(each.value.data_factory.id) ? each.value.data_factory.id : local.combined_objects_data_factory[try(local.client_config.landingzone_key, each.value.data_factory.lz_key)][try(each.value.data_factory.key, each.value.data_factory_key)].id
location = can(local.global_settings.regions[each.value.region]) ? local.global_settings.regions[each.value.region] : local.combined_objects_resource_groups[try(local.client_config.landingzone_key, each.value.resource_group.lz_key)][try(each.value.resource_group.key, each.value.resource_group_key)].location


remote_objects = {
Expand Down
8 changes: 0 additions & 8 deletions data_factory_datasets.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ module "data_factory_dataset_azure_blob" {
global_settings = local.global_settings
client_config = local.client_config
settings = each.value
resource_group_name = can(each.value.resource_group.name) || can(each.value.resource_group_name) ? try(each.value.resource_group.name, each.value.resource_group_name) : local.combined_objects_resource_groups[try(local.client_config.landingzone_key, each.value.resource_group.lz_key)][try(each.value.resource_group_key, each.value.resource_group.key)].name
data_factory_id = can(each.value.data_factory.id) ? each.value.data_factory.id : local.combined_objects_data_factory[try(each.value.data_factory.lz_key, local.client_config.landingzone_key)][each.value.data_factory.key].id
linked_service_name = can(each.value.linked_service.name) ? each.value.linked_service.name : local.combined_objects_data_factory_linked_service_azure_blob_storage[try(each.value.linked_service.lz_key, local.client_config.landingzone_key)][each.value.linked_service.key].name
}
Expand All @@ -24,7 +23,6 @@ module "data_factory_dataset_cosmosdb_sqlapi" {
global_settings = local.global_settings
client_config = local.client_config
settings = each.value
resource_group_name = can(each.value.resource_group.name) || can(each.value.resource_group_name) ? try(each.value.resource_group.name, each.value.resource_group_name) : local.combined_objects_resource_groups[try(local.client_config.landingzone_key, each.value.resource_group.lz_key)][try(each.value.resource_group_key, each.value.resource_group.key)].name
data_factory_id = can(each.value.data_factory.id) ? each.value.data_factory.id : local.combined_objects_data_factory[try(each.value.data_factory.lz_key, local.client_config.landingzone_key)][each.value.data_factory.key].id
linked_service_name = can(each.value.linked_service.name) ? each.value.linked_service.name : local.combined_objects_data_factory_linked_service_cosmosdb[try(each.value.linked_service.lz_key, local.client_config.landingzone_key)][each.value.linked_service.key].name
}
Expand All @@ -42,7 +40,6 @@ module "data_factory_dataset_delimited_text" {
global_settings = local.global_settings
client_config = local.client_config
settings = each.value
resource_group_name = can(each.value.resource_group.name) || can(each.value.resource_group_name) ? try(each.value.resource_group.name, each.value.resource_group_name) : local.combined_objects_resource_groups[try(local.client_config.landingzone_key, each.value.resource_group.lz_key)][try(each.value.resource_group_key, each.value.resource_group.key)].name
data_factory_id = can(each.value.data_factory.id) ? each.value.data_factory.id : local.combined_objects_data_factory[try(each.value.data_factory.lz_key, local.client_config.landingzone_key)][each.value.data_factory.key].id
linked_service_name = can(each.value.linked_service.name) ? each.value.linked_service.name : local.combined_objects_data_factory_linked_service_web[try(each.value.linked_service.lz_key, local.client_config.landingzone_key)][each.value.linked_service.key].name

Expand All @@ -60,7 +57,6 @@ module "data_factory_dataset_http" {
global_settings = local.global_settings
client_config = local.client_config
settings = each.value
resource_group_name = can(each.value.resource_group.name) || can(each.value.resource_group_name) ? try(each.value.resource_group.name, each.value.resource_group_name) : local.combined_objects_resource_groups[try(local.client_config.landingzone_key, each.value.resource_group.lz_key)][try(each.value.resource_group_key, each.value.resource_group.key)].name
data_factory_id = can(each.value.data_factory.id) ? each.value.data_factory.id : local.combined_objects_data_factory[try(each.value.data_factory.lz_key, local.client_config.landingzone_key)][each.value.data_factory.key].id
linked_service_name = can(each.value.linked_service.name) ? each.value.linked_service.name : local.combined_objects_data_factory_linked_service_web[try(each.value.linked_service.lz_key, local.client_config.landingzone_key)][each.value.linked_service.key].name

Expand All @@ -78,7 +74,6 @@ module "data_factory_dataset_json" {
global_settings = local.global_settings
client_config = local.client_config
settings = each.value
resource_group_name = can(each.value.resource_group.name) || can(each.value.resource_group_name) ? try(each.value.resource_group.name, each.value.resource_group_name) : local.combined_objects_resource_groups[try(local.client_config.landingzone_key, each.value.resource_group.lz_key)][try(each.value.resource_group_key, each.value.resource_group.key)].name
data_factory_id = can(each.value.data_factory.id) ? each.value.data_factory.id : local.combined_objects_data_factory[try(each.value.data_factory.lz_key, local.client_config.landingzone_key)][each.value.data_factory.key].id
linked_service_name = can(each.value.linked_service.name) ? each.value.linked_service.name : local.combined_objects_data_factory_linked_service_web[try(each.value.linked_service.lz_key, local.client_config.landingzone_key)][each.value.linked_service.key].name

Expand All @@ -96,7 +91,6 @@ module "data_factory_dataset_mysql" {
global_settings = local.global_settings
client_config = local.client_config
settings = each.value
resource_group_name = can(each.value.resource_group.name) || can(each.value.resource_group_name) ? try(each.value.resource_group.name, each.value.resource_group_name) : local.combined_objects_resource_groups[try(local.client_config.landingzone_key, each.value.resource_group.lz_key)][try(each.value.resource_group_key, each.value.resource_group.key)].name
data_factory_id = can(each.value.data_factory.id) ? each.value.data_factory.id : local.combined_objects_data_factory[try(each.value.data_factory.lz_key, local.client_config.landingzone_key)][each.value.data_factory.key].id
linked_service_name = can(each.value.linked_service.name) ? each.value.linked_service.name : local.combined_objects_data_factory_linked_service_mysql[try(each.value.linked_service.lz_key, local.client_config.landingzone_key)][each.value.linked_service.key].name

Expand All @@ -114,7 +108,6 @@ module "data_factory_dataset_postgresql" {
global_settings = local.global_settings
client_config = local.client_config
settings = each.value
resource_group_name = can(each.value.resource_group.name) || can(each.value.resource_group_name) ? try(each.value.resource_group.name, each.value.resource_group_name) : local.combined_objects_resource_groups[try(local.client_config.landingzone_key, each.value.resource_group.lz_key)][try(each.value.resource_group_key, each.value.resource_group.key)].name
data_factory_id = can(each.value.data_factory.id) ? each.value.data_factory.id : local.combined_objects_data_factory[try(each.value.data_factory.lz_key, local.client_config.landingzone_key)][each.value.data_factory.key].id
linked_service_name = can(each.value.linked_service.name) ? each.value.linked_service.name : local.combined_objects_data_factory_linked_service_postgresql[try(each.value.linked_service.lz_key, local.client_config.landingzone_key)][each.value.linked_service.key].name

Expand All @@ -133,7 +126,6 @@ module "data_factory_dataset_sql_server_table" {
global_settings = local.global_settings
client_config = local.client_config
settings = each.value
resource_group_name = can(each.value.resource_group.name) || can(each.value.resource_group_name) ? try(each.value.resource_group.name, each.value.resource_group_name) : local.combined_objects_resource_groups[try(local.client_config.landingzone_key, each.value.resource_group.lz_key)][try(each.value.resource_group_key, each.value.resource_group.key)].name
data_factory_id = can(each.value.data_factory.id) ? each.value.data_factory.id : local.combined_objects_data_factory[try(each.value.data_factory.lz_key, local.client_config.landingzone_key)][each.value.data_factory.key].id
linked_service_name = can(each.value.linked_service.name) ? each.value.linked_service.name : local.combined_objects_data_factory_linked_service_sql_server[try(each.value.linked_service.lz_key, local.client_config.landingzone_key)][each.value.linked_service.key].name

Expand Down
Loading