Edit

Share via


Remove-AzStackHCIVMAttestation

Remove-AzStackHCIVMAttestation removes guests from AzureStack HCI IMDS Attestation.

Syntax

VMName (Default)

Remove-AzStackHCIVMAttestation
    [-VMName] <String[]>
    [-Force]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

VMObject

Remove-AzStackHCIVMAttestation
    [-VM] <Object[]>
    [-Force]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

RemoveAll

Remove-AzStackHCIVMAttestation
    [-Force]
    [-RemoveAll]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

Remove-AzStackHCIVMAttestation removes guests from AzureStack HCI IMDS Attestation.

Examples

Example 1:

Remove-AzStackHCIVMAttestation -RemoveAll
Name        AttestationHost       Status
----        ---------------       ------
183hcinode1 HCINODE2        Disconnected
bhat2       HCINODE2        Disconnected
ppnt3n1     HCINODE2        Disconnected
ppt3n0      HCINODE2        Disconnected
ppt5pn0     HCINODE2        Disconnected
ppt6pn0     HCINODE2        Disconnected
ppt7pn0     HCINODE2        Disconnected

Removing all guests on current node

Parameters

-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

-RemoveAll

Specifies a switch that will remove all guest VMs from Attestation on the current node

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

RemoveAll
Position:Named
Mandatory:True
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.

Inputs

Object

String

Outputs

PSObject