sparse-intern-71089
04/26/2022, 11:18 PMminiature-musician-31262
04/26/2022, 11:54 PMminiature-musician-31262
04/26/2022, 11:55 PMminiature-musician-31262
04/27/2022, 12:01 AMpulumi stack init
— let me see if I can find the best doc for thatmodern-branch-92818
04/27/2022, 12:02 AMnew azure.Provider
construct, I think that answers my question regarding the provider configurationminiature-musician-31262
04/27/2022, 12:02 AMpulumi login
for the backendminiature-musician-31262
04/27/2022, 12:03 AMminiature-musician-31262
04/27/2022, 12:04 AMmodern-branch-92818
04/27/2022, 12:04 AMpulumi login
is the cli tool to use for configuring the backend but can this not be defined inline?miniature-musician-31262
04/27/2022, 12:05 AMmodern-branch-92818
04/27/2022, 12:05 AMpulumi login
on the directory, so what's the usual expectation of how you initialise the pulumi backend for an unattended, inline function like thatmodern-branch-92818
04/27/2022, 12:06 AMminiature-musician-31262
04/27/2022, 12:11 AMminiature-musician-31262
04/27/2022, 12:15 AMminiature-musician-31262
04/27/2022, 12:26 AMpulumi login
— you’d just run it as part of your application startup. So for example, if your app were running as a Node.js process on an Azure VM, and your startup script were something like node index.js
, you’d just add a line before that node
call to run pulumi login azblob://...
first, and Automation API (running in your application) would use that as its configured backend.modern-branch-92818
04/27/2022, 12:28 AMmodern-branch-92818
04/27/2022, 12:28 AMmodern-branch-92818
04/27/2022, 12:29 AMPULUMI_BACKEND_URL
environment variable, so for Azure blob you set that to azblob://mycontainer and seet the AZURE_STORAGE_ACCOUNT
and AZURE_STORAGE_KEY
environment variables for the automation API to pick up on?modern-branch-92818
04/27/2022, 12:30 AMmodern-branch-92818
04/27/2022, 12:36 AMmodern-branch-92818
04/27/2022, 12:36 AMminiature-musician-31262
04/27/2022, 1:07 PM