1. Packages
  2. Azure Classic
  3. API Docs
  4. fabric
  5. Capacity

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi

azure.fabric.Capacity

Explore with Pulumi AI

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",
    },
});
Copy
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",
    })
Copy
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
	})
}
Copy
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" },
        },
    });

});
Copy
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());

    }
}
Copy
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: {}
Copy

Create Capacity Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Capacity(name: string, args: CapacityArgs, opts?: CustomResourceOptions);
@overload
def Capacity(resource_name: str,
             args: CapacityArgs,
             opts: Optional[ResourceOptions] = None)

@overload
def Capacity(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             resource_group_name: Optional[str] = None,
             sku: Optional[CapacitySkuArgs] = None,
             administration_members: Optional[Sequence[str]] = None,
             location: Optional[str] = None,
             name: Optional[str] = None,
             tags: Optional[Mapping[str, str]] = None)
func NewCapacity(ctx *Context, name string, args CapacityArgs, opts ...ResourceOption) (*Capacity, error)
public Capacity(string name, CapacityArgs args, CustomResourceOptions? opts = null)
public Capacity(String name, CapacityArgs args)
public Capacity(String name, CapacityArgs args, CustomResourceOptions options)
type: azure:fabric:Capacity
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. CapacityArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. CapacityArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. CapacityArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. CapacityArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. CapacityArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var capacityResource = new Azure.Fabric.Capacity("capacityResource", new()
{
    ResourceGroupName = "string",
    Sku = new Azure.Fabric.Inputs.CapacitySkuArgs
    {
        Name = "string",
        Tier = "string",
    },
    AdministrationMembers = new[]
    {
        "string",
    },
    Location = "string",
    Name = "string",
    Tags = 
    {
        { "string", "string" },
    },
});
Copy
example, err := fabric.NewCapacity(ctx, "capacityResource", &fabric.CapacityArgs{
	ResourceGroupName: pulumi.String("string"),
	Sku: &fabric.CapacitySkuArgs{
		Name: pulumi.String("string"),
		Tier: pulumi.String("string"),
	},
	AdministrationMembers: pulumi.StringArray{
		pulumi.String("string"),
	},
	Location: pulumi.String("string"),
	Name:     pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
Copy
var capacityResource = new Capacity("capacityResource", CapacityArgs.builder()
    .resourceGroupName("string")
    .sku(CapacitySkuArgs.builder()
        .name("string")
        .tier("string")
        .build())
    .administrationMembers("string")
    .location("string")
    .name("string")
    .tags(Map.of("string", "string"))
    .build());
Copy
capacity_resource = azure.fabric.Capacity("capacityResource",
    resource_group_name="string",
    sku={
        "name": "string",
        "tier": "string",
    },
    administration_members=["string"],
    location="string",
    name="string",
    tags={
        "string": "string",
    })
Copy
const capacityResource = new azure.fabric.Capacity("capacityResource", {
    resourceGroupName: "string",
    sku: {
        name: "string",
        tier: "string",
    },
    administrationMembers: ["string"],
    location: "string",
    name: "string",
    tags: {
        string: "string",
    },
});
Copy
type: azure:fabric:Capacity
properties:
    administrationMembers:
        - string
    location: string
    name: string
    resourceGroupName: string
    sku:
        name: string
        tier: string
    tags:
        string: string
Copy

Capacity Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The Capacity resource accepts the following input properties:

ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Resource Group in which to create the Fabric Capacity. Changing this forces a new resource to be created.
Sku This property is required. CapacitySku
A sku block as defined below.
AdministrationMembers List<string>

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

Note: If the member is an Entra user, use user principal name (UPN) format. If the user is a service principal, use object ID.

Location Changes to this property will trigger replacement. string
The supported Azure location where the Fabric Capacity exists. Changing this forces a new resource to be created.
Name Changes to this property will trigger replacement. string
The name which should be used for the Fabric Capacity. Changing this forces a new resource to be created.
Tags Dictionary<string, string>
A mapping of tags to assign to the Fabric Capacity.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Resource Group in which to create the Fabric Capacity. Changing this forces a new resource to be created.
Sku This property is required. CapacitySkuArgs
A sku block as defined below.
AdministrationMembers []string

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

Note: If the member is an Entra user, use user principal name (UPN) format. If the user is a service principal, use object ID.

Location Changes to this property will trigger replacement. string
The supported Azure location where the Fabric Capacity exists. Changing this forces a new resource to be created.
Name Changes to this property will trigger replacement. string
The name which should be used for the Fabric Capacity. Changing this forces a new resource to be created.
Tags map[string]string
A mapping of tags to assign to the Fabric Capacity.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Resource Group in which to create the Fabric Capacity. Changing this forces a new resource to be created.
sku This property is required. CapacitySku
A sku block as defined below.
administrationMembers List<String>

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

Note: If the member is an Entra user, use user principal name (UPN) format. If the user is a service principal, use object ID.

location Changes to this property will trigger replacement. String
The supported Azure location where the Fabric Capacity exists. Changing this forces a new resource to be created.
name Changes to this property will trigger replacement. String
The name which should be used for the Fabric Capacity. Changing this forces a new resource to be created.
tags Map<String,String>
A mapping of tags to assign to the Fabric Capacity.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Resource Group in which to create the Fabric Capacity. Changing this forces a new resource to be created.
sku This property is required. CapacitySku
A sku block as defined below.
administrationMembers string[]

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

Note: If the member is an Entra user, use user principal name (UPN) format. If the user is a service principal, use object ID.

location Changes to this property will trigger replacement. string
The supported Azure location where the Fabric Capacity exists. Changing this forces a new resource to be created.
name Changes to this property will trigger replacement. string
The name which should be used for the Fabric Capacity. Changing this forces a new resource to be created.
tags {[key: string]: string}
A mapping of tags to assign to the Fabric Capacity.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the Resource Group in which to create the Fabric Capacity. Changing this forces a new resource to be created.
sku This property is required. CapacitySkuArgs
A sku block as defined below.
administration_members Sequence[str]

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

Note: If the member is an Entra user, use user principal name (UPN) format. If the user is a service principal, use object ID.

location Changes to this property will trigger replacement. str
The supported Azure location where the Fabric Capacity exists. Changing this forces a new resource to be created.
name Changes to this property will trigger replacement. str
The name which should be used for the Fabric Capacity. Changing this forces a new resource to be created.
tags Mapping[str, str]
A mapping of tags to assign to the Fabric Capacity.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Resource Group in which to create the Fabric Capacity. Changing this forces a new resource to be created.
sku This property is required. Property Map
A sku block as defined below.
administrationMembers List<String>

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

Note: If the member is an Entra user, use user principal name (UPN) format. If the user is a service principal, use object ID.

location Changes to this property will trigger replacement. String
The supported Azure location where the Fabric Capacity exists. Changing this forces a new resource to be created.
name Changes to this property will trigger replacement. String
The name which should be used for the Fabric Capacity. Changing this forces a new resource to be created.
tags Map<String>
A mapping of tags to assign to the Fabric Capacity.

Outputs

All input properties are implicitly available as output properties. Additionally, the Capacity resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing Capacity Resource

Get an existing Capacity resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: CapacityState, opts?: CustomResourceOptions): Capacity
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        administration_members: Optional[Sequence[str]] = None,
        location: Optional[str] = None,
        name: Optional[str] = None,
        resource_group_name: Optional[str] = None,
        sku: Optional[CapacitySkuArgs] = None,
        tags: Optional[Mapping[str, str]] = None) -> Capacity
