This pull request includes multiple changes to the Terraform configuration and environment setup scripts. The primary focus is on updating the Azure provider version, modifying resource configurations, and ensuring compatibility with the new provider version.
Terraform Configuration Changes:
Update Azure Provider Version:
Upgraded azurerm provider version from ~> 3.113.0 to ~> 4.3.0 in infra/providers.tf.
Changed skip_provider_registration to resource_provider_registrations = "none" in infra/providers.tf.
Resource Configuration Adjustments:
Modified azurerm_cognitive_deployment resource to use sku block instead of scale block in infra/core/ai/openaiservices/openaiservices.tf.
Updated azurerm_storage_account resource to use https_traffic_only_enabled instead of enable_https_traffic_only in infra/core/storage/storage-account.tf.
Changed module "openaiServices" to use sku block for chatGptModel and azureOpenAIEmbeddingsModel in infra/main.tf. [1][2]
Environment Setup Script Changes:
Environment Variable Updates:
Added SUBSCRIPTION_ID to scripts/environments/local.env.example to ensure it is set for local environments.
Exported ARM_SUBSCRIPTION_ID in scripts/load-env.sh to comply with the mandatory subscription ID requirement for Terraform AzureRM provider 4.x.x.
This pull request includes multiple changes to the Terraform configuration and environment setup scripts. The primary focus is on updating the Azure provider version, modifying resource configurations, and ensuring compatibility with the new provider version.
Terraform Configuration Changes:
Update Azure Provider Version:
azurerm
provider version from~> 3.113.0
to~> 4.3.0
ininfra/providers.tf
.skip_provider_registration
toresource_provider_registrations = "none"
ininfra/providers.tf
.Resource Configuration Adjustments:
azurerm_cognitive_deployment
resource to usesku
block instead ofscale
block ininfra/core/ai/openaiservices/openaiservices.tf
.azurerm_storage_account
resource to usehttps_traffic_only_enabled
instead ofenable_https_traffic_only
ininfra/core/storage/storage-account.tf
.module "openaiServices"
to usesku
block forchatGptModel
andazureOpenAIEmbeddingsModel
ininfra/main.tf
. [1] [2]Environment Setup Script Changes:
Environment Variable Updates:
SUBSCRIPTION_ID
toscripts/environments/local.env.example
to ensure it is set for local environments.ARM_SUBSCRIPTION_ID
inscripts/load-env.sh
to comply with the mandatory subscription ID requirement for Terraform AzureRM provider 4.x.x.fixes #862