Skip to content

Commit 7ef7c80

Browse files
authored
Merge pull request #58066 from xenolinux/service-expiry
OCPBUGS#9090: A service principal validity can be extended
2 parents 12094f2 + 81ab637 commit 7ef7c80

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
@@ -186,9 +186,11 @@ ifdef::ash[]
186186
----
187187
$ az ad sp create-for-rbac --role Contributor --name <service_principal> \ <1>
188188
--scopes /subscriptions/<subscription_id> <2>
189+
--years <years> <3>
189190
----
190191
<1> Specify the service principal name.
191192
<2> Specify the subscription ID.
193+
<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.
192194
+
193195
.Example output
194196
[source,terminal]

0 commit comments

Comments
 (0)