From b409ad49e53f50aad8a9580ce1d8e4643e31acbe Mon Sep 17 00:00:00 2001 From: Lei Jin Date: Fri, 14 May 2021 12:27:17 +0800 Subject: [PATCH] Remove uuid from Connect-AzAccounts.md --- .../Accounts/help/Connect-AzAccount.md | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/Accounts/Accounts/help/Connect-AzAccount.md b/src/Accounts/Accounts/help/Connect-AzAccount.md index 9d242da00848..2049f806b373 100644 --- a/src/Accounts/Accounts/help/Connect-AzAccount.md +++ b/src/Accounts/Accounts/help/Connect-AzAccount.md @@ -193,21 +193,21 @@ more information on creating a self-signed certificates and assigning them permi [Use Azure PowerShell to create a service principal with a certificate](/azure/active-directory/develop/howto-authenticate-service-principal-powershell) ```powershell -$Thumbprint = '0SZTNJ34TCCMUJ5MJZGR8XQD3S0RVHJBA33Z8ZXV' -$TenantId = '4cd76576-b611-43d0-8f2b-adcb139531bf' -$ApplicationId = '3794a65a-e4e4-493d-ac1d-f04308d712dd' +$Thumbprint = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' +$TenantId = 'yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyy' +$ApplicationId = '00000000-0000-0000-0000-00000000' Connect-AzAccount -CertificateThumbprint $Thumbprint -ApplicationId $ApplicationId -Tenant $TenantId -ServicePrincipal ``` ```Output -Account SubscriptionName TenantId Environment -------- ---------------- -------- ----------- -xxxx-xxxx-xxxx-xxxx Subscription1 xxxx-xxxx-xxxx-xxxx AzureCloud +Account SubscriptionName TenantId Environment +------- ---------------- -------- ----------- +xxxxxxxx-xxxx-xxxx-xxxxxxxxx Subscription1 yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyy AzureCloud -Account : 3794a65a-e4e4-493d-ac1d-f04308d712dd +Account : xxxxxxxx-xxxx-xxxx-xxxxxxxx SubscriptionName : MyTestSubscription -SubscriptionId : 85f0f653-1f86-4d2c-a9f1-042efc00085c -TenantId : 4cd76576-b611-43d0-8f2b-adcb139531bf +SubscriptionId : zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzz +TenantId : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyy Environment : AzureCloud ``` @@ -231,15 +231,15 @@ The certificate file, which is specified by `CertficatePath`, should contains bo ```powershell $securePassword = $plainPassword | ConvertTo-SecureString -AsPlainText -Force -$TenantId = '4cd76576-b611-43d0-8f2b-adcb139531bf' -$ApplicationId = '3794a65a-e4e4-493d-ac1d-f04308d712dd' +$TenantId = 'yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyy' +$ApplicationId = 'zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzz' Connect-AzAccount -ServicePrincipal -ApplicationId $ApplicationId -TenantId $TenantId -CertificatePath './certificatefortest.pfx' -CertificatePassword $securePassword ``` ```Output -Account SubscriptionName TenantId Environment -------- ---------------- -------- ----------- -xxxx-xxxx-xxxx-xxxx Subscription1 xxxx-xxxx-xxxx-xxxx AzureCloud +Account SubscriptionName TenantId Environment +------- ---------------- -------- ----------- +xxxxxxxx-xxxx-xxxx-xxxxxxxx Subscription1 yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyy AzureCloud ``` ## PARAMETERS