azure-native-v2.softwareplan.HybridUseBenefit
Explore with Pulumi AI
Response on GET of a hybrid use benefit Azure REST API version: 2019-12-01. Prior API version in Azure Native 1.x: 2019-06-01-preview.
Create HybridUseBenefit Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new HybridUseBenefit(name: string, args: HybridUseBenefitArgs, opts?: CustomResourceOptions);
@overload
def HybridUseBenefit(resource_name: str,
args: HybridUseBenefitArgs,
opts: Optional[ResourceOptions] = None)
@overload
def HybridUseBenefit(resource_name: str,
opts: Optional[ResourceOptions] = None,
scope: Optional[str] = None,
sku: Optional[SkuArgs] = None,
plan_id: Optional[str] = None)
func NewHybridUseBenefit(ctx *Context, name string, args HybridUseBenefitArgs, opts ...ResourceOption) (*HybridUseBenefit, error)
public HybridUseBenefit(string name, HybridUseBenefitArgs args, CustomResourceOptions? opts = null)
public HybridUseBenefit(String name, HybridUseBenefitArgs args)
public HybridUseBenefit(String name, HybridUseBenefitArgs args, CustomResourceOptions options)
type: azure-native:softwareplan:HybridUseBenefit
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. HybridUseBenefitArgs - 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. HybridUseBenefitArgs - 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. HybridUseBenefitArgs - 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. HybridUseBenefitArgs - 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. HybridUseBenefitArgs - 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 hybridUseBenefitResource = new AzureNative.Softwareplan.HybridUseBenefit("hybridUseBenefitResource", new()
{
Scope = "string",
Sku =
{
{ "name", "string" },
},
PlanId = "string",
});
example, err := softwareplan.NewHybridUseBenefit(ctx, "hybridUseBenefitResource", &softwareplan.HybridUseBenefitArgs{
Scope: "string",
Sku: map[string]interface{}{
"name": "string",
},
PlanId: "string",
})
var hybridUseBenefitResource = new HybridUseBenefit("hybridUseBenefitResource", HybridUseBenefitArgs.builder()
.scope("string")
.sku(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.planId("string")
.build());
hybrid_use_benefit_resource = azure_native.softwareplan.HybridUseBenefit("hybridUseBenefitResource",
scope=string,
sku={
name: string,
},
plan_id=string)
const hybridUseBenefitResource = new azure_native.softwareplan.HybridUseBenefit("hybridUseBenefitResource", {
scope: "string",
sku: {
name: "string",
},
planId: "string",
});
type: azure-native:softwareplan:HybridUseBenefit
properties:
planId: string
scope: string
sku:
name: string
HybridUseBenefit 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 HybridUseBenefit resource accepts the following input properties:
- Scope
This property is required. Changes to this property will trigger replacement.
- The scope at which the operation is performed. This is limited to Microsoft.Compute/virtualMachines and Microsoft.Compute/hostGroups/hosts for now
- Sku
This property is required. Pulumi.Azure Native. Software Plan. Inputs. Sku - Hybrid use benefit SKU
- Plan
Id Changes to this property will trigger replacement.
- This is a unique identifier for a plan. Should be a guid.
- Scope
This property is required. Changes to this property will trigger replacement.
- The scope at which the operation is performed. This is limited to Microsoft.Compute/virtualMachines and Microsoft.Compute/hostGroups/hosts for now
- Sku
This property is required. SkuArgs - Hybrid use benefit SKU
- Plan
Id Changes to this property will trigger replacement.
- This is a unique identifier for a plan. Should be a guid.
- scope
This property is required. Changes to this property will trigger replacement.
- The scope at which the operation is performed. This is limited to Microsoft.Compute/virtualMachines and Microsoft.Compute/hostGroups/hosts for now
- sku
This property is required. Sku - Hybrid use benefit SKU
- plan
Id Changes to this property will trigger replacement.
- This is a unique identifier for a plan. Should be a guid.
- scope
This property is required. Changes to this property will trigger replacement.
- The scope at which the operation is performed. This is limited to Microsoft.Compute/virtualMachines and Microsoft.Compute/hostGroups/hosts for now
- sku
This property is required. Sku - Hybrid use benefit SKU
- plan
Id Changes to this property will trigger replacement.
- This is a unique identifier for a plan. Should be a guid.
- scope
This property is required. Changes to this property will trigger replacement.
- The scope at which the operation is performed. This is limited to Microsoft.Compute/virtualMachines and Microsoft.Compute/hostGroups/hosts for now
- sku
This property is required. SkuArgs - Hybrid use benefit SKU
- plan_
id Changes to this property will trigger replacement.
- This is a unique identifier for a plan. Should be a guid.
- scope
This property is required. Changes to this property will trigger replacement.
- The scope at which the operation is performed. This is limited to Microsoft.Compute/virtualMachines and Microsoft.Compute/hostGroups/hosts for now
- sku
This property is required. Property Map - Hybrid use benefit SKU
- plan
Id Changes to this property will trigger replacement.
- This is a unique identifier for a plan. Should be a guid.
Outputs
All input properties are implicitly available as output properties. Additionally, the HybridUseBenefit resource produces the following output properties:
- Created
Date string - Created date
- Etag int
- Indicates the revision of the hybrid use benefit
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated stringDate - Last updated date
- Name string
- The name of the resource
- Provisioning
State string - Provisioning state
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Created
Date string - Created date
- Etag int
- Indicates the revision of the hybrid use benefit
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated stringDate - Last updated date
- Name string
- The name of the resource
- Provisioning
State string - Provisioning state
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- created
Date String - Created date
- etag Integer
- Indicates the revision of the hybrid use benefit
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated StringDate - Last updated date
- name String
- The name of the resource
- provisioning
State String - Provisioning state
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- created
Date string - Created date
- etag number
- Indicates the revision of the hybrid use benefit
- id string
- The provider-assigned unique ID for this managed resource.
- last
Updated stringDate - Last updated date
- name string
- The name of the resource
- provisioning
State string - Provisioning state
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- created_
date str - Created date
- etag int
- Indicates the revision of the hybrid use benefit
- id str
- The provider-assigned unique ID for this managed resource.
- last_
updated_ strdate - Last updated date
- name str
- The name of the resource
- provisioning_
state str - Provisioning state
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- created
Date String - Created date
- etag Number
- Indicates the revision of the hybrid use benefit
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated StringDate - Last updated date
- name String
- The name of the resource
- provisioning
State String - Provisioning state
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
Sku, SkuArgs
- Name string
- Name of the SKU to be applied
- Name string
- Name of the SKU to be applied
- name String
- Name of the SKU to be applied
- name string
- Name of the SKU to be applied
- name str
- Name of the SKU to be applied
- name String
- Name of the SKU to be applied
SkuResponse, SkuResponseArgs
- Name string
- Name of the SKU to be applied
- Name string
- Name of the SKU to be applied
- name String
- Name of the SKU to be applied
- name string
- Name of the SKU to be applied
- name str
- Name of the SKU to be applied
- name String
- Name of the SKU to be applied
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:softwareplan:HybridUseBenefit SQL_{hostGroupName}_{hostName} /{scope}/providers/Microsoft.SoftwarePlan/hybridUseBenefits/{planId}
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