Releases: Azure/terraform-provider-azapi
Releases · Azure/terraform-provider-azapi
v2.7.0
ENHANCEMENTS:
azapi_resourceresource: Refactor move-state logic to centrally derive ARM IDs from data-plane IDs for selected azurerm resources.- Add more verified 
azapiexamples. - Add documentation for choosing the resource type.
 azapi_resourcedata source: Supportignore_not_foundargument andexistscomputed field to optionally suppress 404 errors and expose resource existence.azapiprovider: Support for disabling instance discovery via newdisable_instance_discoveryprovider argument andARM_DISABLE_INSTANCE_DISCOVERYenvironment variable (GH-964).azapiprovider: Support for explicitcustomenvironment configuration where endpoints must be manually specified (GH-964).- Update bicep types to ms-henglu/bicep-types-az@6b9ca69
 
BUG FIXES:
azapi_client_configdata source: Fix a bug that specified subscription ID should not be overridden by Azure CLI default subscription ID.azapi_resourceresource: Support moving fromazurerm_storage_containerwhoseidis a data-plane URL by leveraging theresource_manager_idattribute (GH-955).azapi_resourceresource: Support moving fromazurerm_key_vault_secretwhoseidis a data-plane URL by leveraging theresource_versionless_idattribute (GH-917).azapi_resourceresource: Support moving fromazurerm_key_vault_keywhoseidis a data-plane URL by leveraging theresource_versionless_idattribute.- Fix panic in retry policy when HTTP response is nil (GH-985).
 
v2.6.1
DEPRECATIONS:
azapiprovider: Themaximum_busy_retry_attemptsfield is deprecated and will be removed in the next major release. Please remove them from theazapiprovider block. The provider will use the default value for this field.
BUG FIXES:
- Fix a regression issue when authenticating via Managed Identity (MSI).
 - Fix a regression issue that default retry policy doesn't work.
 
v2.6.0
DEPRECATIONS:
retryblock: Themultiplierandrandomization_factorare deprecated and will be removed in the next major release. Please remove them from theretryblock. The provider will use the default values for these fields.
ENHANCEMENTS:
- Use 
aztfauthfor the shared authentication logic. - Update bicep types to ms-henglu/bicep-types-az@a3cf29c
 
BUG FIXES:
- Fix a bug that invalid resource ID containing 
|character is not detected when validating the configuration. - Fix a bug that schema validation fails to validate when the discriminator field is unknown.
 - Fix the crash that occurs when the 
identity.typereturns a value that is not a string. 
v2.5.0
ENHANCEMENTS:
azapi_resourceresource: ignore the changes when thebodyfield matches the remote state even if thebodyfield orapi-versionfield is changed.azapi_resourceresource: ignore the order of theidentity_idsarray.azapi_resourceresource: supportignore_null_propertyfield, which is used to ignore the null properties in thebodyfield.azapi_resourceresource: supportsensitive_body_versionfield, which is used to manually control the version of the sensitive body.azapi_update_resourceresource: remove the readonly fields fromidentity.userAssignedIdentitiesin the request body.- Update bicep types to ms-henglu/bicep-types-az@a50156f
 
BUG FIXES:
- Fix a bug that schema validation fails to validate unknown string values when both 
bodyandsensitive_bodyare specified. - Fix a bug that 
azapi_update_resourcedoes not update the correct items in an array when the order of the items is different from the remote state. - Update the list of readonly fields which should be excluded from the default output.
 
v2.4.0
FEATURES:
- New Provider Function: unique_string
 
ENHANCEMENTS:
azapi_resourceresource: Support schema validation interraform validate.azapi_resourceresource: Preflight validation supports nested resources.azapiresources/data sources: SupportUser-Agentheader, which is used to specify the user agent which is appended to the default user agent.azapi_resource,azapi_update_resourceresources: Supportsensitive_bodyfield, which is used to specify the write-only properties in the request body.- Update bicep types to ms-henglu/bicep-types-az@0ce6ee9
 
BUG FIXES:
- Fix a bug that 
azapi_update_resourceresource produced inconsistent results when onlyerror_message_regexis changed. - Fix a bug that 
azapi_resource_actionresource could not be migrated correctly when thebodyis empty string. - Fix a bug that after moving resource from 
azurermprovider, theazapi_resourceresource could not be updated correctly. - Fix a bug that 
azapi_resourceis replaced if the API returns a readonly location. - Fix a bug that resource group's api-version 
2024-11-01is disabled in the provider. 
v2.3.0
FEATURES:
- New Ephemeral Resource: azapi_resource_action
 
ENHANCEMENTS:
azapiprovider: Theoidc_azure_service_connection_idfield can be sourced from theARM_ADO_PIPELINE_SERVICE_CONNECTION_IDorARM_OIDC_AZURE_SERVICE_CONNECTION_IDEnvironment Variables.azapiprovider: Theenable_preflightfield can be sourced from theARM_ENABLE_PREFLIGHTEnvironment Variable.azapiprovider: Thedisable_default_outputfield can be sourced from theARM_DISABLE_DEFAULT_OUTPUTEnvironment Variable.azapiprovider: Supportmaximum_busy_retry_attemptsfield, which is used to specify the maximum number of busy retry attempts if the Azure API returns an HTTP 408, 429, 500, 502, 503, or 504 response.azapi_resource_actionresource, data source: Supportsensitive_response_export_valuesfield, which is used to specify the sensitive fields to export.azaapi_resource_actionresource, data source: Supportsensitive_outputfield, which is a sensitive computed field that contains the fields exported bysensitive_response_export_values.- Update bicep types to ms-henglu/bicep-types-az@c4c1c04
 azapiresources: Skip external requests when no resource changes are detected.
