azure-native.fabric.FabricCapacity
Explore with Pulumi AI
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.
Azure Native. Fabric. Inputs. Capacity Administration - The capacity administration
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Sku
Pulumi.
Azure Native. Fabric. Inputs. Rp Sku - The SKU details
- Capacity
Name 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
- Dictionary<string, string>
- Resource tags.
- Administration
Capacity
Administration Args - The capacity administration
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Sku
Rp
Sku Args - The SKU details
- Capacity
Name 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
- map[string]string
- Resource tags.
- administration
Capacity
Administration - The capacity administration
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- sku
Rp
Sku - The SKU details
- capacity
Name 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
- Map<String,String>
- Resource tags.
- administration
Capacity
Administration - The capacity administration
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- sku
Rp
Sku - The SKU details
- capacity
Name 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
- {[key: string]: string}
- Resource tags.
- administration
Capacity
Administration Args - The capacity administration
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- sku
Rp
Sku Args - 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
- Mapping[str, str]
- Resource tags.
- administration Property Map
- The capacity administration
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- sku Property Map
- The SKU details
- capacity
Name 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
- 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
- Provisioning
State 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.
- System
Data Pulumi.Azure Native. Fabric. Outputs. System Data Response - 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
- Provisioning
State 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.
- System
Data SystemData Response - 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
- provisioning
State 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.
- system
Data SystemData Response - 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
- provisioning
State 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.
- system
Data SystemData Response - 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 SystemData Response - 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
- provisioning
State 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.
- system
Data 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.
Azure Native. Fabric. Rp Sku Tier - The name of the Azure pricing tier to which the SKU applies.
RpSkuResponse, RpSkuResponseArgs
RpSkuTier, RpSkuTierArgs
- Fabric
- FabricFabric tier
- Rp
Sku Tier Fabric - FabricFabric tier
- Fabric
- FabricFabric tier
- Fabric
- FabricFabric tier
- FABRIC
- FabricFabric tier
- "Fabric"
- FabricFabric tier
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - 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_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - 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