Description #
The Azure CLI
credential is a credential type that uses a
locally-available Azure CLI installation to authenticate to Azure
resources.
The Azure CLI logged-in user must have the relevant permissions to the Azure resources.
Configuration #
{
"credentials": [
{
"name": "myAzCliCreds",
"cli": true,
"tenantId": "00000000-0000-0000-0000-000000000000"
}
],
"remotes": [
{
"name": "remote-with-inline-azcli-credentials",
// ...
"credentials": {
"cli": true
}
},
{
"name": "remote-with-global-azcli-credentials",
// ...
"credentials": "myAzCliCreds"
}
]
}
Available configuration options #
name #
- required (when defined globally)
The name of the credential. This has to be a valid identifier.
cli #
- required
- constant
This field is required due to a technical limitation of the JSON deserializer. The value should be true
.
tenantId #
- template enabled
Specify the tenant ID that should be used during authentication.