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.73.0 published on Wednesday, Nov 20, 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.73.0 published on Wednesday, Nov 20, 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

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

    Constructor syntax

    new StorageAccountStaticWebsite(name: string, args: StorageAccountStaticWebsiteArgs, opts?: CustomResourceOptions);
    @overload
    def StorageAccountStaticWebsite(resource_name: str,
                                    args: StorageAccountStaticWebsiteArgs,
                                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def StorageAccountStaticWebsite(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    account_name: Optional[str] = None,
                                    resource_group_name: Optional[str] = None,
                                    error404_document: Optional[str] = None,
                                    index_document: Optional[str] = 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.
    
    

    Parameters

    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.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var storageAccountStaticWebsiteResource = new AzureNative.Storage.StorageAccountStaticWebsite("storageAccountStaticWebsiteResource", new()
    {
        AccountName = "string",
        ResourceGroupName = "string",
        Error404Document = "string",
        IndexDocument = "string",
    });
    
    example, err := storage.NewStorageAccountStaticWebsite(ctx, "storageAccountStaticWebsiteResource", &storage.StorageAccountStaticWebsiteArgs{
    	AccountName:       pulumi.String("string"),
    	ResourceGroupName: pulumi.String("string"),
    	Error404Document:  pulumi.String("string"),
    	IndexDocument:     pulumi.String("string"),
    })
    
    var storageAccountStaticWebsiteResource = new StorageAccountStaticWebsite("storageAccountStaticWebsiteResource", StorageAccountStaticWebsiteArgs.builder()
        .accountName("string")
        .resourceGroupName("string")
        .error404Document("string")
        .indexDocument("string")
        .build());
    
    storage_account_static_website_resource = azure_native.storage.StorageAccountStaticWebsite("storageAccountStaticWebsiteResource",
        account_name="string",
        resource_group_name="string",
        error404_document="string",
        index_document="string")
    
    const storageAccountStaticWebsiteResource = new azure_native.storage.StorageAccountStaticWebsite("storageAccountStaticWebsiteResource", {
        accountName: "string",
        resourceGroupName: "string",
        error404Document: "string",
        indexDocument: "string",
    });
    
    type: azure-native:storage:StorageAccountStaticWebsite
    properties:
        accountName: string
        error404Document: string
        indexDocument: string
        resourceGroupName: string
    

    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

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    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.73.0 published on Wednesday, Nov 20, 2024 by Pulumi