From 28f29173ac1a8089cfd9d96ce9b82841a386b4d4 Mon Sep 17 00:00:00 2001 From: Akshaya M Date: Fri, 27 Mar 2020 09:56:23 +0530 Subject: [PATCH] added log in ServicePrincipalLogin --- lib/PowerShell/ServicePrincipalLogin.js | 1 + src/PowerShell/ServicePrincipalLogin.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/PowerShell/ServicePrincipalLogin.js b/lib/PowerShell/ServicePrincipalLogin.js index 7d9e8288..7a4be40b 100644 --- a/lib/PowerShell/ServicePrincipalLogin.js +++ b/lib/PowerShell/ServicePrincipalLogin.js @@ -63,6 +63,7 @@ class ServicePrincipalLogin { if (!(Constants_1.default.Success in result)) { throw new Error(`Azure PowerShell login failed with error: ${result[Constants_1.default.Error]}`); } + console.log(`Azure PowerShell session successfully initialized`); }); } } diff --git a/src/PowerShell/ServicePrincipalLogin.ts b/src/PowerShell/ServicePrincipalLogin.ts index 3ee2c891..8aa293a4 100644 --- a/src/PowerShell/ServicePrincipalLogin.ts +++ b/src/PowerShell/ServicePrincipalLogin.ts @@ -51,6 +51,7 @@ export class ServicePrincipalLogin implements IAzurePowerShellSession { if (!(Constants.Success in result)) { throw new Error(`Azure PowerShell login failed with error: ${result[Constants.Error]}`); } + console.log(`Azure PowerShell session successfully initialized`); } } \ No newline at end of file