1. Packages
  2. Azure Classic
  3. API Docs
  4. network
  5. SubnetServiceEndpointStoragePolicy

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi

azure.network.SubnetServiceEndpointStoragePolicy

Explore with Pulumi AI

Manages a Subnet Service Endpoint Storage Policy.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = new azure.core.ResourceGroup("example", {
    name: "example-rg",
    location: "West Europe",
});
const exampleAccount = new azure.storage.Account("example", {
    name: "examplestorageacct",
    resourceGroupName: example.name,
    location: example.location,
    accountTier: "Standard",
    accountReplicationType: "GRS",
});
const exampleSubnetServiceEndpointStoragePolicy = new azure.network.SubnetServiceEndpointStoragePolicy("example", {
    name: "example-policy",
    resourceGroupName: example.name,
    location: example.location,
    definitions: [
        {
            name: "name1",
            description: "definition1",
            service: "Microsoft.Storage",
            serviceResources: [
                example.id,
                exampleAccount.id,
            ],
        },
        {
            name: "name2",
            description: "definition2",
            service: "Global",
            serviceResources: [
                "/services/Azure",
                "/services/Azure/Batch",
                "/services/Azure/DataFactory",
                "/services/Azure/MachineLearning",
                "/services/Azure/ManagedInstance",
                "/services/Azure/WebPI",
            ],
        },
    ],
});
Copy
import pulumi
import pulumi_azure as azure

example = azure.core.ResourceGroup("example",
    name="example-rg",
    location="West Europe")
example_account = azure.storage.Account("example",
    name="examplestorageacct",
    resource_group_name=example.name,
    location=example.location,
    account_tier="Standard",
    account_replication_type="GRS")
example_subnet_service_endpoint_storage_policy = azure.network.SubnetServiceEndpointStoragePolicy("example",
    name="example-policy",
    resource_group_name=example.name,
    location=example.location,
    definitions=[
        {
            "name": "name1",
            "description": "definition1",
            "service": "Microsoft.Storage",
            "service_resources": [
                example.id,
                example_account.id,
            ],
        },
        {
            "name": "name2",
            "description": "definition2",
            "service": "Global",
            "service_resources": [
                "/services/Azure",
                "/services/Azure/Batch",
                "/services/Azure/DataFactory",
                "/services/Azure/MachineLearning",
                "/services/Azure/ManagedInstance",
                "/services/Azure/WebPI",
            ],
        },
    ])
