StorageAccountStaticWebsite

Enables the static website feature of a storage account.

Import

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

$ pulumi import azure-native:storage:StorageAccountStaticWebsite myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/staticWebsite 

Create a StorageAccountStaticWebsite Resource

new StorageAccountStaticWebsite(name: string, args: StorageAccountStaticWebsiteArgs, opts?: CustomResourceOptions);
@overload
def StorageAccountStaticWebsite(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                account_name: Optional[str] = None,
                                error404_document: Optional[str] = None,
                                index_document: Optional[str] = None,
                                resource_group_name: Optional[str] = None)
@overload
def StorageAccountStaticWebsite(resource_name: str,
                                args: StorageAccountStaticWebsiteArgs,
                                opts: Optional[ResourceOptions] = None)
func NewStorageAccountStaticWebsite(ctx *Context, name string, args StorageAccountStaticWebsiteArgs, opts ...ResourceOption) (*StorageAccountStaticWebsite, error)
public StorageAccountStaticWebsite(string name, StorageAccountStaticWebsiteArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args StorageAccountStaticWebsiteArgs
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 StorageAccountStaticWebsiteArgs
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 StorageAccountStaticWebsiteArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args StorageAccountStaticWebsiteArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

StorageAccountStaticWebsite Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The StorageAccountStaticWebsite resource accepts the following input properties:

AccountName string
The name of the storage account within the specified resource group.
ResourceGroupName string
The name of the resource group within the user’s subscription. The name is case insensitive.
Error404Document string
The absolute path to a custom webpage that should be used when a request is made which does not correspond to an existing file.
IndexDocument string
The webpage that Azure Storage serves for requests to the root of a website or any sub-folder. For example, ‘index.html’. The value is case-sensitive.
AccountName string
The name of the storage account within the specified resource group.
ResourceGroupName string
The name of the resource group within the user’s subscription. The name is case insensitive.
Error404Document string
The absolute path to a custom webpage that should be used when a request is made which does not correspond to an existing file.
IndexDocument string
The webpage that Azure Storage serves for requests to the root of a website or any sub-folder. For example, ‘index.html’. The value is case-sensitive.
accountName string
The name of the storage account within the specified resource group.
resourceGroupName string
The name of the resource group within the user’s subscription. The name is case insensitive.
error404Document string
The absolute path to a custom webpage that should be used when a request is made which does not correspond to an existing file.
indexDocument string
The webpage that Azure Storage serves for requests to the root of a website or any sub-folder. For example, ‘index.html’. The value is case-sensitive.
account_name str
The name of the storage account within the specified resource group.
resource_group_name str
The name of the resource group within the user’s subscription. The name is case insensitive.
error404_document str
The absolute path to a custom webpage that should be used when a request is made which does not correspond to an existing file.
index_document str
The webpage that Azure Storage serves for requests to the root of a website or any sub-folder. For example, ‘index.html’. The value is case-sensitive.

Outputs

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

ContainerName string
The name of the container to upload blobs to.
Id string
The provider-assigned unique ID for this managed resource.
ContainerName string
The name of the container to upload blobs to.
Id string
The provider-assigned unique ID for this managed resource.
containerName string
The name of the container to upload blobs to.
id string
The provider-assigned unique ID for this managed resource.
container_name str
The name of the container to upload blobs to.
id str
The provider-assigned unique ID for this managed resource.

Package Details

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