1. Packages
  2. Azure Native v2
  3. API Docs
  4. hybridcompute
  5. License
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.hybridcompute.License

Explore with Pulumi AI

These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

Describes a license in a hybrid machine. Azure REST API version: 2023-06-20-preview.

Other available API versions: 2023-10-03-preview, 2024-03-31-preview, 2024-05-20-preview, 2024-07-10, 2024-07-31-preview, 2024-09-10-preview, 2024-11-10-preview.

Example Usage

Create or Update a License

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var license = new AzureNative.HybridCompute.License("license", new()
    {
        LicenseDetails = new AzureNative.HybridCompute.Inputs.LicenseDetailsArgs
        {
            Edition = AzureNative.HybridCompute.LicenseEdition.Datacenter,
            Processors = 6,
            State = AzureNative.HybridCompute.LicenseState.Activated,
            Target = AzureNative.HybridCompute.LicenseTarget.Windows_Server_2012,
            Type = AzureNative.HybridCompute.LicenseCoreType.PCore,
        },
        LicenseName = "{licenseName}",
        LicenseType = AzureNative.HybridCompute.LicenseType.ESU,
        Location = "eastus2euap",
        ResourceGroupName = "myResourceGroup",
    });

});
Copy
package main

import (
	hybridcompute "github.com/pulumi/pulumi-azure-native-sdk/hybridcompute/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := hybridcompute.NewLicense(ctx, "license", &hybridcompute.LicenseArgs{
			LicenseDetails: &hybridcompute.LicenseDetailsArgs{
				Edition:    pulumi.String(hybridcompute.LicenseEditionDatacenter),
				Processors: pulumi.Int(6),
				State:      pulumi.String(hybridcompute.LicenseStateActivated),
				Target:     pulumi.String(hybridcompute.LicenseTarget_Windows_Server_2012),
				Type:       pulumi.String(hybridcompute.LicenseCoreTypePCore),
			},
			LicenseName:       pulumi.String("{licenseName}"),
			LicenseType:       pulumi.String(hybridcompute.LicenseTypeESU),
			Location:          pulumi.String("eastus2euap"),
			ResourceGroupName: pulumi.String("myResourceGroup"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.hybridcompute.License;
import com.pulumi.azurenative.hybridcompute.LicenseArgs;
import com.pulumi.azurenative.hybridcompute.inputs.LicenseDetailsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var license = new License("license", LicenseArgs.builder()
            .licenseDetails(LicenseDetailsArgs.builder()
                .edition("Datacenter")
                .processors(6)
                .state("Activated")
                .target("Windows Server 2012")
                .type("pCore")
                .build())
            .licenseName("{licenseName}")
            .licenseType("ESU")
            .location("eastus2euap")
            .resourceGroupName("myResourceGroup")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const license = new azure_native.hybridcompute.License("license", {
    licenseDetails: {
        edition: azure_native.hybridcompute.LicenseEdition.Datacenter,
        processors: 6,
        state: azure_native.hybridcompute.LicenseState.Activated,
        target: azure_native.hybridcompute.LicenseTarget.Windows_Server_2012,
        type: azure_native.hybridcompute.LicenseCoreType.PCore,
    },
    licenseName: "{licenseName}",
    licenseType: azure_native.hybridcompute.LicenseType.ESU,
    location: "eastus2euap",
    resourceGroupName: "myResourceGroup",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

license = azure_native.hybridcompute.License("license",
    license_details={
        "edition": azure_native.hybridcompute.LicenseEdition.DATACENTER,
        "processors": 6,
        "state": azure_native.hybridcompute.LicenseState.ACTIVATED,
        "target": azure_native.hybridcompute.LicenseTarget.WINDOWS_SERVER_2012,
        "type": azure_native.hybridcompute.LicenseCoreType.P_CORE,
    },
    license_name="{licenseName}",
    license_type=azure_native.hybridcompute.LicenseType.ESU,
    location="eastus2euap",
    resource_group_name="myResourceGroup")
Copy
resources:
  license:
    type: azure-native:hybridcompute:License
    properties:
      licenseDetails:
        edition: Datacenter
        processors: 6
        state: Activated
        target: Windows Server 2012
        type: pCore
      licenseName: '{licenseName}'
      licenseType: ESU
      location: eastus2euap
      resourceGroupName: myResourceGroup
Copy

Create License Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new License(name: string, args: LicenseArgs, opts?: CustomResourceOptions);
@overload
def License(resource_name: str,
            args: LicenseArgs,
            opts: Optional[ResourceOptions] = None)

@overload
def License(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            resource_group_name: Optional[str] = None,
            license_details: Optional[LicenseDetailsArgs] = None,
            license_name: Optional[str] = None,
            license_type: Optional[Union[str, LicenseType]] = None,
            location: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            tenant_id: Optional[str] = None)
func NewLicense(ctx *Context, name string, args LicenseArgs, opts ...ResourceOption) (*License, error)
public License(string name, LicenseArgs args, CustomResourceOptions? opts = null)
public License(String name, LicenseArgs args)
public License(String name, LicenseArgs args, CustomResourceOptions options)
type: azure-native:hybridcompute:License
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. LicenseArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. LicenseArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. LicenseArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. LicenseArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. LicenseArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var licenseResource = new AzureNative.Hybridcompute.License("licenseResource", new()
{
    ResourceGroupName = "string",
    LicenseDetails = 
    {
        { "edition", "string" },
        { "processors", 0 },
        { "state", "string" },
        { "target", "string" },
        { "type", "string" },
    },
    LicenseName = "string",
    LicenseType = "string",
    Location = "string",
    Tags = 
    {
        { "string", "string" },
    },
    TenantId = "string",
});
Copy
example, err := hybridcompute.NewLicense(ctx, "licenseResource", &hybridcompute.LicenseArgs{
	ResourceGroupName: "string",
	LicenseDetails: map[string]interface{}{
		"edition":    "string",
		"processors": 0,
		"state":      "string",
		"target":     "string",
		"type":       "string",
	},
	LicenseName: "string",
	LicenseType: "string",
	Location:    "string",
	Tags: map[string]interface{}{
		"string": "string",
	},
	TenantId: "string",
})
Copy
var licenseResource = new License("licenseResource", LicenseArgs.builder()
    .resourceGroupName("string")
    .licenseDetails(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .licenseName("string")
    .licenseType("string")
    .location("string")
    .tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .tenantId("string")
    .build());
Copy
license_resource = azure_native.hybridcompute.License("licenseResource",
    resource_group_name=string,
    license_details={
        edition: string,
        processors: 0,
        state: string,
        target: string,
        type: string,
    },
    license_name=string,
    license_type=string,
    location=string,
    tags={
        string: string,
    },
    tenant_id=string)
Copy
const licenseResource = new azure_native.hybridcompute.License("licenseResource", {
    resourceGroupName: "string",
    licenseDetails: {
        edition: "string",
        processors: 0,
        state: "string",
        target: "string",
        type: "string",
    },
    licenseName: "string",
    licenseType: "string",
    location: "string",
    tags: {
        string: "string",
    },
    tenantId: "string",
});
Copy
type: azure-native:hybridcompute:License
properties:
    licenseDetails:
        edition: string
        processors: 0
        state: string
        target: string
        type: string
    licenseName: string
    licenseType: string
    location: string
    resourceGroupName: string
    tags:
        string: string
    tenantId: string
Copy

License Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The License resource accepts the following input properties:

ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
LicenseDetails Pulumi.AzureNative.HybridCompute.Inputs.LicenseDetails
Describes the properties of a License.
LicenseName Changes to this property will trigger replacement. string
The name of the license.
LicenseType string | Pulumi.AzureNative.HybridCompute.LicenseType
The type of the license resource.
Location Changes to this property will trigger replacement. string
The geo-location where the resource lives
Tags Dictionary<string, string>
Resource tags.
TenantId string
Describes the tenant id.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
LicenseDetails LicenseDetailsArgs
Describes the properties of a License.
LicenseName Changes to this property will trigger replacement. string
The name of the license.
LicenseType string | LicenseType
The type of the license resource.
Location Changes to this property will trigger replacement. string
The geo-location where the resource lives
Tags map[string]string
Resource tags.
TenantId string
Describes the tenant id.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
licenseDetails LicenseDetails
Describes the properties of a License.
licenseName Changes to this property will trigger replacement. String
The name of the license.
licenseType String | LicenseType
The type of the license resource.
location Changes to this property will trigger replacement. String
The geo-location where the resource lives
tags Map<String,String>
Resource tags.
tenantId String
Describes the tenant id.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
licenseDetails LicenseDetails
Describes the properties of a License.
licenseName Changes to this property will trigger replacement. string
The name of the license.
licenseType string | LicenseType
The type of the license resource.
location Changes to this property will trigger replacement. string
The geo-location where the resource lives
tags {[key: string]: string}
Resource tags.
tenantId string
Describes the tenant id.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group. The name is case insensitive.
license_details LicenseDetailsArgs
Describes the properties of a License.
license_name Changes to this property will trigger replacement. str
The name of the license.
license_type str | LicenseType
The type of the license resource.
location Changes to this property will trigger replacement. str
The geo-location where the resource lives
tags Mapping[str, str]
Resource tags.
tenant_id str
Describes the tenant id.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
licenseDetails Property Map
Describes the properties of a License.
licenseName Changes to this property will trigger replacement. String
The name of the license.
licenseType String | "ESU"
The type of the license resource.
location Changes to this property will trigger replacement. String
The geo-location where the resource lives
tags Map<String>
Resource tags.
tenantId String
Describes the tenant id.

Outputs

All input properties are implicitly available as output properties. Additionally, the License resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource
ProvisioningState string
The provisioning state, which only appears in the response.
SystemData Pulumi.AzureNative.HybridCompute.Outputs.SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource
ProvisioningState string
The provisioning state, which only appears in the response.
SystemData SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the resource
provisioningState String
The provisioning state, which only appears in the response.
systemData SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
id string
The provider-assigned unique ID for this managed resource.
name string
The name of the resource
provisioningState string
The provisioning state, which only appears in the response.
systemData SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
id str
The provider-assigned unique ID for this managed resource.
name str
The name of the resource
provisioning_state str
The provisioning state, which only appears in the response.
system_data SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type str
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the resource
provisioningState String
The provisioning state, which only appears in the response.
systemData Property Map
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Supporting Types

LicenseCoreType
, LicenseCoreTypeArgs

PCore
pCore
VCore
vCore
LicenseCoreTypePCore
pCore
LicenseCoreTypeVCore
vCore
PCore
pCore
VCore
vCore
PCore
pCore
VCore
vCore
P_CORE
pCore
V_CORE
vCore
"pCore"
pCore
"vCore"
vCore

LicenseDetails
, LicenseDetailsArgs

Edition string | Pulumi.AzureNative.HybridCompute.LicenseEdition
Describes the edition of the license. The values are either Standard or Datacenter.
Processors int
Describes the number of processors.
State string | Pulumi.AzureNative.HybridCompute.LicenseState
Describes the state of the license.
Target string | Pulumi.AzureNative.HybridCompute.LicenseTarget
Describes the license target server.
Type string | Pulumi.AzureNative.HybridCompute.LicenseCoreType
Describes the license core type (pCore or vCore).
Edition string | LicenseEdition
Describes the edition of the license. The values are either Standard or Datacenter.
Processors int
Describes the number of processors.
State string | LicenseStateEnum
Describes the state of the license.
Target string | LicenseTarget
Describes the license target server.
Type string | LicenseCoreType
Describes the license core type (pCore or vCore).
edition String | LicenseEdition
Describes the edition of the license. The values are either Standard or Datacenter.
processors Integer
Describes the number of processors.
state String | LicenseState
Describes the state of the license.
target String | LicenseTarget
Describes the license target server.
type String | LicenseCoreType
Describes the license core type (pCore or vCore).
edition string | LicenseEdition
Describes the edition of the license. The values are either Standard or Datacenter.
processors number
Describes the number of processors.
state string | LicenseState
Describes the state of the license.
target string | LicenseTarget
Describes the license target server.
type string | LicenseCoreType
Describes the license core type (pCore or vCore).
edition str | LicenseEdition
Describes the edition of the license. The values are either Standard or Datacenter.
processors int
Describes the number of processors.
state str | LicenseState
Describes the state of the license.
target str | LicenseTarget
Describes the license target server.
type str | LicenseCoreType
Describes the license core type (pCore or vCore).
edition String | "Standard" | "Datacenter"
Describes the edition of the license. The values are either Standard or Datacenter.
processors Number
Describes the number of processors.
state String | "Activated" | "Deactivated"
Describes the state of the license.
target String | "Windows Server 2012" | "Windows Server 2012 R2"
Describes the license target server.
type String | "pCore" | "vCore"
Describes the license core type (pCore or vCore).

LicenseDetailsResponse
, LicenseDetailsResponseArgs

AssignedLicenses This property is required. int
Describes the number of assigned licenses.
ImmutableId This property is required. string
Describes the immutable id.
Edition string
Describes the edition of the license. The values are either Standard or Datacenter.
Processors int
Describes the number of processors.
State string
Describes the state of the license.
Target string
Describes the license target server.
Type string
Describes the license core type (pCore or vCore).
AssignedLicenses This property is required. int
Describes the number of assigned licenses.
ImmutableId This property is required. string
Describes the immutable id.
Edition string
Describes the edition of the license. The values are either Standard or Datacenter.
Processors int
Describes the number of processors.
State string
Describes the state of the license.
Target string
Describes the license target server.
Type string
Describes the license core type (pCore or vCore).
assignedLicenses This property is required. Integer
Describes the number of assigned licenses.
immutableId This property is required. String
Describes the immutable id.
edition String
Describes the edition of the license. The values are either Standard or Datacenter.
processors Integer
Describes the number of processors.
state String
Describes the state of the license.
target String
Describes the license target server.
type String
Describes the license core type (pCore or vCore).
assignedLicenses This property is required. number
Describes the number of assigned licenses.
immutableId This property is required. string
Describes the immutable id.
edition string
Describes the edition of the license. The values are either Standard or Datacenter.
processors number
Describes the number of processors.
state string
Describes the state of the license.
target string
Describes the license target server.
type string
Describes the license core type (pCore or vCore).
assigned_licenses This property is required. int
Describes the number of assigned licenses.
immutable_id This property is required. str
Describes the immutable id.
edition str
Describes the edition of the license. The values are either Standard or Datacenter.
processors int
Describes the number of processors.
state str
Describes the state of the license.
target str
Describes the license target server.
type str
Describes the license core type (pCore or vCore).
assignedLicenses This property is required. Number
Describes the number of assigned licenses.
immutableId This property is required. String
Describes the immutable id.
edition String
Describes the edition of the license. The values are either Standard or Datacenter.
processors Number
Describes the number of processors.
state String
Describes the state of the license.
target String
Describes the license target server.
type String
Describes the license core type (pCore or vCore).

LicenseEdition
, LicenseEditionArgs

Standard
Standard
Datacenter
Datacenter
LicenseEditionStandard
Standard
LicenseEditionDatacenter
Datacenter
Standard
Standard
Datacenter
Datacenter
Standard
Standard
Datacenter
Datacenter
STANDARD
Standard
DATACENTER
Datacenter
"Standard"
Standard
"Datacenter"
Datacenter

LicenseState
, LicenseStateArgs

Activated
Activated
Deactivated
Deactivated
LicenseStateActivated
Activated
LicenseStateDeactivated
Deactivated
Activated
Activated
Deactivated
Deactivated
Activated
Activated
Deactivated
Deactivated
ACTIVATED
Activated
DEACTIVATED
Deactivated
"Activated"
Activated
"Deactivated"
Deactivated

LicenseTarget
, LicenseTargetArgs

Windows_Server_2012
Windows Server 2012
Windows_Server_2012_R2
Windows Server 2012 R2
LicenseTarget_Windows_Server_2012
Windows Server 2012
LicenseTarget_Windows_Server_2012_R2
Windows Server 2012 R2
Windows_Server_2012
Windows Server 2012
Windows_Server_2012_R2
Windows Server 2012 R2
Windows_Server_2012
Windows Server 2012
Windows_Server_2012_R2
Windows Server 2012 R2
WINDOWS_SERVER_2012
Windows Server 2012
WINDOWS_SERVER_2012_R2
Windows Server 2012 R2
"Windows Server 2012"
Windows Server 2012
"Windows Server 2012 R2"
Windows Server 2012 R2

LicenseType
, LicenseTypeArgs

ESU
ESU
LicenseTypeESU
ESU
ESU
ESU
ESU
ESU
ESU
ESU
"ESU"
ESU

SystemDataResponse
, SystemDataResponseArgs

CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.
createdAt string
The timestamp of resource creation (UTC).
createdBy string
The identity that created the resource.
createdByType string
The type of identity that created the resource.
lastModifiedAt string
The timestamp of resource last modification (UTC)
lastModifiedBy string
The identity that last modified the resource.
lastModifiedByType string
The type of identity that last modified the resource.
created_at str
The timestamp of resource creation (UTC).
created_by str
The identity that created the resource.
created_by_type str
The type of identity that created the resource.
last_modified_at str
The timestamp of resource last modification (UTC)
last_modified_by str
The identity that last modified the resource.
last_modified_by_type str
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:hybridcompute:License {licenseName} /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/licenses/{licenseName} 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi