HybridUseBenefitArgs

data class HybridUseBenefitArgs(val planId: Output<String>? = null, val scope: Output<String>? = null, val sku: Output<SkuArgs>? = null) : ConvertibleToJava<HybridUseBenefitArgs>

Response on GET of a hybrid use benefit Uses Azure REST API version 2019-12-01. In version 2.x of the Azure Native provider, it used API version 2019-12-01.

Example Usage

HybridUseBenefit

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var hybridUseBenefit = new AzureNative.SoftwarePlan.HybridUseBenefit("hybridUseBenefit", new()
{
PlanId = "94f46eda-45f8-493a-8425-251921463a89",
Scope = "subscriptions/{sub-id}/resourceGroups/{rg-name}/providers/Microsoft.Compute/HostGroups/{host-group-name}/hosts/{host-name}",
Sku = new AzureNative.SoftwarePlan.Inputs.SkuArgs
{
Name = "SQL_Server_Perpetual",
},
});
});
package main
import (
softwareplan "github.com/pulumi/pulumi-azure-native-sdk/softwareplan/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := softwareplan.NewHybridUseBenefit(ctx, "hybridUseBenefit", &softwareplan.HybridUseBenefitArgs{
PlanId: pulumi.String("94f46eda-45f8-493a-8425-251921463a89"),
Scope: pulumi.String("subscriptions/{sub-id}/resourceGroups/{rg-name}/providers/Microsoft.Compute/HostGroups/{host-group-name}/hosts/{host-name}"),
Sku: &softwareplan.SkuArgs{
Name: pulumi.String("SQL_Server_Perpetual"),
},
})
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.softwareplan.HybridUseBenefit;
import com.pulumi.azurenative.softwareplan.HybridUseBenefitArgs;
import com.pulumi.azurenative.softwareplan.inputs.SkuArgs;
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 hybridUseBenefit = new HybridUseBenefit("hybridUseBenefit", HybridUseBenefitArgs.builder()
.planId("94f46eda-45f8-493a-8425-251921463a89")
.scope("subscriptions/{sub-id}/resourceGroups/{rg-name}/providers/Microsoft.Compute/HostGroups/{host-group-name}/hosts/{host-name}")
.sku(SkuArgs.builder()
.name("SQL_Server_Perpetual")
.build())
.build());
}
}

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}

Constructors

Link copied to clipboard
constructor(planId: Output<String>? = null, scope: Output<String>? = null, sku: Output<SkuArgs>? = null)

Properties

Link copied to clipboard
val planId: Output<String>? = null

This is a unique identifier for a plan. Should be a guid.

Link copied to clipboard
val scope: Output<String>? = null

The scope at which the operation is performed. This is limited to Microsoft.Compute/virtualMachines and Microsoft.Compute/hostGroups/hosts for now

Link copied to clipboard
val sku: Output<SkuArgs>? = null

Hybrid use benefit SKU

Functions

Link copied to clipboard
open override fun toJava(): HybridUseBenefitArgs