Skip to content

Update Terraform azapi to v2#302

Open
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/azapi-2.x
Open

Update Terraform azapi to v2#302
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/azapi-2.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented Oct 29, 2024

This PR contains the following updates:

Package Type Update Change
azapi (source) required_provider major ~> 1.15.0~> 2.9.0

Release Notes

Azure/terraform-provider-azapi (azapi)

v2.9.0

Compare Source

ENHANCEMENTS:

  • azapi_update_resource resource: Support replace_triggers_external_values argument to trigger resource replacement based on external values.
  • azapi_data_plane_resource resource: Support sensitive_body and sensitive_body_version fields, which are used to specify the write-only properties in the request body.
  • azapi_resource_action resource: Support updating api-version without recreating the resource.
  • azapi_resource_action Support ignore_not_found argument to optionally suppress 404 errors and expose resource existence.
  • azapi_resource, azapi_update_resource resources: Support list_unique_id_property and ignore_other_items_in_list fields, which are used to manage list properties with unique identifiers (GH-1033).
  • azapi provider: Add Azure Government support for KeyVault resource manager audience endpoint (GH-996).
  • azapi_data_plane_resource resource: Support importing existing data plane resources via terraform import (GH-1053).
  • azapi_data_plane_resource resource: Add support for Microsoft.Foundry/agents (AI Foundry assistants) with customization and resource management (GH-1053).
  • parse_resource_id function: Add resource_group_id to the function output (GH-1065).
  • Update bicep types to ms-henglu/bicep-types-az@5c7a4c2

BUG FIXES:

  • Fix Missing Resource Identity After Update error for Terraform versions below 1.12 (GH-1023).
  • azapi_resource_action: Fix inconsistent result error when updating query_parameters with when = "destroy" (GH-1028).
  • azapi_resource resource: Fix embedded schema validation failure when the discriminator property is unknown (GH-1038).
  • azapi_data_plane_resource resource: Fix a bug that 204 status code is not supported as a success response (GH-1055).
  • Fix inconsistent result after apply when lastConnectivityTime field changes between create/update and read (GH-1062).
  • Fix a bug that auxiliary_tenant_ids are not passed to ARM client options for cross-tenant authentication (GH-1046).
  • Fix azapi_update_resource state migration missing replace_triggers_external_values field (GH-1071).
  • Fix RequiresReplaceIfNotNull plan modifier not handling typed null from HCL conditional expressions (GH-1070).

v2.8.0

Compare Source

FEATURES:

  • New Provider Function: snake2camel
  • New Action: azapi_resource_action - Perform stateless actions on Azure resources that can be invoked via Terraform action triggers

ENHANCEMENTS:

  • azapi_resource resource: Add support for identity-based import, enabling import via resource ID and type from list resource protocol.
  • azapi_resource resource: Support listing resources via new ListResource protocol.
  • azapi_resource resource: Support listing all resources in a resource group when type is omitted. Uses ARM API /subscriptions/{sub}/resourceGroups/{rg}/resources to enumerate all resources.
  • azapi_resource resource: Refactor import logic to support identity block and multiple import scenarios (ID only, ID with API version, ID and type).
  • azapi_data_plane_resource resource: Adds a customization layer which allows custom CRUD operations for resources that don't follow standard patterns.
  • azapi_data_plane_resource resource: Support Microsoft.KeyVault/vaults/keys type.
  • azapi_data_plane_resource resource: Support Microsoft.KeyVault/vaults/secrets type.
  • azapi_data_plane_resource resource: Support Microsoft.Search/searchServices/datasources type.
  • azapi_data_plane_resource resource: Support Microsoft.Search/searchServices/indexers type.
  • azapi_data_plane_resource resource: Support Microsoft.Search/searchServices/indexes type.
  • azapi_data_plane_resource resource: Support Microsoft.Search/searchServices/skillsets type.
  • azapi_data_plane_resource resource: Support Microsoft.Search/searchServices/synonymmaps type.
  • Bump Go version to 1.24.6 to address CVEs (GH-992).
  • Add more verified azapi examples.
  • Update bicep types to ms-henglu/bicep-types-az@c41a40c

BUG FIXES:

  • Fix validation logic for properties that are both ReadOnly and Required.
  • Fix panic when using sensitive_body_version with empty sensitive_body (GH-999).
  • Fix azapi_resource resource move from azurerm_storage_share by converting /fileshares/ to /shares/ in resource ID.

v2.7.0

Compare Source

ENHANCEMENTS:

  • azapi_resource resource: Refactor move-state logic to centrally derive ARM IDs from data-plane IDs for selected azurerm resources.
  • Add more verified azapi examples.
  • Add documentation for choosing the resource type.
  • azapi_resource data source: Support ignore_not_found argument and exists computed field to optionally suppress 404 errors and expose resource existence.
  • azapi provider: Support for disabling instance discovery via new disable_instance_discovery provider argument and ARM_DISABLE_INSTANCE_DISCOVERY environment variable (GH-964).
  • azapi provider: Support for explicit custom environment configuration where endpoints must be manually specified (GH-964).
  • Update bicep types to ms-henglu/bicep-types-az@6b9ca69

