ArmNetworkModelFactory.SubnetData Method

Definition

public static Azure.ResourceManager.Network.SubnetData SubnetData(Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType? resourceType = default, string addressPrefix = default, System.Collections.Generic.IEnumerable<string> addressPrefixes = default, Azure.ResourceManager.Network.NetworkSecurityGroupData networkSecurityGroup = default, Azure.ResourceManager.Network.RouteTableData routeTable = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.Models.ServiceEndpointProperties> serviceEndpoints = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.ServiceEndpointPolicyData> serviceEndpointPolicies = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.PrivateEndpointData> privateEndpoints = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.Models.NetworkIPConfiguration> ipConfigurations = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.Models.NetworkIPConfigurationProfile> ipConfigurationProfiles = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.Models.NetworkSubResource> ipAllocations = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.Models.ResourceNavigationLink> resourceNavigationLinks = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.Models.ServiceAssociationLink> serviceAssociationLinks = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.Models.ServiceDelegation> delegations = default, string purpose = default, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default, Azure.ResourceManager.Network.Models.VirtualNetworkPrivateEndpointNetworkPolicy? privateEndpointNetworkPolicies = default, Azure.ResourceManager.Network.Models.VirtualNetworkPrivateLinkServiceNetworkPolicy? privateLinkServiceNetworkPolicies = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.Models.ApplicationGatewayIPConfiguration> applicationGatewayIPConfigurations = default, Azure.ResourceManager.Network.Models.SharingScope? sharingScope = default, bool? defaultOutboundAccess = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.Models.IpamPoolPrefixAllocation> ipamPoolPrefixAllocations = default, Azure.Core.ResourceIdentifier natGatewayId = default, Azure.Core.ResourceIdentifier serviceGatewayId = default, Azure.ETag? eTag = default);
static member SubnetData : Azure.Core.ResourceIdentifier * string * Nullable<Azure.Core.ResourceType> * string * seq<string> * Azure.ResourceManager.Network.NetworkSecurityGroupData * Azure.ResourceManager.Network.RouteTableData * seq<Azure.ResourceManager.Network.Models.ServiceEndpointProperties> * seq<Azure.ResourceManager.Network.ServiceEndpointPolicyData> * seq<Azure.ResourceManager.Network.PrivateEndpointData> * seq<Azure.ResourceManager.Network.Models.NetworkIPConfiguration> * seq<Azure.ResourceManager.Network.Models.NetworkIPConfigurationProfile> * seq<Azure.ResourceManager.Network.Models.NetworkSubResource> * seq<Azure.ResourceManager.Network.Models.ResourceNavigationLink> * seq<Azure.ResourceManager.Network.Models.ServiceAssociationLink> * seq<Azure.ResourceManager.Network.Models.ServiceDelegation> * string * Nullable<Azure.ResourceManager.Network.Models.NetworkProvisioningState> * Nullable<Azure.ResourceManager.Network.Models.VirtualNetworkPrivateEndpointNetworkPolicy> * Nullable<Azure.ResourceManager.Network.Models.VirtualNetworkPrivateLinkServiceNetworkPolicy> * seq<Azure.ResourceManager.Network.Models.ApplicationGatewayIPConfiguration> * Nullable<Azure.ResourceManager.Network.Models.SharingScope> * Nullable<bool> * seq<Azure.ResourceManager.Network.Models.IpamPoolPrefixAllocation> * Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier * Nullable<Azure.ETag> -> Azure.ResourceManager.Network.SubnetData
Public Shared Function SubnetData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As Nullable(Of ResourceType) = Nothing, Optional addressPrefix As String = Nothing, Optional addressPrefixes As IEnumerable(Of String) = Nothing, Optional networkSecurityGroup As NetworkSecurityGroupData = Nothing, Optional routeTable As RouteTableData = Nothing, Optional serviceEndpoints As IEnumerable(Of ServiceEndpointProperties) = Nothing, Optional serviceEndpointPolicies As IEnumerable(Of ServiceEndpointPolicyData) = Nothing, Optional privateEndpoints As IEnumerable(Of PrivateEndpointData) = Nothing, Optional ipConfigurations As IEnumerable(Of NetworkIPConfiguration) = Nothing, Optional ipConfigurationProfiles As IEnumerable(Of NetworkIPConfigurationProfile) = Nothing, Optional ipAllocations As IEnumerable(Of NetworkSubResource) = Nothing, Optional resourceNavigationLinks As IEnumerable(Of ResourceNavigationLink) = Nothing, Optional serviceAssociationLinks As IEnumerable(Of ServiceAssociationLink) = Nothing, Optional delegations As IEnumerable(Of ServiceDelegation) = Nothing, Optional purpose As String = Nothing, Optional provisioningState As Nullable(Of NetworkProvisioningState) = Nothing, Optional privateEndpointNetworkPolicies As Nullable(Of VirtualNetworkPrivateEndpointNetworkPolicy) = Nothing, Optional privateLinkServiceNetworkPolicies As Nullable(Of VirtualNetworkPrivateLinkServiceNetworkPolicy) = Nothing, Optional applicationGatewayIPConfigurations As IEnumerable(Of ApplicationGatewayIPConfiguration) = Nothing, Optional sharingScope As Nullable(Of SharingScope) = Nothing, Optional defaultOutboundAccess As Nullable(Of Boolean) = Nothing, Optional ipamPoolPrefixAllocations As IEnumerable(Of IpamPoolPrefixAllocation) = Nothing, Optional natGatewayId As ResourceIdentifier = Nothing, Optional serviceGatewayId As ResourceIdentifier = Nothing, Optional eTag As Nullable(Of ETag) = Nothing) As SubnetData

