in src/ContainerAppHelper.ts [241:251]
public async doesContainerAppEnvironmentExist(containerAppEnvironment: string, resourceGroup: string): Promise<boolean> {
toolHelper.writeDebug(`Attempting to determine if Container App Environment with name "${containerAppEnvironment}" exists in resource group "${resourceGroup}"`);
try {
let command = `az containerapp env show -o none -g ${resourceGroup} -n ${containerAppEnvironment}`;
let executionResult = await util.execute(command);
return executionResult.exitCode === 0;
} catch (err) {
toolHelper.writeInfo(err.message);
return false;
}
}