azure logo
Azure Classic v5.39.0, Apr 1 23

azure.storage.AccountNetworkRules

Manages network rules inside of a Azure Storage Account.

NOTE: Network Rules can be defined either directly on the azure.storage.Account resource, or using the azure.storage.AccountNetworkRules resource - but the two cannot be used together. Spurious changes will occur if both are used against the same Storage Account.

NOTE: Only one azure.storage.AccountNetworkRules can be tied to an azure.storage.Account. Spurious changes will occur if more than azure.storage.AccountNetworkRules is tied to the same azure.storage.Account.

NOTE: Deleting this resource updates the storage account back to the default values it had when the storage account was created.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Azure = Pulumi.Azure;

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

    var exampleVirtualNetwork = new Azure.Network.VirtualNetwork("exampleVirtualNetwork", new()
    {
        AddressSpaces = new[]
        {
            "10.0.0.0/16",
        },
        Location = exampleResourceGroup.Location,
        ResourceGroupName = exampleResourceGroup.Name,
    });

    var exampleSubnet = new Azure.Network.Subnet("exampleSubnet", new()
    {
        ResourceGroupName = exampleResourceGroup.Name,
        VirtualNetworkName = exampleVirtualNetwork.Name,
        AddressPrefixes = new[]
        {
            "10.0.2.0/24",
        },
        ServiceEndpoints = new[]
        {
            "Microsoft.Storage",
        },
    });

    var exampleAccount = new Azure.Storage.Account("exampleAccount", new()
    {
        ResourceGroupName = exampleResourceGroup.Name,
        Location = exampleResourceGroup.Location,
        AccountTier = "Standard",
        AccountReplicationType = "GRS",
        Tags = 
        {
            { "environment", "staging" },
        },
    });

    var exampleAccountNetworkRules = new Azure.Storage.AccountNetworkRules("exampleAccountNetworkRules", new()
    {
        StorageAccountId = exampleAccount.Id,
        DefaultAction = "Allow",
        IpRules = new[]
        {
            "127.0.0.1",
        },
        VirtualNetworkSubnetIds = new[]
        {
            exampleSubnet.Id,
        },
        Bypasses = new[]
        {
            "Metrics",
        },
    });

});
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "exampleVirtualNetwork", &network.VirtualNetworkArgs{
			AddressSpaces: pulumi.StringArray{
				pulumi.String("10.0.0.0/16"),
			},
			Location:          exampleResourceGroup.Location,
			ResourceGroupName: exampleResourceGroup.Name,
		})
		if err != nil {
			return err
		}
		exampleSubnet, err := network.NewSubnet(ctx, "exampleSubnet", &network.SubnetArgs{
			ResourceGroupName:  exampleResourceGroup.Name,
			VirtualNetworkName: exampleVirtualNetwork.Name,
			AddressPrefixes: pulumi.StringArray{
				pulumi.String("10.0.2.0/24"),
			},
			ServiceEndpoints: pulumi.StringArray{
				pulumi.String("Microsoft.Storage"),
			},
		})
		if err != nil {
			return err
		}
		exampleAccount, err := storage.NewAccount(ctx, "exampleAccount", &storage.AccountArgs{
			ResourceGroupName:      exampleResourceGroup.Name,
			Location:               exampleResourceGroup.Location,
			AccountTier:            pulumi.String("Standard"),
			AccountReplicationType: pulumi.String("GRS"),
			Tags: pulumi.StringMap{
				"environment": pulumi.String("staging"),
			},
		})
		if err != nil {
			return err
		}
		_, err = storage.NewAccountNetworkRules(ctx, "exampleAccountNetworkRules", &storage.AccountNetworkRulesArgs{
			StorageAccountId: exampleAccount.ID(),
			DefaultAction:    pulumi.String("Allow"),
			IpRules: pulumi.StringArray{
				pulumi.String("127.0.0.1"),
			},
			VirtualNetworkSubnetIds: pulumi.StringArray{
				exampleSubnet.ID(),
			},
			Bypasses: pulumi.StringArray{
				pulumi.String("Metrics"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
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.network.VirtualNetwork;
import com.pulumi.azure.network.VirtualNetworkArgs;
import com.pulumi.azure.network.Subnet;
import com.pulumi.azure.network.SubnetArgs;
import com.pulumi.azure.storage.Account;
import com.pulumi.azure.storage.AccountArgs;
import com.pulumi.azure.storage.AccountNetworkRules;
import com.pulumi.azure.storage.AccountNetworkRulesArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()        
            .location("West Europe")
            .build());

        var exampleVirtualNetwork = new VirtualNetwork("exampleVirtualNetwork", VirtualNetworkArgs.builder()        
            .addressSpaces("10.0.0.0/16")
            .location(exampleResourceGroup.location())
            .resourceGroupName(exampleResourceGroup.name())
            .build());

        var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder()        
            .resourceGroupName(exampleResourceGroup.name())
            .virtualNetworkName(exampleVirtualNetwork.name())
            .addressPrefixes("10.0.2.0/24")
            .serviceEndpoints("Microsoft.Storage")
            .build());

        var exampleAccount = new Account("exampleAccount", AccountArgs.builder()        
            .resourceGroupName(exampleResourceGroup.name())
            .location(exampleResourceGroup.location())
            .accountTier("Standard")
            .accountReplicationType("GRS")
            .tags(Map.of("environment", "staging"))
            .build());

        var exampleAccountNetworkRules = new AccountNetworkRules("exampleAccountNetworkRules", AccountNetworkRulesArgs.builder()        
            .storageAccountId(exampleAccount.id())
            .defaultAction("Allow")
            .ipRules("127.0.0.1")
            .virtualNetworkSubnetIds(exampleSubnet.id())
            .bypasses("Metrics")
            .build());

    }
}
import pulumi
import pulumi_azure as azure

