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,5 +1,5 @@
export default class ScriptBuilder {
script: string;
script: string = "";
getScript(scheme: string, tenantId: string, servicePrincipalId: string, servicePrincipalKey: string, subscriptionId: string, environment: string, scopeLevel: string): string {
this.script += `Clear-AzContext -Scope Process; Clear-AzContext -Scope CurrentUser -Force -ErrorAction SilentlyContinue;`;
if (scheme === "ServicePrincipal") {