From 42c537617fe08493c7e6103a399fb0afcdb83874 Mon Sep 17 00:00:00 2001 From: v-rakegurram-MSFT Date: Tue, 30 Dec 2025 10:00:06 +0530 Subject: [PATCH 1/3] (AzureCXP) fixes MicrosoftDocs/dataexplorer-docs-pr#542260 I added the missing guidance on how to turn sync off and on, and clarified the behavior of the primary sync source to improve accuracy and usability. --- data-explorer/web-sync.md | 42 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/data-explorer/web-sync.md b/data-explorer/web-sync.md index 8757d8faf5..7db68be5b2 100644 --- a/data-explorer/web-sync.md +++ b/data-explorer/web-sync.md @@ -50,6 +50,48 @@ To sync your profile data, follow these steps: >[!NOTE] > If the status doesn't display as expected, ensure that you're logged into the same account used for syncing. +## Turn sync off + +If you enabled sync and want to stop syncing your Azure Data Explorer web UI profile, follow these steps: + +1. In the tab bar, select **Sync on**. +2. In the dialog box, select **Turn sync off**. +3. Confirm the action when prompted. + +### Important notes when turning sync off +- Turning sync off **stops updating cloud data**, but the cloud profile previously uploaded is **not deleted**. +- Your existing cloud profile remains the version that other browsers use when sync is turned on again. +- Local browser data will no longer be uploaded or overwritten. + +## Turn sync back on + +If sync was previously disabled: + +1. In the tab bar, select **Sync off**. +2. Select **Turn sync on**. +3. Confirm that the browser you are enabling sync on contains the state you want to upload as the cloud profile. + +### Warning +When you turn sync back on, **this browser becomes the primary source again** and will overwrite cloud-stored data. + +## Determine the primary source of sync data + +The primary sync source is the **first browser/device where sync was turned on**. +This browser uploads its current tabs, settings, and connections to the cloud. + +To check which environment is used as the primary source: + +- Open the browser where sync is currently enabled. +- Verify that **Sync on** appears in the tab bar. +- Compare this browser’s state with what you see on other devices. + If other devices match this one, it is the current primary source. + +If you want to change the primary source: + +1. Turn sync **off**. +2. Open the browser that contains the data you want to use as the new primary environment. +3. Turn sync **back on** on that browser. + ## Related content * [Azure Data Explorer web UI query overview](web-ui-query-overview.md) From 232fab7ab524ff62da0d59c7e339ed86f30ea6ee Mon Sep 17 00:00:00 2001 From: v-rakegurram-MSFT Date: Wed, 31 Dec 2025 12:14:28 +0530 Subject: [PATCH 2/3] (AzureCXP) fixes MicrosoftDocs/dataexplorer-docs-pr#542258 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I enhanced the toscalar() documentation by adding a new subsection under the Limitations section with practical mitigation strategies for cases where toscalar() cannot be evaluated per row. The update includes multiple real-world alternatives—such as pre-aggregation with a join, arg_max(), lookup patterns, and window-based aggregation—to provide clearer guidance and broader applicability. This improvement helps users better understand and resolve row-context scope errors. --- .../kusto/query/toscalar-function.md | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/data-explorer/kusto/query/toscalar-function.md b/data-explorer/kusto/query/toscalar-function.md index 91eb422659..1e7b1142c0 100644 --- a/data-explorer/kusto/query/toscalar-function.md +++ b/data-explorer/kusto/query/toscalar-function.md @@ -80,6 +80,62 @@ _dataset1 |3|4| |5|6| +### Additional mitigation patterns for real-world scenarios + +In many practical scenarios, you may want to compute a scalar value per row using +an expression that performs its own aggregation, such as: + +```kusto +| extend result = toscalar(T | where Key == key | summarize max(Value)) +``` + +This pattern fails because `toscalar()` cannot be evaluated once per row. +Use one of the supported mitigation patterns below. + +1. Pre-aggregate the data once and then join the aggregated results back to the main table for improved efficiency. + +```kusto +let summary = + T + | summarize maxValue = max(Value) by Key; + +Dataset1 +| join kind=leftouter summary on Key +| project Key, maxValue +``` + +2. Use `arg_max()` to retrieve the row with the highest value. This is useful when you need both the maximum value and the associated columns. + +```kusto +let summary = + T + | summarize arg_max(Timestamp, *) by Key; + +Dataset1 +| lookup summary on Key +``` + +3. Use a `lookup` for key/value mappings to avoid row-context violations and ensure efficient dimension-table lookups. + +```kusto +let lookupTable = + T | summarize maxValue = max(Value) by Key; + +Dataset1 +| lookup lookupTable on Key +``` + +4. Use window functions or `make-series` for time-window aggregations + +```kusto +Dataset1 +| make-series maxValue = max(Value) + on Timestamp + from ago(1h) to now() + step 1m + by Key +``` + ## Examples The examples in this section show how to use the syntax to help you get started. From 4a0a5b77d9f601121ee7a85e25203ae7e70a747f Mon Sep 17 00:00:00 2001 From: v-rakegurram-MSFT Date: Mon, 5 Jan 2026 15:55:39 +0530 Subject: [PATCH 3/3] Update web-sync.md --- data-explorer/web-sync.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data-explorer/web-sync.md b/data-explorer/web-sync.md index 7db68be5b2..bb110d584f 100644 --- a/data-explorer/web-sync.md +++ b/data-explorer/web-sync.md @@ -71,8 +71,8 @@ If sync was previously disabled: 2. Select **Turn sync on**. 3. Confirm that the browser you are enabling sync on contains the state you want to upload as the cloud profile. -### Warning -When you turn sync back on, **this browser becomes the primary source again** and will overwrite cloud-stored data. +> [!WARNING] +> When you turn sync back on, **this browser becomes the primary source again** and will overwrite cloud-stored data. ## Determine the primary source of sync data