external help file | Module Name | online version | schema |
---|---|---|---|
Az.StackHCI-help.xml |
Az.StackHCI |
2.0.0 |
Add-AzStackHCIVMAttestation configures guests for AzureStack HCI IMDS Attestation.
Add-AzStackHCIVMAttestation [-VMName] <String[]> [-Force] [-WhatIf]
[-Confirm] [<CommonParameters>]
Add-AzStackHCIVMAttestation [-Force] [-VM] <Object[]> [-WhatIf] [-Confirm]
[<CommonParameters>]
Add-AzStackHCIVMAttestation [-Force] [-AddAll] [-WhatIf] [-Confirm]
[<CommonParameters>]
Add-AzStackHCIVMAttestation configures guests for AzureStack HCI IMDS Attestation.
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
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
Specifies a switch that will add all current guest VMs on host to IMDS Attestation on the current node.
Type: System.Management.Automation.SwitchParameter
Parameter Sets: AddAll
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
No confirmations.
Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies an array of VM objects from Get-VM.
Type: System.Object[]
Parameter Sets: VMObject
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Specifies an array of guest VMs to enable.
Type: System.String[]
Parameter Sets: VMName
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Prompts you for confirmation before running the cmdlet.
Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.