We recommend using Azure Native.
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",
},
});
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",
})
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
})
}
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 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: {}
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 string
- The unique name of the resource.
- args CapacityArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args 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 string
- The unique name of the resource.
- args CapacityArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CapacityArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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" },
},
});
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"),
},
})
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());
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",
})
const capacityResource = new azure.fabric.Capacity("capacityResource", {
resourceGroupName: "string",
sku: {
name: "string",
tier: "string",
},
administrationMembers: ["string"],
location: "string",
name: "string",
tags: {
string: "string",
},
});
type: azure:fabric:Capacity
properties:
administrationMembers:
- string
location: string
name: string
resourceGroupName: string
sku:
name: string
tier: string
tags:
string: string
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:
- Resource
Group stringName - The name of the Resource Group in which to create the Fabric Capacity. Changing this forces a new resource to be created.
- Sku
Capacity
Sku - A
sku
block as defined below. - Administration
Members List<string> - An array of administrator user identities. The member must be an Entra member user or a service principal.
- Location string
- The supported Azure location where the Fabric Capacity exists. Changing this forces a new resource to be created.
- Name string
- The name which should be used for the Fabric Capacity. Changing this forces a new resource to be created.
- Dictionary<string, string>
- A mapping of tags to assign to the Fabric Capacity.
- Resource
Group stringName - The name of the Resource Group in which to create the Fabric Capacity. Changing this forces a new resource to be created.
- Sku
Capacity
Sku Args - A
sku
block as defined below. - Administration
Members []string - An array of administrator user identities. The member must be an Entra member user or a service principal.
- Location string
- The supported Azure location where the Fabric Capacity exists. Changing this forces a new resource to be created.
- Name string
- The name which should be used for the Fabric Capacity. Changing this forces a new resource to be created.
- map[string]string
- A mapping of tags to assign to the Fabric Capacity.
- resource
Group StringName - The name of the Resource Group in which to create the Fabric Capacity. Changing this forces a new resource to be created.
- sku
Capacity
Sku - A
sku
block as defined below. - administration
Members List<String> - An array of administrator user identities. The member must be an Entra member user or a service principal.
- location String
- The supported Azure location where the Fabric Capacity exists. Changing this forces a new resource to be created.
- name String
- The name which should be used for the Fabric Capacity. Changing this forces a new resource to be created.
- Map<String,String>
- A mapping of tags to assign to the Fabric Capacity.
- resource
Group stringName - The name of the Resource Group in which to create the Fabric Capacity. Changing this forces a new resource to be created.
- sku
Capacity
Sku - A
sku
block as defined below. - administration
Members string[] - An array of administrator user identities. The member must be an Entra member user or a service principal.
- location string
- The supported Azure location where the Fabric Capacity exists. Changing this forces a new resource to be created.
- name string
- The name which should be used for the Fabric Capacity. Changing this forces a new resource to be created.
- {[key: string]: string}
- A mapping of tags to assign to the Fabric Capacity.
- resource_
group_ strname - The name of the Resource Group in which to create the Fabric Capacity. Changing this forces a new resource to be created.
- sku
Capacity
Sku Args - A
sku
block as defined below. - administration_
members Sequence[str] - An array of administrator user identities. The member must be an Entra member user or a service principal.
- location str
- The supported Azure location where the Fabric Capacity exists. Changing this forces a new resource to be created.
- name str
- The name which should be used for the Fabric Capacity. Changing this forces a new resource to be created.
- Mapping[str, str]
- A mapping of tags to assign to the Fabric Capacity.
- resource
Group StringName - 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. - administration
Members List<String> - An array of administrator user identities. The member must be an Entra member user or a service principal.
- location String
- The supported Azure location where the Fabric Capacity exists. Changing this forces a new resource to be created.
- name String
- The name which should be used for the Fabric Capacity. Changing this forces a new resource to be created.
- 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)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- Administration
Members List<string> - An array of administrator user identities. The member must be an Entra member user or a service principal.
- Location string
- The supported Azure location where the Fabric Capacity exists. Changing this forces a new resource to be created.
- Name string
- The name which should be used for the Fabric Capacity. Changing this forces a new resource to be created.
- Resource
Group stringName - The name of the Resource Group in which to create the Fabric Capacity. Changing this forces a new resource to be created.
- Sku
Capacity
Sku - A
sku
block as defined below. - Dictionary<string, string>
- A mapping of tags to assign to the Fabric Capacity.
- Administration
Members []string - An array of administrator user identities. The member must be an Entra member user or a service principal.
- Location string
- The supported Azure location where the Fabric Capacity exists. Changing this forces a new resource to be created.
- Name string
- The name which should be used for the Fabric Capacity. Changing this forces a new resource to be created.
- Resource
Group stringName - The name of the Resource Group in which to create the Fabric Capacity. Changing this forces a new resource to be created.
- Sku
Capacity
Sku Args - A
sku
block as defined below. - map[string]string
- A mapping of tags to assign to the Fabric Capacity.
- administration
Members List<String> - An array of administrator user identities. The member must be an Entra member user or a service principal.
- location String
- The supported Azure location where the Fabric Capacity exists. Changing this forces a new resource to be created.
- name String
- The name which should be used for the Fabric Capacity. Changing this forces a new resource to be created.
- resource
Group StringName - The name of the Resource Group in which to create the Fabric Capacity. Changing this forces a new resource to be created.
- sku
Capacity
Sku - A
sku
block as defined below. - Map<String,String>
- A mapping of tags to assign to the Fabric Capacity.
- administration
Members string[] - An array of administrator user identities. The member must be an Entra member user or a service principal.
- location string
- The supported Azure location where the Fabric Capacity exists. Changing this forces a new resource to be created.
- name string
- The name which should be used for the Fabric Capacity. Changing this forces a new resource to be created.
- resource
Group stringName - The name of the Resource Group in which to create the Fabric Capacity. Changing this forces a new resource to be created.
- sku
Capacity
Sku - A
sku
block as defined below. - {[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 member user or a service principal.
- location str
- The supported Azure location where the Fabric Capacity exists. Changing this forces a new resource to be created.
- name str
- The name which should be used for the Fabric Capacity. Changing this forces a new resource to be created.
- resource_
group_ strname - The name of the Resource Group in which to create the Fabric Capacity. Changing this forces a new resource to be created.
- sku
Capacity
Sku Args - A
sku
block as defined below. - Mapping[str, str]
- A mapping of tags to assign to the Fabric Capacity.
- administration
Members List<String> - An array of administrator user identities. The member must be an Entra member user or a service principal.
- location String
- The supported Azure location where the Fabric Capacity exists. Changing this forces a new resource to be created.
- name String
- The name which should be used for the Fabric Capacity. Changing this forces a new resource to be created.
- resource
Group StringName - 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. - Map<String>
- A mapping of tags to assign to the Fabric Capacity.
Supporting Types
CapacitySku, CapacitySkuArgs
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
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.