juju add-credential azure -h shows incorrect example usage
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
Medium
|
Eric Claude Jones | ||
2.2 |
Fix Released
|
Medium
|
Eric Claude Jones | ||
2.3 |
Fix Released
|
Medium
|
Eric Claude Jones |
Bug Description
$ juju add-credential azure -h
Usage: juju add-credential [options] <cloud name>
Summary:
Adds or replaces credentials for a cloud.
Options:
-f (= "")
The YAML file containing credentials to add
--replace (= false)
Overwrite existing credential information
Details:
The user is prompted to add credentials interactively if a YAML-formatted
credentials file is not specified. Here is a sample credentials file:
credentials:
aws:
<credential name>:
auth-type: access-key
access-key: <key>
secret-key: <key>
azure:
<credential name>:
auth-type: userpass
applicati
applicati
subscript
tenant-id: <uuid3>
A "credential name" is arbitrary and is used solely to represent a set of
credentials, of which there may be multiple per cloud.
The `--replace` option is required if credential information for the named
cloud already exists. All such information will be overwritten.
This command does not set default regions nor default credentials. Note
that if only one credential name exists, it will become the effective
When following this example, the auth-type: user-pass is invalid and juju complains:
ERROR credential "juju-azure-shell" contains invalid auth type "userpass", valid auth types for cloud "azure" are [interactive service-
I expect the example in -h output to use valid auth-type
auth-type: service-
instead of
auth-type: userpass
Changed in juju: | |
status: | New → Triaged |
milestone: | none → 2.2.0 |
milestone: | 2.2.0 → 2.3-alpha1 |
importance: | Low → Medium |
Changed in juju: | |
milestone: | 2.3-beta1 → 2.3-beta2 |
Changed in juju: | |
assignee: | nobody → Eric Claude Jones (ecjones) |
Changed in juju: | |
milestone: | 2.3-beta2 → none |
Changed in juju: | |
status: | Triaged → In Progress |
status: | In Progress → Triaged |
tags: | added: helptext |
Changed in juju: | |
status: | Triaged → In Progress |
Changed in juju: | |
status: | In Progress → Fix Committed |
Changed in juju: | |
status: | Fix Committed → Fix Released |
Related:
Once auth-type: service- principal- secret is used, the following credential is accepted:
credentials: azure-shell: principal- secret on-id: c8432b3a- 0e92-467f- bd9a-cf1e7f9f10 ba on-password: REDACTED ion-id: 84d9e50c- 9349-4013- 8cd6-c2fcd3ea4a e7 aef1-463f- 9cb2-719bee0ed7 2a
azure:
juju-
auth-type: service-
applicati
applicati
subscript
tenant-id: 6451a011-
But fails on bootstrap with:
$ juju bootstrap azure/centralus aef1-463f- 9cb2-719bee0ed7 2a")
ERROR finalizing "juju-azure-shell" credential for cloud "azure": unknown key "tenant-id" (value "6451a011-
The use of tenant-id in the example help output is wrong.