public async getExistingContainerAppEnvironmentLocation()

in src/ContainerAppHelper.ts [325:334]


    public async getExistingContainerAppEnvironmentLocation(environmentName: string, resourceGroup: string) {
        try {
            let command = `az containerapp env show -g ${resourceGroup} --query location -n ${environmentName}`;
            let executionResult = await util.execute(command);
            return executionResult.exitCode === 0 ? executionResult.stdout.toLowerCase().replace(/["() ]/g, "").trim() : null;
        } catch (err) {
            toolHelper.writeInfo(err.message);
            return null;
        }
    }