Plan
Represents a devcenter plan resource. Uses Azure REST API version 2024-10-01-preview. In version 2.x of the Azure Native provider, it used API version 2024-05-01-preview. Other available API versions: 2024-05-01-preview, 2024-06-01-preview, 2024-07-01-preview, 2024-08-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native devcenter [ApiVersion]
. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.
Example Usage
Plans_Create
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var plan = new AzureNative.DevCenter.Plan("plan", new()
{
Location = "centralus",
PlanName = "ContosoPlan",
ResourceGroupName = "rg1",
Sku = new AzureNative.DevCenter.Inputs.SkuArgs
{
Name = "Preview",
},
Tags =
{
{ "CostCode", "12345" },
},
});
});
package main
import (
devcenter "github.com/pulumi/pulumi-azure-native-sdk/devcenter/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := devcenter.NewPlan(ctx, "plan", &devcenter.PlanArgs{
Location: pulumi.String("centralus"),
PlanName: pulumi.String("ContosoPlan"),
ResourceGroupName: pulumi.String("rg1"),
Sku: &devcenter.SkuArgs{
Name: pulumi.String("Preview"),
},
Tags: pulumi.StringMap{
"CostCode": pulumi.String("12345"),
},
})
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.devcenter.Plan;
import com.pulumi.azurenative.devcenter.PlanArgs;
import com.pulumi.azurenative.devcenter.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 plan = new Plan("plan", PlanArgs.builder()
.location("centralus")
.planName("ContosoPlan")
.resourceGroupName("rg1")
.sku(SkuArgs.builder()
.name("Preview")
.build())
.tags(Map.of("CostCode", "12345"))
.build());
}
}
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:devcenter:Plan ContosoPlan /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/plans/{planName}
Properties
The Azure API version of the resource.
The provisioning state of the resource.
The SKU for DevCenters created using this definition.
Azure Resource Manager metadata containing createdBy and modifiedBy information.