SubnetData Class

Definition

A class representing the Subnet data model. Subnet in a virtual network resource.

public class SubnetData : Azure.ResourceManager.Network.Models.NetworkWritableResourceData, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Network.SubnetData>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Network.SubnetData>
public class SubnetData : Azure.ResourceManager.Network.Models.NetworkWritableResourceData
type SubnetData = class
    inherit NetworkWritableResourceData
    interface IJsonModel<SubnetData>
    interface IPersistableModel<SubnetData>
type SubnetData = class
    inherit NetworkWritableResourceData
Public Class SubnetData
Inherits NetworkWritableResourceData
Implements IJsonModel(Of SubnetData), IPersistableModel(Of SubnetData)
Public Class SubnetData
Inherits NetworkWritableResourceData
Inheritance
Implements

Constructors

SubnetData()

Initializes a new instance of SubnetData.

Properties

AddressPrefix

The address prefix for the subnet.

AddressPrefixes

List of address prefixes for the subnet.

ApplicationGatewayIPConfigurations

Application gateway IP configurations of virtual network resource.

DefaultOutboundAccess

Set this property to false to disable default outbound connectivity for all VMs in the subnet. This property can only be set at the time of subnet creation and cannot be updated for an existing subnet.

Delegations

An array of references to the delegations on the subnet.

ETag

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

Id

Resource ID.

(Inherited from NetworkWritableResourceData)
IPAllocations

Array of IpAllocation which reference this subnet.

IPConfigurationProfiles

Array of IP configuration profiles which reference this subnet.

IPConfigurations

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

Name

Resource name.

(Inherited from NetworkWritableResourceData)
NatGatewayId

Gets or sets Id.

NetworkSecurityGroup

The reference to the NetworkSecurityGroup resource.

PrivateEndpointNetworkPolicy

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

PrivateEndpoints

An array of references to private endpoints.

PrivateLinkServiceNetworkPolicy

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

ProvisioningState

The provisioning state of the subnet resource.

Purpose

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

ResourceNavigationLinks

An array of references to the external resources using subnet.

ResourceType

Resource type.

(Inherited from NetworkWritableResourceData)
RouteTable

The reference to the RouteTable resource.

ServiceAssociationLinks

An array of references to services injecting into this subnet.

ServiceEndpointPolicies

An array of service endpoint policies.

ServiceEndpoints

An array of service endpoints.

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.

Explicit Interface Implementations

IJsonModel<NetworkWritableResourceData>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

(Inherited from NetworkWritableResourceData)
IJsonModel<NetworkWritableResourceData>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from NetworkWritableResourceData)
IJsonModel<SubnetData>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<SubnetData>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<NetworkWritableResourceData>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from NetworkWritableResourceData)
IPersistableModel<NetworkWritableResourceData>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

(Inherited from NetworkWritableResourceData)
IPersistableModel<NetworkWritableResourceData>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from NetworkWritableResourceData)
IPersistableModel<SubnetData>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<SubnetData>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<SubnetData>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to