example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_virtual_network = azure.network.VirtualNetwork("exampleVirtualNetwork",
    address_spaces=["10.0.0.0/16"],
    location=example_resource_group.location,
    resource_group_name=example_resource_group.name)
example_subnet = azure.network.Subnet("exampleSubnet",
    resource_group_name=example_resource_group.name,
    virtual_network_name=example_virtual_network.name,
    address_prefixes=["10.0.2.0/24"],
    service_endpoints=["Microsoft.Storage"])
example_account = azure.storage.Account("exampleAccount",
    resource_group_name=example_resource_group.name,
    location=example_resource_group.location,
    account_tier="Standard",
    account_replication_type="GRS",
    tags={
        "environment": "staging",
    })
example_account_network_rules = azure.storage.AccountNetworkRules("exampleAccountNetworkRules",
    storage_account_id=example_account.id,
    default_action="Allow",
    ip_rules=["127.0.0.1"],
    virtual_network_subnet_ids=[example_subnet.id],
    bypasses=["Metrics"])
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleVirtualNetwork = new azure.network.VirtualNetwork("exampleVirtualNetwork", {
    addressSpaces: ["10.0.0.0/16"],
    location: exampleResourceGroup.location,
    resourceGroupName: exampleResourceGroup.name,
});
const exampleSubnet = new azure.network.Subnet("exampleSubnet", {
    resourceGroupName: exampleResourceGroup.name,
    virtualNetworkName: exampleVirtualNetwork.name,
    addressPrefixes: ["10.0.2.0/24"],
    serviceEndpoints: ["Microsoft.Storage"],
});
const exampleAccount = new azure.storage.Account("exampleAccount", {
    resourceGroupName: exampleResourceGroup.name,
    location: exampleResourceGroup.location,
    accountTier: "Standard",
    accountReplicationType: "GRS",
    tags: {
        environment: "staging",
    },
});
const exampleAccountNetworkRules = new azure.storage.AccountNetworkRules("exampleAccountNetworkRules", {
    storageAccountId: exampleAccount.id,
    defaultAction: "Allow",
    ipRules: ["127.0.0.1"],
    virtualNetworkSubnetIds: [exampleSubnet.id],
    bypasses: ["Metrics"],
});
resources:
  exampleResourceGroup:
    type: azure:core:ResourceGroup
    properties:
      location: West Europe
  exampleVirtualNetwork:
    type: azure:network:VirtualNetwork
    properties:
      addressSpaces:
        - 10.0.0.0/16
      location: ${exampleResourceGroup.location}
      resourceGroupName: ${exampleResourceGroup.name}
  exampleSubnet:
    type: azure:network:Subnet
    properties:
      resourceGroupName: ${exampleResourceGroup.name}
      virtualNetworkName: ${exampleVirtualNetwork.name}
      addressPrefixes:
        - 10.0.2.0/24
      serviceEndpoints:
        - Microsoft.Storage
  exampleAccount:
    type: azure:storage:Account
    properties:
      resourceGroupName: ${exampleResourceGroup.name}
      location: ${exampleResourceGroup.location}
      accountTier: Standard
      accountReplicationType: GRS
      tags:
        environment: staging
  exampleAccountNetworkRules:
    type: azure:storage:AccountNetworkRules
    properties:
      storageAccountId: ${exampleAccount.id}
      defaultAction: Allow
      ipRules:
        - 127.0.0.1
      virtualNetworkSubnetIds:
        - ${exampleSubnet.id}
      bypasses:
        - Metrics

