From 023d1864f74c7c531846e39d399dde2362d67bcd Mon Sep 17 00:00:00 2001 From: snehapar9 Date: Mon, 6 Nov 2023 16:26:14 -0800 Subject: [PATCH] Add --debug --- dist/index.js | 6 +++--- src/ContainerAppHelper.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dist/index.js b/dist/index.js index b6e2fa68..094690cc 100644 --- a/dist/index.js +++ b/dist/index.js @@ -4722,7 +4722,7 @@ var ContainerAppHelper = /** @class */ (function () { _a.label = 1; case 1: _a.trys.push([1, 3, , 4]); - command_1 = "az containerapp create -n " + containerAppName + " -g " + resourceGroup + " --environment " + environment + " --output none"; + command_1 = "az containerapp create -n " + containerAppName + " -g " + resourceGroup + " --environment " + environment + " --output none --debug"; optionalCmdArgs.forEach(function (val) { command_1 += " " + val; }); @@ -4785,7 +4785,7 @@ var ContainerAppHelper = /** @class */ (function () { _a.label = 1; case 1: _a.trys.push([1, 3, , 4]); - command_2 = "az containerapp update -n " + containerAppName + " -g " + resourceGroup + " --output none"; + command_2 = "az containerapp update -n " + containerAppName + " -g " + resourceGroup + " --output none --debug"; optionalCmdArgs.forEach(function (val) { command_2 += " " + val; }); @@ -4821,7 +4821,7 @@ var ContainerAppHelper = /** @class */ (function () { _a.label = 1; case 1: _a.trys.push([1, 3, , 4]); - command_3 = "az containerapp up -n " + containerAppName + " -g " + resourceGroup; + command_3 = "az containerapp up -n " + containerAppName + " -g " + resourceGroup + " --debug"; optionalCmdArgs.forEach(function (val) { command_3 += " " + val; }); diff --git a/src/ContainerAppHelper.ts b/src/ContainerAppHelper.ts index 98bcda4c..b49b8bf7 100644 --- a/src/ContainerAppHelper.ts +++ b/src/ContainerAppHelper.ts @@ -32,7 +32,7 @@ export class ContainerAppHelper { optionalCmdArgs: string[]) { toolHelper.writeDebug(`Attempting to create Container App with name "${containerAppName}" in resource group "${resourceGroup}"`); try { - let command = `az containerapp create -n ${containerAppName} -g ${resourceGroup} --environment ${environment} --output none`; + let command = `az containerapp create -n ${containerAppName} -g ${resourceGroup} --environment ${environment} --output none --debug`; optionalCmdArgs.forEach(function (val: string) { command += ` ${val}`; }); @@ -75,7 +75,7 @@ export class ContainerAppHelper { optionalCmdArgs: string[]) { toolHelper.writeDebug(`Attempting to update Container App with name "${containerAppName}" in resource group "${resourceGroup}" `); try { - let command = `az containerapp update -n ${containerAppName} -g ${resourceGroup} --output none`; + let command = `az containerapp update -n ${containerAppName} -g ${resourceGroup} --output none --debug`; optionalCmdArgs.forEach(function (val: string) { command += ` ${val}`; }); @@ -103,7 +103,7 @@ export class ContainerAppHelper { targetPort?: string) { toolHelper.writeDebug(`Attempting to update Container App with name "${containerAppName}" in resource group "${resourceGroup}"`); try { - let command = `az containerapp up -n ${containerAppName} -g ${resourceGroup}`; + let command = `az containerapp up -n ${containerAppName} -g ${resourceGroup} --debug`; optionalCmdArgs.forEach(function (val: string) { command += ` ${val}`; });