你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Enable-AzStackHCIAttestation
Enable-AzStackHCIAttestation configures the host and enables specified guests for IMDS attestation.
Syntax
Enable-AzStackHCIAttestation
[[-ComputerName] <String>]
[-Credential <PSCredential>]
[-AddVM]
[-Force]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Enable-AzStackHCIAttestation configures the host and enables specified guests for IMDS attestation.
Examples
Example 1:
Enable-AzStackHCIAttestation -AddVM
ComputerName Status Expiration
------------ ------ ----------
HCINODE2 Expired
Invoking on one of the cluster node.
Parameters
-AddVM
After enabling each cluster node for Attestation, add all guests on each node.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ComputerName
Specifies the AzureStack HCI host to perform the operation on. Note: this host should match the host of VMName.
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 confirmations.
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 |