Welcome to Pulumi Registry, your window into the cloud. Read the announcement.

Azure Native

v1.42.0 published on Monday, Oct 25, 2021 by Pulumi

ComponentLinkedStorageAccount

An Application Insights component linked storage accounts API Version: 2020-03-01-preview.

Example Usage

ComponentLinkedStorageAccountsCreateAndUpdate

using Pulumi;
using AzureNative = Pulumi.AzureNative;

class MyStack : Stack
{
    public MyStack()
    {
        var componentLinkedStorageAccount = new AzureNative.Insights.ComponentLinkedStorageAccount("componentLinkedStorageAccount", new AzureNative.Insights.ComponentLinkedStorageAccountArgs
        {
            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/go/azure/insights"
	"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
	})
}

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",
});

Create a ComponentLinkedStorageAccount Resource

new ComponentLinkedStorageAccount(name: string, args: ComponentLinkedStorageAccountArgs, opts?: CustomResourceOptions);
@overload
def ComponentLinkedStorageAccount(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  linked_storage_account: Optional[str] = None,
                                  resource_group_name: Optional[str] = None,
                                  resource_name_: Optional[str] = None,
                                  storage_type: Optional[str] = None)
@overload
def ComponentLinkedStorageAccount(resource_name: str,
                                  args: ComponentLinkedStorageAccountArgs,
                                  opts: Optional[ResourceOptions] = None)
func NewComponentLinkedStorageAccount(ctx *Context, name string, args ComponentLinkedStorageAccountArgs, opts ...ResourceOption) (*ComponentLinkedStorageAccount, error)
public ComponentLinkedStorageAccount(string name, ComponentLinkedStorageAccountArgs args, CustomResourceOptions? opts = null)
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.

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.
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.

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 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”

Import

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

$ pulumi import azure-native:insights:ComponentLinkedStorageAccount serviceprofile /subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4918/resourceGroups/someResourceGroupNameproviders/microsoft.insights/components/myComponent/linkedStorageAccounts/serviceprofiler 

Package Details

Repository
https://github.com/pulumi/pulumi-azure-native
License
Apache-2.0