mirror of
https://github.com/azure/login.git
synced 2026-06-08 13:47:07 +00:00
changes in scriptbuilder
This commit is contained in:
parent
c909df3338
commit
04bdab0c41
2 changed files with 4 additions and 1 deletions
|
|
@ -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") {
|
||||
|
|
|
|||
|
|
@ -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") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue