azure-native.insights.ComponentLinkedStorageAccount
Explore with Pulumi AI
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ComponentLinkedStorageAccount resource accepts the following input properties:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Resource
Name string - The name of the Application Insights component resource.
- Linked
Storage stringAccount - Linked storage account resource ID
- Storage
Type string - The type of the Application Insights component data source for the linked storage account.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Resource
Name string - The name of the Application Insights component resource.
- Linked
Storage stringAccount - Linked storage account resource ID
- Storage
Type string - The type of the Application Insights component data source for the linked storage account.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- resource
Name String - The name of the Application Insights component resource.
- linked
Storage StringAccount - Linked storage account resource ID
- storage
Type String - The type of the Application Insights component data source for the linked storage account.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- resource
Name string - The name of the Application Insights component resource.
- linked
Storage stringAccount - Linked storage account resource ID
- storage
Type string - The type of the Application Insights component data source for the linked storage account.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- resource_
name str - The name of the Application Insights component resource.
- linked_
storage_ straccount - Linked storage account resource ID
- storage_
type str - The type of the Application Insights component data source for the linked storage account.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- resource
Name String - The name of the Application Insights component resource.
- linked
Storage StringAccount - Linked storage account resource ID
- storage
Type 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:
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