Skip to content

Commit 81ab637

Browse files
committed
OCPBUGS#9090: A service principal validity can be extended
1 parent 110a6c8 commit 81ab637

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/installation-azure-service-principal.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,11 @@ endif::[]
173173
----
174174
$ az ad sp create-for-rbac --role Contributor --name <service_principal> \ <1>
175175
--scopes /subscriptions/<subscription_id> <2>
176+
--years <years> <3>
176177
----
177178
<1> Specify the service principal name.
178179
<2> Specify the subscription ID.
180+
<3> Specify the number of years. By default, a service principal expires in one year. By using the `--years` option you can extend the validity of your service principal.
179181
+
180182
.Example output
181183
[source,terminal]

0 commit comments

Comments
 (0)