Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies to: Azure Local 2311.2 and later
This article provides information to download and use the Azure Local Support Diagnostic Tool. The tool is a set of PowerShell commands to simplify data collection, troubleshooting, and resolution of common issues.
This tool isn't a substitute for expert knowledge. If you encounter any issues, contact Microsoft Support for assistance.
Benefits
The Azure Local Support Diagnostic Tool uses simple commands to identify issues without expert product knowledge.
The tool provides:
Easy installation and updates: Install and update natively using PowerShell Gallery, without extra requirements.
Diagnostic checks: Provides diagnostic checks based on common issues, incidents, and telemetry data.
Automatic data collection: Automatically collects important data to provide to Microsoft Support.
Regular updates: Updates with new checks and useful commands to manage, troubleshoot, and diagnose issues on Azure Local.
Prerequisites
Before you use the PowerShell module:
Make sure to use an account that has administrative access to the Azure Local machines.
Ensure that PSRemoting is configured on the Azure Local machines. Run
Enable-PSRemoting
to configure remote PowerShell. For more information, see the Enable-PSRemoting reference documentation.
Install or update the Azure Local Support Diagnostic Tool
Run PowerShell as an administrator and then run the following commands:
To install the tool, run the following command:
Install-Module –Name Microsoft.AzureStack.HCI.CSSTools
If you already have the module installed, you can update using the following cmdlet:
Update-Module -Name Microsoft.AzureStack.HCI.CSSTools
Note
When you import the module, it attempts to automatically update from PowerShell gallery. You can also update manually using methods below.
Ensure that you have the latest module loaded into the current runspace by removing and importing the module.
Remove-Module -Name Microsoft.AzureStack.HCI.CSSTools
Import-Module -Name Microsoft.AzureStack.HCI.CSSTools
Note
Ensure all machines within Azure Local have been updated to use the same version. Remove existing PSSessions to ensure the correct module version is loaded into the remote runspace.
Use the Azure Local Support Diagnostic Tool
This section provides different cmdlets for using the Azure Local Support Diagnostic Tool.
View available cmdlets
To see a list of available cmdlets within the PowerShell module, run the following cmdlet:
Get-Command -Module Microsoft.AzureStack.HCI.CSSTools
Perform diagnostic checks
You can perform a diagnostic health check against the system to help detect common issues. The following components are available:
- BaseSystem
- Registration
Invoke-AzsSupportDiagnosticCheck -Component <Component>
Collect data for support
To collect data using one of our predefined collection sets, run the following command:
New-AzsSupportDataBundle –Component <Component>
To check all data collection sets, press
CTRL+SPACE
after the parameterComponent
.To collect your own dataset, run the following command:
$ClusterCommands = @(<clusterCommand1>,<clusterCommand2>) $nodeCommands = @(<nodeCommand1>,<nodeCommand2>) $nodeEvents = @(<eventLogName1>,<eventLogName2>) $nodeRegistry = @(<registryPath1>,<registryPath2>) $nodeFolders = @(<folderPath1>,<folderPath2>) New-AzsSupportDataBundle -ClusterCommands $clusterCommands ` -NodeCommands $nodeCommands ` -NodeEvents $nodeEvents ` -NodeRegistry $nodeRegistry ` -NodeFolders $nodeFolders ` -ComputerName @(<computerName1>,<computerName2>)
Example scenarios
To troubleshoot Azure Local, run the following commands:
For deployment issues
To generate a detailed report about your deployment, including successfully executed steps, skipped steps, and error details, run the following command:
Get-AzsSupportEceDeploymentDetails
For update or upgrade issues
Get-AzsSupportEceUpdateDetails
For storage issues
Start-AzsSupportStorageDiagnostic
For complete guidance on troubleshooting storage related issues, refer to Troubleshooting-Storage-With-Support-Diagnostics-Tool.
For registration issues
Invoke-AzsSupportDiagnosticCheck -Component Registration
Here's a sample output for a registration issue:
PS C:\temp> Invoke-AzsSupportDiagnosticCheck -Component Registration
Starting known issue check for Azure Stack HCI: Registration.
Starting Azure Stack HCI base system validation.
Gathering information from all clustered nodes.
We are preparing to collect diagnostic information from your environment
We started the diagnostic data collection! This might take some time.
Finished collecting diagnostic information.
====[ Validating registration state on node: HCI-N-1 ]====
[Pass] [Azure Stack HCI - General registration state]
Validate that the cluster is registered
Details: Validation successfull
[Fail] [Azure Stack HCI - Azure Connection state]
Validate that the cluster is in a connected state
Details: This Azure Stack HCI node does not seem to be connected to azure. Ensure that this node is in a connected state.
Documentation: https://learn.microsoft.com/azure-stack/hci/deploy/troubleshoot-hci-registration.
[Pass] [Azure Arc Agent - Connection state]
Validate that the azure arc agent is connected
Details: Validation successfull
[Pass] [Azure Arc Agent - Service state]
Validate that all azure arc services are running
Details: Validation successfull
[Pass] [Azure Arc Agent - Heartbeat state]
Validate that the azure arc agent has sent out a heartbeat at least a day ago
Details: Validation successfull
[Pass] [Azure Stack HCI - Arc Agent onboarded]
Validate that all arc agent checks are passed
Details: Validation successfull
[Fail] [Validation summary]
Details: At least one node reported an invalid registration state.
We will collect log information from your envirorment.
Creating local storage container for diagnostic data.
Gathering cluster data ... this might take a while.
Cluster data collection complete.
We are preparing to collect diagnostic information from your environment
We started the diagnostic data collection! This might take some time.
Waiting for all diagnostic output to be generated and compressed ... this might take a while.
Finished collecting diagnostic information.
Starting copy of items ... this might take a while.
All items copied.
Successfully created archive C:\temp\6c5a4685-6e32-4b68-aeec-05475f8d6c6f\log-collection-RegistrationInformation07-22_06-03-2024.zip. Removing raw data C:\temp\6c5a4685-6e32-4b68-aeec-05475f8d6c6f\container.
Data collection done . Please upload the file to the Microsoft Workspace.
For base Azure Local system issues
Invoke-AzsSupportDiagnosticCheck -Component BaseSystem
Here's a sample output for base system issues:
PS C:\temp> Invoke-AzsSupportDiagnosticCheck -Component BaseSystem
Starting known issue check for Azure Stack HCI: BaseSystem.
Gathering information from all clustered nodes.
We are preparing to collect diagnostic information from your environment
We started the diagnostic data collection! This might take some time.
Starting to validate cluster settings.
[Pass] [Failover Clustering - Cluster validation report contains no errors]
Validate that there are no critical errors in the cluster validation report
Details: Validation successfull
[Pass] [Failover Clustering - Cluster Networks have redundancy]
Validate that we have redundancy in clustered networks
Details: Validation successfull
[Pass] [Failover Clustering - Validation Summary]
Validate that there are no critical issues in our cluster validation report.
Details: Validation successfull
Collecting node data.
Finished collecting diagnostic information.
====[ Validating data from node: HCI-N-1 ]====
[Pass] [Windows Features - All windows features installed]
Verify that all features required for Azure Local are installed.
Details: Validation successfull
[Pass] [Validation summary]
Ensure that no other check has returned a failed state
Details: Validation successfull
Afterwards, a comprehensive overview of the different components that are required for properly connected Azure Local systems is created. Based on this overview, you can either follow troubleshooting guidance or reach out to Microsoft Support for assistance.
To collect data, refer to the following two example scenarios:
For automatic data collection
New-AzsSupportDataBundle -Component OS
==== CUT ==================== CUT =======
Data collection done C:\temp\Azs.Support\XXXXXXX\SupportDataBundle-XX-XX_XX-XX-XXXX.zip . Please upload the file to the Microsoft Workspace
For manual data collection
$ClusterCommands = @()
$nodeCommands = @('Get-AzureStackHci','Get-AzureStackHCIArcIntegration','Get-ClusteredScheduledTask | fl *','systeminfo.exe')
$nodeEvents = @('system','application','Microsoft-AzureStack-HCI/Admin')
$nodeRegistry = @('HKLM:\Cluster\ArcForServers')
$nodeFolders = @('C:\Windows\Tasks\ArcforServers\','C:\ProgramData\AzureConnectedMachineAgent\Log\')
New-AzsSupportDataBundle -ClusterCommands $clusterCommands `
-NodeCommands $nodeCommands `
-NodeEvents $nodeEvents `
-NodeRegistry $nodeRegistry `
-NodeFolders $nodeFolders `
-ComputerName (Get-ClusterNode)
==== CUT ==================== CUT =======
Data collection done C:\temp\Azs.Support\XXXXXXX\SupportDataBundle-XX-XX_XX-XX-XXXX.zip . Please upload the file to the Microsoft Workspace.
Questions or feedback?
Do you have an issue? Would you like to share feedback with us about the Azure Local Support Diagnostic Tool? We Listen! To submit feedback, contact azlocaldiagfeedback@microsoft.com.
Next steps
For related information, see also: