Table of contents
TLS
TOC
Collapse the table of content
Expand the table of content

Get-ShieldedVMProvisioningStatus

Last Updated: 4/3/2017

SYNOPSIS

Queries the provisioning status of a shielded virtual machine.

SYNTAX

ByName (Default)

Get-ShieldedVMProvisioningStatus [-VMName] <String> [<CommonParameters>]

ByVM

Get-ShieldedVMProvisioningStatus [-VM] <VirtualMachine> [<CommonParameters>]

ByInstance

Get-ShieldedVMProvisioningStatus -ProvisioningJob <CimInstance> [<CommonParameters>]

DESCRIPTION

The Get-ShieldedVMProvisioningStatus cmdlet queries the provisioning status of a shielded virtual machine.

EXAMPLES

Example 1: Get the provisioning job status for a virtual machine

PS C:\>Get-ShieldedVMProvisioningStatus -VMName "MyVM"

This command gets the provisioning job status for the virtual machine named MyVM.

Example 2: Get the provisioning job status for a virtual machine using a variable

PS C:\>$VM = Get-VM -VMName "MyVM"
Get-ShieldedVMProvisioningStatus -VM $VM

The first command gets the virtual machine named MyVM and stores it in the variable named $VM.

The second command gets the provisioning job status for the virtual machine stored in the variable named $VM.

Example 3: Get the provisioning job status for a virtual machine using an existing provisioning job object

PS C:\>$Job = Get-ShieldedVMProvisioningStatus -VMName "MyVM"
Get-ShieldedVMProvisioningStatus -ProvisioningJob $Job

The first command gets the provisioning job status for the virtual machine named MyVM and stores it in the variable named $Job.

The second command calls Get-ShieldedVMProvisioningStatus again using the provisioning job status stored in the $Job variable.

PARAMETERS

-VMName

Specifies the name of the virtual machine that this cmdlet provisions.

Type: String
Parameter Sets: ByName
Aliases: 

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-VM

Specifies the virtual machine that this cmdlet provisions.

Type: VirtualMachine
Parameter Sets: ByVM
Aliases: 

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ProvisioningJob

Specifies a CimInstance object returned from either the Initialize-ShieldedVM cmdlet or a prior call to the Get-ShieldedVMProvisioningStatus cmdlet.

Type: CimInstance
Parameter Sets: ByInstance
Aliases: 

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

Get-KeyProtectorFromShieldingDataFile

Initialize-ShieldedVM

New-ShieldedVMSpecializationDataFile

Test-ShieldingDataApplicability

© 2017 Microsoft