BUG FIXES:

  • azapi_client_config data source: Fix a bug that specified subscription ID should not be overridden by Azure CLI default subscription ID.
  • azapi_resource resource: Support moving from azurerm_storage_container whose id is a data-plane URL by leveraging the resource_manager_id attribute (GH-955).
  • azapi_resource resource: Support moving from azurerm_key_vault_secret whose id is a data-plane URL by leveraging the resource_versionless_id attribute (GH-917).
  • azapi_resource resource: Support moving from azurerm_key_vault_key whose id is a data-plane URL by leveraging the resource_versionless_id attribute.
  • Fix panic in retry policy when HTTP response is nil (GH-985).

v2.6.1

Compare Source

DEPRECATIONS:

  • azapi provider: The maximum_busy_retry_attempts field is deprecated and will be removed in the next major release. Please remove them from the azapi provider 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

Compare Source

DEPRECATIONS:

  • retry block: The multiplier and randomization_factor are deprecated and will be removed in the next major release. Please remove them from the retry block. The provider will use the default values for these fields.

ENHANCEMENTS:

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.type returns a value that is not a string.

v2.5.0

Compare Source

ENHANCEMENTS:

  • azapi_resource resource: ignore the changes when the body field matches the remote state even if the body field or api-version field is changed.
  • azapi_resource resource: ignore the order of the identity_ids array.
  • azapi_resource resource: support ignore_null_property field, which is used to ignore the null properties in the body field.
  • azapi_resource resource: support sensitive_body_version field, which is used to manually control the version of the sensitive body.
  • azapi_update_resource resource: remove the readonly fields from identity.userAssignedIdentities in 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 body and sensitive_body are specified.
  • Fix a bug that azapi_update_resource does 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

Compare Source

FEATURES:

  • New Provider Function: unique_string

ENHANCEMENTS:

  • azapi_resource resource: Support schema validation in terraform validate.
  • azapi_resource resource: Preflight validation supports nested resources.
  • azapi resources/data sources: Support User-Agent header, which is used to specify the user agent which is appended to the default user agent.
  • azapi_resource, azapi_update_resource resources: Support sensitive_body field, 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_resource resource produced inconsistent results when only error_message_regex is changed.
  • Fix a bug that azapi_resource_action resource could not be migrated correctly when the body is empty string.
  • Fix a bug that after moving resource from azurerm provider, the azapi_resource resource could not be updated correctly.
  • Fix a bug that azapi_resource is replaced if the API returns a readonly location.
  • Fix a bug that resource group's api-version 2024-11-01 is disabled in the provider.

v2.3.0

Compare Source

FEATURES:

  • New Ephemeral Resource: azapi_resource_action

ENHANCEMENTS:

  • azapi provider: The oidc_azure_service_connection_id field can be sourced from the ARM_ADO_PIPELINE_SERVICE_CONNECTION_ID or ARM_OIDC_AZURE_SERVICE_CONNECTION_ID Environment Variables.
  • azapi provider: The enable_preflight field can be sourced from the ARM_ENABLE_PREFLIGHT Environment Variable.
  • azapi provider: The disable_default_output field can be sourced from the ARM_DISABLE_DEFAULT_OUTPUT Environment Variable.
  • azapi provider: Support maximum_busy_retry_attempts field, 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_action resource, data source: Support sensitive_response_export_values field, which is used to specify the sensitive fields to export.
  • azaapi_resource_action resource, data source: Support sensitive_output field, which is a sensitive computed field that contains the fields exported by sensitive_response_export_values.
  • Update bicep types to ms-henglu/bicep-types-az@c4c1c04
  • azapi resources: 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 azurerm resource, the id could not be parsed correctly.
  • Fix a bug that custom retry configuration doesn't override the default retry configuration.

v2.2.0

Compare Source

ENHANCEMENTS:

  • azapi_resource resource: 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 the output field's changes made outside of Terraform since the last "terraform apply". You can run terraform refresh to 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

Compare Source

FEATURES:

  • azapi_resource resource: Support resource move operation, it allows moving resources from azurerm provider.

ENHANCEMENTS:

BUG FIXES:

  • Fix a bug when body contains 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

Compare Source

BREAKING CHANGES:

  • azapi_resource, azapi_update_resource resources and data sources' output field defaults to the readonly fields when the response_export_values is not specified.
  • azapi_resource_list data source's output field defaults to the response when the response_export_values is not specified.

ENHANCEMENTS:

  • azapi_data_plane_resource resource: Support Microsoft.Purview/accounts/Scanning/managedvirtualnetworks type.
  • Support a default retry policy that retries when GET request fails with 404 status code after resource creation.
  • azapi provider: Support disable_default_output field, 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.

Configuration

📅 Schedule: Branch creation - "after 7am and before 11am every weekday" in timezone Europe/London, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/azapi-2.x branch 7 times, most recently from 60e3a34 to c447fd3 Compare October 29, 2024 11:31
@renovate renovate bot force-pushed the renovate/azapi-2.x branch from 1ba23b1 to f842a4b Compare February 11, 2026 08:22
@renovate renovate bot force-pushed the renovate/azapi-2.x branch from f842a4b to 9fa242b Compare March 23, 2026 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants