Add-AzStackHCIVMAttestation
Add-AzStackHCIVMAttestation configures guests for AzureStack HCI IMDS Attestation.
Syntax
VMName (Default)
Add-AzStackHCIVMAttestation
[-VMName] <String[]>
[-Force]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
VMObject
Add-AzStackHCIVMAttestation
[-VM] <Object[]>
[-Force]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
AddAll
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.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
AddAll
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Confirm
Prompts you for confirmation before running the cmdlet.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | cf |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Force
No confirmations.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-VM
Specifies an array of VM objects from Get-VM.
Parameter properties
Type: | Object[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
VMObject
Position: | 1 |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-VMName
Specifies an array of guest VMs to enable.
Parameter properties
Type: | String[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
VMName
Position: | 1 |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | wi |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.