Partager via


VirtualNetworkRule Constructors

Definition

Overloads

VirtualNetworkRule()

Initializes a new instance of the VirtualNetworkRule class.

VirtualNetworkRule(String, Nullable<Action>, String)

Initializes a new instance of the VirtualNetworkRule class.

VirtualNetworkRule()

Initializes a new instance of the VirtualNetworkRule class.

public VirtualNetworkRule ();
Public Sub New ()

Applies to

VirtualNetworkRule(String, Nullable<Action>, String)

Initializes a new instance of the VirtualNetworkRule class.

public VirtualNetworkRule (string virtualNetworkResourceId, Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.Action? action = default, string state = default);
new Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.VirtualNetworkRule : string * Nullable<Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.Action> * string -> Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.VirtualNetworkRule
Public Sub New (virtualNetworkResourceId As String, Optional action As Nullable(Of Action) = Nothing, Optional state As String = Nothing)

Parameters

virtualNetworkResourceId
String

Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.

action
Nullable<Action>

The action of virtual network rule. Possible values include: 'Allow'

state
String

Gets the state of virtual network rule. Possible values include: 'provisioning', 'deprovisioning', 'succeeded', 'failed', 'networkSourceDeleted'

Applies to