Table of Contents

Interface IWithVirtualNetworkRule

Namespace
Microsoft.Azure.Management.CosmosDB.Fluent.CosmosDBAccount.Definition
Assembly
Microsoft.Azure.Management.CosmosDB.Fluent.dll

The stage of the cosmos db definition allowing the definition of a Virtual Network ACL Rule.

public interface IWithVirtualNetworkRule : IBeta

Methods

WithVirtualNetworkFilterEnabled(bool)

Specifies Virtual Network Fileter manually.

IWithCreate WithVirtualNetworkFilterEnabled(bool enable)

Parameters

enable bool

The fileter is enabled or not.

Returns

IWithCreate

The next stage.

WithVirtualNetworkRule(string, string, bool?)

Specifies a Virtual Network ACL Rule for the CosmosDB account.

IWithCreate WithVirtualNetworkRule(string virtualNetworkId, string subnetName, bool? ignoreMissingVNetServiceEndpoint = null)

Parameters

virtualNetworkId string

The ID of a virtual network.

subnetName string

The name of the subnet within the virtual network; the subnet must have the service endpoints enabled for 'Microsoft.AzureCosmosDB'.

ignoreMissingVNetServiceEndpoint bool?

The boolean decides to ignore missing endpoint or not.

Returns

IWithCreate

WithVirtualNetworkRules(IList<VirtualNetworkRule>)

Specifies the list of Virtual Network ACL Rules for the CosmosDB account.

IWithCreate WithVirtualNetworkRules(IList<VirtualNetworkRule> virtualNetworkRules)

Parameters

virtualNetworkRules IList<VirtualNetworkRule>

The list of Virtual Network ACL Rules.

Returns

IWithCreate