https://pulumi.com logo
a

average-summer-30977

02/26/2019, 3:33 PM
Hi! Azure question. Azure ARM is not complete, many things can only be done using Azure CLI. Because of this I ask, how should one integrate Pulumi and Azure CLI? Any good practices?
s

stocky-spoon-28903

02/26/2019, 3:46 PM
Do you have examples of these? AFAIK the CLI uses ARM for the most part
a

average-summer-30977

02/26/2019, 3:46 PM
exactly! I found this as a proposed best practice
Example: You create a webapp in Azure ARM. To connect it via source_control to a repository you must use Azure CLI, no way around it. It's true! I have tried many times the source_control property from Azure ARM to no avail. It is Azure CLI moment to shine.
s

stocky-spoon-28903

02/26/2019, 3:50 PM
Which CLI command needs to be used?
s

stocky-spoon-28903

02/26/2019, 3:55 PM
Ugh, that ultimately calls this:
So I guess this could be automated with a CustomResource if you want to maintain the resource semantics
😍 1
a

average-summer-30977

02/26/2019, 3:57 PM
Thanks, that's what I was looking for
(feel free to expand haha)
great stuff! cheers
s

stocky-spoon-28903

02/26/2019, 3:59 PM
There’s references in that code to a VSTS Provider for something - I think this is because azure devops has provenance from a non-azure team and it has a completely separate API and directory… I wonder if it would be suited to its own provider actually (which is also something I could use!)
a

average-summer-30977

02/26/2019, 4:00 PM
🧞‍♂️
hey, @stocky-spoon-28903 let's say I make a customComponent like this https://pulumi.io/reference/component-tutorial.html for the Azure elements I find lacking in AzureARM.
How would I go about contributing to the community? Have you got any suggestion or references? Sorry for bothering!
s

stocky-spoon-28903

02/26/2019, 4:38 PM
That’s a good question: the simplest option is to publish an npm package with them in. If you want them to land in an official repo, they could either go into some future
azurex
, or as overlays into the azure provider
a

average-summer-30977

02/26/2019, 4:47 PM
🤗