Copy
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/network"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("example-rg"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{
			Name:                   pulumi.String("examplestorageacct"),
			ResourceGroupName:      example.Name,
			Location:               example.Location,
			AccountTier:            pulumi.String("Standard"),
			AccountReplicationType: pulumi.String("GRS"),
		})
		if err != nil {
			return err
		}
		_, err = network.NewSubnetServiceEndpointStoragePolicy(ctx, "example", &network.SubnetServiceEndpointStoragePolicyArgs{
			Name:              pulumi.String("example-policy"),
			ResourceGroupName: example.Name,
			Location:          example.Location,
			Definitions: network.SubnetServiceEndpointStoragePolicyDefinitionArray{
				&network.SubnetServiceEndpointStoragePolicyDefinitionArgs{
					Name:        pulumi.String("name1"),
					Description: pulumi.String("definition1"),
					Service:     pulumi.String("Microsoft.Storage"),
					ServiceResources: pulumi.StringArray{
						example.ID(),
						exampleAccount.ID(),
					},
				},
				&network.SubnetServiceEndpointStoragePolicyDefinitionArgs{
					Name:        pulumi.String("name2"),
					Description: pulumi.String("definition2"),
					Service:     pulumi.String("Global"),
					ServiceResources: pulumi.StringArray{
						pulumi.String("/services/Azure"),
						pulumi.String("/services/Azure/Batch"),
						pulumi.String("/services/Azure/DataFactory"),
						pulumi.String("/services/Azure/MachineLearning"),
						pulumi.String("/services/Azure/ManagedInstance"),
						pulumi.String("/services/Azure/WebPI"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var example = new Azure.Core.ResourceGroup("example", new()
    {
        Name = "example-rg",
        Location = "West Europe",
    });

    var exampleAccount = new Azure.Storage.Account("example", new()
    {
        Name = "examplestorageacct",
        ResourceGroupName = example.Name,
        Location = example.Location,
        AccountTier = "Standard",
        AccountReplicationType = "GRS",
    });

    var exampleSubnetServiceEndpointStoragePolicy = new Azure.Network.SubnetServiceEndpointStoragePolicy("example", new()
    {
        Name = "example-policy",
        ResourceGroupName = example.Name,
        Location = example.Location,
        Definitions = new[]
        {
            new Azure.Network.Inputs.SubnetServiceEndpointStoragePolicyDefinitionArgs
            {
                Name = "name1",
                Description = "definition1",
                Service = "Microsoft.Storage",
                ServiceResources = new[]
                {
                    example.Id,
                    exampleAccount.Id,
                },
            },
            new Azure.Network.Inputs.SubnetServiceEndpointStoragePolicyDefinitionArgs
            {
                Name = "name2",
                Description = "definition2",
                Service = "Global",
                ServiceResources = new[]
                {
                    "/services/Azure",
                    "/services/Azure/Batch",
                    "/services/Azure/DataFactory",
                    "/services/Azure/MachineLearning",
                    "/services/Azure/ManagedInstance",
                    "/services/Azure/WebPI",
                },
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.storage.Account;
import com.pulumi.azure.storage.AccountArgs;
import com.pulumi.azure.network.SubnetServiceEndpointStoragePolicy;
import com.pulumi.azure.network.SubnetServiceEndpointStoragePolicyArgs;
import com.pulumi.azure.network.inputs.SubnetServiceEndpointStoragePolicyDefinitionArgs;
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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
            .name("example-rg")
            .location("West Europe")
            .build());

        var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
            .name("examplestorageacct")
            .resourceGroupName(example.name())
            .location(example.location())
            .accountTier("Standard")
            .accountReplicationType("GRS")
            .build());

        var exampleSubnetServiceEndpointStoragePolicy = new SubnetServiceEndpointStoragePolicy("exampleSubnetServiceEndpointStoragePolicy", SubnetServiceEndpointStoragePolicyArgs.builder()
            .name("example-policy")
            .resourceGroupName(example.name())
            .location(example.location())
            .definitions(            
                SubnetServiceEndpointStoragePolicyDefinitionArgs.builder()
                    .name("name1")
                    .description("definition1")
                    .service("Microsoft.Storage")
                    .serviceResources(                    
                        example.id(),
                        exampleAccount.id())
                    .build(),
                SubnetServiceEndpointStoragePolicyDefinitionArgs.builder()
                    .name("name2")
                    .description("definition2")
                    .service("Global")
                    .serviceResources(                    
                        "/services/Azure",
                        "/services/Azure/Batch",
                        "/services/Azure/DataFactory",
                        "/services/Azure/MachineLearning",
                        "/services/Azure/ManagedInstance",
                        "/services/Azure/WebPI")
                    .build())
            .build());

    }
}
Copy
resources:
  example:
    type: azure:core:ResourceGroup
    properties:
      name: example-rg
      location: West Europe
  exampleSubnetServiceEndpointStoragePolicy:
    type: azure:network:SubnetServiceEndpointStoragePolicy
    name: example
    properties:
      name: example-policy
      resourceGroupName: ${example.name}
      location: ${example.location}
      definitions:
        - name: name1
          description: definition1
          service: Microsoft.Storage
          serviceResources:
            - ${example.id}
            - ${exampleAccount.id}
        - name: name2
          description: definition2
          service: Global
          serviceResources:
            - /services/Azure
            - /services/Azure/Batch
            - /services/Azure/DataFactory
            - /services/Azure/MachineLearning
            - /services/Azure/ManagedInstance
            - /services/Azure/WebPI
  exampleAccount:
    type: azure:storage:Account
    name: example
    properties:
      name: examplestorageacct
      resourceGroupName: ${example.name}
      location: ${example.location}
      accountTier: Standard
      accountReplicationType: GRS
Copy

Create SubnetServiceEndpointStoragePolicy Resource

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

Constructor syntax

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

@overload
def SubnetServiceEndpointStoragePolicy(resource_name: str,
                                       opts: Optional[ResourceOptions] = None,
                                       resource_group_name: Optional[str] = None,
                                       definitions: Optional[Sequence[SubnetServiceEndpointStoragePolicyDefinitionArgs]] = None,
                                       location: Optional[str] = None,
                                       name: Optional[str] = None,
                                       tags: Optional[Mapping[str, str]] = None)
func NewSubnetServiceEndpointStoragePolicy(ctx *Context, name string, args SubnetServiceEndpointStoragePolicyArgs, opts ...ResourceOption) (*SubnetServiceEndpointStoragePolicy, error)
public SubnetServiceEndpointStoragePolicy(string name, SubnetServiceEndpointStoragePolicyArgs args, CustomResourceOptions? opts = null)
public SubnetServiceEndpointStoragePolicy(String name, SubnetServiceEndpointStoragePolicyArgs args)
public SubnetServiceEndpointStoragePolicy(String name, SubnetServiceEndpointStoragePolicyArgs args, CustomResourceOptions options)
type: azure:network:SubnetServiceEndpointStoragePolicy
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. SubnetServiceEndpointStoragePolicyArgs
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. SubnetServiceEndpointStoragePolicyArgs
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. SubnetServiceEndpointStoragePolicyArgs
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. SubnetServiceEndpointStoragePolicyArgs
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. SubnetServiceEndpointStoragePolicyArgs
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 subnetServiceEndpointStoragePolicyResource = new Azure.Network.SubnetServiceEndpointStoragePolicy("subnetServiceEndpointStoragePolicyResource", new()
{
    ResourceGroupName = "string",
    Definitions = new[]
    {
        new Azure.Network.Inputs.SubnetServiceEndpointStoragePolicyDefinitionArgs
        {
            Name = "string",
            ServiceResources = new[]
            {
                "string",
            },
            Description = "string",
            Service = "string",
        },
    },
    Location = "string",
    Name = "string",
    Tags = 
    {
        { "string", "string" },
    },
});
Copy
example, err := network.NewSubnetServiceEndpointStoragePolicy(ctx, "subnetServiceEndpointStoragePolicyResource", &network.SubnetServiceEndpointStoragePolicyArgs{
	ResourceGroupName: pulumi.String("string"),
	Definitions: network.SubnetServiceEndpointStoragePolicyDefinitionArray{
		&network.SubnetServiceEndpointStoragePolicyDefinitionArgs{
			Name: pulumi.String("string"),
			ServiceResources: pulumi.StringArray{
				pulumi.String("string"),
			},
			Description: pulumi.String("string"),
			Service:     pulumi.String("string"),
		},
	},
	Location: pulumi.String("string"),
	Name:     pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
Copy
var subnetServiceEndpointStoragePolicyResource = new SubnetServiceEndpointStoragePolicy("subnetServiceEndpointStoragePolicyResource", SubnetServiceEndpointStoragePolicyArgs.builder()
    .resourceGroupName("string")
    .definitions(SubnetServiceEndpointStoragePolicyDefinitionArgs.builder()
        .name("string")
        .serviceResources("string")
        .description("string")
        .service("string")
        .build())
    .location("string")
    .name("string")
    .tags(Map.of("string", "string"))
    .build());
Copy
subnet_service_endpoint_storage_policy_resource = azure.network.SubnetServiceEndpointStoragePolicy("subnetServiceEndpointStoragePolicyResource",
    resource_group_name="string",
    definitions=[{
        "name": "string",
        "service_resources": ["string"],
        "description": "string",
        "service": "string",
    }],
    location="string",
    name="string",
    tags={
        "string": "string",
    })
Copy
const subnetServiceEndpointStoragePolicyResource = new azure.network.SubnetServiceEndpointStoragePolicy("subnetServiceEndpointStoragePolicyResource", {
    resourceGroupName: "string",
    definitions: [{
        name: "string",
        serviceResources: ["string"],
        description: "string",
        service: "string",
    }],
    location: "string",
    name: "string",
    tags: {
        string: "string",
    },
});
Copy
type: azure:network:SubnetServiceEndpointStoragePolicy
properties:
    definitions:
        - description: string
          name: string
          service: string
          serviceResources:
            - string
    location: string
    name: string
    resourceGroupName: string
    tags:
        string: string
Copy

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

ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Resource Group where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
Definitions List<SubnetServiceEndpointStoragePolicyDefinition>
A definition block as defined below
Location Changes to this property will trigger replacement. string
The Azure Region where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
Name Changes to this property will trigger replacement. string
The name which should be used for this Subnet Service Endpoint Storage Policy. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
Tags Dictionary<string, string>
A mapping of tags which should be assigned to the Subnet Service Endpoint Storage Policy.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Resource Group where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
Definitions []SubnetServiceEndpointStoragePolicyDefinitionArgs
A definition block as defined below
Location Changes to this property will trigger replacement. string
The Azure Region where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
Name Changes to this property will trigger replacement. string
The name which should be used for this Subnet Service Endpoint Storage Policy. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
Tags map[string]string
A mapping of tags which should be assigned to the Subnet Service Endpoint Storage Policy.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Resource Group where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
definitions List<SubnetServiceEndpointStoragePolicyDefinition>
A definition block as defined below
location Changes to this property will trigger replacement. String
The Azure Region where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
name Changes to this property will trigger replacement. String
The name which should be used for this Subnet Service Endpoint Storage Policy. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
tags Map<String,String>
A mapping of tags which should be assigned to the Subnet Service Endpoint Storage Policy.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Resource Group where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
definitions SubnetServiceEndpointStoragePolicyDefinition[]
A definition block as defined below
location Changes to this property will trigger replacement. string
The Azure Region where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
name Changes to this property will trigger replacement. string
The name which should be used for this Subnet Service Endpoint Storage Policy. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
tags {[key: string]: string}
A mapping of tags which should be assigned to the Subnet Service Endpoint Storage Policy.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the Resource Group where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
definitions Sequence[SubnetServiceEndpointStoragePolicyDefinitionArgs]
A definition block as defined below
location Changes to this property will trigger replacement. str
The Azure Region where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
name Changes to this property will trigger replacement. str
The name which should be used for this Subnet Service Endpoint Storage Policy. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
tags Mapping[str, str]
A mapping of tags which should be assigned to the Subnet Service Endpoint Storage Policy.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Resource Group where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
definitions List<Property Map>
A definition block as defined below
location Changes to this property will trigger replacement. String
The Azure Region where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
name Changes to this property will trigger replacement. String
The name which should be used for this Subnet Service Endpoint Storage Policy. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
tags Map<String>
A mapping of tags which should be assigned to the Subnet Service Endpoint Storage Policy.

Outputs

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

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

Look up Existing SubnetServiceEndpointStoragePolicy Resource

Get an existing SubnetServiceEndpointStoragePolicy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: SubnetServiceEndpointStoragePolicyState, opts?: CustomResourceOptions): SubnetServiceEndpointStoragePolicy
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        definitions: Optional[Sequence[SubnetServiceEndpointStoragePolicyDefinitionArgs]] = None,
        location: Optional[str] = None,
        name: Optional[str] = None,
        resource_group_name: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None) -> SubnetServiceEndpointStoragePolicy
func GetSubnetServiceEndpointStoragePolicy(ctx *Context, name string, id IDInput, state *SubnetServiceEndpointStoragePolicyState, opts ...ResourceOption) (*SubnetServiceEndpointStoragePolicy, error)
public static SubnetServiceEndpointStoragePolicy Get(string name, Input<string> id, SubnetServiceEndpointStoragePolicyState? state, CustomResourceOptions? opts = null)
public static SubnetServiceEndpointStoragePolicy get(String name, Output<String> id, SubnetServiceEndpointStoragePolicyState state, CustomResourceOptions options)
resources:  _:    type: azure:network:SubnetServiceEndpointStoragePolicy    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Definitions List<SubnetServiceEndpointStoragePolicyDefinition>
A definition block as defined below
Location Changes to this property will trigger replacement. string
The Azure Region where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
Name Changes to this property will trigger replacement. string
The name which should be used for this Subnet Service Endpoint Storage Policy. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
ResourceGroupName Changes to this property will trigger replacement. string
The name of the Resource Group where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
Tags Dictionary<string, string>
A mapping of tags which should be assigned to the Subnet Service Endpoint Storage Policy.
Definitions []SubnetServiceEndpointStoragePolicyDefinitionArgs
A definition block as defined below
Location Changes to this property will trigger replacement. string
The Azure Region where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
Name Changes to this property will trigger replacement. string
The name which should be used for this Subnet Service Endpoint Storage Policy. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
ResourceGroupName Changes to this property will trigger replacement. string
The name of the Resource Group where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
Tags map[string]string
A mapping of tags which should be assigned to the Subnet Service Endpoint Storage Policy.
definitions List<SubnetServiceEndpointStoragePolicyDefinition>
A definition block as defined below
location Changes to this property will trigger replacement. String
The Azure Region where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
name Changes to this property will trigger replacement. String
The name which should be used for this Subnet Service Endpoint Storage Policy. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
resourceGroupName Changes to this property will trigger replacement. String
The name of the Resource Group where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
tags Map<String,String>
A mapping of tags which should be assigned to the Subnet Service Endpoint Storage Policy.
definitions SubnetServiceEndpointStoragePolicyDefinition[]
A definition block as defined below
location Changes to this property will trigger replacement. string
The Azure Region where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
name Changes to this property will trigger replacement. string
The name which should be used for this Subnet Service Endpoint Storage Policy. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
resourceGroupName Changes to this property will trigger replacement. string
The name of the Resource Group where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
tags {[key: string]: string}
A mapping of tags which should be assigned to the Subnet Service Endpoint Storage Policy.
definitions Sequence[SubnetServiceEndpointStoragePolicyDefinitionArgs]
A definition block as defined below
location Changes to this property will trigger replacement. str
The Azure Region where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
name Changes to this property will trigger replacement. str
The name which should be used for this Subnet Service Endpoint Storage Policy. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
resource_group_name Changes to this property will trigger replacement. str
The name of the Resource Group where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
tags Mapping[str, str]
A mapping of tags which should be assigned to the Subnet Service Endpoint Storage Policy.
definitions List<Property Map>
A definition block as defined below
location Changes to this property will trigger replacement. String
The Azure Region where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
name Changes to this property will trigger replacement. String
The name which should be used for this Subnet Service Endpoint Storage Policy. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
resourceGroupName Changes to this property will trigger replacement. String
The name of the Resource Group where the Subnet Service Endpoint Storage Policy should exist. Changing this forces a new Subnet Service Endpoint Storage Policy to be created.
tags Map<String>
A mapping of tags which should be assigned to the Subnet Service Endpoint Storage Policy.

Supporting Types

SubnetServiceEndpointStoragePolicyDefinition
, SubnetServiceEndpointStoragePolicyDefinitionArgs

Name This property is required. string
The name which should be used for this Subnet Service Endpoint Storage Policy Definition.
ServiceResources This property is required. List<string>

Specifies a list of resources or aliases that this Subnet Service Endpoint Storage Policy Definition applies to.

NOTE The service_resources property must contain either Aliases or Resource IDs, but not both.

Description string
The description of this Subnet Service Endpoint Storage Policy Definition.
Service string
The type of service resources. Valid values are Microsoft.Storage or Global. When the service_resources property contains resource IDs, this property must be Microsoft.Storage. When the service_resources property contains Aliases, this property must be Global. Defaults to Microsoft.Storage.
Name This property is required. string
The name which should be used for this Subnet Service Endpoint Storage Policy Definition.
ServiceResources This property is required. []string

Specifies a list of resources or aliases that this Subnet Service Endpoint Storage Policy Definition applies to.

NOTE The service_resources property must contain either Aliases or Resource IDs, but not both.

Description string
The description of this Subnet Service Endpoint Storage Policy Definition.
Service string
The type of service resources. Valid values are Microsoft.Storage or Global. When the service_resources property contains resource IDs, this property must be Microsoft.Storage. When the service_resources property contains Aliases, this property must be Global. Defaults to Microsoft.Storage.
name This property is required. String
The name which should be used for this Subnet Service Endpoint Storage Policy Definition.
serviceResources This property is required. List<String>

Specifies a list of resources or aliases that this Subnet Service Endpoint Storage Policy Definition applies to.

NOTE The service_resources property must contain either Aliases or Resource IDs, but not both.

description String
The description of this Subnet Service Endpoint Storage Policy Definition.
service String
The type of service resources. Valid values are Microsoft.Storage or Global. When the service_resources property contains resource IDs, this property must be Microsoft.Storage. When the service_resources property contains Aliases, this property must be Global. Defaults to Microsoft.Storage.
name This property is required. string
The name which should be used for this Subnet Service Endpoint Storage Policy Definition.
serviceResources This property is required. string[]

Specifies a list of resources or aliases that this Subnet Service Endpoint Storage Policy Definition applies to.

NOTE The service_resources property must contain either Aliases or Resource IDs, but not both.

description string
The description of this Subnet Service Endpoint Storage Policy Definition.
service string
The type of service resources. Valid values are Microsoft.Storage or Global. When the service_resources property contains resource IDs, this property must be Microsoft.Storage. When the service_resources property contains Aliases, this property must be Global. Defaults to Microsoft.Storage.
name This property is required. str
The name which should be used for this Subnet Service Endpoint Storage Policy Definition.
service_resources This property is required. Sequence[str]

Specifies a list of resources or aliases that this Subnet Service Endpoint Storage Policy Definition applies to.

NOTE The service_resources property must contain either Aliases or Resource IDs, but not both.

description str
The description of this Subnet Service Endpoint Storage Policy Definition.
service str
The type of service resources. Valid values are Microsoft.Storage or Global. When the service_resources property contains resource IDs, this property must be Microsoft.Storage. When the service_resources property contains Aliases, this property must be Global. Defaults to Microsoft.Storage.
name This property is required. String
The name which should be used for this Subnet Service Endpoint Storage Policy Definition.
serviceResources This property is required. List<String>

Specifies a list of resources or aliases that this Subnet Service Endpoint Storage Policy Definition applies to.

NOTE The service_resources property must contain either Aliases or Resource IDs, but not both.

description String
The description of this Subnet Service Endpoint Storage Policy Definition.
service String
The type of service resources. Valid values are Microsoft.Storage or Global. When the service_resources property contains resource IDs, this property must be Microsoft.Storage. When the service_resources property contains Aliases, this property must be Global. Defaults to Microsoft.Storage.

Import

Subnet Service Endpoint Policies can be imported using the resource id, e.g.

$ pulumi import azure:network/subnetServiceEndpointStoragePolicy:SubnetServiceEndpointStoragePolicy example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/serviceEndpointPolicies/policy1
Copy

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

Package Details

Repository
Azure Classic pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.