Create AccountNetworkRules Resource

new AccountNetworkRules(name: string, args: AccountNetworkRulesArgs, opts?: CustomResourceOptions);
@overload
def AccountNetworkRules(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        bypasses: Optional[Sequence[str]] = None,
                        default_action: Optional[str] = None,
                        ip_rules: Optional[Sequence[str]] = None,
                        private_link_access_rules: Optional[Sequence[AccountNetworkRulesPrivateLinkAccessRuleArgs]] = None,
                        storage_account_id: Optional[str] = None,
                        virtual_network_subnet_ids: Optional[Sequence[str]] = None)
@overload
def AccountNetworkRules(resource_name: str,
                        args: AccountNetworkRulesInitArgs,
                        opts: Optional[ResourceOptions] = None)
func NewAccountNetworkRules(ctx *Context, name string, args AccountNetworkRulesArgs, opts ...ResourceOption) (*AccountNetworkRules, error)
public AccountNetworkRules(string name, AccountNetworkRulesArgs args, CustomResourceOptions? opts = null)
public AccountNetworkRules(String name, AccountNetworkRulesArgs args)
public AccountNetworkRules(String name, AccountNetworkRulesArgs args, CustomResourceOptions options)
type: azure:storage:AccountNetworkRules
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args AccountNetworkRulesArgs
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 AccountNetworkRulesInitArgs
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 AccountNetworkRulesArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AccountNetworkRulesArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args AccountNetworkRulesArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

DefaultAction string

Specifies the default action of allow or deny when no other rules match. Valid options are Deny or Allow.

StorageAccountId string

Specifies the ID of the storage account. Changing this forces a new resource to be created.

Bypasses List<string>

Specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Valid options are any combination of Logging, Metrics, AzureServices, or None.

IpRules List<string>

List of public IP or IP ranges in CIDR Format. Only IPv4 addresses are allowed. Private IP address ranges (as defined in RFC 1918) are not allowed.

PrivateLinkAccessRules List<AccountNetworkRulesPrivateLinkAccessRuleArgs>

One or More private_link_access block as defined below.

VirtualNetworkSubnetIds List<string>

A list of virtual network subnet ids to secure the storage account.

DefaultAction string

Specifies the default action of allow or deny when no other rules match. Valid options are Deny or Allow.

StorageAccountId string

Specifies the ID of the storage account. Changing this forces a new resource to be created.

Bypasses []string

Specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Valid options are any combination of Logging, Metrics, AzureServices, or None.

IpRules []string

List of public IP or IP ranges in CIDR Format. Only IPv4 addresses are allowed. Private IP address ranges (as defined in RFC 1918) are not allowed.

PrivateLinkAccessRules []AccountNetworkRulesPrivateLinkAccessRuleArgs

One or More private_link_access block as defined below.

VirtualNetworkSubnetIds []string

A list of virtual network subnet ids to secure the storage account.

defaultAction String

Specifies the default action of allow or deny when no other rules match. Valid options are Deny or Allow.

storageAccountId String

Specifies the ID of the storage account. Changing this forces a new resource to be created.

bypasses List<String>

Specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Valid options are any combination of Logging, Metrics, AzureServices, or None.

ipRules List<String>

List of public IP or IP ranges in CIDR Format. Only IPv4 addresses are allowed. Private IP address ranges (as defined in RFC 1918) are not allowed.

privateLinkAccessRules List<AccountNetworkRulesPrivateLinkAccessRuleArgs>

One or More private_link_access block as defined below.

virtualNetworkSubnetIds List<String>

A list of virtual network subnet ids to secure the storage account.

defaultAction string

Specifies the default action of allow or deny when no other rules match. Valid options are Deny or Allow.

storageAccountId string

Specifies the ID of the storage account. Changing this forces a new resource to be created.

bypasses string[]

Specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Valid options are any combination of Logging, Metrics, AzureServices, or None.

ipRules string[]

List of public IP or IP ranges in CIDR Format. Only IPv4 addresses are allowed. Private IP address ranges (as defined in RFC 1918) are not allowed.

privateLinkAccessRules AccountNetworkRulesPrivateLinkAccessRuleArgs[]

One or More private_link_access block as defined below.

virtualNetworkSubnetIds string[]

A list of virtual network subnet ids to secure the storage account.

default_action str

Specifies the default action of allow or deny when no other rules match. Valid options are Deny or Allow.

storage_account_id str

Specifies the ID of the storage account. Changing this forces a new resource to be created.

bypasses Sequence[str]

Specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Valid options are any combination of Logging, Metrics, AzureServices, or None.

ip_rules Sequence[str]

List of public IP or IP ranges in CIDR Format. Only IPv4 addresses are allowed. Private IP address ranges (as defined in RFC 1918) are not allowed.

private_link_access_rules Sequence[AccountNetworkRulesPrivateLinkAccessRuleArgs]

One or More private_link_access block as defined below.

virtual_network_subnet_ids Sequence[str]

A list of virtual network subnet ids to secure the storage account.

defaultAction String

Specifies the default action of allow or deny when no other rules match. Valid options are Deny or Allow.

storageAccountId String

Specifies the ID of the storage account. Changing this forces a new resource to be created.

bypasses List<String>

Specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Valid options are any combination of Logging, Metrics, AzureServices, or None.

ipRules List<String>

List of public IP or IP ranges in CIDR Format. Only IPv4 addresses are allowed. Private IP address ranges (as defined in RFC 1918) are not allowed.

privateLinkAccessRules List<Property Map>

One or More private_link_access block as defined below.

virtualNetworkSubnetIds List<String>

A list of virtual network subnet ids to secure the storage account.

Outputs

All input properties are implicitly available as output properties. Additionally, the AccountNetworkRules 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 AccountNetworkRules Resource

Get an existing AccountNetworkRules 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?: AccountNetworkRulesState, opts?: CustomResourceOptions): AccountNetworkRules
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        bypasses: Optional[Sequence[str]] = None,
        default_action: Optional[str] = None,
        ip_rules: Optional[Sequence[str]] = None,
        private_link_access_rules: Optional[Sequence[AccountNetworkRulesPrivateLinkAccessRuleArgs]] = None,
        storage_account_id: Optional[str] = None,
        virtual_network_subnet_ids: Optional[Sequence[str]] = None) -> AccountNetworkRules
