https://pulumi.com logo
#automation-api
Title
# automation-api
b

brainy-ocean-92780

01/06/2021, 6:46 PM
#automation-api I'm creating resources using Pulumi in Azure. I then have to pass information as a consequence of those resources back into Azure. An example is creating an Sql Database in Azure and then adding an administration group to it. The resource is stood up via Pulumi and I have an Azure Cli script that can perform the administrator group addition. However I need to update the Azure Cli scrip to include the ResourceGroupName and SqlServerName to the script. Basically I need a way to get those values back from pulumi so I can feed them into the script. Is the Automation-Api the best way to do that or is there some better way to get those values?
b

billowy-army-68599

01/06/2021, 7:02 PM
yes this is a great use case! you can also export the values at
outputs
and use
pulumi stack output
and bash it to a bash script
b

brainy-ocean-92780

01/06/2021, 9:16 PM
Thanks! Also where exactly do I find the documentation for automation-api?
l

lemon-agent-27707

01/06/2021, 9:53 PM