Plan
Represents a devcenter plan resource. Uses Azure REST API version 2024-05-01-preview. Other available API versions: 2024-06-01-preview, 2024-07-01-preview, 2024-08-01-preview, 2024-10-01-preview.
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" },
},
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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}
Content copied to clipboard
Properties
Link copied to clipboard
The provisioning state of the resource.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The SKU for DevCenters created using this definition.
Link copied to clipboard
Azure Resource Manager metadata containing createdBy and modifiedBy information.