1. Packages
  2. Azure Native
  3. API Docs
  4. insights
  5. ComponentLinkedStorageAccount
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.65.0 published on Monday, Oct 7, 2024 by Pulumi

azure-native.insights.ComponentLinkedStorageAccount

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.65.0 published on Monday, Oct 7, 2024 by Pulumi

    An Application Insights component linked storage accounts Azure REST API version: 2020-03-01-preview. Prior API version in Azure Native 1.x: 2020-03-01-preview.

    Example Usage

    ComponentLinkedStorageAccountsCreateAndUpdate

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var componentLinkedStorageAccount = new AzureNative.Insights.ComponentLinkedStorageAccount("componentLinkedStorageAccount", new()
        {
            LinkedStorageAccount = "/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4918/resourceGroups/someResourceGroupName/providers/Microsoft.Storage/storageAccounts/storageaccountname",
            ResourceGroupName = "someResourceGroupName",
            ResourceName = "myComponent",
            StorageType = "ServiceProfiler",
        });
    
    });
    
    package main
    
    import (
    	insights "github.com/pulumi/pulumi-azure-native-sdk/insights/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := insights.NewComponentLinkedStorageAccount(ctx, "componentLinkedStorageAccount", &insights.ComponentLinkedStorageAccountArgs{
    			LinkedStorageAccount: pulumi.String("/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4918/resourceGroups/someResourceGroupName/providers/Microsoft.Storage/storageAccounts/storageaccountname"),
    			ResourceGroupName:    pulumi.String("someResourceGroupName"),
    			ResourceName:         pulumi.String("myComponent"),
    			StorageType:          pulumi.String("ServiceProfiler"),
    		})
    		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.insights.ComponentLinkedStorageAccount;
    import com.pulumi.azurenative.insights.ComponentLinkedStorageAccountArgs;
    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 componentLinkedStorageAccount = new ComponentLinkedStorageAccount("componentLinkedStorageAccount", ComponentLinkedStorageAccountArgs.builder()
                .linkedStorageAccount("/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4918/resourceGroups/someResourceGroupName/providers/Microsoft.Storage/storageAccounts/storageaccountname")
                .resourceGroupName("someResourceGroupName")
                .resourceName("myComponent")
                .storageType("ServiceProfiler")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    component_linked_storage_account = azure_native.insights.ComponentLinkedStorageAccount("componentLinkedStorageAccount",
        linked_storage_account="/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4918/resourceGroups/someResourceGroupName/providers/Microsoft.Storage/storageAccounts/storageaccountname",
        resource_group_name="someResourceGroupName",
        resource_name_="myComponent",
        storage_type="ServiceProfiler")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const componentLinkedStorageAccount = new azure_native.insights.ComponentLinkedStorageAccount("componentLinkedStorageAccount", {
        linkedStorageAccount: "/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4918/resourceGroups/someResourceGroupName/providers/Microsoft.Storage/storageAccounts/storageaccountname",
        resourceGroupName: "someResourceGroupName",
        resourceName: "myComponent",
        storageType: "ServiceProfiler",
    });
    
    resources:
      componentLinkedStorageAccount:
        type: azure-native:insights:ComponentLinkedStorageAccount
        properties:
          linkedStorageAccount: /subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4918/resourceGroups/someResourceGroupName/providers/Microsoft.Storage/storageAccounts/storageaccountname
          resourceGroupName: someResourceGroupName
          resourceName: myComponent
          storageType: ServiceProfiler
    

    Create ComponentLinkedStorageAccount Resource

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

    Constructor syntax

    new ComponentLinkedStorageAccount(name: string, args: ComponentLinkedStorageAccountArgs, opts?: CustomResourceOptions);
    @overload
    def ComponentLinkedStorageAccount(resource_name: str,
                                      args: ComponentLinkedStorageAccountArgs,
                                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def ComponentLinkedStorageAccount(resource_name: str,
                                      opts: Optional[ResourceOptions] = None,
                                      resource_group_name: Optional[str] = None,
                                      resource_name_: Optional[str] = None,
                                      linked_storage_account: Optional[str] = None,
                                      storage_type: Optional[str] = None)
    func NewComponentLinkedStorageAccount(ctx *Context, name string, args ComponentLinkedStorageAccountArgs, opts ...ResourceOption) (*ComponentLinkedStorageAccount, error)
    public ComponentLinkedStorageAccount(string name, ComponentLinkedStorageAccountArgs args, CustomResourceOptions? opts = null)
    public ComponentLinkedStorageAccount(String name, ComponentLinkedStorageAccountArgs args)
    public ComponentLinkedStorageAccount(String name, ComponentLinkedStorageAccountArgs args, CustomResourceOptions options)
    
    type: azure-native:insights:ComponentLinkedStorageAccount
    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 ComponentLinkedStorageAccountArgs
    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 ComponentLinkedStorageAccountArgs
    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 ComponentLinkedStorageAccountArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ComponentLinkedStorageAccountArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ComponentLinkedStorageAccountArgs
    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 componentLinkedStorageAccountResource = new AzureNative.Insights.ComponentLinkedStorageAccount("componentLinkedStorageAccountResource", new()
    {
        ResourceGroupName = "string",
        ResourceName = "string",
        LinkedStorageAccount = "string",
        StorageType = "string",
    });
    
    example, err := insights.NewComponentLinkedStorageAccount(ctx, "componentLinkedStorageAccountResource", &insights.ComponentLinkedStorageAccountArgs{
    	ResourceGroupName:    pulumi.String("string"),
    	ResourceName:         pulumi.String("string"),
    	LinkedStorageAccount: pulumi.String("string"),
    	StorageType:          pulumi.String("string"),
    })
    
    var componentLinkedStorageAccountResource = new ComponentLinkedStorageAccount("componentLinkedStorageAccountResource", ComponentLinkedStorageAccountArgs.builder()
        .resourceGroupName("string")
        .resourceName("string")
        .linkedStorageAccount("string")
        .storageType("string")
        .build());
    
    component_linked_storage_account_resource = azure_native.insights.ComponentLinkedStorageAccount("componentLinkedStorageAccountResource",
        resource_group_name="string",
        resource_name_="string",
        linked_storage_account="string",
        storage_type="string")
    
    const componentLinkedStorageAccountResource = new azure_native.insights.ComponentLinkedStorageAccount("componentLinkedStorageAccountResource", {
        resourceGroupName: "string",
        resourceName: "string",
        linkedStorageAccount: "string",
        storageType: "string",
    });
    
    type: azure-native:insights:ComponentLinkedStorageAccount
    properties:
        linkedStorageAccount: string
        resourceGroupName: string
        resourceName: string
        storageType: string
    

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

    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    ResourceName string
    The name of the Application Insights component resource.
    LinkedStorageAccount string
    Linked storage account resource ID
    StorageType string
    The type of the Application Insights component data source for the linked storage account.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    ResourceName string
    The name of the Application Insights component resource.
    LinkedStorageAccount string
    Linked storage account resource ID
    StorageType string
    The type of the Application Insights component data source for the linked storage account.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    resourceName String
    The name of the Application Insights component resource.
    linkedStorageAccount String
    Linked storage account resource ID
    storageType String
    The type of the Application Insights component data source for the linked storage account.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    resourceName string
    The name of the Application Insights component resource.
    linkedStorageAccount string
    Linked storage account resource ID
    storageType string
    The type of the Application Insights component data source for the linked storage account.
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    resource_name str
    The name of the Application Insights component resource.
    linked_storage_account str
    Linked storage account resource ID
    storage_type str
    The type of the Application Insights component data source for the linked storage account.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    resourceName String
    The name of the Application Insights component resource.
    linkedStorageAccount String
    Linked storage account resource ID
    storageType String
    The type of the Application Insights component data source for the linked storage account.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    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
    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
    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
    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
    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
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    Import

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

    $ pulumi import azure-native:insights:ComponentLinkedStorageAccount serviceprofile /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType} 
    

    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.65.0 published on Monday, Oct 7, 2024 by Pulumi