Fleetspace

class Fleetspace : KotlinCustomResource

A fleetspace. Uses Azure REST API version 2025-02-01-preview.

Example Usage

Create or Update Fleetspace - Generated by Policy

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var fleetspace = new AzureNative.DatabaseFleetManager.Fleetspace("fleetspace", new()
{
FleetName = "production-fleet",
FleetspaceName = "primary-space",
Properties = new AzureNative.DatabaseFleetManager.Inputs.FleetspacePropertiesArgs
{
CapacityMax = 150000,
MainPrincipal = new AzureNative.DatabaseFleetManager.Inputs.MainPrincipalArgs
{
ApplicationId = "d2d8b19e-c4f7-4c62-8e8d-7f0f96d94e39",
Login = "adminUser",
ObjectId = "f8b7c2d3-b9c4-4f3b-85cd-3d56c6e49f92",
PrincipalType = AzureNative.DatabaseFleetManager.PrincipalType.Application,
TenantId = "bde45d44-ec42-45b8-a5a2-c5b998c65ef6",
},
},
ResourceGroupName = "rgdatabasefleetmanager",
});
});
package main
import (
databasefleetmanager "github.com/pulumi/pulumi-azure-native-sdk/databasefleetmanager/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := databasefleetmanager.NewFleetspace(ctx, "fleetspace", &databasefleetmanager.FleetspaceArgs{
FleetName: pulumi.String("production-fleet"),
FleetspaceName: pulumi.String("primary-space"),
Properties: &databasefleetmanager.FleetspacePropertiesArgs{
CapacityMax: pulumi.Int(150000),
MainPrincipal: &databasefleetmanager.MainPrincipalArgs{
ApplicationId: pulumi.String("d2d8b19e-c4f7-4c62-8e8d-7f0f96d94e39"),
Login: pulumi.String("adminUser"),
ObjectId: pulumi.String("f8b7c2d3-b9c4-4f3b-85cd-3d56c6e49f92"),
PrincipalType: pulumi.String(databasefleetmanager.PrincipalTypeApplication),
TenantId: pulumi.String("bde45d44-ec42-45b8-a5a2-c5b998c65ef6"),
},
},
ResourceGroupName: pulumi.String("rgdatabasefleetmanager"),
})
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.databasefleetmanager.Fleetspace;
import com.pulumi.azurenative.databasefleetmanager.FleetspaceArgs;
import com.pulumi.azurenative.databasefleetmanager.inputs.FleetspacePropertiesArgs;
import com.pulumi.azurenative.databasefleetmanager.inputs.MainPrincipalArgs;
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 fleetspace = new Fleetspace("fleetspace", FleetspaceArgs.builder()
.fleetName("production-fleet")
.fleetspaceName("primary-space")
.properties(FleetspacePropertiesArgs.builder()
.capacityMax(150000)
.mainPrincipal(MainPrincipalArgs.builder()
.applicationId("d2d8b19e-c4f7-4c62-8e8d-7f0f96d94e39")
.login("adminUser")
.objectId("f8b7c2d3-b9c4-4f3b-85cd-3d56c6e49f92")
.principalType("Application")
.tenantId("bde45d44-ec42-45b8-a5a2-c5b998c65ef6")
.build())
.build())
.resourceGroupName("rgdatabasefleetmanager")
.build());
}
}

Import

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

$ pulumi import azure-native:databasefleetmanager:Fleetspace customer-db-prod /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseFleetManager/fleets/{fleetName}/fleetspaces/{fleetspaceName}

Properties

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard

A Fleetspace properties.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Azure Resource Manager metadata containing createdBy and modifiedBy information.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>