Subnet is the Schema for the Subnets API. Manages a subnet. Subnets represent network segments within the IP space defined by the virtual network.
Type
CRD
Group
network.azure.upbound.io
Version
v1beta1
apiVersion: network.azure.upbound.io/v1beta1
kind: Subnet
SubnetSpec defines the desired state of Subnet
No description provided.
The address prefixes to use for the subnet.
One or more delegation blocks as defined below.
A service_delegation block as defined below.
A list of Actions which should be delegated. This list is specific to the service to delegate to. Possible values include Microsoft.Network/networkinterfaces/*, Microsoft.Network/virtualNetworks/subnets/action, Microsoft.Network/virtualNetworks/subnets/join/action, Microsoft.Network/virtualNetworks/subnets/prepareNetworkPolicies/action and Microsoft.Network/virtualNetworks/subnets/unprepareNetworkPolicies/action.
Reference to a ResourceGroup in azure to populate resourceGroupName.
Policies for referencing.
Selector for a ResourceGroup in azure to populate resourceGroupName.
Policies for selection.
The list of IDs of Service Endpoint Policies to associate with the subnet.
The list of Service endpoints to associate with the subnet. Possible values include: Microsoft.AzureActiveDirectory, Microsoft.AzureCosmosDB, Microsoft.ContainerRegistry, Microsoft.EventHub, Microsoft.KeyVault, Microsoft.ServiceBus, Microsoft.Sql, Microsoft.Storage and Microsoft.Web.
Reference to a VirtualNetwork to populate virtualNetworkName.
Policies for referencing.
Selector for a VirtualNetwork to populate virtualNetworkName.
Policies for selection.
ProviderConfigReference specifies how the provider that will be used to create, observe, update, and delete this managed resource should be configured.
Policies for referencing.
ProviderReference specifies the provider that will be used to create, observe, update, and delete this managed resource. Deprecated: Please use ProviderConfigReference, i.e. providerConfigRef
Policies for referencing.
PublishConnectionDetailsTo specifies the connection secret config which contains a name, metadata and a reference to secret store config to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource.
WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource. This field is planned to be replaced in a future release in favor of PublishConnectionDetailsTo. Currently, both could be set independently and connection details would be published to both without affecting each other.
SubnetStatus defines the observed state of Subnet.
No description provided.
Conditions of the resource.
isesubnet1
apiVersion: network.azure.upbound.io/v1beta1
kind: Subnet
metadata:
annotations:
meta.upbound.io/example-id: logic/v1beta1/integrationserviceenvironment
upjet.upbound.io/manual-intervention: The resource is dependency of root resource.
labels:
testing.upbound.io/example-name: isesubnet1
name: isesubnet1
spec:
forProvider:
addressPrefixes:
- 10.0.1.0/26
delegation:
- name: integrationServiceEnvironments
serviceDelegation:
- name: Microsoft.Logic/integrationServiceEnvironments
resourceGroupNameSelector:
matchLabels:
testing.upbound.io/example-name: example
virtualNetworkNameSelector:
matchLabels:
testing.upbound.io/example-name: example
service
apiVersion: network.azure.upbound.io/v1beta1
kind: Subnet
metadata:
annotations:
upjet.upbound.io/manual-intervention: The dependent resource PrivateEndpoint
needs a manual patching and is thus skipped.
name: service
spec:
forProvider:
addressPrefixes:
- 10.0.1.0/24
enforcePrivateLinkServiceNetworkPolicies: true
resourceGroupNameRef:
name: loadbalancerrg
virtualNetworkNameRef:
name: example-vn-for-lb
providerConfigRef:
name: example
example
apiVersion: network.azure.upbound.io/v1beta1
kind: Subnet
metadata:
annotations:
meta.upbound.io/example-id: network/v1beta1/subnetnatgatewayassociation
labels:
testing.upbound.io/example-name: example
name: example
spec:
forProvider:
addressPrefixes:
- 10.0.2.0/24
resourceGroupNameSelector:
matchLabels:
testing.upbound.io/example-name: example
virtualNetworkNameSelector:
matchLabels:
testing.upbound.io/example-name: example
example-subnet-for-network-profile
apiVersion: network.azure.upbound.io/v1beta1
kind: Subnet
metadata:
name: example-subnet-for-network-profile
spec:
forProvider:
addressPrefixes:
- 10.0.1.0/24
resourceGroupNameRef:
name: networkprofile-rg
virtualNetworkNameRef:
name: example-vn-for-network-profile
providerConfigRef:
name: example
example
apiVersion: network.azure.upbound.io/v1beta1
kind: Subnet
metadata:
annotations:
crossplane.io/external-name: GatewaySubnet
meta.upbound.io/example-id: network/v1beta1/virtualnetworkgatewayconnection
upjet.upbound.io/manual-intervention: The resource is dependency of root resource.
labels:
testing.upbound.io/example-name: example
name: example
spec:
forProvider:
addressPrefixes:
- 10.0.1.0/24
resourceGroupNameSelector:
matchLabels:
testing.upbound.io/example-name: example
virtualNetworkNameSelector:
matchLabels:
testing.upbound.io/example-name: example
example-subnet-failover
apiVersion: network.azure.upbound.io/v1beta1
kind: Subnet
metadata:
annotations:
upjet.upbound.io/manual-intervention: Creation MSSQLManagedInstanceFailoverGroup
takes 4 hours, see
https://docs.microsoft.com/en-us/azure/azure-sql/managed-instance/management-operations-overview?view=azuresql#duration
name: example-subnet-failover
spec:
forProvider:
addressPrefixes:
- 10.1.0.0/24
delegation:
- name: managedinstancedelegation
serviceDelegation:
- actions:
- Microsoft.Network/virtualNetworks/subnets/join/action
- Microsoft.Network/virtualNetworks/subnets/prepareNetworkPolicies/action
- Microsoft.Network/virtualNetworks/subnets/unprepareNetworkPolicies/action
name: Microsoft.Sql/managedInstances
resourceGroupNameRef:
name: example-sql-rg-failover
virtualNetworkNameRef:
name: example-vn-failover
example-subnet
apiVersion: network.azure.upbound.io/v1beta1
kind: Subnet
metadata:
annotations:
upjet.upbound.io/manual-intervention: Creation MSSQLManagedInstance takes 4
hours, see
https://docs.microsoft.com/en-us/azure/azure-sql/managed-instance/management-operations-overview?view=azuresql#duration
name: example-subnet
spec:
forProvider:
addressPrefixes:
- 10.0.0.0/24
delegation:
- name: managedinstancedelegation
serviceDelegation:
- actions:
- Microsoft.Network/virtualNetworks/subnets/join/action
- Microsoft.Network/virtualNetworks/subnets/prepareNetworkPolicies/action
- Microsoft.Network/virtualNetworks/subnets/unprepareNetworkPolicies/action
name: Microsoft.Sql/managedInstances
resourceGroupNameRef:
name: example-sql-rg
virtualNetworkNameRef:
name: example-vn
example
apiVersion: network.azure.upbound.io/v1beta1
kind: Subnet
metadata:
annotations:
meta.upbound.io/example-id: sql/v1beta1/mssqlvirtualnetworkrule
labels:
testing.upbound.io/example-name: example
name: example
spec:
forProvider:
addressPrefixes:
- 10.7.29.0/29
resourceGroupNameSelector:
matchLabels:
testing.upbound.io/example-name: example-sql-vn-rule
serviceEndpoints:
- Microsoft.Sql
virtualNetworkNameSelector:
matchLabels:
testing.upbound.io/example-name: example
example-subnet-for-connection-monitor
apiVersion: network.azure.upbound.io/v1beta1
kind: Subnet
metadata:
name: example-subnet-for-connection-monitor
spec:
forProvider:
addressPrefixes:
- 10.0.0.0/24
resourceGroupNameRef:
name: norway-watcher-rg
virtualNetworkNameRef:
name: example-vn-for-connection-monitor
providerConfigRef:
name: example
example-subnet
apiVersion: network.azure.upbound.io/v1beta1
kind: Subnet
metadata:
annotations:
upjet.upbound.io/manual-intervention: This resource requires manual intervention.
name: example-subnet
spec:
forProvider:
addressPrefixes:
- 10.0.0.0/24
delegation:
- name: dbformysqldelegation
serviceDelegation:
- actions:
- Microsoft.Network/networkinterfaces/*
- Microsoft.Network/virtualNetworks/subnets/join/action
name: Microsoft.Netapp/volumes
resourceGroupNameRef:
name: example-rg-netapp
virtualNetworkNameRef:
name: example-vn
example-subnet
apiVersion: network.azure.upbound.io/v1beta1
kind: Subnet
metadata:
annotations:
crossplane.io/external-name: AzureFirewallSubnet
name: example-subnet
spec:
forProvider:
addressPrefixes:
- 10.0.1.0/24
resourceGroupNameRef:
name: example-fw-rg
virtualNetworkNameRef:
name: example-vn
providerConfigRef:
name: example
isesubnet3
apiVersion: network.azure.upbound.io/v1beta1
kind: Subnet
metadata:
annotations:
meta.upbound.io/example-id: logic/v1beta1/integrationserviceenvironment
upjet.upbound.io/manual-intervention: The resource is dependency of root resource.
labels:
testing.upbound.io/example-name: isesubnet3
name: isesubnet3
spec:
forProvider:
addressPrefixes:
- 10.0.1.128/26
resourceGroupNameSelector:
matchLabels:
testing.upbound.io/example-name: example
virtualNetworkNameSelector:
matchLabels:
testing.upbound.io/example-name: example
example-subnet-for-network-interface
apiVersion: network.azure.upbound.io/v1beta1
kind: Subnet
metadata:
name: example-subnet-for-network-interface
spec:
forProvider:
addressPrefixes:
- 10.0.1.0/24
resourceGroupNameRef:
name: norway-watcher-rg
virtualNetworkNameRef:
name: example-vn-for-network-int-test
providerConfigRef:
name: example
isesubnet2
apiVersion: network.azure.upbound.io/v1beta1
kind: Subnet
metadata:
annotations:
meta.upbound.io/example-id: logic/v1beta1/integrationserviceenvironment
upjet.upbound.io/manual-intervention: The resource is dependency of root resource.
labels:
testing.upbound.io/example-name: isesubnet2
name: isesubnet2
spec:
forProvider:
addressPrefixes:
- 10.0.1.64/26
resourceGroupNameSelector:
matchLabels:
testing.upbound.io/example-name: example
virtualNetworkNameSelector:
matchLabels:
testing.upbound.io/example-name: example
internal
apiVersion: network.azure.upbound.io/v1beta1
kind: Subnet
metadata:
labels:
testing.upbound.io/example-name: internal
name: internal
spec:
forProvider:
addressPrefixes:
- 10.7.29.0/29
resourceGroupNameSelector:
matchLabels:
testing.upbound.io/example-name: example-dbformariadb
serviceEndpoints:
- Microsoft.Sql
virtualNetworkNameSelector:
matchLabels:
testing.upbound.io/example-name: example
example
apiVersion: network.azure.upbound.io/v1beta1
kind: Subnet
metadata:
labels:
testing.upbound.io/example-name: example
name: example
spec:
forProvider:
addressPrefixes:
- 10.0.2.0/24
resourceGroupNameSelector:
matchLabels:
testing.upbound.io/example-name: example-network-interface
virtualNetworkNameSelector:
matchLabels:
testing.upbound.io/example-name: example
internal
apiVersion: network.azure.upbound.io/v1beta1
kind: Subnet
metadata:
labels:
testing.upbound.io/example-name: internal
name: internal
spec:
forProvider:
addressPrefixes:
- 10.7.29.0/29
resourceGroupNameSelector:
matchLabels:
testing.upbound.io/example-name: example-dbforpostgresql
serviceEndpoints:
- Microsoft.Sql
virtualNetworkNameSelector:
matchLabels:
testing.upbound.io/example-name: example
example-subnet-dbformysql
apiVersion: network.azure.upbound.io/v1beta1
kind: Subnet
metadata:
annotations:
upjet.upbound.io/manual-intervention: This resource requires manual intervention.
name: example-subnet-dbformysql
spec:
forProvider:
addressPrefixes:
- 10.0.0.0/24
delegation:
- name: dbformysqldelegation
serviceDelegation:
- actions:
- Microsoft.Network/virtualNetworks/subnets/join/action
name: Microsoft.DBforMySQL/flexibleServers
resourceGroupNameRef:
name: example-rg-dbformysql
virtualNetworkNameRef:
name: example-vn-dbformysql
isesubnet4
apiVersion: network.azure.upbound.io/v1beta1
kind: Subnet
metadata:
annotations:
meta.upbound.io/example-id: logic/v1beta1/integrationserviceenvironment
upjet.upbound.io/manual-intervention: The resource is dependency of root resource.
labels:
testing.upbound.io/example-name: isesubnet4
name: isesubnet4
spec:
forProvider:
addressPrefixes:
- 10.0.1.192/26
resourceGroupNameSelector:
matchLabels:
testing.upbound.io/example-name: example
virtualNetworkNameSelector:
matchLabels:
testing.upbound.io/example-name: example
example
apiVersion: network.azure.upbound.io/v1beta1
kind: Subnet
metadata:
annotations:
crossplane.io/external-name: GatewaySubnet
meta.upbound.io/example-id: network/v1beta1/virtualnetworkgateway
upjet.upbound.io/manual-intervention: This resource is a dependency of VirtualNetworkGateway.
labels:
testing.upbound.io/example-name: example
name: example
spec:
forProvider:
addressPrefixes:
- 10.0.1.0/24
resourceGroupNameSelector:
matchLabels:
testing.upbound.io/example-name: example
virtualNetworkNameSelector:
matchLabels:
testing.upbound.io/example-name: example
example-subnet
apiVersion: network.azure.upbound.io/v1beta1
kind: Subnet
metadata:
name: example-subnet
spec:
forProvider:
addressPrefixes:
- 10.0.0.0/24
resourceGroupNameRef:
name: example-app-gw-rg
virtualNetworkNameRef:
name: example-vn
example-subnet-for-network-interface
apiVersion: network.azure.upbound.io/v1beta1
kind: Subnet
metadata:
name: example-subnet-for-network-interface
spec:
forProvider:
addressPrefixes:
- 10.0.1.0/24
resourceGroupNameRef:
name: networkinterfacetestrg
virtualNetworkNameRef:
name: example-vn-for-network-int-test
providerConfigRef:
name: example
endpoint
apiVersion: network.azure.upbound.io/v1beta1
kind: Subnet
metadata:
annotations:
upjet.upbound.io/manual-intervention: The dependent resource PrivateEndpoint
needs a manual patching and is thus skipped.
name: endpoint
spec:
forProvider:
addressPrefixes:
- 10.0.2.0/24
enforcePrivateLinkEndpointNetworkPolicies: true
resourceGroupNameRef:
name: loadbalancerrg
virtualNetworkNameRef:
name: example-vn-for-lb
providerConfigRef:
name: example
© 2022 Upbound, Inc.
Discover the building blocksfor your internal cloud platform.