func GetCapacity(ctx *Context, name string, id IDInput, state *CapacityState, opts ...ResourceOption) (*Capacity, error)
public static Capacity Get(string name, Input<string> id, CapacityState? state, CustomResourceOptions? opts = null)
public static Capacity get(String name, Output<String> id, CapacityState state, CustomResourceOptions options)
resources:  _:    type: azure:fabric:Capacity    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AdministrationMembers List<string>

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

Note: If the member is an Entra user, use user principal name (UPN) format. If the user is a service principal, use object ID.

Location Changes to this property will trigger replacement. string
The supported Azure location where the Fabric Capacity exists. Changing this forces a new resource to be created.
Name Changes to this property will trigger replacement. string
The name which should be used for the Fabric Capacity. Changing this forces a new resource to be created.
ResourceGroupName Changes to this property will trigger replacement. string
The name of the Resource Group in which to create the Fabric Capacity. Changing this forces a new resource to be created.
Sku CapacitySku
A sku block as defined below.
Tags Dictionary<string, string>
A mapping of tags to assign to the Fabric Capacity.
AdministrationMembers []string

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

Note: If the member is an Entra user, use user principal name (UPN) format. If the user is a service principal, use object ID.

Location Changes to this property will trigger replacement. string
The supported Azure location where the Fabric Capacity exists. Changing this forces a new resource to be created.
Name Changes to this property will trigger replacement. string
The name which should be used for the Fabric Capacity. Changing this forces a new resource to be created.
ResourceGroupName Changes to this property will trigger replacement. string
The name of the Resource Group in which to create the Fabric Capacity. Changing this forces a new resource to be created.
Sku CapacitySkuArgs
A sku block as defined below.
Tags map[string]string
A mapping of tags to assign to the Fabric Capacity.
administrationMembers List<String>

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

