你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Disable-AzStackHCIAttestation
Disable-AzStackHCIAttestation disables IMDS Attestation on the host
Syntax
Disable-AzStackHCIAttestation
[[-ComputerName] <String>]
[-Credential <PSCredential>]
[-RemoveVM]
[-Force]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Disable-AzStackHCIAttestation disables IMDS Attestation on the host
Examples
Example 1:
Disable-AzStackHCIAttestation -RemoveVM
ComputerName Status Expiration
------------ ------ ----------
HCINODE2 Inactive
Remove all guests from IMDS Attestation before disabling on cluster nodes.
Parameters
-ComputerName
Specifies the AzureStack HCI host to perform the operation on.
Type: | String |
Position: | 1 |
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: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Force
No confirmation.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RemoveVM
Specifies the guests on each node should be removed from IMDS Attestation before disabling on cluster. Disable cannot continue before guests are removed.
Type: | SwitchParameter |
Position: | Named |
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 |