BUG FIXES:
- Fix a bug that query parameters and headers don't work properly with unknown values
 - Fix more edge cases that the provider produced inconsistent result after apply when default output feature is enabled.
 - Fix a bug that when moving resource from 
azurermresource, the id could not be parsed correctly. - Fix a bug that custom retry configuration doesn't override the default retry configuration.
 
v2.2.0
ENHANCEMENTS:
azapi_resourceresource: Improved 403 handling for management group resources to include child resources- Update bicep types to ms-henglu/bicep-types-az@4da2e19
 
BUG FIXES:
- Fix a bug that the provider produced inconsistent result after apply when default output feature is enabled.
Notice: Terraform will detect theoutputfield's changes made outside of Terraform since the last "terraform apply". You can runterraform refreshto update the state file with the latest values. - Fix a bug that the GET after PUT retry timeout doesn't work properly when the environment variable is set.
 
v2.1.0
FEATURES:
azapi_resourceresource: Support resource move operation, it allows moving resources fromazurermprovider.
ENHANCEMENTS:
azapi_client_configdata source: Supportobject_idfield.- Update bicep types to ms-henglu/bicep-types-az@401bed5
 
BUG FIXES:
- Fix a bug when 
bodycontains an unknown float number, the provider will crash. - Fix the crash that occurs when no tenant ID is configured in Azure CLI.
 - Fix a bug that using multiple locks can result in a deadlock.
 
v2.0.1
NOTES
- Major Version: Version 2.0 of the AzAPI Provider is a major version - some behaviours have changed and some deprecated fields/resources have been removed - please refer to the 2.0 upgrade guide for more information.
 - When upgrading to v2.0 of the AzAPI Provider, we recommend upgrading to the latest version of Terraform Core (which can be found here).
 
BREAKING CHANGES
azapi_resource,azapi_update_resourceresources and data sources'outputfield defaults to the readonly fields when theresponse_export_valuesis not specified.azapi_resource_listdata source'soutputfield defaults to the response when theresponse_export_valuesis not specified.- Provider field 
default_naming_prefixanddefault_naming_suffixare removed. Please specify the naming prefix and suffix in the resource'snamefield instead. - Provider field 
enable_hcl_output_for_data_sourceis removed. Theoutputfield in the data source is always in HCL format. - The 
azapi_resource'sremoving_special_charsfield is removed. Please specify thenamefield and remove the special characters in thenamefield instead. - The 
ignore_body_changesfield is removed. Please use thelifecyle.ignore_changesto ignore some properties when comparing the resource with its current state. - The 
bodyfield now only accepts an HCL object. Please remove thejsonencodefunction when using thebodyfield. - The 
outputfield now only exports an HCL object. Please remove thejsondecodefunction when using theoutputfield. - The 
use_msifield now defaults tofalse, please set it totrueexplicitly if you want to authenticate using Managed Service Identity. 
ENHANCEMENTS:
azapi_data_plane_resourceresource: SupportMicrosoft.Purview/accounts/Scanning/managedvirtualnetworkstype.- Support a default retry policy that retries when GET request fails with 404 status code after resource creation.
 azapiprovider: Supportdisable_default_outputfield, which is used to disable the default output for the resources and data sources.- Update bicep types to ms-henglu/bicep-types-az@c3ff45d
 
BUG FIXES:
- Fix a bug that non-standard LRO error responses are not handled properly.
 
v2.0.0-beta
BREAKING CHANGES:
- Provider field 
default_naming_prefixanddefault_naming_suffixare removed. Please specify the naming prefix and suffix in the resource'snamefield instead. - Provider field 
enable_hcl_output_for_data_sourceis removed. Theoutputfield in the data source is always in HCL format. - The 
azapi_resource'sremoving_special_charsfield is removed. Please specify thenamefield and remove the special characters in thenamefield instead. - The 
ignore_body_changesfield is removed. Please use thelifecyle.ignore_changesto ignore some properties when comparing the resource with its current state. - The 
bodyfield now only accepts an HCL object. Please remove thejsonencodefunction when using thebodyfield. - The 
outputfield now only exports an HCL object. Please remove thejsondecodefunction when using theoutputfield. - The 
use_msifield now defaults tofalse, please set it totrueexplicitly if you want to authenticate using Managed Service Identity. 
FEATURES:
- New Provider Function: build_resource_id
 - New Provider Function: parse_resource_id
 - New Provider Function: subscription_resource_id
 - New Provider Function: tenant_resource_id
 - New Provider Function: management_group_resource_id
 - New Provider Function: resource_group_resource_id
 - New Provider Function: extension_resource_id
 
ENHANCEMENTS:
azapiprovider: Supportenable_preflightfield, which is used to enable Preflight Validation, the default value isfalse.azapi_resourceandazapi_data_plane_resourceresource: Supportreplace_triggers_external_valuesfield which is used to trigger a replacement of the resource.azapi_resourceandazapi_data_plane_resourceresource: Supportreplace_triggers_refsfield which is used to trigger a replacement of the resource.azapiresources and data sources: Supportretryfield, which is used to specify the retry configuration.azapiresources and data sources: Supportheadersandquery_parametersfields, which are used to specify the headers and query parameters.azapiresources and data sources: Theresponse_export_valuesfield supports JMESPath expressions.- Accept 
AZURE_CLIENT_IDandAZURE_TENANT_IDenvironment variables when authenticating using AKS workload identity. azapiprovider: Supportoidc_azure_service_connection_idfield, which is used to specify the Azure Service Connection ID for OIDC authentication with Azure DevOps.- Update bicep types to ms-henglu/bicep-types-az@7492c6d