1. Packages
  2. Azure Native v2
  3. API Docs
  4. storage
  5. QueueServiceProperties
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.storage.QueueServiceProperties

Explore with Pulumi AI

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

The properties of a storage account’s Queue service. Azure REST API version: 2022-09-01. Prior API version in Azure Native 1.x: 2021-02-01.

Other available API versions: 2023-01-01, 2023-04-01, 2023-05-01.

Example Usage

QueueServicesPut

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

return await Deployment.RunAsync(() => 
{
    var queueServiceProperties = new AzureNative.Storage.QueueServiceProperties("queueServiceProperties", new()
    {
        AccountName = "sto8607",
        Cors = new AzureNative.Storage.Inputs.CorsRulesArgs
        {
            CorsRules = new[]
            {
                new AzureNative.Storage.Inputs.CorsRuleArgs
                {
                    AllowedHeaders = new[]
                    {
                        "x-ms-meta-abc",
                        "x-ms-meta-data*",
                        "x-ms-meta-target*",
                    },
                    AllowedMethods = new[]
                    {
                        AzureNative.Storage.AllowedMethods.GET,
                        AzureNative.Storage.AllowedMethods.HEAD,
                        AzureNative.Storage.AllowedMethods.POST,
                        AzureNative.Storage.AllowedMethods.OPTIONS,
                        AzureNative.Storage.AllowedMethods.MERGE,
                        AzureNative.Storage.AllowedMethods.PUT,
                    },
                    AllowedOrigins = new[]
                    {
                        "http://www.contoso.com",
                        "http://www.fabrikam.com",
                    },
                    ExposedHeaders = new[]
                    {
                        "x-ms-meta-*",
                    },
                    MaxAgeInSeconds = 100,
                },
                new AzureNative.Storage.Inputs.CorsRuleArgs
                {
                    AllowedHeaders = new[]
                    {
                        "*",
                    },
                    AllowedMethods = new[]
                    {
                        AzureNative.Storage.AllowedMethods.GET,
                    },
                    AllowedOrigins = new[]
                    {
                        "*",
                    },
                    ExposedHeaders = new[]
                    {
                        "*",
                    },
                    MaxAgeInSeconds = 2,
                },
                new AzureNative.Storage.Inputs.CorsRuleArgs
                {
                    AllowedHeaders = new[]
                    {
                        "x-ms-meta-12345675754564*",
                    },
                    AllowedMethods = new[]
                    {
                        AzureNative.Storage.AllowedMethods.GET,
                        AzureNative.Storage.AllowedMethods.PUT,
                    },
                    AllowedOrigins = new[]
                    {
                        "http://www.abc23.com",
                        "https://www.fabrikam.com/*",
                    },
                    ExposedHeaders = new[]
                    {
                        "x-ms-meta-abc",
                        "x-ms-meta-data*",
                        "x-ms-meta-target*",
                    },
                    MaxAgeInSeconds = 2000,
                },
            },
        },
        QueueServiceName = "default",
        ResourceGroupName = "res4410",
    });

});
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := storage.NewQueueServiceProperties(ctx, "queueServiceProperties", &storage.QueueServicePropertiesArgs{
			AccountName: pulumi.String("sto8607"),
			Cors: &storage.CorsRulesArgs{
				CorsRules: storage.CorsRuleArray{
					&storage.CorsRuleArgs{
						AllowedHeaders: pulumi.StringArray{
							pulumi.String("x-ms-meta-abc"),
							pulumi.String("x-ms-meta-data*"),
							pulumi.String("x-ms-meta-target*"),
						},
						AllowedMethods: pulumi.StringArray{
							pulumi.String(storage.AllowedMethodsGET),
							pulumi.String(storage.AllowedMethodsHEAD),
							pulumi.String(storage.AllowedMethodsPOST),
							pulumi.String(storage.AllowedMethodsOPTIONS),
							pulumi.String(storage.AllowedMethodsMERGE),
							pulumi.String(storage.AllowedMethodsPUT),
						},
						AllowedOrigins: pulumi.StringArray{
							pulumi.String("http://www.contoso.com"),
							pulumi.String("http://www.fabrikam.com"),
						},
						ExposedHeaders: pulumi.StringArray{
							pulumi.String("x-ms-meta-*"),
						},
						MaxAgeInSeconds: pulumi.Int(100),
					},
					&storage.CorsRuleArgs{
						AllowedHeaders: pulumi.StringArray{
							pulumi.String("*"),
						},
						AllowedMethods: pulumi.StringArray{
							pulumi.String(storage.AllowedMethodsGET),
						},
						AllowedOrigins: pulumi.StringArray{
							pulumi.String("*"),
						},
						ExposedHeaders: pulumi.StringArray{
							pulumi.String("*"),
						},
						MaxAgeInSeconds: pulumi.Int(2),
					},
					&storage.CorsRuleArgs{
						AllowedHeaders: pulumi.StringArray{
							pulumi.String("x-ms-meta-12345675754564*"),
						},
						AllowedMethods: pulumi.StringArray{
							pulumi.String(storage.AllowedMethodsGET),
							pulumi.String(storage.AllowedMethodsPUT),
						},
						AllowedOrigins: pulumi.StringArray{
							pulumi.String("http://www.abc23.com"),
							pulumi.String("https://www.fabrikam.com/*"),
						},
						ExposedHeaders: pulumi.StringArray{
							pulumi.String("x-ms-meta-abc"),
							pulumi.String("x-ms-meta-data*"),
							pulumi.String("x-ms-meta-target*"),
						},
						MaxAgeInSeconds: pulumi.Int(2000),
					},
				},
			},
			QueueServiceName:  pulumi.String("default"),
			ResourceGroupName: pulumi.String("res4410"),
		})
		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.storage.QueueServiceProperties;
