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>]
Description
更新授權配置檔的作業。
範例
範例 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
授權的資源標識碼。
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-InputObject
Identity 參數
類型: | 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
目標訂用帳戶的標識碼。
類型: | 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 |