Note: If the member is an Entra user, use user principal name (UPN) format. If the user is a service principal, use object ID.

location Changes to this property will trigger replacement. String
The supported Azure location where the Fabric Capacity exists. Changing this forces a new resource to be created.
name Changes to this property will trigger replacement. String
The name which should be used for the Fabric Capacity. Changing this forces a new resource to be created.
resourceGroupName Changes to this property will trigger replacement. String
The name of the Resource Group in which to create the Fabric Capacity. Changing this forces a new resource to be created.
sku CapacitySku
A sku block as defined below.
tags Map<String,String>
A mapping of tags to assign to the Fabric Capacity.
administrationMembers string[]

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

Note: If the member is an Entra user, use user principal name (UPN) format. If the user is a service principal, use object ID.

location Changes to this property will trigger replacement. string
The supported Azure location where the Fabric Capacity exists. Changing this forces a new resource to be created.
name Changes to this property will trigger replacement. string
The name which should be used for the Fabric Capacity. Changing this forces a new resource to be created.
resourceGroupName Changes to this property will trigger replacement. string
The name of the Resource Group in which to create the Fabric Capacity. Changing this forces a new resource to be created.
sku CapacitySku
A sku block as defined below.
tags {[key: string]: string}
A mapping of tags to assign to the Fabric Capacity.
administration_members Sequence[str]

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

Note: If the member is an Entra user, use user principal name (UPN) format. If the user is a service principal, use object ID.

location Changes to this property will trigger replacement. str
The supported Azure location where the Fabric Capacity exists. Changing this forces a new resource to be created.
name Changes to this property will trigger replacement. str
The name which should be used for the Fabric Capacity. Changing this forces a new resource to be created.
resource_group_name Changes to this property will trigger replacement. str
The name of the Resource Group in which to create the Fabric Capacity. Changing this forces a new resource to be created.
sku CapacitySkuArgs
A sku block as defined below.
tags Mapping[str, str]
A mapping of tags to assign to the Fabric Capacity.
administrationMembers List<String>

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

Note: If the member is an Entra user, use user principal name (UPN) format. If the user is a service principal, use object ID.

location Changes to this property will trigger replacement. String
The supported Azure location where the Fabric Capacity exists. Changing this forces a new resource to be created.
name Changes to this property will trigger replacement. String
The name which should be used for the Fabric Capacity. Changing this forces a new resource to be created.
resourceGroupName Changes to this property will trigger replacement. String
The name of the Resource Group in which to create the Fabric Capacity. Changing this forces a new resource to be created.
sku Property Map
A sku block as defined below.
tags Map<String>
A mapping of tags to assign to the Fabric Capacity.

Supporting Types

CapacitySku
, CapacitySkuArgs

Name This property is required. string
The name of the SKU to use for the Fabric Capacity. Possible values are F2, F4, F8, F16, F32, F64, F128, F256, F512, F1024, F2048.
Tier This property is required. string
The tier of the SKU to use for the Fabric Capacity. The only possible value is Fabric.
Name This property is required. string
The name of the SKU to use for the Fabric Capacity. Possible values are F2, F4, F8, F16, F32, F64, F128, F256, F512, F1024, F2048.
Tier This property is required. string
The tier of the SKU to use for the Fabric Capacity. The only possible value is Fabric.
name This property is required. String
The name of the SKU to use for the Fabric Capacity. Possible values are F2, F4, F8, F16, F32, F64, F128, F256, F512, F1024, F2048.
tier This property is required. String
The tier of the SKU to use for the Fabric Capacity. The only possible value is Fabric.
name This property is required. string
The name of the SKU to use for the Fabric Capacity. Possible values are F2, F4, F8, F16, F32, F64, F128, F256, F512, F1024, F2048.
tier This property is required. string
The tier of the SKU to use for the Fabric Capacity. The only possible value is Fabric.
name This property is required. str
The name of the SKU to use for the Fabric Capacity. Possible values are F2, F4, F8, F16, F32, F64, F128, F256, F512, F1024, F2048.
tier This property is required. str
The tier of the SKU to use for the Fabric Capacity. The only possible value is Fabric.
name This property is required. String
The name of the SKU to use for the Fabric Capacity. Possible values are F2, F4, F8, F16, F32, F64, F128, F256, F512, F1024, F2048.
tier This property is required. String
The tier of the SKU to use for the Fabric Capacity. The only possible value is Fabric.

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
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Azure Classic pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.