1515==============================================================#>
1616<#
1717. SYNOPSIS
18- This script generates a JWT token and accesses a token from a consumer tenant for registering a container type.
18+ This script generates a JWT and accesses a token from a consumer tenant for registering a container type.
1919
2020. DESCRIPTION
21- This script is used to generate a JWT token using a private key certificate and then use that token to access an access token from a consumer tenant.
21+ This script is used to generate a JWT using a private key certificate and then use that token to access an access token from a consumer tenant.
2222 It then registers the container type in the consumer tenant using the obtained access token.
2323
2424. PARAMETER ClientId
@@ -62,12 +62,12 @@ param(
6262<#
6363Here's a list of the steps performed by the script:
6464
65- 1. Build the JWT token to retrieve the consumer tenant access token
65+ 1. Build the JWT to retrieve the consumer tenant access token
6666 1. Transform the thumbprint provided to base64 format
6767 2. Build the JWT header
6868 3. Build the JWT payload
6969 4. Build the JWT signature
70- 5. Combine the JWT header, payload, and signature to create the JWT token .
70+ 5. Combine the JWT header, payload, and signature to create the JWT.
7171 6. Get the access token from the consumer tenant.
72722. Register the container type in the consumer tenant.
7373#>
@@ -159,7 +159,7 @@ $SubjectClaim = $ClientId
159159
160160
161161 # Combine the JWT and signature
162- Write-Host " Combined the JWT header, payload, and signature to create the JWT token ."
162+ Write-Host " Combined the JWT header, payload, and signature to create the JWT."
163163 $SignedToken = " $UnsignedToken .$SafeSignature "
164164
165165
@@ -209,4 +209,5 @@ $SubjectClaim = $ClientId
209209Catch {
210210 Write-Host " Error occurred: $_ "
211211 Exit 1
212- }
212+
213+ }
0 commit comments