Open oWretch opened 4 months ago
⚠️ This PR contains unsigned commits. To get your PR merged, please sign those commits (git rebase --exec 'git commit -S --amend --no-edit -n' @{upstream}
) and force push them to this branch (git push --force-with-lease
).
If you're new to commit signing, there are different ways to set it up:
gpg
ssh-agent
The provisioner test is based on setting environment variables which is not actually usable by az
cli. I'm not sure what the best way to approach this is...
Overview
Create a new plugin for Azure CLI.
Sadly the az cli doesn't support environment variables for login, so this plugin runs
az login
andaz logout
to resolve this issue.The plugin uses an Entra ID Service Principal for authentication which needs to be created and granted permissions to the Azure subscription(s).
Type of change
- [x] Created a new plugin - [ ] Improved an existing plugin - [ ] Fixed a bug in an existing plugin - [ ] Improved contributor utilities or experience ## Related Issue(s) None ## How To Testaz group list
Changelog
Authenticate the Azure CLI using Touch ID and other unlock options with 1Password Shell Plugins. The Azure plugin can be correctly initialized with a default credential, using `op plugin az init`. The Azure plugin will check for the `AZURE_CLIENT_ID`, `AZURE_CLIENT_SECRET`, and `AZURE_TENANT_ID` environment variables and attempts to import credentials from them.