You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: azure-local/manage/disconnected-operations-on-demand-logs.md
+26-26Lines changed: 26 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,53 +8,53 @@ ms.date: 08/06/2025
8
8
ai-usage: ai-assisted
9
9
---
10
10
11
-
# Collect logs on demand with Azure Local disconnected operations PowerShell module
11
+
# Collect logs on demand with the Azure Local disconnected operations PowerShell module
12
12
13
13
::: moniker range=">=azloc-2506"
14
14
15
-
This article explains how to collect logs on demand for Azure Local disconnected operations using the PowerShell module. Learn how to provide logs for troubleshooting and support when Azure Local operates in disconnected mode.
15
+
This article explains how to collect logs on demand for Azure Local disconnected operations by using the PowerShell module. You learn how to provide logs for troubleshooting and support when Azure Local operates in disconnected mode.
Log collection is essential for diagnosing and troubleshooting issues in Azure Local disconnected operations. Use this feature to provide logs to Microsoft support. The logs collected include information about the Azure Local disconnected operations environment, such as the management endpoint, integrated runtime, and other components. Note, during the process of collecting logs, you might encounter errors due to various environmental and tooling limitations.
21
+
Log collection is essential for diagnosing and troubleshooting issues in Azure Local disconnected operations. Use this feature to give logs to Microsoft support. The logs include information about the Azure Local disconnected operations environment, like the management endpoint, integrated runtime, and other components. During log collection, you might see errors because of different environmental or tooling limitations.
22
22
23
23
## Supported scenarios
24
24
25
25
The following on-demand scenarios are supported for log collection:
26
26
27
27
| Scenarios for log collection | How to collect logs |
|[Use on-demand direct log collection](#log-collection-when-connected-to-azure-with-an-accessible-management-endpoint) when an on-premises device with Azure Local disconnected operations is connected to Azure and the management endpoint for disconnected operations is accessible. | Trigger log collection with cmdlet`Invoke-ApplianceLogCollection`.<br></br>**Prerequisite**: Setup observability configuration using the cmdlet: `Set-ApplianceObservabilityConfiguration`. |
30
-
|[Use on-demand indirect log collection](#log-collection-for-a-disconnected-environment-with-an-accessible-management-endpoint) when an on-premises device using Azure Local disconnected operations doesn't have a connection to Azure, but the management endpoint for disconnected operations is accessible. | Trigger log collection with cmdlet`Invoke-ApplianceLogCollectionAndSaveToShareFolder`.<br></br> After the `Invoke-ApplianceLogCollectionAndSaveToShareFolder`step, use the `Send-DiagnosticData` cmdlet to upload the copied data logs from the file share to Microsoft.|
31
-
|[Use on-demand fallback log collection](#log-collection-when-the-management-endpoint-is-inaccessible) when the management endpoint for disconnected operations isn't accessible or the integrated runtime disconnected operations with Azure Local virtual machine (VM) is down. |Logs are collected after shutting down the disconnected operations with Azure Local VM, mounting and unlocking virtual hard disks (VHDs) and copying logs using the `Copy-DiagnosticData` cmdlet from mounted VHDs into a local, user-defined location.<br></br> Use the `Send-DiagnosticData` cmdlet to manually send diagnostic data to Microsoft. |
29
+
|[Use on-demand direct log collection](#log-collection-when-connected-to-azure-with-an-accessible-management-endpoint) when an on-premises device with Azure Local disconnected operations is connected to Azure and the management endpoint for disconnected operations is accessible. | Trigger log collection with the`Invoke-ApplianceLogCollection` cmdlet.<br></br>**Prerequisite**: Set up observability configuration using the `Set-ApplianceObservabilityConfiguration` cmdlet. |
30
+
|[Use on-demand indirect log collection](#log-collection-for-a-disconnected-environment-with-an-accessible-management-endpoint) when an on-premises device using Azure Local disconnected operations doesn't have a connection to Azure, but the management endpoint for disconnected operations is accessible. | Trigger log collection with the`Invoke-ApplianceLogCollectionAndSaveToShareFolder` cmdlet.<br></br> After you run the `Invoke-ApplianceLogCollectionAndSaveToShareFolder`cmdlet, use the `Send-DiagnosticData` cmdlet to upload the copied data logs from the file share to Microsoft. |
31
+
|[Use on-demand fallback log collection](#log-collection-when-the-management-endpoint-is-inaccessible) when the management endpoint for disconnected operations isn't accessible or the integrated runtime disconnected operations with Azure Local virtual machine (VM) is down. |Collect logs after you shut down the disconnected operations with the Azure Local VM, mount and unlock virtual hard disks (VHDs), and copy logs by using the `Copy-DiagnosticData` cmdlet from mounted VHDs into a local, user-defined location.<br></br> Use the `Send-DiagnosticData` cmdlet to manually send diagnostic data to Microsoft. |
32
32
33
33
## Azure Local disconnected when the appliance VM isn't connected to Azure
34
34
35
-
In disconnected Azure Local environments, you collect logs from the control plane (appliance) and host nodes, then manually upload them with a standalone tool.
35
+
In disconnected Azure Local environments, collect logs from the control plane (appliance) and host nodes, then manually upload them with a standalone tool.
36
36
37
-
The following diagram shows the key components for log collection in Azure Local disconnected when the appliance VM isn't connected to Azure:
37
+
The following diagram shows key components for log collection in Azure Local disconnected environments when the appliance VM isn't connected to Azure:
38
38
39
-
:::image type="content" source="./media/disconnected-operations/on-demand-logs/on-demand-components.png" alt-text="Screenshot showing the key components for on-demand log collection in Azure Local disconnected operations." lightbox=" ./media/disconnected-operations/on-demand-logs/on-demand-components.png":::
39
+
:::image type="content" source="./media/disconnected-operations/on-demand-logs/on-demand-components.png" alt-text="Diagram that shows key components for on-demand log collection in Azure Local disconnected operations." lightbox=" ./media/disconnected-operations/on-demand-logs/on-demand-components.png":::
40
40
41
41
To collect logs from the control plane, follow these steps:
42
42
43
-
1. Collect control plane logs. Run the following command on a system with access to the appliance VM (usually the same Hyper-V host):
43
+
1. Collect control plane logs. Run this command on a system that can access the appliance VM (usually the same Hyper-V host):
44
44
45
45
```powershell
46
46
Invoke-ApplianceLogCollectionAndSaveToShareFolder
47
47
```
48
48
49
-
This command gathers logs from the appliance VM and saves them to a specified shared folder.
49
+
This command gathers logs from the appliance VM and saves them to the specified shared folder.
50
50
51
-
1. Collect host node logs. On each Azure Local host node, run:
51
+
1. Collect host node logs. On each Azure Local host node, run this command:
This command collects logs specific to the node, including system and cluster-level diagnostics.
57
+
This command collects logs specific to the node, including system and clusterlevel diagnostics.
58
58
59
59
For more information on the Send-DiagnosticData command, see [Fallback log collection](disconnected-operations-fallback.md).
60
60
@@ -67,23 +67,23 @@ For more information on the Send-DiagnosticData command, see [Fallback log colle
67
67
68
68
## Azure Local disconnected when the appliance VM is connected to Azure
69
69
70
-
When the appliance VM is connected to Azure, upload host node logs the same way as in the Azure Local disconnected scenario. For control plane logs, send them directly using `Invoke-ApplianceLogCollection`; you don't need to save them locally first.
70
+
When the appliance VM is connected to Azure, upload host node logs the same way as in the Azure Local disconnected scenario. For control plane logs, send them directly by using `Invoke-ApplianceLogCollection`. You don't need to save them locally first.
71
71
72
72
The following diagram shows the key components for log collection in Azure Local disconnected when the appliance VM is connected to Azure:
73
73
74
-
:::image type="content" source="./media/disconnected-operations/on-demand-logs-2/on-demand-components.png" alt-text="Screenshot showing the key components for on-demand log collection in Azure Local disconnected operations." lightbox=" ./media/disconnected-operations/on-demand-logs/on-demand-components-2.png":::
74
+
:::image type="content" source="./media/disconnected-operations/on-demand-logs-2/on-demand-components.png" alt-text="Diagram that shows the key components for on-demand log collection in Azure Local disconnected operations." lightbox=" ./media/disconnected-operations/on-demand-logs/on-demand-components-2.png":::
75
75
76
-
Here's what you need to perform log collection in a connected disconnected operations scenario.
76
+
Here's what you need to do log collection in a connected disconnected operations scenario.
77
77
78
78
1. Use [Deploy disconnected operations for Azure Local (Preview)](disconnected-operations-deploy.md) to set up the following Azure resources:
79
79
80
80
- A resource group in Azure for the appliance.
81
-
- A Service Principal (SPN) with contributor rights on the resource group.
81
+
- A service principal (SPN) with contributor rights on the resource group.
82
82
- Copy the `AppId` and `Password` from the output. Use them as **ServicePrincipalId** and **ServicePrincipalSecret** during observability setup.
83
83
84
-
1. Install the operations module if it's not installed. Use the `Import-Module` cmdlet and modify the path to match your folder structure.
84
+
1. Install the operations module if it's not installed. Use the `Import-Module` cmdlet and change the path to match your folder structure.
0 commit comments