Get-AzConnectedLicense
擷取授權檢視的相關信息。
語法
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
擷取授權檢視的相關信息。
範例
範例 1:取得 ESU 授權的清單
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
取得 ESU 授權清單
範例 2:取得特定的 ESU 授權
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
取得特定的 ESU 授權
參數
-DefaultProfile
DefaultProfile 參數無法運作。 如果針對不同的訂用帳戶執行 Cmdlet,請使用 SubscriptionId 參數。
類型: | PSObject |
別名: | AzureRMContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-Name
授權的名稱。
類型: | String |
別名: | LicenseName |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-ResourceGroupName
資源群組的名稱。 名稱不區分大小寫。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-SubscriptionId
目標訂用帳戶的標識碼。
類型: | String[] |
Position: | Named |
預設值: | (Get-AzContext).Subscription.Id |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |