public async getExistingContainerAppEnvironment()

in src/ContainerAppHelper.ts [308:318]


    public async getExistingContainerAppEnvironment(resourceGroup: string) {
        toolHelper.writeDebug(`Attempting to get the existing Container App Environment in resource group "${resourceGroup}"`);
        try {
            let command = `az containerapp env list -g ${resourceGroup} --query "[0].name"`
            let executionResult = await util.execute(command);
            return executionResult.exitCode === 0 ? executionResult.stdout : null;
        } catch (err) {
            toolHelper.writeInfo(err.message);
            return null;
        }
    }