Share via


VirtualNetwork Class

Definition

Virtual Network resource.

[Microsoft.Rest.Serialization.JsonTransformation]
public class VirtualNetwork : Microsoft.Azure.Management.Network.Models.Resource
[<Microsoft.Rest.Serialization.JsonTransformation>]
type VirtualNetwork = class
    inherit Resource
Public Class VirtualNetwork
Inherits Resource
Inheritance
VirtualNetwork
Attributes

Constructors

VirtualNetwork()

Initializes a new instance of the VirtualNetwork class.

VirtualNetwork(String, String, String, String, IDictionary<String, String>, ExtendedLocation, AddressSpace, DhcpOptions, Nullable<Int32>, IList<Subnet>, IList<VirtualNetworkPeering>, String, String, Nullable<Boolean>, Nullable<Boolean>, SubResource, VirtualNetworkBgpCommunities, VirtualNetworkEncryption, IList<SubResource>, String)

Initializes a new instance of the VirtualNetwork class.

Properties

AddressSpace

Gets or sets the AddressSpace that contains an array of IP address ranges that can be used by subnets.

BgpCommunities

Gets or sets bgp Communities sent over ExpressRoute with each route corresponding to a prefix in this VNET.

DdosProtectionPlan

Gets or sets the DDoS protection plan associated with the virtual network.

DhcpOptions

Gets or sets the dhcpOptions that contains an array of DNS servers available to VMs deployed in the virtual network.

EnableDdosProtection

Gets or sets indicates if DDoS protection is enabled for all the protected resources in the virtual network. It requires a DDoS protection plan associated with the resource.

EnableVmProtection

Gets or sets indicates if VM protection is enabled for all the subnets in the virtual network.

Encryption

Gets or sets indicates if encryption is enabled on virtual network and if VM without encryption is allowed in encrypted VNet.

Etag

Gets a unique read-only string that changes whenever the resource is updated.

ExtendedLocation

Gets or sets the extended location of the virtual network.

FlowTimeoutInMinutes

Gets or sets the FlowTimeout value (in minutes) for the Virtual Network

Id

Gets or sets resource ID.

(Inherited from Resource)
IpAllocations

Gets or sets array of IpAllocation which reference this VNET.

Location

Gets or sets resource location.

(Inherited from Resource)
Name

Gets resource name.

(Inherited from Resource)
ProvisioningState

Gets the provisioning state of the virtual network resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'

ResourceGuid

Gets the resourceGuid property of the Virtual Network resource.

Subnets

Gets or sets a list of subnets in a Virtual Network.

Tags

Gets or sets resource tags.

(Inherited from Resource)
Type

Gets resource type.

(Inherited from Resource)
VirtualNetworkPeerings

Gets or sets a list of peerings in a Virtual Network.

Methods

Validate()

Validate the object.

Applies to