License Profiles - List
The operation to get all license profiles of a non-Azure machine
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/licenseProfiles?api-version=2025-01-13
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
machine
|
path | True |
string minLength: 1maxLength: 54 pattern: ^[a-zA-Z0-9-_\.]{1,54}$ |
The name of the machine. |
resource
|
path | True |
string minLength: 1maxLength: 90 |
The name of the resource group. The name is case insensitive. |
subscription
|
path | True |
string minLength: 1 |
The ID of the target subscription. |
api-version
|
query | True |
string minLength: 1 |
The API version to use for this operation. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK |
|
Other Status Codes |
Error response describing why the operation failed. |
Security
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
List all License Profiles
Sample request
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/machines/myMachine/licenseProfiles?api-version=2025-01-13
Sample response
{
"value": [
{
"id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Machines/myMachine/licenseProfiles/default",
"name": "default",
"type": "Microsoft.HybridCompute/machines/licenseProfiles",
"location": "eastus2euap",
"tags": null,
"properties": {
"softwareAssurance": {
"softwareAssuranceCustomer": true
},
"esuProfile": {
"assignedLicense": "{LicenseResourceId}",
"esuEligibility": "Eligible",
"serverType": "Standard",
"esuKeyState": "Inactive",
"esuKeys": [
{
"sku": "skuNumber1",
"licenseStatus": 1
},
{
"sku": "skuNumber2",
"licenseStatus": 1
}
]
},
"productProfile": {
"subscriptionStatus": "Enabled",
"productType": "WindowsServer",
"enrollmentDate": "2023-10-05T20:36:49.745Z",
"billingStartDate": "2023-10-05T20:36:49.745Z",
"disenrollmentDate": "2023-11-05T20:36:49.745Z",
"billingEndDate": "2023-11-05T20:36:49.745Z",
"productFeatures": [
{
"name": "Hotpatch",
"subscriptionStatus": "Enabled",
"enrollmentDate": "2023-10-05T20:36:49.745Z",
"billingStartDate": "2023-10-05T20:36:49.745Z",
"disenrollmentDate": "2023-11-05T20:36:49.745Z",
"billingEndDate": "2023-11-05T20:36:49.745Z"
}
]
}
}
}
]
}
Definitions
Name | Description |
---|---|
created |
The type of identity that created the resource. |
Error |
The resource management error additional info. |
Error |
The error detail. |
Error |
Error response |
Esu |
The ESU eligibility. |
Esu |
ESU key |
Esu |
The ESU key state. |
Esu |
The server types for Esu. |
License |
Describes a license profile in a hybrid machine. |
License |
The product type of the license. |
License |
The List hybrid machine license profile operation response. |
License |
Subscription status of the OS or Product feature. |
Product |
Product Feature |
Provisioning |
The provisioning state, which only appears in the response. |
system |
Metadata pertaining to creation and last modification of the resource. |
createdByType
The type of identity that created the resource.
Value | Description |
---|---|
User | |
Application | |
ManagedIdentity | |
Key |
ErrorAdditionalInfo
The resource management error additional info.
Name | Type | Description |
---|---|---|
info |
object |
The additional info. |
type |
string |
The additional info type. |
ErrorDetail
The error detail.
Name | Type | Description |
---|---|---|
additionalInfo |
The error additional info. |
|
code |
string |
The error code. |
details |
The error details. |
|
message |
string |
The error message. |
target |
string |
The error target. |
ErrorResponse
Error response
Name | Type | Description |
---|---|---|
error |
The error object. |
EsuEligibility
The ESU eligibility.
Value | Description |
---|---|
Eligible | |
Ineligible | |
Unknown |
EsuKey
ESU key
Name | Type | Description |
---|---|---|
licenseStatus |
integer (int32) |
The current status of the license profile key. Represented by the same integer value that is presented on the machine itself when querying the license key status. |
sku |
string |
SKU number. |
EsuKeyState
The ESU key state.
Value | Description |
---|---|
Inactive | |
Active |
EsuServerType
The server types for Esu.
Value | Description |
---|---|
Standard | |
Datacenter |
LicenseProfile
Describes a license profile in a hybrid machine.
Name | Type | Description |
---|---|---|
assignedLicenseImmutableId |
string |
The guid id of the license. |
esuKeys |
Esu |
The list of ESU keys. |
id |
string |
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
location |
string |
The geo-location where the resource lives |
name |
string |
The name of the resource |
properties.esuProfile.assignedLicense |
string |
The resource id of the license. |
properties.esuProfile.esuEligibility |
Indicates the eligibility state of Esu. |
|
properties.esuProfile.esuKeyState |
Indicates whether there is an ESU Key currently active for the machine. |
|
properties.esuProfile.serverType |
The type of the Esu servers. |
|
properties.productProfile.billingEndDate |
string (date-time) |
The timestamp in UTC when the billing ends. |
properties.productProfile.billingStartDate |
string (date-time) |
The timestamp in UTC when the billing starts. |
properties.productProfile.disenrollmentDate |
string (date-time) |
The timestamp in UTC when the user disenrolled the feature. |
properties.productProfile.enrollmentDate |
string (date-time) |
The timestamp in UTC when the user enrolls the feature. |
properties.productProfile.error |
The errors that were encountered during the feature enrollment or disenrollment. |
|
properties.productProfile.productFeatures |
The list of product features. |
|
properties.productProfile.productType |
Indicates the product type of the license. |
|
properties.productProfile.subscriptionStatus |
Indicates the subscription status of the product. |
|
properties.provisioningState |
The provisioning state, which only appears in the response. |
|
properties.softwareAssurance.softwareAssuranceCustomer |
boolean |
Specifies if this machine is licensed as part of a Software Assurance agreement. |
systemData |
Azure Resource Manager metadata containing createdBy and modifiedBy information. |
|
tags |
object |
Resource tags. |
type |
string |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
LicenseProfileProductType
The product type of the license.
Value | Description |
---|---|
WindowsServer | |
WindowsIoTEnterprise |
LicenseProfilesListResult
The List hybrid machine license profile operation response.
Name | Type | Description |
---|---|---|
nextLink |
string |
The URI to fetch the next page of Machines. Call ListNext() with this URI to fetch the next page of license profile. |
value |
The list of license profiles. |
LicenseProfileSubscriptionStatus
Subscription status of the OS or Product feature.
Value | Description |
---|---|
Unknown | |
Enabling | |
Enabled | |
Disabled | |
Disabling | |
Failed |
ProductFeature
Product Feature
Name | Type | Description |
---|---|---|
billingEndDate |
string (date-time) |
The timestamp in UTC when the billing ends. |
billingStartDate |
string (date-time) |
The timestamp in UTC when the billing starts. |
disenrollmentDate |
string (date-time) |
The timestamp in UTC when the user disenrolled the feature. |
enrollmentDate |
string (date-time) |
The timestamp in UTC when the user enrolls the feature. |
error |
The errors that were encountered during the feature enrollment or disenrollment. |
|
name |
string |
Product feature name. |
subscriptionStatus |
Indicates the current status of the product features. |
ProvisioningState
The provisioning state, which only appears in the response.
Value | Description |
---|---|
Creating | |
Updating | |
Deleting | |
Succeeded | |
Failed | |
Accepted | |
Canceled | |
Deleted |
systemData
Metadata pertaining to creation and last modification of the resource.
Name | Type | Description |
---|---|---|
createdAt |
string (date-time) |
The timestamp of resource creation (UTC). |
createdBy |
string |
The identity that created the resource. |
createdByType |
The type of identity that created the resource. |
|
lastModifiedAt |
string (date-time) |
The timestamp of resource last modification (UTC) |
lastModifiedBy |
string |
The identity that last modified the resource. |
lastModifiedByType |
The type of identity that last modified the resource. |