編集

次の方法で共有


New-AzConnectedLicenseDetail

Create an in-memory object for LicenseDetails.

Syntax

New-AzConnectedLicenseDetail
   [-Edition <String>]
   [-Processor <Int32>]
   [-State <String>]
   [-Target <String>]
   [-Type <String>]
   [-VolumeLicenseDetail <IVolumeLicenseDetails[]>]
   [<CommonParameters>]

Description

Create an in-memory object for LicenseDetails.

Examples

Example 1: get the detail of an ESU license

New-AzConnectedLicenseDetail -State 'Activated' -Target 'Windows Server 2012' -Edition 'Datacenter' -Type 'pCore' -Processor 16

AssignedLicense     :
Edition             : Datacenter
ImmutableId         :
Processor           : 16
State               : Activated
Target              : Windows Server 2012
Type                : pCore
VolumeLicenseDetail :

get the detail of an ESU license

Parameters

-Edition

Describes the edition of the license. The values are either Standard or Datacenter.

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

-Processor

Describes the number of processors.

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

-State

Describes the state of the license.

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

-Target

Describes the license target server.

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

-Type

Describes the license core type (pCore or vCore).

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

-VolumeLicenseDetail

A list of volume license details.

Type:IVolumeLicenseDetails[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

LicenseDetails