-
Notifications
You must be signed in to change notification settings - Fork 5k
azurerm_ai_services - mark as deprecated for 5.0
#31809
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
base: main
Are you sure you want to change the base?
Changes from all commits
8d0084e
06b4555
ab5acc2
bad3e53
7974a7e
46dffe7
c6a9706
59ac194
7e9597f
26ba93b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,6 +38,7 @@ More information on [how to pin the version of a Terraform Provider being used c | |
| ## What's changed in Version 5.0 of the Azure Provider? | ||
|
|
||
| * [Resource Provider Registration Changes](#resource-provider-registration-changes) | ||
| * [Migration Guide for `azurerm_ai_services`](#migration-guide-for-removed-azurerm_ai_services-resource) | ||
| * [Removed Resources](#removed-resources) | ||
| * [Removed Data Sources](#removed-data-sources) | ||
| * [Breaking Changes in Resources](#breaking-changes-in-resources) | ||
|
|
@@ -111,6 +112,20 @@ This change was made because: | |
|
|
||
| The legacy `ARM_PROVIDER_ENHANCED_VALIDATION` environment variable, which previously controlled both location and resource provider validation, has been removed in version 5.0. Please migrate to either the `enhanced_validation` provider block or the specific environment variables: `ARM_PROVIDER_ENHANCED_VALIDATION_LOCATIONS` and `ARM_PROVIDER_ENHANCED_VALIDATION_RESOURCE_PROVIDERS`. | ||
|
|
||
| ## Migration guide for removed `azurerm_ai_services` resource | ||
|
|
||
| The `azurerm_ai_services` resource has been removed and replaced by `azurerm_cognitive_account`. The table below lists the attributes that have changed; all other attributes are carried over unchanged. | ||
|
|
||
| | `azurerm_ai_services` | `azurerm_cognitive_account` | Notes | | ||
| |-----------------------|-----------------------------|-------| | ||
| | (not present) | `kind` | **Required**. Set to `"AIServices"` to match the behaviour of `azurerm_ai_services`. | | ||
| | `local_authentication_enabled` | `local_auth_enabled` | **Renamed**. Both default to `true`. | | ||
| | `public_network_access` | `public_network_access_enabled` | **Changed type**. String (`"Enabled"` / `"Disabled"`) → Boolean (`true` / `false`). Defaults to `true`. | | ||
| | (not present) | `project_management_enabled` |**Required**. Set to `true` to match the behaviour of `azurerm_ai_services`. | | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's not a "REQUIRED" field but it's required to be set to I may change the wording to
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To add some more context,
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah got it thanks! Also noted we already got a CustomizeDiff check for this in internal/services/cognitive/cognitive_account_resource.go if d.Get("project_management_enabled").(bool) {
if kind != "AIServices" {
return errors.New("`project_management_enabled` can only be set to `true` when `kind` is set to `AIServices`")
} |
||
| | `customer_managed_key.managed_hsm_key_id` | (not present) | Use `customer_managed_key.key_vault_key_id` property, it can accept both regular and HSM key id. | | ||
|
|
||
| ~> **Note:** If your configuration included a `storage` block under `azurerm_ai_services`, `terraform plan` may show changes after migration even though the Azure resource itself has not changed. This occurs because `azurerm_ai_services` silently ignored the `storage` block and never sent those values to the API, so the imported state does not reflect them. Running `terraform apply` will reconcile the state by applying the storage configuration for the first time. | ||
|
|
||
| ## Removed Resources | ||
|
|
||
| Please follow the format in the example below for adding removed resources: | ||
|
|
@@ -121,6 +136,10 @@ Please follow the format in the example below for adding removed resources: | |
| This deprecated resource has been superseded/retired and has been removed from the Azure Provider. | ||
| ``` | ||
|
|
||
| ### `azurerm_ai_services` | ||
|
|
||
| * This deprecated resource has been superseded by `azurerm_cognitive_account` and has been removed from the Azure Provider. | ||
|
|
||
| ### `azurerm_automation_software_update_configuration` | ||
|
|
||
| * This deprecated resource has been retired and has been removed from the Azure Provider. | ||
|
|
@@ -221,7 +240,6 @@ This deprecated resource has been superseded/retired and has been removed from t | |
|
|
||
| * This deprecated resource has been retired and has been removed from the Azure Provider. | ||
|
|
||
|
|
||
| ## Removed Data Sources | ||
|
|
||
| Please follow the format in the example below for adding removed data sources: | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.