Skip to content

Commit 247b43c

Browse files
committed
Updated text
1 parent 2f02ad1 commit 247b43c

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

azure-local/manage/disconnected-operations-on-demand-logs.md

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -8,53 +8,53 @@ ms.date: 08/06/2025
88
ai-usage: ai-assisted
99
---
1010

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
1212

1313
::: moniker range=">=azloc-2506"
1414

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.
1616

1717
[!INCLUDE [IMPORTANT](../includes/disconnected-operations-preview.md)]
1818

1919
## Overview
2020

21-
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.
2222

2323
## Supported scenarios
2424

2525
The following on-demand scenarios are supported for log collection:
2626

2727
| Scenarios for log collection | How to collect logs |
2828
|------------------------------------------|----------------------------------------|
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 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. |
3232

3333
## Azure Local disconnected when the appliance VM isn't connected to Azure
3434

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.
3636

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:
3838

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":::
4040

4141
To collect logs from the control plane, follow these steps:
4242

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):
4444

4545
```powershell
4646
Invoke-ApplianceLogCollectionAndSaveToShareFolder
4747
```
4848

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.
5050

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:
5252

5353
```powershell
5454
Send-DiagnosticData -SaveToPath <shared folder path>
5555
```
5656

57-
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 cluster level diagnostics.
5858

5959
For more information on the Send-DiagnosticData command, see [Fallback log collection](disconnected-operations-fallback.md).
6060

@@ -67,23 +67,23 @@ For more information on the Send-DiagnosticData command, see [Fallback log colle
6767

6868
## Azure Local disconnected when the appliance VM is connected to Azure
6969

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.
7171

7272
The following diagram shows the key components for log collection in Azure Local disconnected when the appliance VM is connected to Azure:
7373

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":::
7575

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.
7777

7878
1. Use [Deploy disconnected operations for Azure Local (Preview)](disconnected-operations-deploy.md) to set up the following Azure resources:
7979

8080
- 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.
8282
- Copy the `AppId` and `Password` from the output. Use them as **ServicePrincipalId** and **ServicePrincipalSecret** during observability setup.
8383

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.
8585

86-
```azurecli
86+
```Powershell
8787
Import-Module "<disconnected operations module folder path>\Azure.Local.DisconnectedOperations.psd1" -Force
8888
```
8989
@@ -112,15 +112,15 @@ Here's what you need to perform log collection in a connected disconnected opera
112112
- Identify the management client certificate used to authenticate with the Azure Local disconnected operations management endpoint.
113113
- Set up the management endpoint client context. Run this script:
114114
115-
```azurecli
115+
```powershell
116116
$certPasswordPlainText = "***"
117117
$certPassword = ConvertTo-SecureString $certPasswordPlainText -AsPlainText -Force
118118
$context = Set-DisconnectedOperationsClientContext -ManagementEndpointClientCertificatePath "<Management Endpoint Client Cert Path>" -ManagementEndpointClientCertificatePassword $certPassword -ManagementEndpointIpAddress "<Management Endpoint IP address>"
119119
```
120120
121121
1. Retrieve BitLocker keys:
122122
123-
```azurecli
123+
```powershell
124124
$recoveryKeys = Get-ApplianceBitlockerRecoveryKeys $context # context can be omitted if context is set.
125125
$recoveryKeys
126126
```
@@ -485,17 +485,17 @@ For more information, see [Use appliance fallback log collection](disconnected-o
485485
486486
Use on-demand direct log collection when an on-premises device running Azure Local temporarily has connectivity to Azure.
487487
488-
- Improper Execution of Send-DiagnosticData.
489-
- Log collection fails when customers attempt to run Send-DiagnosticData or copy diagnostic data from:
488+
- Improper Execution of `Send-DiagnosticData`.
489+
- Log collection fails when customers attempt to run `Send-DiagnosticData` or `Copy-DiagnosticData` from:
490490
- Nodes that are not part of the Azure Local host infrastructure.
491-
- External machines (e.g., personal laptops) that do not host the required appliance VMs (such as IRVM) on the same Hyper-V host.
491+
- External machines (e.g., personal laptops) that don't host the required appliance VMs on the same Hyper-V host.
492492
493493
- Misuse of the Observability Tool.
494494
- The Standalone Observability Tool must be:
495495
- Run on a Windows Server.
496496
- Configured with additional manual steps if executed in unsupported environments.
497497
498-
### Indirect or Fallback Log Collection (Disconnected Mode)
498+
### Indirect or fallback log collection (disconnected mode)
499499
500500
Use indirect log collection methods when direct upload is not possible:
501501
@@ -507,7 +507,7 @@ Use indirect log collection methods when direct upload is not possible:
507507
- The share folder is accessible.
508508
- Troubleshooting instructions are provided for common failures (e.g., permission issues, missing dependencies).
509509
510-
### Uploading Logs to Microsoft Support
510+
### Uploading logs to Microsoft Support
511511
512512
To upload collected logs to Microsoft:
513513

0 commit comments

Comments
 (0)