Setup PowerShell Azure Authentication for Pulumi

综合技术 2018-12-07 阅读原文

Create an Azure service principal with Azure CLI

This can be done using the Azure CLI or the Azure Portal. Here is the “How To” Azure documentation

Setup the Environment Variables

Once created, you need to set up these PowerShell environment variables. I place these in my PowerShell $Profile


You can use the same values in Pulumi configuration variables
, if you prefer that they be stored alongside your Pulumi stack for easy multi-user access.

$ pulumi config set azure:clientId "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
$ pulumi config set azure:clientSecret "YYYYYYYY-YYYY-YYYY-YYYY-YYYYYYYYYYYY" --secret
$ pulumi config set azure:tenantId "ZZZZZZZZ-ZZZZ-ZZZZ-ZZZZ-ZZZZZZZZZZZZ"

This eliminates having to do az login
, which expires.

责编内容by:Development In A Blink 【阅读原文】。感谢您的支持!


Juju 2.2.0 and conjure-up 2.2.0 are here! We are excited to announce the release of Juju 2.2.0 and conjure-up 2.2.0! This release greatly enhances memory and C...
PowerShell 发送美观的Vsphere DataStore警报 豆子今天登陆Vsphere VCenter的时候,无意中发现有DataStore的警报信息,个别DataStore的使用空间超过90%了,需要清空一下SAN Volume的Snapshot。这个是运维常见的问题,那么顺便就用PowerShe...
Azure Container Registry: Public preview of Helm C... With Azure Container Registry (ACR), you can easily store and manage container images for Azure deployments in a central...
Azure Functions: Choosing between queues and event... I have this conversation about twice a week. Someone has decided they want to take advantage of the benefits of serverle...
Why has my Azure Load Balancer stopped working? Tags: Azure and the load balancers can be annoying little things. Especially when you are doing maintenance on your Az...