Skip to content

Commit

Permalink
Trigger pipeline and test
Browse files Browse the repository at this point in the history
  • Loading branch information
snehapar9 committed Nov 11, 2023
1 parent 72b2602 commit fe7201b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ContainerAppHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ export class ContainerAppHelper {
*/
public async getExistingContainerAppEnvironmentLocation(environmentName: string, resourceGroup: string) {
try {
let command = `az containerapp env show -n ${environmentName} -g ${resourceGroup} --query location`
let command = `az containerapp env show -n ${environmentName} -g ${resourceGroup} --query location`;
let executionResult = await util.execute(command);
return executionResult.exitCode === 0 ? executionResult.stdout.toLowerCase().replace(/["() ]/g, "").trim() : null;
} catch (err) {
Expand All @@ -290,7 +290,7 @@ export class ContainerAppHelper {
*/
public async getExistingContainerAppEnvironmentName(containerAppName: string, resourceGroup: string) {
try {
let command = `az containerapp show -n ${containerAppName} -g ${resourceGroup} --query properties.environmentId`
let command = `az containerapp show -n ${containerAppName} -g ${resourceGroup} --query properties.environmentId`;
let executionResult = await util.execute(command);
return executionResult.exitCode === 0 ? executionResult.stdout.split("/").pop() : null;
} catch (err) {
Expand Down

0 comments on commit fe7201b

Please sign in to comment.