Add-AzStackHCIVMAttestation
Add-AzStackHCIVMAttestation configures guests for AzureStack HCI IMDS Attestation.
Syntax
Add-AzStackHCIVMAttestation
[-VMName] <String[]>
[-Force]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Add-AzStackHCIVMAttestation
[-Force]
[-VM] <Object[]>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Add-AzStackHCIVMAttestation
[-Force]
[-AddAll]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Add-AzStackHCIVMAttestation configures guests for AzureStack HCI IMDS Attestation.
Examples
Example 1:
Add-AzStackHCIVMAttestation -AddAll
Name AttestationHost Status
---- --------------- ------
183hcinode1 HCINODE2 Connected
bhat2 HCINODE2 Connected
ppnt3n1 HCINODE2 Connected
ppt3n0 HCINODE2 Connected
ppt5pn0 HCINODE2 Connected
ppt6pn0 HCINODE2 Connected
ppt7pn0 HCINODE2 Connected
Adding all guests on current node
Example 2:
Invoke-Command -ScriptBlock {Add-AzStackHCIVMAttestation -VMName "bhat2", "ppt7pn0"} -ComputerName "HCINODE2"
Name : bhat2
AttestationHost : HCINODE2
Status : Connected
PSComputerName : HCINODE2
RunspaceId : 1ec3f1f5-832d-47d3-a5db-2a43ef3fdfdf
Name : ppt7pn0
AttestationHost : HCINODE2
Status : Connected
PSComputerName : HCINODE2
RunspaceId : 1ec3f1f5-832d-47d3-a5db-2a43ef3fdfdf
Invoking from the management node/WAC
Parameters
-AddAll
Specifies a switch that will add all current guest VMs on host to IMDS Attestation on the current node.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
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 |
-Force
No confirmations.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VM
Specifies an array of VM objects from Get-VM.
Type: | Object[] |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-VMName
Specifies an array of guest VMs to enable.
Type: | String[] |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
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 |
Inputs
Object[]
String[]
Outputs
Azure PowerShell