Azure-Player / azure.datafactory.tools

Tools for deploying Data Factory (v2) in Microsoft Azure
https://azureplayer.net/adftools
MIT License
219 stars 70 forks source link

Deploy ADF global configurations #241

Open BeneHa opened 2 years ago

BeneHa commented 2 years ago

Hey, it would be great if the plugin could deploy the ADF global configuration which was recently added: https://techcommunity.microsoft.com/t5/azure-data-factory-blog/granular-billing-for-azure-data-factory/ba-p/3654600

"globalConfigurations": { "PipelineBillingEnabled": "true" } This configuration is located in the factory file after the global parameters. According to the logs at the moment only global parameters are deployed, but this configuration is a separate object at the same level like the parameters.

Update of x global parameters complete. Finished deploying object: [factory].[x]

Thanks for this awesome tool and best regards Benedikt

NowinskiK commented 2 years ago

image

NowinskiK commented 2 years ago

So far, I haven't seen any documentation shows how to deploy this property via automated CI/CD. There is no example script in github repo: Azure-DataFactory/SamplesV2 Hence, I can't develop this for now. Let me know once you find something.

josephniblo commented 1 year ago

I've had some success deploying globalConfiguration using the API.

Although it's not documented, the factories GET request response includes the globalConfigurations, and the PUT request seems to set it correctly, too.

Unfortunately, since there's no globalConfigurations endpoint, I'm having to set the whole of properties - I've been firing off a GET, appending a globalConfigurations property and then sending back the PUT.