Test-AzureStackTest-AzureStack

摘要Synopsis

验证 Azure Stack Hub 的状态。Validates the status of Azure Stack Hub.

语法Syntax

Test-AzureStack [-BackupShareCredential <Object>] [-Include <Object>] [-DetailedResults]
 [-ServiceAdminCredentials <Object>] [-List] [-Group <Object>] [-DoNotDeployTenantVm] [-Repair]
 [-Ignore <Object>] [-Confirm] [-TimeoutSeconds <Object>] [-AdminCredential <Object>]
 [-BackupSharePath <Object>] [-WhatIf] [-UseRunners] [-DisableConsoleOutput] [-AsJob]

说明Description

如果未检测到任何错误,Test-AzureStack 将返回 $trueIf no faults are detected, Test-AzureStack returns $true. 如果检测到错误,它将返回 $falseIf faults are detected it will return $false.

示例Examples

示例 1Example 1

在无操作员和用户方案的情况下运行 Test-AzureStack:To run Test-AzureStack without operator and user scenarios:

[azs-ercs01\]: PS\>Test-AzureStack

在有操作员和用户方案的情况下运行 Test-AzureStack:To Run Test-AzureStack with operator and user scenarios:

[azs-ercs01\]: PS\>Test-AzureStack -ServiceAdminCredentials \<PSCredential\>

parametersParameters

-ServiceAdminCredentials-ServiceAdminCredentials

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-DoNotDeployTenantVm-DoNotDeployTenantVm

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-AdminCredential-AdminCredential

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-BackupSharePath-BackupSharePath

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-BackupShareCredential-BackupShareCredential

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: [PSCredential]::Empty
Accept pipeline input: False
Accept wildcard characters: False

-List-List

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-Ignore-Ignore

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Include-Include

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-DetailedResults-DetailedResults

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-TimeoutSeconds-TimeoutSeconds

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: 1800
Accept pipeline input: False
Accept wildcard characters: False

-Group-Group

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: Default
Accept pipeline input: False
Accept wildcard characters: False

-Repair-Repair

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-UseRunners-UseRunners

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-DisableConsoleOutput-DisableConsoleOutput

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf-WhatIf

显示运行该 cmdlet 时会发生什么情况。Shows what would happen if the cmdlet runs. cmdlet 未运行。The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Confirm-Confirm

提示你在运行 cmdlet 之前进行确认。Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-AsJob-AsJob

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

后续步骤Next steps

有关如何访问和使用特权终结点的信息,请参阅使用 Azure Stack Hub 中的特权终结点For information on how to access and use the privileged endpoint, see Use the privileged endpoint in Azure Stack Hub.