Subnet Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
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, 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.PowerShell.Cmdlets.Websites.Helper.Network.Models.NetworkSecurityGroup networkSecurityGroup = default, Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.RouteTable routeTable = default, Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.SubResource natGateway = default, System.Collections.Generic.IList<Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.ServiceEndpointPropertiesFormat> serviceEndpoints = default, System.Collections.Generic.IList<Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.ServiceEndpointPolicy> serviceEndpointPolicies = default, System.Collections.Generic.IList<Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.PrivateEndpoint> privateEndpoints = default, System.Collections.Generic.IList<Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.IPConfiguration> ipConfigurations = default, System.Collections.Generic.IList<Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.IPConfigurationProfile> ipConfigurationProfiles = default, System.Collections.Generic.IList<Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.SubResource> ipAllocations = default, System.Collections.Generic.IList<Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.ResourceNavigationLink> resourceNavigationLinks = default, System.Collections.Generic.IList<Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.ServiceAssociationLink> serviceAssociationLinks = default, System.Collections.Generic.IList<Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.Delegation> delegations = default, string purpose = default, string provisioningState = default, string privateEndpointNetworkPolicies = default, string privateLinkServiceNetworkPolicies = default, string name = default, string etag = default);
new Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.Subnet : string * string * System.Collections.Generic.IList<string> * Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.NetworkSecurityGroup * Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.RouteTable * Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.SubResource * System.Collections.Generic.IList<Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.ServiceEndpointPropertiesFormat> * System.Collections.Generic.IList<Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.ServiceEndpointPolicy> * System.Collections.Generic.IList<Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.PrivateEndpoint> * System.Collections.Generic.IList<Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.IPConfiguration> * System.Collections.Generic.IList<Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.IPConfigurationProfile> * System.Collections.Generic.IList<Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.SubResource> * System.Collections.Generic.IList<Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.ResourceNavigationLink> * System.Collections.Generic.IList<Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.ServiceAssociationLink> * System.Collections.Generic.IList<Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.Delegation> * string * string * string * string * string * string -> Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.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 name As String = Nothing, Optional etag As String = Nothing)
Parameters
- id
- String
Resource ID.
- addressPrefix
- String
The address prefix 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.
- privateLinkServiceNetworkPolicies
- String
Enable or Disable apply network policies on private link service in the subnet.
- 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.