snet

Subnet

NetworkingAzure
General

General information about the service.

Description

Range of IP addresses in your VNet for organizing and securing resources.

Namespace and Entity

Microsoft.Network/virtualNetworks/subnets

Chat

Powered by AI

Talk to this service to learn more about it.

Suggested questions:

Naming

The conventions, rules, and restrictions for naming this service.

Naming Convention

snet-

Length

1-80

Valid Characters

Alphanumerics, hyphens, underscores.

Scope

resource group

Code

Deploy your infrastructure as code using your preferred tooling.

terraform
1resource "azurerm_subnet" "main" {
2 name = "snet-${var.workload}-${var.environment}"
3 resource_group_name = azurerm_resource_group.main.name
4 virtual_network_name = azurerm_virtual_network.main.name
5 address_prefixes = ["10.0.2.0/24"]
6
7 service_endpoints = [
8 "Microsoft.Storage",
9 "Microsoft.Sql",
10 "Microsoft.KeyVault"
11 ]
12
13 delegation {
14 name = "delegation"
15 service_delegation {
16 name = "Microsoft.Web/serverFarms"
17 actions = ["Microsoft.Network/virtualNetworks/subnets/action"]
18 }
19 }
20}
Utilities

Utilities to support app deployment or configuration.