Get-AzStackHCILogsDirectory
Returns Logs directory path on the current node.
Syntax
Get-AzStackHCILogsDirectory
[[-Credential] <PSCredential>]
[[-ComputerName] <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Returns Logs directory path on the current node.
Examples
Example 1: The example below returns the logs directory path on the current node.
Get-AzStackHCILogsDirectory
HCI Registration Logs directory path: C:\ProgramData\AzureStackHCI
The output shows the logs directory of the HCI registration logs
Parameters
-ComputerName
Specifies one of the cluster node in on-premise cluster that is registered to Azure.
Type: | String |
Position: | 2 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Credential
Specifies the credential for the ComputerName. Default is the current user executing the Cmdlet.
Type: | PSCredential |
Position: | 1 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Outputs
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure PowerShell