你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Update-AzConnectedLicenseProfile
用于更新许可证配置文件的操作。
语法
Update-AzConnectedLicenseProfile
-MachineName <String>
-ResourceGroupName <String>
[-SubscriptionId <String>]
[-EsuProfileAssignedLicense <String>]
[-ProductProfileProductFeature <IProductFeatureUpdate[]>]
[-ProductProfileProductType <String>]
[-ProductProfileSubscriptionStatus <String>]
[-SoftwareAssuranceCustomer]
[-Tag <Hashtable>]
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzConnectedLicenseProfile
-MachineName <String>
-ResourceGroupName <String>
[-SubscriptionId <String>]
-JsonString <String>
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzConnectedLicenseProfile
-MachineName <String>
-ResourceGroupName <String>
[-SubscriptionId <String>]
-JsonFilePath <String>
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzConnectedLicenseProfile
-MachineName <String>
-ResourceGroupName <String>
[-SubscriptionId <String>]
-Parameter <ILicenseProfileUpdate>
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzConnectedLicenseProfile
-InputObject <IConnectedMachineIdentity>
[-EsuProfileAssignedLicense <String>]
[-ProductProfileProductFeature <IProductFeatureUpdate[]>]
[-ProductProfileProductType <String>]
[-ProductProfileSubscriptionStatus <String>]
[-SoftwareAssuranceCustomer]
[-Tag <Hashtable>]
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzConnectedLicenseProfile
-InputObject <IConnectedMachineIdentity>
-Parameter <ILicenseProfileUpdate>
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
说明
用于更新许可证配置文件的操作。
示例
示例 1:更新计算机的许可证配置文件
$productfeature = Update-AzConnectedLicenseProfileFeature -Name "Hotpatch" -SubscriptionStatus "Enable"
Update-AzConnectedLicenseProfile -MachineName "WIN-IAH3TLSP7A8" -ResourceGroupName "PayGo_cmdlet" -ProductProfileProductType "WindowsServer" -ProductProfileSubscriptionStatus "Enabled" -ProductProfileProductFeature $productfeature
AdditionalInfo :
Code :
Detail :
EsuProfileAssignedLicense :
EsuProfileAssignedLicenseImmutableId :
EsuProfileEsuEligibility : Ineligible
EsuProfileEsuKey :
EsuProfileEsuKeyState : Inactive
EsuProfileServerType : Datacenter
Id : /subscriptions/********-****-****-****-**********/resourceGroups/e
dyoung/providers/Microsoft.HybridCompute/machines/WIN-89LGOPE94T3/li
censeProfiles/default
Location : centraluseuap
Message :
Name : default
ProductProfileBillingEndDate :
ProductProfileBillingStartDate :
ProductProfileDisenrollmentDate :
ProductProfileEnrollmentDate :
ProductProfileProductFeature : {{
"name": "WindowsServerAzureArcMgmt",
"subscriptionStatus": "Enabled",
"enrollmentDate": "2024-11-07T19:22:26.8693148Z",
"billingStartDate": "2024-11-07T19:22:26.8693071Z"
}}
ProductProfileProductType : WindowsServer
ProductProfileSubscriptionStatus :
ProvisioningState : Succeeded
ResourceGroupName : edyoung
SoftwareAssuranceCustomer : True
SystemDataCreatedAt :
SystemDataCreatedBy :
SystemDataCreatedByType :
SystemDataLastModifiedAt :
SystemDataLastModifiedBy :
SystemDataLastModifiedByType :
Tags : {
}
Target :
Type : Microsoft.HybridCompute/machines/licenseProfiles
更新计算机的许可证配置文件
参数
-AsJob
以作业身份运行命令
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Confirm
在运行 cmdlet 之前,提示你进行确认。
类型: | SwitchParameter |
别名: | cf |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-DefaultProfile
DefaultProfile 参数不起作用。 如果对其他订阅执行 cmdlet,请使用 SubscriptionId 参数。
类型: | PSObject |
别名: | AzureRMContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-EsuProfileAssignedLicense
许可证的资源 ID。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-InputObject
标识参数
类型: | IConnectedMachineIdentity |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-JsonFilePath
提供给更新操作的 Json 文件的路径
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-JsonString
提供给更新操作的 Json 字符串
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-MachineName
混合计算机的名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-NoWait
异步运行命令
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Parameter
描述许可证配置文件更新。
类型: | ILicenseProfileUpdate |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-ProductProfileProductFeature
产品功能更新列表。
类型: | IProductFeatureUpdate[] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-ProductProfileProductType
指示许可证的产品类型。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-ProductProfileSubscriptionStatus
指示产品的订阅状态。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-ResourceGroupName
资源组的名称。 名称不区分大小写。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-SoftwareAssuranceCustomer
指定此计算机是否作为软件保障协议的一部分获得许可。
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-SubscriptionId
目标订阅的 ID。
类型: | String |
Position: | Named |
默认值: | (Get-AzContext).Subscription.Id |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Tag
资源标记
类型: | Hashtable |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-WhatIf
显示 cmdlet 运行时会发生什么情况。 cmdlet 未运行。
类型: | SwitchParameter |
别名: | wi |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |