Partager via


VirtualNetworkRule Class

Virtual Network rule.

All required parameters must be populated in order to send to server.

Inheritance
azure.mgmt.storage._serialization.Model
VirtualNetworkRule

Constructor

VirtualNetworkRule(*, virtual_network_resource_id: str, action: Literal['Allow'] | None = None, state: str | _models.State | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
virtual_network_resource_id
str

Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. # pylint: disable=line-too-long Required.

action
str

The action of virtual network rule. Default value is "Allow".

state
str or State

Gets the state of virtual network rule. Known values are: "provisioning", "deprovisioning", "succeeded", "failed", and "networkSourceDeleted".

Variables

Name Description
virtual_network_resource_id
str

Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. # pylint: disable=line-too-long Required.

action
str

The action of virtual network rule. Default value is "Allow".

state
str or State

Gets the state of virtual network rule. Known values are: "provisioning", "deprovisioning", "succeeded", "failed", and "networkSourceDeleted".