1. Packages
  2. Azure Native
  3. API Docs
  4. cosmosdb
  5. FleetAnalytic
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.4.0 published on Wednesday, May 7, 2025 by Pulumi

azure-native.cosmosdb.FleetAnalytic

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.4.0 published on Wednesday, May 7, 2025 by Pulumi

    An Azure Cosmos DB FleetAnalytics.

    Uses Azure REST API version 2025-05-01-preview.

    Example Usage

    CosmosDB FleetAnalytics Create

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var fleetAnalytic = new AzureNative.CosmosDB.FleetAnalytic("fleetAnalytic", new()
        {
            FleetAnalyticsName = "storageAccount",
            FleetName = "fleet1",
            ResourceGroupName = "rg1",
            StorageLocationType = AzureNative.CosmosDB.StorageLocationType.StorageAccount,
            StorageLocationUri = "/subscriptions/d1eb41bc-1b7f-4404-bd2a-868c222852d/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/testStorageAccount1",
        });
    
    });
    
    package main
    
    import (
    	cosmosdb "github.com/pulumi/pulumi-azure-native-sdk/cosmosdb/v3"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cosmosdb.NewFleetAnalytic(ctx, "fleetAnalytic", &cosmosdb.FleetAnalyticArgs{
    			FleetAnalyticsName:  pulumi.String("storageAccount"),
    			FleetName:           pulumi.String("fleet1"),
    			ResourceGroupName:   pulumi.String("rg1"),
    			StorageLocationType: pulumi.String(cosmosdb.StorageLocationTypeStorageAccount),
    			StorageLocationUri:  pulumi.String("/subscriptions/d1eb41bc-1b7f-4404-bd2a-868c222852d/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/testStorageAccount1"),
    		})
    		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.cosmosdb.FleetAnalytic;
    import com.pulumi.azurenative.cosmosdb.FleetAnalyticArgs;
    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 fleetAnalytic = new FleetAnalytic("fleetAnalytic", FleetAnalyticArgs.builder()
                .fleetAnalyticsName("storageAccount")
                .fleetName("fleet1")
                .resourceGroupName("rg1")
                .storageLocationType("StorageAccount")
                .storageLocationUri("/subscriptions/d1eb41bc-1b7f-4404-bd2a-868c222852d/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/testStorageAccount1")
                .build());
    
        }
    }
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const fleetAnalytic = new azure_native.cosmosdb.FleetAnalytic("fleetAnalytic", {
        fleetAnalyticsName: "storageAccount",
        fleetName: "fleet1",
        resourceGroupName: "rg1",
        storageLocationType: azure_native.cosmosdb.StorageLocationType.StorageAccount,
        storageLocationUri: "/subscriptions/d1eb41bc-1b7f-4404-bd2a-868c222852d/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/testStorageAccount1",
    });
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    fleet_analytic = azure_native.cosmosdb.FleetAnalytic("fleetAnalytic",
        fleet_analytics_name="storageAccount",
        fleet_name="fleet1",
        resource_group_name="rg1",
        storage_location_type=azure_native.cosmosdb.StorageLocationType.STORAGE_ACCOUNT,
        storage_location_uri="/subscriptions/d1eb41bc-1b7f-4404-bd2a-868c222852d/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/testStorageAccount1")
    
    resources:
      fleetAnalytic:
        type: azure-native:cosmosdb:FleetAnalytic
        properties:
          fleetAnalyticsName: storageAccount
          fleetName: fleet1
          resourceGroupName: rg1
          storageLocationType: StorageAccount
          storageLocationUri: /subscriptions/d1eb41bc-1b7f-4404-bd2a-868c222852d/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/testStorageAccount1
    

    Create FleetAnalytic Resource

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

    Constructor syntax

    new FleetAnalytic(name: string, args: FleetAnalyticArgs, opts?: CustomResourceOptions);
    @overload
    def FleetAnalytic(resource_name: str,
                      args: FleetAnalyticArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def FleetAnalytic(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      fleet_name: Optional[str] = None,
                      resource_group_name: Optional[str] = None,
                      fleet_analytics_name: Optional[str] = None,
                      storage_location_type: Optional[Union[str, StorageLocationType]] = None,
                      storage_location_uri: Optional[str] = None)
    func NewFleetAnalytic(ctx *Context, name string, args FleetAnalyticArgs, opts ...ResourceOption) (*FleetAnalytic, error)
    public FleetAnalytic(string name, FleetAnalyticArgs args, CustomResourceOptions? opts = null)
    public FleetAnalytic(String name, FleetAnalyticArgs args)
    public FleetAnalytic(String name, FleetAnalyticArgs args, CustomResourceOptions options)
    
    type: azure-native:cosmosdb:FleetAnalytic
    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 FleetAnalyticArgs
    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 FleetAnalyticArgs
    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 FleetAnalyticArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FleetAnalyticArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FleetAnalyticArgs
    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 fleetAnalyticResource = new AzureNative.CosmosDB.FleetAnalytic("fleetAnalyticResource", new()
    {
        FleetName = "string",
        ResourceGroupName = "string",
        FleetAnalyticsName = "string",
        StorageLocationType = "string",
        StorageLocationUri = "string",
    });
    
    example, err := cosmosdb.NewFleetAnalytic(ctx, "fleetAnalyticResource", &cosmosdb.FleetAnalyticArgs{
    	FleetName:           pulumi.String("string"),
    	ResourceGroupName:   pulumi.String("string"),
    	FleetAnalyticsName:  pulumi.String("string"),
    	StorageLocationType: pulumi.String("string"),
    	StorageLocationUri:  pulumi.String("string"),
    })
    
    var fleetAnalyticResource = new FleetAnalytic("fleetAnalyticResource", FleetAnalyticArgs.builder()
        .fleetName("string")
        .resourceGroupName("string")
        .fleetAnalyticsName("string")
        .storageLocationType("string")
        .storageLocationUri("string")
        .build());
    
    fleet_analytic_resource = azure_native.cosmosdb.FleetAnalytic("fleetAnalyticResource",
        fleet_name="string",
        resource_group_name="string",
        fleet_analytics_name="string",
        storage_location_type="string",
        storage_location_uri="string")
    
    const fleetAnalyticResource = new azure_native.cosmosdb.FleetAnalytic("fleetAnalyticResource", {
        fleetName: "string",
        resourceGroupName: "string",
        fleetAnalyticsName: "string",
        storageLocationType: "string",
        storageLocationUri: "string",
    });
    
    type: azure-native:cosmosdb:FleetAnalytic
    properties:
        fleetAnalyticsName: string
        fleetName: string
        resourceGroupName: string
        storageLocationType: string
        storageLocationUri: string
    

    FleetAnalytic 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 FleetAnalytic resource accepts the following input properties:

    FleetName string
    Cosmos DB fleet name. Needs to be unique under a subscription.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    FleetAnalyticsName string
    Cosmos DB fleetAnalytics name.
    StorageLocationType string | Pulumi.AzureNative.CosmosDB.StorageLocationType
    The type of the fleet analytics resource.
    StorageLocationUri string
    The unique identifier of the fleet analytics resource.
    FleetName string
    Cosmos DB fleet name. Needs to be unique under a subscription.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    FleetAnalyticsName string
    Cosmos DB fleetAnalytics name.
    StorageLocationType string | StorageLocationType
    The type of the fleet analytics resource.
    StorageLocationUri string
    The unique identifier of the fleet analytics resource.
    fleetName String
    Cosmos DB fleet name. Needs to be unique under a subscription.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    fleetAnalyticsName String
    Cosmos DB fleetAnalytics name.
    storageLocationType String | StorageLocationType
    The type of the fleet analytics resource.
    storageLocationUri String
    The unique identifier of the fleet analytics resource.
    fleetName string
    Cosmos DB fleet name. Needs to be unique under a subscription.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    fleetAnalyticsName string
    Cosmos DB fleetAnalytics name.
    storageLocationType string | StorageLocationType
    The type of the fleet analytics resource.
    storageLocationUri string
    The unique identifier of the fleet analytics resource.
    fleet_name str
    Cosmos DB fleet name. Needs to be unique under a subscription.
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    fleet_analytics_name str
    Cosmos DB fleetAnalytics name.
    storage_location_type str | StorageLocationType
    The type of the fleet analytics resource.
    storage_location_uri str
    The unique identifier of the fleet analytics resource.
    fleetName String
    Cosmos DB fleet name. Needs to be unique under a subscription.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    fleetAnalyticsName String
    Cosmos DB fleetAnalytics name.
    storageLocationType String | "StorageAccount" | "FabricLakehouse"
    The type of the fleet analytics resource.
    storageLocationUri String
    The unique identifier of the fleet analytics resource.

    Outputs

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

    AzureApiVersion string
    The Azure API version of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    ProvisioningState string
    A provisioning state of the FleetAnalytics.
    SystemData Pulumi.AzureNative.CosmosDB.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"
    AzureApiVersion string
    The Azure API version of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    ProvisioningState string
    A provisioning state of the FleetAnalytics.
    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"
    azureApiVersion String
    The Azure API version of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    provisioningState String
    A provisioning state of the FleetAnalytics.
    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"
    azureApiVersion string
    The Azure API version of the resource.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource
    provisioningState string
    A provisioning state of the FleetAnalytics.
    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"
    azure_api_version str
    The Azure API version of the resource.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the resource
    provisioning_state str
    A provisioning state of the FleetAnalytics.
    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"
    azureApiVersion String
    The Azure API version of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    provisioningState String
    A provisioning state of the FleetAnalytics.
    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

    StorageLocationType, StorageLocationTypeArgs

    StorageAccount
    StorageAccount
    FabricLakehouse
    FabricLakehouse
    StorageLocationTypeStorageAccount
    StorageAccount
    StorageLocationTypeFabricLakehouse
    FabricLakehouse
    StorageAccount
    StorageAccount
    FabricLakehouse
    FabricLakehouse
    StorageAccount
    StorageAccount
    FabricLakehouse
    FabricLakehouse
    STORAGE_ACCOUNT
    StorageAccount
    FABRIC_LAKEHOUSE
    FabricLakehouse
    "StorageAccount"
    StorageAccount
    "FabricLakehouse"
    FabricLakehouse

    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:cosmosdb:FleetAnalytic storageAccount /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/fleets/{fleetName}/fleetAnalytics/{fleetAnalyticsName} 
    

    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 v2 docs if using the v2 version of this package.
    Azure Native v3.4.0 published on Wednesday, May 7, 2025 by Pulumi