1. Packages
  2. Azure Native
  3. API Docs
  4. storage
  5. StorageAccountStaticWebsite
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.34.0 published on Thursday, Mar 28, 2024 by Pulumi

azure-native.storage.StorageAccountStaticWebsite

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.34.0 published on Thursday, Mar 28, 2024 by Pulumi

    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 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)
    public StorageAccountStaticWebsite(String name, StorageAccountStaticWebsiteArgs args)
    public StorageAccountStaticWebsite(String name, StorageAccountStaticWebsiteArgs args, CustomResourceOptions options)
    
    type: azure-native:storage:StorageAccountStaticWebsite
    properties: # The arguments to resource properties.
    options: # 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.
    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.
    name String
    The unique name of the resource.
    args StorageAccountStaticWebsiteArgs
    The arguments to resource properties.
    options 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 Architecture and Concepts 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.
    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.
    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.

    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.
    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.
    containerName String
    The name of the container to upload blobs to.
    id String
    The provider-assigned unique ID for this managed resource.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.34.0 published on Thursday, Mar 28, 2024 by Pulumi