changes in scriptbuilder

This commit is contained in:
Akshaya M
2020-03-16 17:10:02 +05:30
parent c909df3338
commit 04bdab0c41
2 changed files with 4 additions and 1 deletions

View File

@@ -1,6 +1,9 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class ScriptBuilder {
constructor() {
this.script = "";
}
getScript(scheme, tenantId, servicePrincipalId, servicePrincipalKey, subscriptionId, environment, scopeLevel) {
this.script += `Clear-AzContext -Scope Process; Clear-AzContext -Scope CurrentUser -Force -ErrorAction SilentlyContinue;`;
if (scheme === "ServicePrincipal") {