Parameters

id
ResourceIdentifier

Resource ID.

name
String

Resource name.

resourceType
Nullable<ResourceType>

Resource type.

addressPrefix
String

The address prefix for the subnet.

addressPrefixes
IEnumerable<String>

List of address prefixes for the subnet.

networkSecurityGroup
NetworkSecurityGroupData

The reference to the NetworkSecurityGroup resource.

routeTable
RouteTableData

The reference to the RouteTable resource.

serviceEndpoints
IEnumerable<ServiceEndpointProperties>

An array of service endpoints.

serviceEndpointPolicies
IEnumerable<ServiceEndpointPolicyData>

An array of service endpoint policies.

privateEndpoints
IEnumerable<PrivateEndpointData>

An array of references to private endpoints.

ipConfigurations
IEnumerable<NetworkIPConfiguration>

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

ipConfigurationProfiles
IEnumerable<NetworkIPConfigurationProfile>

Array of IP configuration profiles which reference this subnet.

ipAllocations
IEnumerable<NetworkSubResource>

Array of IpAllocation which reference this subnet.

resourceNavigationLinks
IEnumerable<ResourceNavigationLink>

An array of references to the external resources using subnet.

serviceAssociationLinks
IEnumerable<ServiceAssociationLink>

An array of references to services injecting into this subnet.

delegations
IEnumerable<ServiceDelegation>

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
Nullable<NetworkProvisioningState>

The provisioning state of the subnet resource.

privateEndpointNetworkPolicies
Nullable<VirtualNetworkPrivateEndpointNetworkPolicy>

Enable or Disable apply network policies on private end point in the subnet.

privateLinkServiceNetworkPolicies
Nullable<VirtualNetworkPrivateLinkServiceNetworkPolicy>

Enable or Disable apply network policies on private link service in the subnet.

applicationGatewayIPConfigurations
IEnumerable<ApplicationGatewayIPConfiguration>

Application gateway IP configurations of virtual network resource.

sharingScope
Nullable<SharingScope>

Set this property to Tenant to allow sharing subnet with other subscriptions in your AAD tenant. This property can only be set if defaultOutboundAccess is set to false, both properties can only be set if subnet is empty.

defaultOutboundAccess
Nullable<Boolean>

Set this property to false to disable default outbound connectivity for all VMs in the subnet.

ipamPoolPrefixAllocations
IEnumerable<IpamPoolPrefixAllocation>

A list of IPAM Pools for allocating IP address prefixes.

natGatewayId
ResourceIdentifier

Resource ID.

serviceGatewayId
ResourceIdentifier

Resource ID.

eTag
Nullable<ETag>

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

Returns

A new SubnetData instance for mocking.

Applies to