import com.pulumi.azurenative.storage.QueueServicePropertiesArgs;
import com.pulumi.azurenative.storage.inputs.CorsRulesArgs;
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 queueServiceProperties = new QueueServiceProperties("queueServiceProperties", QueueServicePropertiesArgs.builder()
            .accountName("sto8607")
            .cors(CorsRulesArgs.builder()
                .corsRules(                
                    CorsRuleArgs.builder()
                        .allowedHeaders(                        
                            "x-ms-meta-abc",
                            "x-ms-meta-data*",
                            "x-ms-meta-target*")
                        .allowedMethods(                        
                            "GET",
                            "HEAD",
                            "POST",
                            "OPTIONS",
                            "MERGE",
                            "PUT")
                        .allowedOrigins(                        
                            "http://www.contoso.com",
                            "http://www.fabrikam.com")
                        .exposedHeaders("x-ms-meta-*")
                        .maxAgeInSeconds(100)
                        .build(),
                    CorsRuleArgs.builder()
                        .allowedHeaders("*")
                        .allowedMethods("GET")
                        .allowedOrigins("*")
                        .exposedHeaders("*")
                        .maxAgeInSeconds(2)
                        .build(),
                    CorsRuleArgs.builder()
                        .allowedHeaders("x-ms-meta-12345675754564*")
                        .allowedMethods(                        
                            "GET",
                            "PUT")
                        .allowedOrigins(                        
                            "http://www.abc23.com",
                            "https://www.fabrikam.com/*")
                        .exposedHeaders(                        
                            "x-ms-meta-abc",
                            "x-ms-meta-data*",
                            "x-ms-meta-target*")
                        .maxAgeInSeconds(2000)
                        .build())
                .build())
            .queueServiceName("default")
            .resourceGroupName("res4410")
            .build());

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

