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
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Azure PowerShell