New-AzConnectedLicenseProfile
De bewerking voor het maken van een licentieprofiel.
Syntaxis
New-AzConnectedLicenseProfile
-MachineName <String>
-ResourceGroupName <String>
[-SubscriptionId <String>]
-Location <String>
[-EsuProfileAssignedLicense <String>]
[-ProductProfileProductFeature <IProductFeature[]>]
[-ProductProfileProductType <String>]
[-ProductProfileSubscriptionStatus <String>]
[-SoftwareAssuranceCustomer]
[-Tag <Hashtable>]
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-AzConnectedLicenseProfile
-MachineName <String>
-ResourceGroupName <String>
[-SubscriptionId <String>]
-JsonString <String>
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-AzConnectedLicenseProfile
-MachineName <String>
-ResourceGroupName <String>
[-SubscriptionId <String>]
-JsonFilePath <String>
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-AzConnectedLicenseProfile
-MachineName <String>
-ResourceGroupName <String>
[-SubscriptionId <String>]
-Parameter <ILicenseProfile>
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-AzConnectedLicenseProfile
-InputObject <IConnectedMachineIdentity>
-Location <String>
[-EsuProfileAssignedLicense <String>]
[-ProductProfileProductFeature <IProductFeature[]>]
[-ProductProfileProductType <String>]
[-ProductProfileSubscriptionStatus <String>]
[-SoftwareAssuranceCustomer]
[-Tag <Hashtable>]
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-AzConnectedLicenseProfile
-InputObject <IConnectedMachineIdentity>
-Parameter <ILicenseProfile>
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
De bewerking voor het maken van een licentieprofiel.
Voorbeelden
Voorbeeld 1: Een licentieprofiel voor een machine maken
$productfeature = New-AzConnectedLicenseProfileFeature -Name "Hotpatch" -SubscriptionStatus "Enable"
New-AzConnectedLicenseProfile -MachineName "WIN-IAH3TLSP7A8" -ResourceGroupName "PayGo_cmdlet" -Location "eastus" -ProductProfileProductType "WindowsServer" -ProductProfileSubscriptionStatus "Enabled" -ProductProfileProductFeature $productfeature
AdditionalInfo :
Code :
Detail :
EsuProfileAssignedLicense :
EsuProfileAssignedLicenseImmutableId :
EsuProfileEsuEligibility : Ineligible
EsuProfileEsuKey : {}
EsuProfileEsuKeyState : Inactive
EsuProfileServerType : Datacenter
Id : /subscriptions/********-****-****-****-**********/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
Een licentieprofiel voor een machine maken
Parameters
-AsJob
De opdracht uitvoeren als een taak
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-Confirm
U wordt gevraagd om bevestiging voordat u de cmdlet uitvoert.
Type: | SwitchParameter |
Aliassen: | cf |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-DefaultProfile
De parameter DefaultProfile is niet functioneel. Gebruik de parameter SubscriptionId indien beschikbaar als u de cmdlet uitvoert voor een ander abonnement.
Type: | PSObject |
Aliassen: | AzureRMContext, AzureCredential |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-EsuProfileAssignedLicense
De resource-id van de licentie.
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-InputObject
Identiteitsparameter
Type: | IConnectedMachineIdentity |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | True |
Jokertekens accepteren: | False |
-JsonFilePath
Pad van het Json-bestand dat is opgegeven bij de bewerking Maken
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-JsonString
Json-tekenreeks die is opgegeven bij de bewerking Maken
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-Location
De geografische locatie waar de resource zich bevindt
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-MachineName
De naam van de hybride machine.
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-NoWait
De opdracht asynchroon uitvoeren
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-Parameter
Beschrijft een licentieprofiel op een hybride machine.
Type: | ILicenseProfile |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | True |
Jokertekens accepteren: | False |
-ProductProfileProductFeature
De lijst met productfuncties.
Type: | IProductFeature[] |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-ProductProfileProductType
Geeft het producttype van de licentie aan.
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-ProductProfileSubscriptionStatus
Geeft de abonnementsstatus van het product aan.
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-ResourceGroupName
De naam van de resourcegroep. De naam is niet hoofdlettergevoelig.
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-SoftwareAssuranceCustomer
Hiermee geeft u op of deze machine een licentie heeft als onderdeel van een Software Assurance-overeenkomst.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-SubscriptionId
De id van het doelabonnement.
Type: | String |
Position: | Named |
Default value: | (Get-AzContext).Subscription.Id |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-Tag
Resourcetags.
Type: | Hashtable |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-WhatIf
Toont wat er zou gebeuren als de cmdlet wordt uitgevoerd. De cmdlet wordt niet uitgevoerd.
Type: | SwitchParameter |
Aliassen: | wi |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
Invoerwaarden
Uitvoerwaarden
Azure PowerShell