1. Packages
  2. Azure Native v2
  3. API Docs
  4. web
  5. WebAppAzureStorageAccounts
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.web.WebAppAzureStorageAccounts

Explore with Pulumi AI

AzureStorageInfo dictionary resource. Azure REST API version: 2022-09-01. Prior API version in Azure Native 1.x: 2020-12-01.

Other available API versions: 2020-10-01, 2023-01-01, 2023-12-01, 2024-04-01.

Example Usage

Update Azure Storage Accounts

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var webAppAzureStorageAccounts = new AzureNative.Web.WebAppAzureStorageAccounts("webAppAzureStorageAccounts", new()
    {
        Name = "sitef6141",
        Properties = 
        {
            { "account1", new AzureNative.Web.Inputs.AzureStorageInfoValueArgs
            {
                AccessKey = "26515^%@#*",
                AccountName = "testsa",
                MountPath = "/mounts/a/files",
                ShareName = "web",
                Type = AzureNative.Web.AzureStorageType.AzureFiles,
            } },
        },
        ResourceGroupName = "testrg123",
    });

});
Copy
package main

import (
	web "github.com/pulumi/pulumi-azure-native-sdk/web/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := web.NewWebAppAzureStorageAccounts(ctx, "webAppAzureStorageAccounts", &web.WebAppAzureStorageAccountsArgs{
			Name: pulumi.String("sitef6141"),
			Properties: web.AzureStorageInfoValueMap{
				"account1": &web.AzureStorageInfoValueArgs{
					AccessKey:   pulumi.String("26515^%@#*"),
					AccountName: pulumi.String("testsa"),
					MountPath:   pulumi.String("/mounts/a/files"),
					ShareName:   pulumi.String("web"),
					Type:        web.AzureStorageTypeAzureFiles,
				},
			},
			ResourceGroupName: pulumi.String("testrg123"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.web.WebAppAzureStorageAccounts;
import com.pulumi.azurenative.web.WebAppAzureStorageAccountsArgs;
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 webAppAzureStorageAccounts = new WebAppAzureStorageAccounts("webAppAzureStorageAccounts", WebAppAzureStorageAccountsArgs.builder()
            .name("sitef6141")
            .properties(Map.of("account1", Map.ofEntries(
                Map.entry("accessKey", "26515^%@#*"),
                Map.entry("accountName", "testsa"),
                Map.entry("mountPath", "/mounts/a/files"),
                Map.entry("shareName", "web"),
                Map.entry("type", "AzureFiles")
            )))
            .resourceGroupName("testrg123")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const webAppAzureStorageAccounts = new azure_native.web.WebAppAzureStorageAccounts("webAppAzureStorageAccounts", {
    name: "sitef6141",
    properties: {
        account1: {
            accessKey: "26515^%@#*",
            accountName: "testsa",
            mountPath: "/mounts/a/files",
            shareName: "web",
            type: azure_native.web.AzureStorageType.AzureFiles,
        },
    },
    resourceGroupName: "testrg123",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

web_app_azure_storage_accounts = azure_native.web.WebAppAzureStorageAccounts("webAppAzureStorageAccounts",
    name="sitef6141",
    properties={
        "account1": {
            "access_key": "26515^%@#*",
            "account_name": "testsa",
            "mount_path": "/mounts/a/files",
            "share_name": "web",
            "type": azure_native.web.AzureStorageType.AZURE_FILES,
        },
    },
    resource_group_name="testrg123")
Copy
resources:
  webAppAzureStorageAccounts:
    type: azure-native:web:WebAppAzureStorageAccounts
    properties:
      name: sitef6141
      properties:
        account1:
          accessKey: 26515^%@#*
          accountName: testsa
          mountPath: /mounts/a/files
          shareName: web
          type: AzureFiles
      resourceGroupName: testrg123
Copy

Create WebAppAzureStorageAccounts Resource

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

Constructor syntax

new WebAppAzureStorageAccounts(name: string, args: WebAppAzureStorageAccountsArgs, opts?: CustomResourceOptions);
@overload
def WebAppAzureStorageAccounts(resource_name: str,
                               args: WebAppAzureStorageAccountsArgs,
                               opts: Optional[ResourceOptions] = None)

@overload
def WebAppAzureStorageAccounts(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               name: Optional[str] = None,
                               resource_group_name: Optional[str] = None,
                               kind: Optional[str] = None,
                               properties: Optional[Mapping[str, AzureStorageInfoValueArgs]] = None)
func NewWebAppAzureStorageAccounts(ctx *Context, name string, args WebAppAzureStorageAccountsArgs, opts ...ResourceOption) (*WebAppAzureStorageAccounts, error)
public WebAppAzureStorageAccounts(string name, WebAppAzureStorageAccountsArgs args, CustomResourceOptions? opts = null)
public WebAppAzureStorageAccounts(String name, WebAppAzureStorageAccountsArgs args)
public WebAppAzureStorageAccounts(String name, WebAppAzureStorageAccountsArgs args, CustomResourceOptions options)
type: azure-native:web:WebAppAzureStorageAccounts
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. WebAppAzureStorageAccountsArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. WebAppAzureStorageAccountsArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. WebAppAzureStorageAccountsArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. WebAppAzureStorageAccountsArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. WebAppAzureStorageAccountsArgs
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 webAppAzureStorageAccountsResource = new AzureNative.Web.WebAppAzureStorageAccounts("webAppAzureStorageAccountsResource", new()
{
    Name = "string",
    ResourceGroupName = "string",
    Kind = "string",
    Properties = 
    {
        { "string", 
        {
            { "accessKey", "string" },
            { "accountName", "string" },
            { "mountPath", "string" },
            { "shareName", "string" },
            { "type", "AzureFiles" },
        } },
    },
});
Copy
example, err := web.NewWebAppAzureStorageAccounts(ctx, "webAppAzureStorageAccountsResource", &web.WebAppAzureStorageAccountsArgs{
	Name:              "string",
	ResourceGroupName: "string",
	Kind:              "string",
	Properties: map[string]interface{}{
		"string": map[string]interface{}{
			"accessKey":   "string",
			"accountName": "string",
			"mountPath":   "string",
			"shareName":   "string",
			"type":        "AzureFiles",
		},
	},
})
Copy
var webAppAzureStorageAccountsResource = new WebAppAzureStorageAccounts("webAppAzureStorageAccountsResource", WebAppAzureStorageAccountsArgs.builder()
    .name("string")
    .resourceGroupName("string")
    .kind("string")
    .properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .build());
Copy
web_app_azure_storage_accounts_resource = azure_native.web.WebAppAzureStorageAccounts("webAppAzureStorageAccountsResource",
    name=string,
    resource_group_name=string,
    kind=string,
    properties={
        string: {
            accessKey: string,
            accountName: string,
            mountPath: string,
            shareName: string,
            type: AzureFiles,
        },
    })
Copy
const webAppAzureStorageAccountsResource = new azure_native.web.WebAppAzureStorageAccounts("webAppAzureStorageAccountsResource", {
    name: "string",
    resourceGroupName: "string",
    kind: "string",
    properties: {
        string: {
            accessKey: "string",
            accountName: "string",
            mountPath: "string",
            shareName: "string",
            type: "AzureFiles",
        },
    },
});
Copy
type: azure-native:web:WebAppAzureStorageAccounts
properties:
    kind: string
    name: string
    properties:
        string:
            accessKey: string
            accountName: string
            mountPath: string
            shareName: string
            type: AzureFiles
    resourceGroupName: string
Copy

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

Name
This property is required.
Changes to this property will trigger replacement.
string
Name of the app.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of the resource group to which the resource belongs.
Kind string
Kind of resource.
Properties Dictionary<string, Pulumi.AzureNative.Web.Inputs.AzureStorageInfoValueArgs>
Azure storage accounts.
Name
This property is required.
Changes to this property will trigger replacement.
string
Name of the app.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of the resource group to which the resource belongs.
Kind string
Kind of resource.
Properties map[string]AzureStorageInfoValueArgs
Azure storage accounts.
name
This property is required.
Changes to this property will trigger replacement.
String
Name of the app.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
Name of the resource group to which the resource belongs.
kind String
Kind of resource.
properties Map<String,AzureStorageInfoValueArgs>
Azure storage accounts.
name
This property is required.
Changes to this property will trigger replacement.
string
Name of the app.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of the resource group to which the resource belongs.
kind string
Kind of resource.
properties {[key: string]: AzureStorageInfoValueArgs}
Azure storage accounts.
name
This property is required.
Changes to this property will trigger replacement.
str
Name of the app.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
Name of the resource group to which the resource belongs.
kind str
Kind of resource.
properties Mapping[str, AzureStorageInfoValueArgs]
Azure storage accounts.
name
This property is required.
Changes to this property will trigger replacement.
String
Name of the app.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
Name of the resource group to which the resource belongs.
kind String
Kind of resource.
properties Map<Property Map>
Azure storage accounts.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Type string
Resource type.
Id string
The provider-assigned unique ID for this managed resource.
Type string
Resource type.
id String
The provider-assigned unique ID for this managed resource.
type String
Resource type.
id string
The provider-assigned unique ID for this managed resource.
type string
Resource type.
id str
The provider-assigned unique ID for this managed resource.
type str
Resource type.
id String
The provider-assigned unique ID for this managed resource.
type String
Resource type.

Supporting Types

AzureStorageInfoValue
, AzureStorageInfoValueArgs

AccessKey string
Access key for the storage account.
AccountName string
Name of the storage account.
MountPath string
Path to mount the storage within the site's runtime environment.
ShareName string
Name of the file share (container name, for Blob storage).
Type Pulumi.AzureNative.Web.AzureStorageType
Type of storage.
AccessKey string
Access key for the storage account.
AccountName string
Name of the storage account.
MountPath string
Path to mount the storage within the site's runtime environment.
ShareName string
Name of the file share (container name, for Blob storage).
Type AzureStorageType
Type of storage.
accessKey String
Access key for the storage account.
accountName String
Name of the storage account.
mountPath String
Path to mount the storage within the site's runtime environment.
shareName String
Name of the file share (container name, for Blob storage).
type AzureStorageType
Type of storage.
accessKey string
Access key for the storage account.
accountName string
Name of the storage account.
mountPath string
Path to mount the storage within the site's runtime environment.
shareName string
Name of the file share (container name, for Blob storage).
type AzureStorageType
Type of storage.
access_key str
Access key for the storage account.
account_name str
Name of the storage account.
mount_path str
Path to mount the storage within the site's runtime environment.
share_name str
Name of the file share (container name, for Blob storage).
type AzureStorageType
Type of storage.
accessKey String
Access key for the storage account.
accountName String
Name of the storage account.
mountPath String
Path to mount the storage within the site's runtime environment.
shareName String
Name of the file share (container name, for Blob storage).
type "AzureFiles" | "AzureBlob"
Type of storage.

AzureStorageInfoValueResponse
, AzureStorageInfoValueResponseArgs

State This property is required. string
State of the storage account.
AccessKey string
Access key for the storage account.
AccountName string
Name of the storage account.
MountPath string
Path to mount the storage within the site's runtime environment.
ShareName string
Name of the file share (container name, for Blob storage).
Type string
Type of storage.
State This property is required. string
State of the storage account.
AccessKey string
Access key for the storage account.
AccountName string
Name of the storage account.
MountPath string
Path to mount the storage within the site's runtime environment.
ShareName string
Name of the file share (container name, for Blob storage).
Type string
Type of storage.
state This property is required. String
State of the storage account.
accessKey String
Access key for the storage account.
accountName String
Name of the storage account.
mountPath String
Path to mount the storage within the site's runtime environment.
shareName String
Name of the file share (container name, for Blob storage).
type String
Type of storage.
state This property is required. string
State of the storage account.
accessKey string
Access key for the storage account.
accountName string
Name of the storage account.
mountPath string
Path to mount the storage within the site's runtime environment.
shareName string
Name of the file share (container name, for Blob storage).
type string
Type of storage.
state This property is required. str
State of the storage account.
access_key str
Access key for the storage account.
account_name str
Name of the storage account.
mount_path str
Path to mount the storage within the site's runtime environment.
share_name str
Name of the file share (container name, for Blob storage).
type str
Type of storage.
state This property is required. String
State of the storage account.
accessKey String
Access key for the storage account.
accountName String
Name of the storage account.
mountPath String
Path to mount the storage within the site's runtime environment.
shareName String
Name of the file share (container name, for Blob storage).
type String
Type of storage.

AzureStorageType
, AzureStorageTypeArgs

AzureFiles
AzureFiles
AzureBlob
AzureBlob
AzureStorageTypeAzureFiles
AzureFiles
AzureStorageTypeAzureBlob
AzureBlob
AzureFiles
AzureFiles
AzureBlob
AzureBlob
AzureFiles
AzureFiles
AzureBlob
AzureBlob
AZURE_FILES
AzureFiles
AZURE_BLOB
AzureBlob
"AzureFiles"
AzureFiles
"AzureBlob"
AzureBlob

Import

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

$ pulumi import azure-native:web:WebAppAzureStorageAccounts web /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/azurestorageaccounts 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0