const queueServiceProperties = new azure_native.storage.QueueServiceProperties("queueServiceProperties", {
    accountName: "sto8607",
    cors: {
        corsRules: [
            {
                allowedHeaders: [
                    "x-ms-meta-abc",
                    "x-ms-meta-data*",
                    "x-ms-meta-target*",
                ],
                allowedMethods: [
                    azure_native.storage.AllowedMethods.GET,
                    azure_native.storage.AllowedMethods.HEAD,
                    azure_native.storage.AllowedMethods.POST,
                    azure_native.storage.AllowedMethods.OPTIONS,
                    azure_native.storage.AllowedMethods.MERGE,
                    azure_native.storage.AllowedMethods.PUT,
                ],
                allowedOrigins: [
                    "http://www.contoso.com",
                    "http://www.fabrikam.com",
                ],
                exposedHeaders: ["x-ms-meta-*"],
                maxAgeInSeconds: 100,
            },
            {
                allowedHeaders: ["*"],
                allowedMethods: [azure_native.storage.AllowedMethods.GET],
                allowedOrigins: ["*"],
                exposedHeaders: ["*"],
                maxAgeInSeconds: 2,
            },
            {
                allowedHeaders: ["x-ms-meta-12345675754564*"],
                allowedMethods: [
                    azure_native.storage.AllowedMethods.GET,
                    azure_native.storage.AllowedMethods.PUT,
                ],
                allowedOrigins: [
                    "http://www.abc23.com",
                    "https://www.fabrikam.com/*",
                ],
                exposedHeaders: [
                    "x-ms-meta-abc",
                    "x-ms-meta-data*",
                    "x-ms-meta-target*",
                ],
                maxAgeInSeconds: 2000,
            },
        ],
    },
    queueServiceName: "default",
    resourceGroupName: "res4410",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

queue_service_properties = azure_native.storage.QueueServiceProperties("queueServiceProperties",
    account_name="sto8607",
    cors={
        "cors_rules": [
            {
                "allowed_headers": [
                    "x-ms-meta-abc",
                    "x-ms-meta-data*",
                    "x-ms-meta-target*",
                ],
                "allowed_methods": [
                    azure_native.storage.AllowedMethods.GET,
                    azure_native.storage.AllowedMethods.HEAD,
                    azure_native.storage.AllowedMethods.POST,
                    azure_native.storage.AllowedMethods.OPTIONS,
                    azure_native.storage.AllowedMethods.MERGE,
                    azure_native.storage.AllowedMethods.PUT,
                ],
                "allowed_origins": [
                    "http://www.contoso.com",
                    "http://www.fabrikam.com",
                ],
                "exposed_headers": ["x-ms-meta-*"],
                "max_age_in_seconds": 100,
            },
            {
                "allowed_headers": ["*"],
                "allowed_methods": [azure_native.storage.AllowedMethods.GET],
                "allowed_origins": ["*"],
                "exposed_headers": ["*"],
                "max_age_in_seconds": 2,
            },
            {
                "allowed_headers": ["x-ms-meta-12345675754564*"],
                "allowed_methods": [
                    azure_native.storage.AllowedMethods.GET,
                    azure_native.storage.AllowedMethods.PUT,
                ],
                "allowed_origins": [
                    "http://www.abc23.com",
                    "https://www.fabrikam.com/*",
                ],
                "exposed_headers": [
                    "x-ms-meta-abc",
                    "x-ms-meta-data*",
                    "x-ms-meta-target*",
                ],
                "max_age_in_seconds": 2000,
            },
        ],
    },
    queue_service_name="default",
    resource_group_name="res4410")
Copy
resources:
  queueServiceProperties:
    type: azure-native:storage:QueueServiceProperties
    properties:
      accountName: sto8607
      cors:
        corsRules:
          - allowedHeaders:
              - x-ms-meta-abc
              - x-ms-meta-data*
              - x-ms-meta-target*
            allowedMethods:
              - GET
              - HEAD
              - POST
              - OPTIONS
              - MERGE
              - PUT
            allowedOrigins:
              - http://www.contoso.com
              - http://www.fabrikam.com
            exposedHeaders:
              - x-ms-meta-*
            maxAgeInSeconds: 100
          - allowedHeaders:
              - '*'
            allowedMethods:
              - GET
            allowedOrigins:
              - '*'
            exposedHeaders:
              - '*'
            maxAgeInSeconds: 2
          - allowedHeaders:
              - x-ms-meta-12345675754564*
            allowedMethods:
              - GET
              - PUT
            allowedOrigins:
              - http://www.abc23.com
              - https://www.fabrikam.com/*
            exposedHeaders:
              - x-ms-meta-abc
              - x-ms-meta-data*
              - x-ms-meta-target*
            maxAgeInSeconds: 2000
      queueServiceName: default
      resourceGroupName: res4410
Copy

Create QueueServiceProperties Resource

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

Constructor syntax

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

@overload
def QueueServiceProperties(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           account_name: Optional[str] = None,
                           resource_group_name: Optional[str] = None,
                           cors: Optional[CorsRulesArgs] = None,
                           queue_service_name: Optional[str] = None)
func NewQueueServiceProperties(ctx *Context, name string, args QueueServicePropertiesArgs, opts ...ResourceOption) (*QueueServiceProperties, error)
public QueueServiceProperties(string name, QueueServicePropertiesArgs args, CustomResourceOptions? opts = null)
public QueueServiceProperties(String name, QueueServicePropertiesArgs args)
public QueueServiceProperties(String name, QueueServicePropertiesArgs args, CustomResourceOptions options)
type: azure-native:storage:QueueServiceProperties
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. QueueServicePropertiesArgs
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. QueueServicePropertiesArgs
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. QueueServicePropertiesArgs
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. QueueServicePropertiesArgs
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. QueueServicePropertiesArgs
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 queueServicePropertiesResource = new AzureNative.Storage.QueueServiceProperties("queueServicePropertiesResource", new()
{
    AccountName = "string",
    ResourceGroupName = "string",
    Cors = 
    {
        { "corsRules", new[]
        {
            
            {
                { "allowedHeaders", new[]
                {
                    "string",
                } },
                { "allowedMethods", new[]
                {
                    "string",
                } },
                { "allowedOrigins", new[]
                {
                    "string",
                } },
                { "exposedHeaders", new[]
                {
                    "string",
                } },
                { "maxAgeInSeconds", 0 },
            },
        } },
    },
    QueueServiceName = "string",
});
Copy
example, err := storage.NewQueueServiceProperties(ctx, "queueServicePropertiesResource", &storage.QueueServicePropertiesArgs{
	AccountName:       "string",
	ResourceGroupName: "string",
	Cors: map[string]interface{}{
		"corsRules": []map[string]interface{}{
			map[string]interface{}{
				"allowedHeaders": []string{
					"string",
				},
				"allowedMethods": []string{
					"string",
				},
				"allowedOrigins": []string{
					"string",
				},
				"exposedHeaders": []string{
					"string",
				},
				"maxAgeInSeconds": 0,
			},
		},
	},
	QueueServiceName: "string",
})
Copy
var queueServicePropertiesResource = new QueueServiceProperties("queueServicePropertiesResource", QueueServicePropertiesArgs.builder()
    .accountName("string")
    .resourceGroupName("string")
    .cors(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .queueServiceName("string")
    .build());
Copy
queue_service_properties_resource = azure_native.storage.QueueServiceProperties("queueServicePropertiesResource",
    account_name=string,
    resource_group_name=string,
    cors={
        corsRules: [{
            allowedHeaders: [string],
            allowedMethods: [string],
            allowedOrigins: [string],
            exposedHeaders: [string],
            maxAgeInSeconds: 0,
        }],
    },
    queue_service_name=string)
Copy
const queueServicePropertiesResource = new azure_native.storage.QueueServiceProperties("queueServicePropertiesResource", {
    accountName: "string",
    resourceGroupName: "string",
    cors: {
        corsRules: [{
            allowedHeaders: ["string"],
            allowedMethods: ["string"],
            allowedOrigins: ["string"],
            exposedHeaders: ["string"],
            maxAgeInSeconds: 0,
        }],
    },
    queueServiceName: "string",
});
Copy
type: azure-native:storage:QueueServiceProperties
properties:
    accountName: string
    cors:
        corsRules:
            - allowedHeaders:
                - string
              allowedMethods:
                - string
              allowedOrigins:
                - string
              exposedHeaders:
                - string
              maxAgeInSeconds: 0
    queueServiceName: string
    resourceGroupName: string
Copy

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

AccountName
This property is required.
Changes to this property will trigger replacement.
string
The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group within the user's subscription. The name is case insensitive.
Cors Pulumi.AzureNative.Storage.Inputs.CorsRules
Specifies CORS rules for the Queue service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the Queue service.
QueueServiceName Changes to this property will trigger replacement. string
The name of the Queue Service within the specified storage account. Queue Service Name must be 'default'
AccountName
This property is required.
Changes to this property will trigger replacement.
string
The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group within the user's subscription. The name is case insensitive.
Cors CorsRulesArgs
Specifies CORS rules for the Queue service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the Queue service.
QueueServiceName Changes to this property will trigger replacement. string
The name of the Queue Service within the specified storage account. Queue Service Name must be 'default'
accountName
This property is required.
Changes to this property will trigger replacement.
String
The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group within the user's subscription. The name is case insensitive.
cors CorsRules
Specifies CORS rules for the Queue service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the Queue service.
queueServiceName Changes to this property will trigger replacement. String
The name of the Queue Service within the specified storage account. Queue Service Name must be 'default'
accountName
This property is required.
Changes to this property will trigger replacement.
string
The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group within the user's subscription. The name is case insensitive.
cors CorsRules
Specifies CORS rules for the Queue service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the Queue service.
queueServiceName Changes to this property will trigger replacement. string
The name of the Queue Service within the specified storage account. Queue Service Name must be 'default'
account_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group within the user's subscription. The name is case insensitive.
cors CorsRulesArgs
Specifies CORS rules for the Queue service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the Queue service.
queue_service_name Changes to this property will trigger replacement. str
The name of the Queue Service within the specified storage account. Queue Service Name must be 'default'
accountName
This property is required.
Changes to this property will trigger replacement.
String
The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group within the user's subscription. The name is case insensitive.
cors Property Map
Specifies CORS rules for the Queue service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the Queue service.
queueServiceName Changes to this property will trigger replacement. String
The name of the Queue Service within the specified storage account. Queue Service Name must be 'default'

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the resource
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
id string
The provider-assigned unique ID for this managed resource.
name string
The name of the resource
type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
id str
The provider-assigned unique ID for this managed resource.
name str
The name of the resource
type str
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the resource
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Supporting Types

AllowedMethods
, AllowedMethodsArgs

DELETE
DELETE
GET
GET
HEAD
HEAD
MERGE
MERGE
POST
POST
OPTIONS
OPTIONS
PUT
PUT
PATCH
PATCH
AllowedMethodsDELETE
DELETE
AllowedMethodsGET
GET
AllowedMethodsHEAD
HEAD
AllowedMethodsMERGE
MERGE
AllowedMethodsPOST
POST
AllowedMethodsOPTIONS
OPTIONS
AllowedMethodsPUT
PUT
AllowedMethodsPATCH
PATCH
DELETE
DELETE
GET
GET
HEAD
HEAD
MERGE
MERGE
POST
POST
OPTIONS
OPTIONS
PUT
PUT
PATCH
PATCH
DELETE
DELETE
GET
GET
HEAD
HEAD
MERGE
MERGE
POST
POST
OPTIONS
OPTIONS
PUT
PUT
PATCH
PATCH
DELETE
DELETE
GET
GET
HEAD
HEAD
MERGE
MERGE
POST
POST
OPTIONS
OPTIONS
PUT
PUT
PATCH
PATCH
"DELETE"
DELETE
"GET"
GET
"HEAD"
HEAD
"MERGE"
MERGE
"POST"
POST
"OPTIONS"
OPTIONS
"PUT"
PUT
"PATCH"
PATCH

CorsRule
, CorsRuleArgs

AllowedHeaders This property is required. List<string>
Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request.
AllowedMethods This property is required. List<Union<string, Pulumi.AzureNative.Storage.AllowedMethods>>
Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin.
AllowedOrigins This property is required. List<string>
Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains
ExposedHeaders This property is required. List<string>
Required if CorsRule element is present. A list of response headers to expose to CORS clients.
MaxAgeInSeconds This property is required. int
Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response.
AllowedHeaders This property is required. []string
Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request.
AllowedMethods This property is required. []string
Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin.
AllowedOrigins This property is required. []string
Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains
ExposedHeaders This property is required. []string
Required if CorsRule element is present. A list of response headers to expose to CORS clients.
MaxAgeInSeconds This property is required. int
Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response.
allowedHeaders This property is required. List<String>
Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request.
allowedMethods This property is required. List<Either<String,AllowedMethods>>
Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin.
allowedOrigins This property is required. List<String>
Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains
exposedHeaders This property is required. List<String>
Required if CorsRule element is present. A list of response headers to expose to CORS clients.
maxAgeInSeconds This property is required. Integer
Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response.
allowedHeaders This property is required. string[]
Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request.
allowedMethods This property is required. (string | AllowedMethods)[]
Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin.
allowedOrigins This property is required. string[]
Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains
exposedHeaders This property is required. string[]
Required if CorsRule element is present. A list of response headers to expose to CORS clients.
maxAgeInSeconds This property is required. number
Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response.
allowed_headers This property is required. Sequence[str]
Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request.
allowed_methods This property is required. Sequence[Union[str, AllowedMethods]]
Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin.
allowed_origins This property is required. Sequence[str]
Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains
exposed_headers This property is required. Sequence[str]
Required if CorsRule element is present. A list of response headers to expose to CORS clients.
max_age_in_seconds This property is required. int
Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response.
allowedHeaders This property is required. List<String>
Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request.
allowedMethods This property is required. List<String | "DELETE" | "GET" | "HEAD" | "MERGE" | "POST" | "OPTIONS" | "PUT" | "PATCH">
Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin.
allowedOrigins This property is required. List<String>
Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains
exposedHeaders This property is required. List<String>
Required if CorsRule element is present. A list of response headers to expose to CORS clients.
maxAgeInSeconds This property is required. Number
Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response.

CorsRuleResponse
, CorsRuleResponseArgs

AllowedHeaders This property is required. List<string>
Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request.
AllowedMethods This property is required. List<string>
Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin.
AllowedOrigins This property is required. List<string>
Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains
ExposedHeaders This property is required. List<string>
Required if CorsRule element is present. A list of response headers to expose to CORS clients.
MaxAgeInSeconds This property is required. int
Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response.
AllowedHeaders This property is required. []string
Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request.
AllowedMethods This property is required. []string
Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin.
AllowedOrigins This property is required. []string
Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains
ExposedHeaders This property is required. []string
Required if CorsRule element is present. A list of response headers to expose to CORS clients.
MaxAgeInSeconds This property is required. int
Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response.
allowedHeaders This property is required. List<String>
Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request.
allowedMethods This property is required. List<String>
Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin.
allowedOrigins This property is required. List<String>
Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains
exposedHeaders This property is required. List<String>
Required if CorsRule element is present. A list of response headers to expose to CORS clients.
maxAgeInSeconds This property is required. Integer
Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response.
allowedHeaders This property is required. string[]
Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request.
allowedMethods This property is required. string[]
Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin.
allowedOrigins This property is required. string[]
Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains
exposedHeaders This property is required. string[]
Required if CorsRule element is present. A list of response headers to expose to CORS clients.
maxAgeInSeconds This property is required. number
Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response.
allowed_headers This property is required. Sequence[str]
Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request.
allowed_methods This property is required. Sequence[str]
Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin.
allowed_origins This property is required. Sequence[str]
Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains
exposed_headers This property is required. Sequence[str]
Required if CorsRule element is present. A list of response headers to expose to CORS clients.
max_age_in_seconds This property is required. int
Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response.
allowedHeaders This property is required. List<String>
Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request.
allowedMethods This property is required. List<String>
Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin.
allowedOrigins This property is required. List<String>
Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains
exposedHeaders This property is required. List<String>
Required if CorsRule element is present. A list of response headers to expose to CORS clients.
maxAgeInSeconds This property is required. Number
Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response.

CorsRules
, CorsRulesArgs

CorsRules List<Pulumi.AzureNative.Storage.Inputs.CorsRule>
The List of CORS rules. You can include up to five CorsRule elements in the request.
CorsRules []CorsRule
The List of CORS rules. You can include up to five CorsRule elements in the request.
corsRules List<CorsRule>
The List of CORS rules. You can include up to five CorsRule elements in the request.
corsRules CorsRule[]
The List of CORS rules. You can include up to five CorsRule elements in the request.
cors_rules Sequence[CorsRule]
The List of CORS rules. You can include up to five CorsRule elements in the request.
corsRules List<Property Map>
The List of CORS rules. You can include up to five CorsRule elements in the request.

CorsRulesResponse
, CorsRulesResponseArgs

CorsRules List<Pulumi.AzureNative.Storage.Inputs.CorsRuleResponse>
The List of CORS rules. You can include up to five CorsRule elements in the request.
CorsRules []CorsRuleResponse
The List of CORS rules. You can include up to five CorsRule elements in the request.
corsRules List<CorsRuleResponse>
The List of CORS rules. You can include up to five CorsRule elements in the request.
corsRules CorsRuleResponse[]
The List of CORS rules. You can include up to five CorsRule elements in the request.
cors_rules Sequence[CorsRuleResponse]
The List of CORS rules. You can include up to five CorsRule elements in the request.
corsRules List<Property Map>
The List of CORS rules. You can include up to five CorsRule elements in the request.

Import

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

$ pulumi import azure-native:storage:QueueServiceProperties default /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/{queueServiceName} 
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
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