Hi all, I'm looking for some guidance... we use Pu...
# python
b
Hi all, I'm looking for some guidance... we use Pulumi to deploy our Azure Databricks workspace which I want to update with the Databricks provider. Is there a way to set the DATABRICKS_HOST and DATABRICKS_AZURE_RESOURCE_ID after creating the workspace with the Azure Native provider within the same deployment? What I have tried is setting those values using the export function and the os.environ in combination with Output.all, but it doesn't seem to work.
Within the documentation it looks like you could use some reference, but I think this was copied over from Terraform: https://www.pulumi.com/registry/packages/databricks/#authenticating-with-azure-managed-service-principal-using-client-secret
l
Not sure I follow exactly, but I think what you want is an explicit provider
So you would do your Azure code to set up the workspace, then initialise explicitly a new Databricks provider using the outputs of those resources, then use that provider to subsequently provision Databricks resources
So e.g.
Copy code
azure_thing = azure.DatabricksThing(...)

databricks = databricks.Provider(..., host=azure_thing.output1, azure_resource_id=azure_thing.output2)

db1 = databricks.Resource(..., provider=databricks)
b
Thanks, this is exactly what I was looking for. Did had some issues with the state though as the old provider didn't have the values to delete