diff --git a/CHANGELOG.md b/CHANGELOG.md index a51789d9e..868c65042 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,14 @@ BUG FIXES: - Fix a bug that `ignore_body_changes` incorrectly removes tags. +NOTICE: +- Provider field `default_naming_prefix` and `default_naming_suffix` are deprecated. It will not work in the next minor release and will be removed in the next major release. + Please specify the naming prefix and suffix in the resource's `name` field instead. +- The `azapi_resource`'s `removing_special_chars` field is deprecated. It will not work in the next minor release and will be removed in the next major release. + Please specify the `name` field and remove the special characters in the `name` field instead. +- Defining the `identity` inside the `body` field is not recommended. In the next minor release, it will not sync the `identity` inside the `body` field to `identity` block. + Please define the `identity` block instead. + ## v1.11.0 ENHANCEMENTS: - `azapi_resource_action` resource: Support `HEAD` method. diff --git a/internal/azure/resourceName/resourceName.go b/internal/azure/resourceName/resourceName.go index d110e48b0..ef775c4b4 100644 --- a/internal/azure/resourceName/resourceName.go +++ b/internal/azure/resourceName/resourceName.go @@ -23,6 +23,7 @@ func SchemaResourceNamePrefix() *schema.Schema { return &schema.Schema{ Type: schema.TypeString, Optional: true, + Deprecated: "It will not work in the next minor release and will be removed in the next major release. Please specify the naming prefix and suffix in the resource's `name` field instead.", ConflictsWith: []string{"default_name"}, } } @@ -31,14 +32,16 @@ func SchemaResourceNameSuffix() *schema.Schema { return &schema.Schema{ Type: schema.TypeString, Optional: true, + Deprecated: "It will not work in the next minor release and will be removed in the next major release. Please specify the naming prefix and suffix in the resource's `name` field instead.", ConflictsWith: []string{"default_name"}, } } func SchemaResourceNameRemovingSpecialCharacters() *schema.Schema { return &schema.Schema{ - Type: schema.TypeBool, - Optional: true, - Default: false, + Type: schema.TypeBool, + Optional: true, + Deprecated: "It will not work in the next minor release and will be removed in the next major release. Please specify the `name` field and remove the special characters in the `name` field instead.", + Default: false, } }