你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Get-AzConnectedLicenseProfile
检索有关许可证配置文件视图的信息。
语法
Get-AzConnectedLicenseProfile
-MachineName <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
说明
检索有关许可证配置文件视图的信息。
示例
示例 1:获取计算机的 ESU 许可证配置文件
Get-AzConnectedLicenseProfile -MachineName WIN-IAH3TLSP7A8 -ResourceGroupName PayGo_cmdlet
AdditionalInfo :
Code :
Detail :
EsuProfileAssignedLicense :
EsuProfileAssignedLicenseImmutableId :
EsuProfileEsuEligibility : Ineligible
EsuProfileEsuKey : {}
EsuProfileEsuKeyState : Inactive
EsuProfileServerType : Datacenter
Id : /subscriptions/b24cc8ee-df4f-48ac-94cf-46edf36b0fae/resourceGroups/PayGo_c
mdlet/providers/Microsoft.HybridCompute/machines/WIN-IAH3TLSP7A8/licensePr
ofiles/default
Location : eastus
Message :
Name : default
ProductProfileBillingEndDate :
ProductProfileBillingStartDate : 11/15/2024 1:53:34 AM
ProductProfileDisenrollmentDate :
ProductProfileEnrollmentDate : 11/8/2024 1:53:34 AM
ProductProfileProductFeature : {{
"name": "WindowsServerAzureArcMgmt",
"subscriptionStatus": "Enabled",
"enrollmentDate": "2024-11-08T01:58:37.6099656Z",
"billingStartDate": "2024-11-08T01:58:37.6096833Z"
}, {
"name": "Hotpatch",
"subscriptionStatus": "Enabled",
"enrollmentDate": "2024-11-08T01:58:37.6095044Z",
"billingStartDate": "2025-02-01T00:00:00.0000000"
}}
ProductProfileProductType : WindowsServer
ProductProfileSubscriptionStatus : Enabled
ProvisioningState : Succeeded
ResourceGroupName : PayGo_cmdlet
SoftwareAssuranceCustomer :
SystemDataCreatedAt :
SystemDataCreatedBy :
SystemDataCreatedByType :
SystemDataLastModifiedAt :
SystemDataLastModifiedBy :
SystemDataLastModifiedByType :
Tags : {
}
Target :
Type : Microsoft.HybridCompute/machines/licenseProfiles
获取计算机的 ESU 许可证配置文件
参数
-DefaultProfile
DefaultProfile 参数不起作用。 如果对其他订阅执行 cmdlet,请使用 SubscriptionId 参数。
类型: | PSObject |
别名: | AzureRMContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-MachineName
混合计算机的名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-ResourceGroupName
资源组的名称。 名称不区分大小写。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-SubscriptionId
目标订阅的 ID。
类型: | String[] |
Position: | Named |
默认值: | (Get-AzContext).Subscription.Id |
必需: | False |
接受管道输入: | False |
接受通配符: | False |