azure-native.hybridcompute.License
Explore with Pulumi AI
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.
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",
});
});
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
})
}
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());
}
}
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")
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",
});
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
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 string
- The unique name of the resource.
- args LicenseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args 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 string
- The unique name of the resource.
- args LicenseArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LicenseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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 = new AzureNative.HybridCompute.Inputs.LicenseDetailsArgs
{
Edition = "string",
Processors = 0,
State = "string",
Target = "string",
Type = "string",
},
LicenseName = "string",
LicenseType = "string",
Location = "string",
Tags =
{
{ "string", "string" },
},
TenantId = "string",
});
example, err := hybridcompute.NewLicense(ctx, "licenseResource", &hybridcompute.LicenseArgs{
ResourceGroupName: pulumi.String("string"),
LicenseDetails: &hybridcompute.LicenseDetailsArgs{
Edition: pulumi.String("string"),
Processors: pulumi.Int(0),
State: pulumi.String("string"),
Target: pulumi.String("string"),
Type: pulumi.String("string"),
},
LicenseName: pulumi.String("string"),
LicenseType: pulumi.String("string"),
Location: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
TenantId: pulumi.String("string"),
})
var licenseResource = new License("licenseResource", LicenseArgs.builder()
.resourceGroupName("string")
.licenseDetails(LicenseDetailsArgs.builder()
.edition("string")
.processors(0)
.state("string")
.target("string")
.type("string")
.build())
.licenseName("string")
.licenseType("string")
.location("string")
.tags(Map.of("string", "string"))
.tenantId("string")
.build());
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")
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",
});
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
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:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- License
Details Pulumi.Azure Native. Hybrid Compute. Inputs. License Details - Describes the properties of a License.
- License
Name string - The name of the license.
- License
Type string | Pulumi.Azure Native. Hybrid Compute. License Type - The type of the license resource.
- Location string
- The geo-location where the resource lives
- Dictionary<string, string>
- Resource tags.
- Tenant
Id string - Describes the tenant id.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- License
Details LicenseDetails Args - Describes the properties of a License.
- License
Name string - The name of the license.
- License
Type string | LicenseType - The type of the license resource.
- Location string
- The geo-location where the resource lives
- map[string]string
- Resource tags.
- Tenant
Id string - Describes the tenant id.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- license
Details LicenseDetails - Describes the properties of a License.
- license
Name String - The name of the license.
- license
Type String | LicenseType - The type of the license resource.
- location String
- The geo-location where the resource lives
- Map<String,String>
- Resource tags.
- tenant
Id String - Describes the tenant id.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- license
Details LicenseDetails - Describes the properties of a License.
- license
Name string - The name of the license.
- license
Type string | LicenseType - The type of the license resource.
- location string
- The geo-location where the resource lives
- {[key: string]: string}
- Resource tags.
- tenant
Id string - Describes the tenant id.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- license_
details LicenseDetails Args - Describes the properties of a License.
- license_
name str - The name of the license.
- license_
type str | LicenseType - The type of the license resource.
- location str
- The geo-location where the resource lives
- Mapping[str, str]
- Resource tags.
- tenant_
id str - Describes the tenant id.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- license
Details Property Map - Describes the properties of a License.
- license
Name String - The name of the license.
- license
Type String | "ESU" - The type of the license resource.
- location String
- The geo-location where the resource lives
- Map<String>
- Resource tags.
- tenant
Id 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
- Provisioning
State string - The provisioning state, which only appears in the response.
- System
Data Pulumi.Azure Native. Hybrid Compute. Outputs. System Data Response - 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
- Provisioning
State string - The provisioning state, which only appears in the response.
- System
Data SystemData Response - 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
- provisioning
State String - The provisioning state, which only appears in the response.
- system
Data SystemData Response - 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
- provisioning
State string - The provisioning state, which only appears in the response.
- system
Data SystemData Response - 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 SystemData Response - 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
- provisioning
State String - The provisioning state, which only appears in the response.
- system
Data 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
- License
Core Type PCore - pCore
- License
Core Type VCore - vCore
- PCore
- pCore
- VCore
- vCore
- PCore
- pCore
- VCore
- vCore
- P_CORE
- pCore
- V_CORE
- vCore
- "p
Core" - pCore
- "v
Core" - vCore
LicenseDetails, LicenseDetailsArgs
- Edition
string | Pulumi.
Azure Native. Hybrid Compute. License Edition - Describes the edition of the license. The values are either Standard or Datacenter.
- Processors int
- Describes the number of processors.
- State
string | Pulumi.
Azure Native. Hybrid Compute. License State - Describes the state of the license.
- Target
string | Pulumi.
Azure Native. Hybrid Compute. License Target - Describes the license target server.
- Type
string | Pulumi.
Azure Native. Hybrid Compute. License Core Type - Describes the license core type (pCore or vCore).
- Edition
string | License
Edition - Describes the edition of the license. The values are either Standard or Datacenter.
- Processors int
- Describes the number of processors.
- State
string | License
State Enum - Describes the state of the license.
- Target
string | License
Target - Describes the license target server.
- Type
string | License
Core Type - Describes the license core type (pCore or vCore).
- edition
String | License
Edition - Describes the edition of the license. The values are either Standard or Datacenter.
- processors Integer
- Describes the number of processors.
- state
String | License
State - Describes the state of the license.
- target
String | License
Target - Describes the license target server.
- type
String | License
Core Type - Describes the license core type (pCore or vCore).
- edition
string | License
Edition - Describes the edition of the license. The values are either Standard or Datacenter.
- processors number
- Describes the number of processors.
- state
string | License
State - Describes the state of the license.
- target
string | License
Target - Describes the license target server.
- type
string | License
Core Type - Describes the license core type (pCore or vCore).
- edition
str | License
Edition - Describes the edition of the license. The values are either Standard or Datacenter.
- processors int
- Describes the number of processors.
- state
str | License
State - Describes the state of the license.
- target
str | License
Target - Describes the license target server.
- type
str | License
Core Type - 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 | "p
Core" | "v Core" - Describes the license core type (pCore or vCore).
LicenseDetailsResponse, LicenseDetailsResponseArgs
- Assigned
Licenses int - Describes the number of assigned licenses.
- Immutable
Id 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).
- Assigned
Licenses int - Describes the number of assigned licenses.
- Immutable
Id 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).
- assigned
Licenses Integer - Describes the number of assigned licenses.
- immutable
Id 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).
- assigned
Licenses number - Describes the number of assigned licenses.
- immutable
Id 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 int - Describes the number of assigned licenses.
- immutable_
id 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).
- assigned
Licenses Number - Describes the number of assigned licenses.
- immutable
Id 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
- License
Edition Standard - Standard
- License
Edition Datacenter - Datacenter
- Standard
- Standard
- Datacenter
- Datacenter
- Standard
- Standard
- Datacenter
- Datacenter
- STANDARD
- Standard
- DATACENTER
- Datacenter
- "Standard"
- Standard
- "Datacenter"
- Datacenter
LicenseState, LicenseStateArgs
- Activated
- Activated
- Deactivated
- Deactivated
- License
State Activated - Activated
- License
State Deactivated - 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
- License
Target_Windows_Server_2012 - Windows Server 2012
- License
Target_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
- License
Type ESU - ESU
- ESU
- ESU
- ESU
- ESU
- ESU
- ESU
- "ESU"
- ESU
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - 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_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - 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}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0