Notes
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
Bicep resource definition
The licenses resource type can be deployed with operations that target:
- Resource groups - See resource group deployment commands
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.HybridCompute/licenses resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.HybridCompute/licenses@2024-05-20-preview' = {
location: 'string'
name: 'string'
properties: {
licenseDetails: {
edition: 'string'
processors: int
state: 'string'
target: 'string'
type: 'string'
volumeLicenseDetails: [
{
invoiceId: 'string'
programYear: 'string'
}
]
}
licenseType: 'string'
tenantId: 'string'
}
tags: {
{customized property}: 'string'
}
}
Property Values
LicenseDetails
Name | Description | Value |
---|---|---|
edition | Describes the edition of the license. The values are either Standard or Datacenter. | 'Datacenter' 'Standard' |
processors | Describes the number of processors. | int |
state | Describes the state of the license. | 'Activated' 'Deactivated' |
target | Describes the license target server. | 'Windows Server 2012 R2' 'Windows Server 2012' |
type | Describes the license core type (pCore or vCore). | 'pCore' 'vCore' |
volumeLicenseDetails | A list of volume license details. | VolumeLicenseDetails[] |
LicenseProperties
Name | Description | Value |
---|---|---|
licenseDetails | Describes the properties of a License. | LicenseDetails |
licenseType | The type of the license resource. | 'ESU' |
tenantId | Describes the tenant id. | string |
Microsoft.HybridCompute/licenses
Name | Description | Value |
---|---|---|
location | The geo-location where the resource lives | string (required) |
name | The resource name | string Constraints: Pattern = [a-zA-Z0-9-_\.]+ (required) |
properties | Hybrid Compute License properties | LicenseProperties |
tags | Resource tags | Dictionary of tag names and values. See Tags in templates |
TrackedResourceTags
Name | Description | Value |
---|
VolumeLicenseDetails
Name | Description | Value |
---|---|---|
invoiceId | The invoice id for the volume license. | string |
programYear | Describes the program year the volume license is for. | 'Year 1' 'Year 2' 'Year 3' |
Exemples d’utilisation
Modules vérifiés Azure
The following Azure Verified Modules can be used to deploy this resource type.
Module | Description |
---|---|
Hybrid Compute License | AVM Resource Module for Hybrid Compute License |
ARM template resource definition
The licenses resource type can be deployed with operations that target:
- Resource groups - See resource group deployment commands
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.HybridCompute/licenses resource, add the following JSON to your template.
{
"type": "Microsoft.HybridCompute/licenses",
"apiVersion": "2024-05-20-preview",
"name": "string",
"location": "string",
"properties": {
"licenseDetails": {
"edition": "string",
"processors": "int",
"state": "string",
"target": "string",
"type": "string",
"volumeLicenseDetails": [
{
"invoiceId": "string",
"programYear": "string"
}
]
},
"licenseType": "string",
"tenantId": "string"
},
"tags": {
"{customized property}": "string"
}
}
Property Values
LicenseDetails
Name | Description | Value |
---|---|---|
edition | Describes the edition of the license. The values are either Standard or Datacenter. | 'Datacenter' 'Standard' |
processors | Describes the number of processors. | int |
state | Describes the state of the license. | 'Activated' 'Deactivated' |
target | Describes the license target server. | 'Windows Server 2012 R2' 'Windows Server 2012' |
type | Describes the license core type (pCore or vCore). | 'pCore' 'vCore' |
volumeLicenseDetails | A list of volume license details. | VolumeLicenseDetails[] |
LicenseProperties
Name | Description | Value |
---|---|---|
licenseDetails | Describes the properties of a License. | LicenseDetails |
licenseType | The type of the license resource. | 'ESU' |
tenantId | Describes the tenant id. | string |
Microsoft.HybridCompute/licenses
Name | Description | Value |
---|---|---|
apiVersion | The api version | '2024-05-20-preview' |
location | The geo-location where the resource lives | string (required) |
name | The resource name | string Constraints: Pattern = [a-zA-Z0-9-_\.]+ (required) |
properties | Hybrid Compute License properties | LicenseProperties |
tags | Resource tags | Dictionary of tag names and values. See Tags in templates |
type | The resource type | 'Microsoft.HybridCompute/licenses' |
TrackedResourceTags
Name | Description | Value |
---|
VolumeLicenseDetails
Name | Description | Value |
---|---|---|
invoiceId | The invoice id for the volume license. | string |
programYear | Describes the program year the volume license is for. | 'Year 1' 'Year 2' 'Year 3' |
Exemples d’utilisation
Terraform (AzAPI provider) resource definition
The licenses resource type can be deployed with operations that target:
- Resource groups
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.HybridCompute/licenses resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.HybridCompute/licenses@2024-05-20-preview"
name = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = {
properties = {
licenseDetails = {
edition = "string"
processors = int
state = "string"
target = "string"
type = "string"
volumeLicenseDetails = [
{
invoiceId = "string"
programYear = "string"
}
]
}
licenseType = "string"
tenantId = "string"
}
}
}
Property Values
LicenseDetails
Name | Description | Value |
---|---|---|
edition | Describes the edition of the license. The values are either Standard or Datacenter. | 'Datacenter' 'Standard' |
processors | Describes the number of processors. | int |
state | Describes the state of the license. | 'Activated' 'Deactivated' |
target | Describes the license target server. | 'Windows Server 2012 R2' 'Windows Server 2012' |
type | Describes the license core type (pCore or vCore). | 'pCore' 'vCore' |
volumeLicenseDetails | A list of volume license details. | VolumeLicenseDetails[] |
LicenseProperties
Name | Description | Value |
---|---|---|
licenseDetails | Describes the properties of a License. | LicenseDetails |
licenseType | The type of the license resource. | 'ESU' |
tenantId | Describes the tenant id. | string |
Microsoft.HybridCompute/licenses
Name | Description | Value |
---|---|---|
location | The geo-location where the resource lives | string (required) |
name | The resource name | string Constraints: Pattern = [a-zA-Z0-9-_\.]+ (required) |
properties | Hybrid Compute License properties | LicenseProperties |
tags | Resource tags | Dictionary of tag names and values. |
type | The resource type | "Microsoft.HybridCompute/licenses@2024-05-20-preview" |
TrackedResourceTags
Name | Description | Value |
---|
VolumeLicenseDetails
Name | Description | Value |
---|---|---|
invoiceId | The invoice id for the volume license. | string |
programYear | Describes the program year the volume license is for. | 'Year 1' 'Year 2' 'Year 3' |