public static createAppKeyConnectionString()

in packages/quick_start/src/Utils.ts [94:103]


    public static createAppKeyConnectionString(clusterUri: string): KustoConnectionStringBuilder {
        const aadAppId: string | undefined = process?.env?.APP_ID;
        const appKey: string | undefined = process?.env?.APP_KEY;
        const authorityId: string | undefined = process?.env?.APP_TENANT;
        if (!aadAppId || !appKey || !authorityId) {
            this.errorHandler(`"Missing some required field's in configuration file in order to authenticate using an app key."`);
        } else {
            return KustoConnectionStringBuilder.withAadApplicationKeyAuthentication(clusterUri, aadAppId, appKey, authorityId);
        }
    }