CapacityArgs

data class CapacityArgs(val administrationMembers: Output<List<String>>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val sku: Output<CapacitySkuArgs>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<CapacityArgs>

Manages a Fabric Capacity.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const current = azure.core.getClientConfig({});
const example = new azure.core.ResourceGroup("example", {
name: "example-resources",
location: "West Europe",
});
const exampleCapacity = new azure.fabric.Capacity("example", {
name: "example-ffc",
resourceGroupName: example.name,
location: "West Europe",
administrationMembers: [current&#46;then(current => current&#46;objectId)],
sku: {
name: "F32",
tier: "Fabric",
},
tags: {
environment: "test",
},
});
import pulumi
import pulumi_azure as azure
current = azure.core.get_client_config()
example = azure.core.ResourceGroup("example",
name="example-resources",
location="West Europe")
example_capacity = azure.fabric.Capacity("example",
name="example-ffc",
resource_group_name=example.name,
location="West Europe",
administration_members=[current&#46;object_id],
sku={
"name": "F32",
"tier": "Fabric",
},
tags={
"environment": "test",
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var current = Azure.Core.GetClientConfig.Invoke();
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-resources",
Location = "West Europe",
});
var exampleCapacity = new Azure.Fabric.Capacity("example", new()
{
Name = "example-ffc",
ResourceGroupName = example.Name,
Location = "West Europe",
AdministrationMembers = new[]
{
current.Apply(getClientConfigResult => getClientConfigResult.ObjectId),
},
Sku = new Azure.Fabric.Inputs.CapacitySkuArgs
{
Name = "F32",
Tier = "Fabric",
},
Tags =
{
{ "environment", "test" },
},
});
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/fabric"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
current, err := core.GetClientConfig(ctx, map[string]interface{}{}, nil)
if err != nil {
return err
}
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example-resources"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
_, err = fabric.NewCapacity(ctx, "example", &fabric.CapacityArgs{
Name: pulumi.String("example-ffc"),
ResourceGroupName: example.Name,
Location: pulumi.String("West Europe"),
AdministrationMembers: pulumi.StringArray{
pulumi.String(current.ObjectId),
},
Sku: &fabric.CapacitySkuArgs{
Name: pulumi.String("F32"),
Tier: pulumi.String("Fabric"),
},
Tags: pulumi.StringMap{
"environment": pulumi.String("test"),
},
})
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.azure.core.CoreFunctions;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.fabric.Capacity;
import com.pulumi.azure.fabric.CapacityArgs;
import com.pulumi.azure.fabric.inputs.CapacitySkuArgs;
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) {
final var current = CoreFunctions.getClientConfig();
var example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-resources")
.location("West Europe")
.build());
var exampleCapacity = new Capacity("exampleCapacity", CapacityArgs.builder()
.name("example-ffc")
.resourceGroupName(example.name())
.location("West Europe")
.administrationMembers(current.applyValue(getClientConfigResult -> getClientConfigResult.objectId()))
.sku(CapacitySkuArgs.builder()
.name("F32")
.tier("Fabric")
.build())
.tags(Map.of("environment", "test"))
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West Europe
exampleCapacity:
type: azure:fabric:Capacity
name: example
properties:
name: example-ffc
resourceGroupName: ${example.name}
location: West Europe
administrationMembers:
- ${current.objectId}
sku:
name: F32
tier: Fabric
tags:
environment: test
variables:
current:
fn::invoke:
function: azure:core:getClientConfig
arguments: {}

Import

Fabric Capacities can be imported using the resource id, e.g.

$ pulumi import azure:fabric/capacity:Capacity example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Fabric/capacities/capacity1

Constructors

Link copied to clipboard
constructor(administrationMembers: Output<List<String>>? = null, location: Output<String>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, sku: Output<CapacitySkuArgs>? = null, tags: Output<Map<String, String>>? = null)

Properties

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

An array of administrator user identities. The member must be an Entra user or a service principal.

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

The supported Azure location where the Fabric Capacity exists. Changing this forces a new resource to be created.

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

The name which should be used for the Fabric Capacity. Changing this forces a new resource to be created.

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

The name of the Resource Group in which to create the Fabric Capacity. Changing this forces a new resource to be created.

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

A sku block as defined below.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A mapping of tags to assign to the Fabric Capacity.

Functions

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