ComponentLinkedStorageAccount

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

Example Usage

ComponentLinkedStorageAccountsCreateAndUpdate

using System.Collections.Generic;
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/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
	})
}
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

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

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.

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