1. Packages
  2. Azure Native
  3. API Docs
  4. fabric
  5. FabricCapacity
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.49.1 published on Tuesday, Jul 9, 2024 by Pulumi

azure-native.fabric.FabricCapacity

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.49.1 published on Tuesday, Jul 9, 2024 by Pulumi

    Fabric Capacity resource Azure REST API version: 2023-11-01.

    Example Usage

    Create or update a capacity

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var fabricCapacity = new AzureNative.Fabric.FabricCapacity("fabricCapacity", new()
        {
            Administration = new AzureNative.Fabric.Inputs.CapacityAdministrationArgs
            {
                Members = new[]
                {
                    "azsdktest@microsoft.com",
                    "azsdktest2@microsoft.com",
                },
            },
            CapacityName = "azsdktest",
            Location = "westcentralus",
            ResourceGroupName = "TestRG",
            Sku = new AzureNative.Fabric.Inputs.RpSkuArgs
            {
                Name = "F2",
                Tier = AzureNative.Fabric.RpSkuTier.Fabric,
            },
        });
    
    });
    
    package main
    
    import (
    	fabric "github.com/pulumi/pulumi-azure-native-sdk/fabric/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := fabric.NewFabricCapacity(ctx, "fabricCapacity", &fabric.FabricCapacityArgs{
    			Administration: &fabric.CapacityAdministrationArgs{
    				Members: pulumi.StringArray{
    					pulumi.String("azsdktest@microsoft.com"),
    					pulumi.String("azsdktest2@microsoft.com"),
    				},
    			},
    			CapacityName:      pulumi.String("azsdktest"),
    			Location:          pulumi.String("westcentralus"),
    			ResourceGroupName: pulumi.String("TestRG"),
    			Sku: &fabric.RpSkuArgs{
    				Name: pulumi.String("F2"),
    				Tier: pulumi.String(fabric.RpSkuTierFabric),
    			},
    		})
    		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.azurenative.fabric.FabricCapacity;
    import com.pulumi.azurenative.fabric.FabricCapacityArgs;
    import com.pulumi.azurenative.fabric.inputs.CapacityAdministrationArgs;
    import com.pulumi.azurenative.fabric.inputs.RpSkuArgs;
    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 fabricCapacity = new FabricCapacity("fabricCapacity", FabricCapacityArgs.builder()
                .administration(CapacityAdministrationArgs.builder()
                    .members(                
                        "azsdktest@microsoft.com",
                        "azsdktest2@microsoft.com")
                    .build())
                .capacityName("azsdktest")
                .location("westcentralus")
                .resourceGroupName("TestRG")
                .sku(RpSkuArgs.builder()
                    .name("F2")
                    .tier("Fabric")
                    .build())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    fabric_capacity = azure_native.fabric.FabricCapacity("fabricCapacity",
        administration={
            "members": [
                "azsdktest@microsoft.com",
                "azsdktest2@microsoft.com",
            ],
        },
        capacity_name="azsdktest",
        location="westcentralus",
        resource_group_name="TestRG",
        sku={
            "name": "F2",
            "tier": azure_native.fabric.RpSkuTier.FABRIC,
        })
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const fabricCapacity = new azure_native.fabric.FabricCapacity("fabricCapacity", {
        administration: {
            members: [
                "azsdktest@microsoft.com",
                "azsdktest2@microsoft.com",
            ],
        },
        capacityName: "azsdktest",
        location: "westcentralus",
        resourceGroupName: "TestRG",
        sku: {
            name: "F2",
            tier: azure_native.fabric.RpSkuTier.Fabric,
        },
    });
    
    resources:
      fabricCapacity:
        type: azure-native:fabric:FabricCapacity
        properties:
          administration:
            members:
              - azsdktest@microsoft.com
              - azsdktest2@microsoft.com
          capacityName: azsdktest
          location: westcentralus
          resourceGroupName: TestRG
          sku:
            name: F2
            tier: Fabric
    

    Create FabricCapacity Resource

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

    Constructor syntax

    new FabricCapacity(name: string, args: FabricCapacityArgs, opts?: CustomResourceOptions);
    @overload
    def FabricCapacity(resource_name: str,
                       args: FabricCapacityArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def FabricCapacity(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       administration: Optional[CapacityAdministrationArgs] = None,
                       resource_group_name: Optional[str] = None,
                       sku: Optional[RpSkuArgs] = None,
                       capacity_name: Optional[str] = None,
                       location: Optional[str] = None,
                       tags: Optional[Mapping[str, str]] = None)
    func NewFabricCapacity(ctx *Context, name string, args FabricCapacityArgs, opts ...ResourceOption) (*FabricCapacity, error)
    public FabricCapacity(string name, FabricCapacityArgs args, CustomResourceOptions? opts = null)
    public FabricCapacity(String name, FabricCapacityArgs args)
    public FabricCapacity(String name, FabricCapacityArgs args, CustomResourceOptions options)
    
    type: azure-native:fabric:FabricCapacity
    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 FabricCapacityArgs
    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 FabricCapacityArgs
    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 FabricCapacityArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FabricCapacityArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FabricCapacityArgs
    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 fabricCapacityResource = new AzureNative.Fabric.FabricCapacity("fabricCapacityResource", new()
    {
        Administration = new AzureNative.Fabric.Inputs.CapacityAdministrationArgs
        {
            Members = new[]
            {
                "string",
            },
        },
        ResourceGroupName = "string",
        Sku = new AzureNative.Fabric.Inputs.RpSkuArgs
        {
            Name = "string",
            Tier = "string",
        },
        CapacityName = "string",
        Location = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := fabric.NewFabricCapacity(ctx, "fabricCapacityResource", &fabric.FabricCapacityArgs{
    Administration: &fabric.CapacityAdministrationArgs{
    Members: pulumi.StringArray{
    pulumi.String("string"),
    },
    },
    ResourceGroupName: pulumi.String("string"),
    Sku: &fabric.RpSkuArgs{
    Name: pulumi.String("string"),
    Tier: pulumi.String("string"),
    },
    CapacityName: pulumi.String("string"),
    Location: pulumi.String("string"),
    Tags: pulumi.StringMap{
    "string": pulumi.String("string"),
    },
    })
    
    var fabricCapacityResource = new FabricCapacity("fabricCapacityResource", FabricCapacityArgs.builder()
        .administration(CapacityAdministrationArgs.builder()
            .members("string")
            .build())
        .resourceGroupName("string")
        .sku(RpSkuArgs.builder()
            .name("string")
            .tier("string")
            .build())
        .capacityName("string")
        .location("string")
        .tags(Map.of("string", "string"))
        .build());
    
    fabric_capacity_resource = azure_native.fabric.FabricCapacity("fabricCapacityResource",
        administration={
            "members": ["string"],
        },
        resource_group_name="string",
        sku={
            "name": "string",
            "tier": "string",
        },
        capacity_name="string",
        location="string",
        tags={
            "string": "string",
        })
    
    const fabricCapacityResource = new azure_native.fabric.FabricCapacity("fabricCapacityResource", {
        administration: {
            members: ["string"],
        },
        resourceGroupName: "string",
        sku: {
            name: "string",
            tier: "string",
        },
        capacityName: "string",
        location: "string",
        tags: {
            string: "string",
        },
    });
    
    type: azure-native:fabric:FabricCapacity
    properties:
        administration:
            members:
                - string
        capacityName: string
        location: string
        resourceGroupName: string
        sku:
            name: string
            tier: string
        tags:
            string: string
    

    FabricCapacity Resource Properties

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

    Inputs

    The FabricCapacity resource accepts the following input properties:

    Administration Pulumi.AzureNative.Fabric.Inputs.CapacityAdministration
    The capacity administration
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    Sku Pulumi.AzureNative.Fabric.Inputs.RpSku
    The SKU details
    CapacityName string
    The name of the Microsoft Fabric capacity. It must be a minimum of 3 characters, and a maximum of 63.
    Location string
    The geo-location where the resource lives
    Tags Dictionary<string, string>
    Resource tags.
    Administration CapacityAdministrationArgs
    The capacity administration
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    Sku RpSkuArgs
    The SKU details
    CapacityName string
    The name of the Microsoft Fabric capacity. It must be a minimum of 3 characters, and a maximum of 63.
    Location string
    The geo-location where the resource lives
    Tags map[string]string
    Resource tags.
    administration CapacityAdministration
    The capacity administration
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    sku RpSku
    The SKU details
    capacityName String
    The name of the Microsoft Fabric capacity. It must be a minimum of 3 characters, and a maximum of 63.
    location String
    The geo-location where the resource lives
    tags Map<String,String>
    Resource tags.
    administration CapacityAdministration
    The capacity administration
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    sku RpSku
    The SKU details
    capacityName string
    The name of the Microsoft Fabric capacity. It must be a minimum of 3 characters, and a maximum of 63.
    location string
    The geo-location where the resource lives
    tags {[key: string]: string}
    Resource tags.
    administration CapacityAdministrationArgs
    The capacity administration
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    sku RpSkuArgs
    The SKU details
    capacity_name str
    The name of the Microsoft Fabric capacity. It must be a minimum of 3 characters, and a maximum of 63.
    location str
    The geo-location where the resource lives
    tags Mapping[str, str]
    Resource tags.
    administration Property Map
    The capacity administration
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    sku Property Map
    The SKU details
    capacityName String
    The name of the Microsoft Fabric capacity. It must be a minimum of 3 characters, and a maximum of 63.
    location String
    The geo-location where the resource lives
    tags Map<String>
    Resource tags.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    ProvisioningState string
    The current deployment state of Microsoft Fabric resource. The provisioningState is to indicate states for resource provisioning.
    State string
    The current state of Microsoft Fabric resource. The state is to indicate more states outside of resource provisioning.
    SystemData Pulumi.AzureNative.Fabric.Outputs.SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    ProvisioningState string
    The current deployment state of Microsoft Fabric resource. The provisioningState is to indicate states for resource provisioning.
    State string
    The current state of Microsoft Fabric resource. The state is to indicate more states outside of resource provisioning.
    SystemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    provisioningState String
    The current deployment state of Microsoft Fabric resource. The provisioningState is to indicate states for resource provisioning.
    state String
    The current state of Microsoft Fabric resource. The state is to indicate more states outside of resource provisioning.
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource
    provisioningState string
    The current deployment state of Microsoft Fabric resource. The provisioningState is to indicate states for resource provisioning.
    state string
    The current state of Microsoft Fabric resource. The state is to indicate more states outside of resource provisioning.
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the resource
    provisioning_state str
    The current deployment state of Microsoft Fabric resource. The provisioningState is to indicate states for resource provisioning.
    state str
    The current state of Microsoft Fabric resource. The state is to indicate more states outside of resource provisioning.
    system_data SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    provisioningState String
    The current deployment state of Microsoft Fabric resource. The provisioningState is to indicate states for resource provisioning.
    state String
    The current state of Microsoft Fabric resource. The state is to indicate more states outside of resource provisioning.
    systemData Property Map
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    Supporting Types

    CapacityAdministration, CapacityAdministrationArgs

    Members List<string>
    An array of administrator user identities.
    Members []string
    An array of administrator user identities.
    members List<String>
    An array of administrator user identities.
    members string[]
    An array of administrator user identities.
    members Sequence[str]
    An array of administrator user identities.
    members List<String>
    An array of administrator user identities.

    CapacityAdministrationResponse, CapacityAdministrationResponseArgs

    Members List<string>
    An array of administrator user identities.
    Members []string
    An array of administrator user identities.
    members List<String>
    An array of administrator user identities.
    members string[]
    An array of administrator user identities.
    members Sequence[str]
    An array of administrator user identities.
    members List<String>
    An array of administrator user identities.

    RpSku, RpSkuArgs

    Name string
    The name of the SKU level.
    Tier string | Pulumi.AzureNative.Fabric.RpSkuTier
    The name of the Azure pricing tier to which the SKU applies.
    Name string
    The name of the SKU level.
    Tier string | RpSkuTier
    The name of the Azure pricing tier to which the SKU applies.
    name String
    The name of the SKU level.
    tier String | RpSkuTier
    The name of the Azure pricing tier to which the SKU applies.
    name string
    The name of the SKU level.
    tier string | RpSkuTier
    The name of the Azure pricing tier to which the SKU applies.
    name str
    The name of the SKU level.
    tier str | RpSkuTier
    The name of the Azure pricing tier to which the SKU applies.
    name String
    The name of the SKU level.
    tier String | "Fabric"
    The name of the Azure pricing tier to which the SKU applies.

    RpSkuResponse, RpSkuResponseArgs

    Name string
    The name of the SKU level.
    Tier string
    The name of the Azure pricing tier to which the SKU applies.
    Name string
    The name of the SKU level.
    Tier string
    The name of the Azure pricing tier to which the SKU applies.
    name String
    The name of the SKU level.
    tier String
    The name of the Azure pricing tier to which the SKU applies.
    name string
    The name of the SKU level.
    tier string
    The name of the Azure pricing tier to which the SKU applies.
    name str
    The name of the SKU level.
    tier str
    The name of the Azure pricing tier to which the SKU applies.
    name String
    The name of the SKU level.
    tier String
    The name of the Azure pricing tier to which the SKU applies.

    RpSkuTier, RpSkuTierArgs

    Fabric
    FabricFabric tier
    RpSkuTierFabric
    FabricFabric tier
    Fabric
    FabricFabric tier
    Fabric
    FabricFabric tier
    FABRIC
    FabricFabric tier
    "Fabric"
    FabricFabric tier

    SystemDataResponse, SystemDataResponseArgs

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    Import

    An existing resource can be imported using its type token, name, and identifier, e.g.

    $ pulumi import azure-native:fabric:FabricCapacity azsdktest /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Fabric/capacities/{capacityName} 
    

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

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.49.1 published on Tuesday, Jul 9, 2024 by Pulumi