Releases: Azure/terraform-provider-azapi
Releases · Azure/terraform-provider-azapi
v1.13.1
ENHANCEMENTS:
-
azapi
provider: Supportenable_hcl_output_for_data_source
field, which is used to enable the HCL output for the data source, the default value isfalse
.
This could resolve the following breaking changes in the previous release:azapi_resource
data source: Theoutput
field changes from JSON string to HCL object. Users can use access the fields in the output as an HCL object. Please remove thejsondecode
function when using theoutput
field.azapi_resource_list
data source: Theoutput
field changes from JSON string to HCL object. Users can use access the fields in the output as an HCL object. Please remove thejsondecode
function when using theoutput
field.
Please notice if you already upgraded to
v1.13.0
and removedjsondecode
function for theoutput
of data sources, when upgrade to thev1.13.1
release, you need to setenable_hcl_output_for_data_source = true
in theazapi
provider block to enable the HCL output for data sources.
BUG FIXES:
- Fix a bug when upgrading from previous provider
azapi_resource
resource will settags
andlocation
for resources that don't havetags
orlocation
in the configuration. - Fix a bug that
azapi_resource
resource cannot handle tags with unknown values. - Fix a bug that
null
string value can't pass the schema validation. - Fix a bug that required fields which have
null
value can't pass the schema validation. - Fix a bug that schema validation fails to validate the float number in the body.
- Fix a bug that client certificate authentication doesn't work.
- Fix a bug that auxiliary tenant ids are not passed to the client.
- Fix a bug that
azapi_resource_action
resource shows the plan diff when upgrading from the previous provider.
v1.13.0
BREAKING CHANGES:
- Provider field
default_naming_prefix
anddefault_naming_suffix
are deprecated. It will not work in this release and will be removed in the next major release.
Please specify the naming prefix and suffix in the resource'sname
field instead. - The
azapi_resource
'sremoving_special_chars
field is deprecated. It will not work in this release and will be removed in the next major release.
Please specify thename
field and remove the special characters in thename
field instead. - Defining the
identity
inside thebody
field is not recommended. In this release, it will not sync theidentity
inside thebody
field toidentity
block.
Please define theidentity
block instead. azapi_resource
data source, azapi_resource_listdata source: The
output` field changes from JSON string to HCL object. Users can use access the fields in the output as an HCL object. Please follow the instructions to migrate:- Please remove the
jsondecode
function when using theoutput
field from these data sources.
data "azapi_resource" "test" { type = "Microsoft.Automation/automationAccounts@2023-11-01" resource_id = azapi_resource.auto.id response_export_values = ["properties"] } output "o1" { // change jsondecode(data.azapi_resource.test.output).properties.automationHybridServiceUrl to value = data.azapi_resource.test.output.properties.automationHybridServiceUrl }
- Run
terraform plan
to preview the changes.
No changes. Your infrastructure matches the configuration.
- Please remove the
ENHANCEMENTS:
azapi_resource
resource,azapi_update_resource
resource,azapi_resource_action
resource,azapi_data_plane_resource
resource,azapi_resource_action
data source: Thebody
field supports the dynamic schema and allows user to use the HCL object to specify the body.azapi_resource
resource,azapi_update_resource
resource,azapi_resource_action
resource,azapi_data_plane_resource
resource,azapi_resource_action
data source,azapi_resource
data source,azapi_resource_list
data source: Theoutput
field supports the dynamic schema and allows user to read the output as an HCL object.azapi
provider: Supportclient_id_file_path
andclient_secret_file_path
fields, which are used to specify the file path of the client id and client secret.azapi_data_plane_resource
resource: SupportMicrosoft.Synapse/workspaces/databases
type.azapi_resource
resource,azapi_update_resource
resource: Ignore the order of the elements in a list if the element has aname
field as identifier.- Update bicep types to ms-henglu/bicep-types-az@48ce933
BUG FIXES:
- Fix a bug that
azapi_resource_action
doesn't support 204 status code as a success response.
v1.12.1
v1.12.0
v1.12.0
ENHANCEMENTS:
- Update bicep types to ms-henglu/bicep-types-az@4abd79b
BUG FIXES:
- Fix a bug that
ignore_body_changes
incorrectly removes tags.
NOTICE:
- Provider field
default_naming_prefix
anddefault_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'sname
field instead. - The
azapi_resource
'sremoving_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 thename
field and remove the special characters in thename
field instead. - Defining the
identity
inside thebody
field is not recommended. In the next minor release, it will not sync theidentity
inside thebody
field toidentity
block.
Please define theidentity
block instead.
v1.11.0
ENHANCEMENTS:
azapi_resource_action
resource: SupportHEAD
method.azapi_resource_action
resource: Supportwhen
field, which is used to control when to execute the action.- Update bicep types to ms-henglu/bicep-types-az@fcfe2a6
v1.10.0
ENHANCEMENTS:
azapi_resource
data source: When creatingMicrosoft.Resources/subscriptions
,resource_id
is optional and defaults to the ID of the default subscription.- Add a new logger to record the traffic in a structured way.
azapi
: Supportendpoint
block, which is used to configure the endpoints of the Azure Clouds.azapi_resource_action
resource: SupportGET
method.- Update bicep types to ms-henglu/bicep-types-az@505b813
BUG FIXES:
- Fix a bug that
body
is not set when import with an unrecognizedapi-version
. - Fix a bug that deploy time constants are not removed from the request body when using
azapi_update_resource
resource.
v1.9.0
FEATURES:
- New Data Source: azapi_resource_list
- New Data Source: azapi_resource_id
ENHANCEMENTS:
azapi_resource
resource/data source: When creatingMicrosoft.Resources/resourceGroups
,parent_id
is optional and defaults to the ID of the default subscription.azapi_resource
resource: Supportignore_body_changes
field, which is used to ignore some properties when comparing the resource with its current state.azapi_update_resource
resource: Supportignore_body_changes
field, which is used to ignore some properties when comparing the resource with its current state.- Update bicep types to ms-henglu/bicep-types-az@1d8fec8
BUG FIXES:
- Fix a bug that
azapi_resource
resource doesn't store theid
in the state when error happens during the creation. - Fix a bug that errors from the polling API which don't follow the ARM LRO guidelines are not handled properly.
v1.8.0
FEATURES:
ENHANCEMENTS:
azapi_resource_action
: Support provider action.- Update bicep types to https://ms-henglu/bicep-types-az/commit/c616eb1ad4980f63c0d6b436a63701e175a62224
BUG FIXES:
- Fix a bug that resource id for type
Microsoft.Resources/providers
is not parsed correctly. - Fix a bug that resource id for type
Microsoft.Resources/tenants
is not parsed correctly.
v1.7.0
FEATURES:
- New Resource: azapi_data_plane_resource
azapi
: Supportuse_msi
anduse_cli
features.azapi
: Supportauxiliary_tenant_ids
field, which is required for multi-tenancy and cross-tenant scenarios.azapi
: Supportcustom_correlation_request_id
field, which is used to specify the correlation request id.
ENHANCEMENTS:
- Update bicep types to ms-henglu/bicep-types-az@0536b68
BUG FIXES:
- Fix a bug that provider crashes when loading azure schema.
v1.6.0
FEATURES:
ENHANCEMENTS:
- Update bicep types to ms-henglu/bicep-types-az@da15d03
BUG FIXES:
- Fix the bug that the headers are not stored in the log.