Capacity
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.then(current => current.objectId)],
sku: {
name: "F32",
tier: "Fabric",
},
tags: {
environment: "test",
},
});
Content copied to clipboard
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.object_id],
sku={
"name": "F32",
"tier": "Fabric",
},
tags={
"environment": "test",
})
Content copied to clipboard
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" },
},
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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: {}
Content copied to clipboard
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
Content copied to clipboard
Properties
Link copied to clipboard
An array of administrator user identities. The member must be an Entra user or a service principal.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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
A sku
block as defined below.