func GetAccountNetworkRules(ctx *Context, name string, id IDInput, state *AccountNetworkRulesState, opts ...ResourceOption) (*AccountNetworkRules, error)
public static AccountNetworkRules Get(string name, Input<string> id, AccountNetworkRulesState? state, CustomResourceOptions? opts = null)
public static AccountNetworkRules get(String name, Output<String> id, AccountNetworkRulesState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
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
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
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
The unique name of the resulting resource.
id
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
The unique name of the resulting resource.
id
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:
Bypasses List<string>

Specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Valid options are any combination of Logging, Metrics, AzureServices, or None.

DefaultAction string

Specifies the default action of allow or deny when no other rules match. Valid options are Deny or Allow.

IpRules List<string>

List of public IP or IP ranges in CIDR Format. Only IPv4 addresses are allowed. Private IP address ranges (as defined in RFC 1918) are not allowed.

PrivateLinkAccessRules List<AccountNetworkRulesPrivateLinkAccessRuleArgs>

One or More private_link_access block as defined below.

StorageAccountId string

Specifies the ID of the storage account. Changing this forces a new resource to be created.

VirtualNetworkSubnetIds List<string>

A list of virtual network subnet ids to secure the storage account.

Bypasses []string

Specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Valid options are any combination of Logging, Metrics, AzureServices, or None.

DefaultAction string

Specifies the default action of allow or deny when no other rules match. Valid options are Deny or Allow.

IpRules []string

List of public IP or IP ranges in CIDR Format. Only IPv4 addresses are allowed. Private IP address ranges (as defined in RFC 1918) are not allowed.

PrivateLinkAccessRules []AccountNetworkRulesPrivateLinkAccessRuleArgs

One or More private_link_access block as defined below.

StorageAccountId string

Specifies the ID of the storage account. Changing this forces a new resource to be created.

VirtualNetworkSubnetIds []string

A list of virtual network subnet ids to secure the storage account.

bypasses List<String>

Specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Valid options are any combination of Logging, Metrics, AzureServices, or None.

defaultAction String

Specifies the default action of allow or deny when no other rules match. Valid options are Deny or Allow.

ipRules List<String>

List of public IP or IP ranges in CIDR Format. Only IPv4 addresses are allowed. Private IP address ranges (as defined in RFC 1918) are not allowed.

privateLinkAccessRules List<AccountNetworkRulesPrivateLinkAccessRuleArgs>

One or More private_link_access block as defined below.

storageAccountId String

Specifies the ID of the storage account. Changing this forces a new resource to be created.

virtualNetworkSubnetIds List<String>

A list of virtual network subnet ids to secure the storage account.

bypasses string[]

Specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Valid options are any combination of Logging, Metrics, AzureServices, or None.

defaultAction string

Specifies the default action of allow or deny when no other rules match. Valid options are Deny or Allow.

ipRules string[]

List of public IP or IP ranges in CIDR Format. Only IPv4 addresses are allowed. Private IP address ranges (as defined in RFC 1918) are not allowed.

privateLinkAccessRules AccountNetworkRulesPrivateLinkAccessRuleArgs[]

One or More private_link_access block as defined below.

storageAccountId string

Specifies the ID of the storage account. Changing this forces a new resource to be created.

virtualNetworkSubnetIds string[]

A list of virtual network subnet ids to secure the storage account.

bypasses Sequence[str]

Specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Valid options are any combination of Logging, Metrics, AzureServices, or None.

default_action str

Specifies the default action of allow or deny when no other rules match. Valid options are Deny or Allow.

ip_rules Sequence[str]

List of public IP or IP ranges in CIDR Format. Only IPv4 addresses are allowed. Private IP address ranges (as defined in RFC 1918) are not allowed.

private_link_access_rules Sequence[AccountNetworkRulesPrivateLinkAccessRuleArgs]

One or More private_link_access block as defined below.

storage_account_id str

Specifies the ID of the storage account. Changing this forces a new resource to be created.

virtual_network_subnet_ids Sequence[str]

A list of virtual network subnet ids to secure the storage account.

bypasses List<String>

Specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Valid options are any combination of Logging, Metrics, AzureServices, or None.

defaultAction String

Specifies the default action of allow or deny when no other rules match. Valid options are Deny or Allow.

ipRules List<String>

List of public IP or IP ranges in CIDR Format. Only IPv4 addresses are allowed. Private IP address ranges (as defined in RFC 1918) are not allowed.

privateLinkAccessRules List<Property Map>

One or More private_link_access block as defined below.

storageAccountId String

Specifies the ID of the storage account. Changing this forces a new resource to be created.

virtualNetworkSubnetIds List<String>

A list of virtual network subnet ids to secure the storage account.

Supporting Types

AccountNetworkRulesPrivateLinkAccessRule

EndpointResourceId string

The resource id of the resource access rule to be granted access.

EndpointTenantId string

The tenant id of the resource of the resource access rule to be granted access. Defaults to the current tenant id.

EndpointResourceId string

The resource id of the resource access rule to be granted access.

EndpointTenantId string

The tenant id of the resource of the resource access rule to be granted access. Defaults to the current tenant id.

endpointResourceId String

The resource id of the resource access rule to be granted access.

endpointTenantId String

The tenant id of the resource of the resource access rule to be granted access. Defaults to the current tenant id.

endpointResourceId string

The resource id of the resource access rule to be granted access.

endpointTenantId string

The tenant id of the resource of the resource access rule to be granted access. Defaults to the current tenant id.

endpoint_resource_id str

The resource id of the resource access rule to be granted access.

endpoint_tenant_id str

The tenant id of the resource of the resource access rule to be granted access. Defaults to the current tenant id.

endpointResourceId String

The resource id of the resource access rule to be granted access.

endpointTenantId String

The tenant id of the resource of the resource access rule to be granted access. Defaults to the current tenant id.

Import

Storage Account Network Rules can be imported using the resource id, e.g.

 $ pulumi import azure:storage/accountNetworkRules:AccountNetworkRules storageAcc1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Storage/storageAccounts/myaccount

Package Details

Repository
Azure Classic pulumi/pulumi-azure
License
Apache-2.0
Notes

This Pulumi package is based on the azurerm Terraform Provider.