microsoft / terraform-provider-fabric

Terraform Provider for Microsoft Fabric
https://registry.terraform.io/providers/microsoft/fabric
Mozilla Public License 2.0
26 stars 5 forks source link

Using GitHub Actions to Build Fabric Data Pipelines with Terraform #77

Closed dogaerdik closed 1 week ago

dogaerdik commented 2 weeks ago

☑️ Checklist

❓ Question

How can I create a Fabric data pipeline using GitHub Actions with Terraform? I can create notebooks, lakehouses, and other Fabric components that authenticate with service principal authentication. However, the documentation is insufficient for user context authentication and creating a Fabric data pipeline. I haven't succeeded in achieving user context authentication with Terraform.

📎 Additional context

No response

🔰 Code of Conduct

DariuszPorowski commented 1 week ago

Hi @dogaerdik

Data Pipeline has not support Service Principal authentication yet and this is highlighted in the documentation already:

Image

ref: https://registry.terraform.io/providers/microsoft/fabric/latest/docs/resources/data_pipeline

dogaerdik commented 3 days ago

Hi @DariuszPorowski ,thanks for your reply. I know it is using User context authentication. But actually my question is how can I authenticate as an user context without interaction ?

Image

For AzureCli authentication requires an interaction right ?

ref: https://registry.terraform.io/providers/microsoft/fabric/latest/docs/guides/auth_app_reg_user

DariuszPorowski commented 2 days ago

Hi @dogaerdik

Azure CLI caches auth token, and Provider can use the cached token. This only works on the "local developer" scenario. If you think about automation via GH, AzDO, etc. this scenario is not applicable. All we have to do is wait until Fabric's API for Data Pipeline allows the use of SP auth (it's not Provider limitation itself).