Version 2 of the Packer Azure Plugin Is Now Available

rw-book-cover

Full Document

Readwise/Full Document Contents/Version 2 of the Packer Azure Plugin Is Now Available.md

Highlights

Many users want to bring their own authentication provider when connecting to Azure, and some organizations have policies requiring this. Version 2 of the Packer Azure plugin supports using an OIDC provider to authenticate to Azure using the client_jwt field in the builder configuration. You can follow this guide to setting up GitHub as your OIDC Provider and adding its federated credentials to Azure. For example, configuring a GitHub action like this: ([View Highlight] (https://read.readwise.io/read/01hrdp6kf3gcn5z0ajp05s6yj5))

steps: - name: Set OIDC Token run: | echo "ARM_OIDC_TOKEN=$(curl -H "Accept: application/json; api-version=2.0" -H "Authorization: Bearer ACTIONSIDTOKENREQUESTTOKEN"H"ContentType:application/json"Gdataurlencode"audience=api://AzureADTokenExchange""{ACTIONS_ID_TOKEN_REQUEST_URL}" | jq -r '.value')" >>${GITHUB_ENV} ([View Highlight] (https://read.readwise.io/read/01hrdp79cfpsr984awdf54tvvj))