Subnet Constructors

Definition

Overloads

Subnet()

Initializes a new instance of the Subnet class.

Subnet(String, String, IList<String>, NetworkSecurityGroup, RouteTable, SubResource, IList<ServiceEndpointPropertiesFormat>, IList<ServiceEndpointPolicy>, IList<PrivateEndpoint>, IList<IPConfiguration>, IList<IPConfigurationProfile>, IList<SubResource>, IList<ResourceNavigationLink>, IList<ServiceAssociationLink>, IList<Delegation>, String, String, String, String, IList<ApplicationGatewayIPConfiguration>, String, String, String)

Initializes a new instance of the Subnet class.

Subnet()

Initializes a new instance of the Subnet class.

public Subnet ();
Public Sub New ()

Applies to

Subnet(String, String, IList<String>, NetworkSecurityGroup, RouteTable, SubResource, IList<ServiceEndpointPropertiesFormat>, IList<ServiceEndpointPolicy>, IList<PrivateEndpoint>, IList<IPConfiguration>, IList<IPConfigurationProfile>, IList<SubResource>, IList<ResourceNavigationLink>, IList<ServiceAssociationLink>, IList<Delegation>, String, String, String, String, IList<ApplicationGatewayIPConfiguration>, String, String, String)

Initializes a new instance of the Subnet class.

public Subnet (string id = default, string addressPrefix = default, System.Collections.Generic.IList<string> addressPrefixes = default, Microsoft.Azure.Management.Network.Models.NetworkSecurityGroup networkSecurityGroup = default, Microsoft.Azure.Management.Network.Models.RouteTable routeTable = default, Microsoft.Azure.Management.Network.Models.SubResource natGateway = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.ServiceEndpointPropertiesFormat> serviceEndpoints = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.ServiceEndpointPolicy> serviceEndpointPolicies = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.PrivateEndpoint> privateEndpoints = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.IPConfiguration> ipConfigurations = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.IPConfigurationProfile> ipConfigurationProfiles = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.SubResource> ipAllocations = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.ResourceNavigationLink> resourceNavigationLinks = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.ServiceAssociationLink> serviceAssociationLinks = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.Delegation> delegations = default, string purpose = default, string provisioningState = default, string privateEndpointNetworkPolicies = default, string privateLinkServiceNetworkPolicies = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.ApplicationGatewayIPConfiguration> applicationGatewayIpConfigurations = default, string name = default, string etag = default, string type = default);
new Microsoft.Azure.Management.Network.Models.Subnet : string * string * System.Collections.Generic.IList<string> * Microsoft.Azure.Management.Network.Models.NetworkSecurityGroup * Microsoft.Azure.Management.Network.Models.RouteTable * Microsoft.Azure.Management.Network.Models.SubResource * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.ServiceEndpointPropertiesFormat> * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.ServiceEndpointPolicy> * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.PrivateEndpoint> * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.IPConfiguration> * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.IPConfigurationProfile> * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.SubResource> * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.ResourceNavigationLink> * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.ServiceAssociationLink> * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.Delegation> * string * string * string * string * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.ApplicationGatewayIPConfiguration> * string * string * string -> Microsoft.Azure.Management.Network.Models.Subnet
Public Sub New (Optional id As String = Nothing, Optional addressPrefix As String = Nothing, Optional addressPrefixes As IList(Of String) = Nothing, Optional networkSecurityGroup As NetworkSecurityGroup = Nothing, Optional routeTable As RouteTable = Nothing, Optional natGateway As SubResource = Nothing, Optional serviceEndpoints As IList(Of ServiceEndpointPropertiesFormat) = Nothing, Optional serviceEndpointPolicies As IList(Of ServiceEndpointPolicy) = Nothing, Optional privateEndpoints As IList(Of PrivateEndpoint) = Nothing, Optional ipConfigurations As IList(Of IPConfiguration) = Nothing, Optional ipConfigurationProfiles As IList(Of IPConfigurationProfile) = Nothing, Optional ipAllocations As IList(Of SubResource) = Nothing, Optional resourceNavigationLinks As IList(Of ResourceNavigationLink) = Nothing, Optional serviceAssociationLinks As IList(Of ServiceAssociationLink) = Nothing, Optional delegations As IList(Of Delegation) = Nothing, Optional purpose As String = Nothing, Optional provisioningState As String = Nothing, Optional privateEndpointNetworkPolicies As String = Nothing, Optional privateLinkServiceNetworkPolicies As String = Nothing, Optional applicationGatewayIpConfigurations As IList(Of ApplicationGatewayIPConfiguration) = Nothing, Optional name As String = Nothing, Optional etag As String = Nothing, Optional type As String = Nothing)

Parameters

id
String

Resource ID.

addressPrefix
String

The address prefix for the subnet.

addressPrefixes
IList<String>

List of address prefixes for the subnet.

networkSecurityGroup
NetworkSecurityGroup

The reference to the NetworkSecurityGroup resource.

routeTable
RouteTable

The reference to the RouteTable resource.

natGateway
SubResource

Nat gateway associated with this subnet.

serviceEndpoints
IList<ServiceEndpointPropertiesFormat>

An array of service endpoints.

serviceEndpointPolicies
IList<ServiceEndpointPolicy>

An array of service endpoint policies.

privateEndpoints
IList<PrivateEndpoint>

An array of references to private endpoints.

ipConfigurations
IList<IPConfiguration>

An array of references to the network interface IP configurations using subnet.

ipConfigurationProfiles
IList<IPConfigurationProfile>

Array of IP configuration profiles which reference this subnet.

ipAllocations
IList<SubResource>

Array of IpAllocation which reference this subnet.

resourceNavigationLinks
IList<ResourceNavigationLink>

An array of references to the external resources using subnet.

serviceAssociationLinks
IList<ServiceAssociationLink>

An array of references to services injecting into this subnet.

delegations
IList<Delegation>

An array of references to the delegations on the subnet.

purpose
String

A read-only string identifying the intention of use for this subnet based on delegations and other user-defined properties.

provisioningState
String

The provisioning state of the subnet resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'

privateEndpointNetworkPolicies
String

Enable or Disable apply network policies on private end point in the subnet. Possible values include: 'Enabled', 'Disabled'

privateLinkServiceNetworkPolicies
String

Enable or Disable apply network policies on private link service in the subnet. Possible values include: 'Enabled', 'Disabled'

applicationGatewayIpConfigurations
IList<ApplicationGatewayIPConfiguration>

Application gateway IP configurations of virtual network resource.

name
String

The name of the resource that is unique within a resource group. This name can be used to access the resource.

etag
String

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

type
String

Resource type.

Applies to