azSubnet

Use the resource azSubnet to deploy an Azure Subnet for a Virtual Network.

Attributes

Attribute Type Mandatory Values Default Notes
Name String Yes
ResourceGroupName String Yes
VNetName String Yes
AddressPrefix String Yes
NetworkSecurityGroup String No
RouteTable String No
DelegateToService String No
Tag Object No
Lock Object No

Input by YAML

Object model for YAML deployment:

azSubnet:
  # Mandatory
  - Name: 'string'
    ResourceGroupName: 'string'
    VNetName: 'string'
    AddressPrefix: 'string'
    # Optional
    NetworkSecurityGroup: 'string'
    RouteTable: 'string'
    DelegateToService: 'string'
    Tag:
      'keyvalue-pairs'
    Lock:
      - Name: 'string'
        Level: 'string'                       # CanNotDelete, ReadOnly
        Notes: 'string'

Input by JSON

Object model for JSON deployment:

{
  "azSubnet": [
    {
      "Name": "string",
      "ResourceGroupName": "string",
      "VNetName": "string",
      "AddressPrefix": "string",
      "NetworkSecurityGroup": "string",
      "RouteTable": "string",
      "DelegateToService": "string",
      "Tag": {
        "key": "value"
      },
      "Lock": [
        {
          "Name": "string",
          "Level": "string",
          "Notes": "string"
        }
      ]
    }
  ]
}