hashicorp / terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
Mozilla Public License 2.0
4.6k stars 4.64k forks source link

AutoResolve not supported for Azure Synapse Integration Runtimes #17092

Open robert4os opened 2 years ago

robert4os commented 2 years ago

Is there an existing issue for this?

Community Note

Description

Hi,

there is no support to configure 'Auto Resolve' for the 'location' property of Integration Runtimes in Synapse: https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/synapse_integration_runtime_azure#arguments-reference

Note, for Azure Data Factory this has already been implemented: https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/data_factory_integration_runtime_azure#argument-reference

Thank you and best regards, Robert

New or Affected Resource(s)/Data Source(s)

azurerm_synapse_integration_runtime_azure

Potential Terraform Configuration

See data factory (second link in description): Use AutoResolve to create an auto-resolve integration runtime. Changing this forces a new resource to be created.

References

No response

ms-henglu commented 2 years ago

Hi @robert4os ,

This feature has been supported in https://github.com/hashicorp/terraform-provider-azurerm/blob/v3.13.0/CHANGELOG.md, would you please give it a try? Thanks!

robert4os commented 2 years ago

Hi @ms-henglu,

in 3.13.0 'AutoResolve' is indeed recognized as an argument, but the comparison between the live state ('AutoResolve') with my desired state ('AutoResolve') does noot work correctly...

Specifically the current location of the Runtime is retrieved wrongly:

~ location = "West Europe" -> "autoresolve" # forces replacement <<

The live location however (when I check it in Synapse) is not 'West Europe' but 'AutoResolve', so it seems there is something wrong retrieving the current live state.

thank you and best regards, Robert