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

Utilising User Assigned Identities w/ Managed Credentials to share a Self-Hosted Integration Runtime #25292

Open WhyDidIChooseIT opened 7 months ago

WhyDidIChooseIT commented 7 months ago

Is there an existing issue for this?

Community Note

Description

This is a duplicate of Utilising User Assigned Identities w/ Managed Credentials to share a Self-Hosted Integration Runtime #24742 which was completed but instead of adding the functionality for azurerm_data_factory_integration_runtime_self_hosted it was completed for azurerm_data_factory_integration_runtime_managed.

Can the following be completed for Self Hosted Integration Runtime please?

####################################################

Previous Feature Request

Azure allows the use of User Assigned Managed Identities to create Credentials within Data Factory; these can be used as authentication to create Linked Self-Hosted Integration Runtime's.

When attempting to create the Shared Integration Runtime via the Data Factory Integration Runtime Self Hosted resource there is no argument to allow the specifying of a Credential Object and as a result the below error is returned.

Error: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="ManagedIdentityRequiredToCreateLinkedIntegrationRuntime" Message="Managed identity is required when creating linked integration runtime 'integration_runtime_name' under 'resource_name'. Please specify a managed identity via credential object."

Can the azurerm_data_factory_integration_runtime_self_hosted resource be updated to allow for the CredentialReference property please?

Thanks.

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

azurerm_data_factory_integration_runtime_self_hosted

Potential Terraform Configuration

No response

References

https://learn.microsoft.com/en-us/azure/templates/microsoft.datafactory/factories/integrationruntimes?pivots=deployment-language-arm-template#credentialreference-1

dekahurtigruten commented 7 months ago

RBAC in azurerm_data_factory_integration_runtime_self_hosted terraform module does not have options to provide user assigned managed identity create credential. Can someone help what exaclty I am missing?

jeremysullivanTW commented 4 months ago

can we please get this fix added to azurerm_data_factory_integration_runtime_self_hosted? The original issue has been marked as closed but the fix was added to azurerm_data_factory_integration_runtime_managed. Support is still needed in order to specify a User Assigned Identity to establish a Linked Self Hosted Runtime