Get-AzConnectedLicense
Retrieves information about the view of a license.
Syntax
Get-AzConnectedLicense
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzConnectedLicense
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzConnectedLicense
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
Retrieves information about the view of a license.
Examples
Example 1: Get a list of ESU licenses
Get-AzConnectedLicense -SubscriptionId ********-****-****-****-**********
Location Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy SystemDataLastModifiedByType ResourceGroupName
-------- ---- ------------------- ------------------- ----------------------- ------------------------ ------------------------ ---------------------------- -----------------
uksouth testLicense2 dakirbytest
eastus2euap myESULicense ytongtest
centraluseuap testLicense dakirbytest
centraluseuap testLicense dakirbytest
centraluseuap testLicense3 dakirbytest
centraluseuap testLicense4 dakirbytest
centraluseuap testLicense5 dakirbytest
Get a list of ESU licenses
Example 2: Get a specific ESU license
Get-AzConnectedLicense -Name 'myESULicense' -ResourceGroupName 'ytongtest' -SubscriptionId ********-****-****-****-**********
DetailAssignedLicense : 8
DetailEdition : Datacenter
DetailImmutableId : ********-****-****-****-**********
DetailProcessor : 16
DetailState : Activated
DetailTarget : Windows Server 2012
DetailType : pCore
DetailVolumeLicenseDetail :
Id : /subscriptions/********-****-****-****-**********/resourceGroups/ytongtest/providers/Microsoft.HybridCompute/licenses/myESULicense
LicenseType : ESU
Location : eastus2euap
Name : myESULicense
ProvisioningState :
ResourceGroupName : ytongtest
SystemDataCreatedAt :
SystemDataCreatedBy :
SystemDataCreatedByType :
SystemDataLastModifiedAt :
SystemDataLastModifiedBy :
SystemDataLastModifiedByType :
Tag : {
}
TenantId : ********-****-****-****-**********
Type : Microsoft.HybridCompute/licenses
Get a specific ESU license
Parameters
-DefaultProfile
The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
Type: | PSObject |
Aliases: | AzureRMContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
The name of the license.
Type: | String |
Aliases: | LicenseName |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceGroupName
The name of the resource group. The name is case insensitive.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SubscriptionId
The ID of the target subscription.
Type: | String[] |
Position: | Named |
Default value: | (Get-AzContext).Subscription.Id |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Outputs
Colabore connosco no GitHub
A origem deste conteúdo pode ser encontrada no GitHub, onde também pode criar e rever problemas e pedidos Pull. Para mais informações, consulte o nosso guia do contribuidor.
Azure PowerShell