Definitions for @turbot/azure-network

applicationSecurityGroup

{
"type": "object",
"properties": {
"name": {
"$ref": "#/definitions/asgName"
},
"id": {
"$ref": "#/definitions/asgId"
},
"type": {
"type": "string"
},
"location": {
"type": "string"
},
"etag": {
"type": "string"
},
"tags": {
"$ref": "azure#/definitions/tags"
},
"provisioningState": {
"$ref": "#/definitions/provisioningState"
},
"turbot": {
"type": "object",
"properties": {
"title": {
"$ref": "#/definitions/asgName"
},
"tags": {
"$ref": "azure#/definitions/tags"
},
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/asgAka"
}
},
"custom": {
"type": "object",
"properties": {
"createTimestamp": {
"$ref": "turbot#/definitions/isoTimestamp"
},
"azure": {
"$ref": "azure#/definitions/azureMetadata"
}
}
}
}
}
},
"additionalProperties": true,
"tests": [
{
"description": "Valid - All properties given",
"input": {
"name": "test001",
"id": "/subscriptions/3510ae4d-530b-497d-8f30-53b9616fc6c1/resourceGroups/test/providers/Microsoft.Network/applicationSecurityGroups/test001",
"type": "Microsoft.Network/applicationSecurityGroups",
"location": "westindia",
"provisioningState": "Succeeded",
"etag": "W/\"ef0d7210-b226-4509-8769-61947481a13b\"",
"turbot": {
"title": "test001",
"akas": [
"azure:///subscriptions/3510ae4d-530b-497d-8f30-53b9616fc6c1/resourceGroups/test/providers/Microsoft.Network/applicationSecurityGroups/test001"
],
"custom": {
"azure": {
"subscriptionId": "3510ae4d-530b-497d-8f30-53b9616fc6c1",
"regionName": "westindia",
"resourceGroupName": "test"
}
}
}
}
},
{
"description": "Invalid - security group name missing",
"input": {
"id": "/subscriptions/3510ae4d-530b-497d-8f30-53b9616fc6c1/resourceGroups/test/providers/Microsoft.Network/applicationSecurityGroups/test001",
"turbot": {
"title": "test001",
"akas": [
"azure:///subscriptions/3510ae4d-530b-497d-8f30-53b9616fc6c1/resourceGroups/test/providers/Microsoft.Network/applicationSecurityGroups/test001"
],
"custom": {
"azure": {
"subscriptionId": "3510ae4d-530b-497d-8f30-53b9616fc6c1",
"regionName": "westindia",
"resourceGroupName": "test"
}
}
}
}
}
],
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/applicationSecurityGroup",
"modUri": "tmod:@turbot/azure-network"
}
}

applicationSecurityGroupServiceNow

{
"defaultColumns": {
"region": {
"column": "enabled",
"path": "data.location"
},
"resource_group": {
"type": "string",
"size": 200,
"column": "enabled",
"path": "metadata.azure.resourceGroupName"
},
"subscription_id": {
"column": "enabled",
"label": "Subscription ID",
"path": "metadata.azure.subscriptionId"
},
"id": {
"column": "enabled",
"label": "ID"
},
"application_security_group_name": {
"column": "enabled",
"path": "data.name"
},
"provisioning_state": {
"column": "enabled"
},
"tags": {
"column": "enabled",
"type": "string",
"size": 1000
},
"type": {
"column": "enabled"
}
},
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/applicationSecurityGroupServiceNow",
"modUri": "tmod:@turbot/azure-network"
}
}

asgAka

{
"type": "string",
"pattern": "^azure:///subscriptions/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/resourceGroups/[A-Za-z0-9-_().]*[A-Za-z0-9-_()]/providers/Microsoft.Network/applicationSecurityGroups/[a-zA-Z0-9]{1}[a-zA-Z0-9_-]{0,80}[a-zA-Z0-9_]$",
"tests": [
{
"description": "base case",
"input": "azure:///subscriptions/3510ae4d-530b-497d-8f30-53b9616fc6c1/resourceGroups/test/providers/Microsoft.Network/applicationSecurityGroups/test"
},
{
"description": "invalid - subsription info missing",
"input": "providers/microsoft.network/applicationSecurityGroups/test",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/asgAka",
"modUri": "tmod:@turbot/azure-network"
}
}

asgId

{
"type": "string",
"pattern": "^/subscriptions/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/resourceGroups/[A-Za-z0-9_.-]{0,89}[A-Za-z0-9_-]/providers/Microsoft.Network/applicationSecurityGroups/([a-zA-Z0-9]{1}[a-zA-Z0-9_.-]{0,80}[a-zA-Z0-9_])$",
"tests": [
{
"description": "base",
"input": "/subscriptions/3510ae4d-530b-497d-8f30-53b9616fc6c1/resourceGroups/test/providers/Microsoft.Network/applicationSecurityGroups/test01"
},
{
"description": "invalid service name",
"input": "//subscriptions/3510ae4d-530b-497d-8f30-53b9616fc6c1/resourceGroups/test/providers/Microsoft.Network/applicationSecurityGroups/test",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/asgId",
"modUri": "tmod:@turbot/azure-network"
}
}

asgName

{
"type": "string",
"pattern": "^[a-zA-Z0-9]{1}[a-zA-Z0-9_.-]{0,80}[a-zA-Z0-9_]$",
"tests": [
{
"description": "base case",
"input": "test01"
},
{
"description": "invalid name",
"input": "_terss",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/asgName",
"modUri": "tmod:@turbot/azure-network"
}
}

expressRouteCircuits

{
"type": "object",
"properties": {
"name": {
"$ref": "#/definitions/expressRouteCircuitsName"
},
"id": {
"type": "string"
},
"serviceProviderProperties": {
"type": "object"
},
"circuitProvisioningState": {
"type": "string"
},
"allowClassicOperations": {
"type": "boolean"
},
"serviceKey": {
"type": "string"
},
"serviceProviderProvisioningState": {
"type": "string"
},
"etag": {
"type": "string"
},
"type": {
"type": "string"
},
"location": {
"type": "string"
},
"tags": {
"$ref": "azure#/definitions/tags"
},
"turbot": {
"type": "object",
"properties": {
"title": {
"$ref": "#/definitions/expressRouteCircuitsName"
},
"tags": {
"$ref": "azure#/definitions/tags"
},
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/expressRouteCircuitsAka"
}
},
"custom": {
"type": "object",
"properties": {
"createTimestamp": {
"$ref": "turbot#/definitions/isoTimestamp"
},
"azure": {
"$ref": "azure#/definitions/azureMetadata"
}
}
}
}
}
},
"additionalProperties": true,
"tests": [
{
"description": "all properties given",
"input": {
"name": "rs_demo_express_circuit",
"id": "/subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/expressRouteCircuits/testroutecircuit",
"etag": "W/\"69258eb9-cc64-4d30-913f-a968a7d87f75\"",
"type": "Microsoft.Network/expressRouteCircuits",
"location": "westus",
"provisioningState": "Succeeded",
"serviceProviderProperties": {},
"circuitProvisioningState": "Enabled",
"allowClassicOperations": false,
"serviceKey": "a1410692-0000-4ceb-b94a-b90b94d398d1",
"serviceProviderProvisioningState": "NotProvisioned",
"turbot": {
"title": "testroutecircuit",
"akas": [
"azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/expressRouteCircuits/testroutecircuit"
],
"custom": {
"createTimestamp": "2000-01-02T00:00:00.123Z",
"azure": {
"subscriptionId": "9e3548cf-17e2-4751-b87e-b72bdd2c77f7",
"regionName": "centralindia",
"resourceGroupName": "test"
}
}
}
}
},
{
"description": "Invalid - express route circuit name missing",
"input": {
"id": "/subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/expressRouteCircuits/",
"turbot": {
"title": "",
"akas": [
"azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/expressRouteCircuits/"
],
"custom": {
"azure": {
"subscriptionId": "9e3548cf-17e2-4751-b87e-b72bdd2c77f7",
"regionName": "centralindia",
"resourceGroupName": "test"
}
}
}
},
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/expressRouteCircuits",
"modUri": "tmod:@turbot/azure-network"
}
}

expressRouteCircuitsAka

{
"type": "string",
"pattern": "^azure:///subscriptions/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/resourceGroups/[A-Za-z0-9_.-]{0,89}[A-Za-z0-9_-]/providers/Microsoft.Network/expressRouteCircuits/[A-Za-z0-9][A-Za-z0-9_.-]{0,78}[A-Za-z0-9_]$",
"tests": [
{
"description": "base",
"input": "azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/expressRouteCircuits/testroutecircuit"
},
{
"description": "invalid service ID",
"input": "azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.MySql/expressRouteCircuits/test01",
"expected": false
},
{
"description": "invalid subscription id",
"input": "azure:///subscriptions/9e3548cf-17e2-c77f700/resourceGroups/test/providers/Microsoft.Network/expressRouteCircuits/testroutecircuit",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/expressRouteCircuitsAka",
"modUri": "tmod:@turbot/azure-network"
}
}

expressRouteCircuitsName

{
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]{0,78}[A-Za-z0-9_]$",
"tests": [
{
"input": "foo"
},
{
"input": "democircuitrs"
},
{
"description": "invalid - too short",
"input": "",
"expected": false
},
{
"description": "invalid - too long",
"input": "democircuitsexpressroutesdemocircuitsexpressroutesdemocircuitsexpressroutesdemocircuitsexpressroutes",
"expected": false
},
{
"description": "invalid - can't end with '$'",
"input": "Demo$",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/expressRouteCircuitsName",
"modUri": "tmod:@turbot/azure-network"
}
}

expressRouteCircuitsServiceNow

{
"defaultColumns": {
"region": {
"column": "enabled",
"path": "data.location"
},
"resource_group": {
"type": "string",
"size": 200,
"column": "enabled",
"path": "metadata.azure.resourceGroupName"
},
"subscription_id": {
"column": "enabled",
"label": "Subscription ID",
"path": "metadata.azure.subscriptionId"
},
"id": {
"column": "enabled",
"label": "ID"
},
"allow_classic_operations": {
"column": "enabled",
"type": "boolean"
},
"circuit_provisioning_state": {
"column": "enabled"
},
"express_route_circuits_name": {
"column": "enabled",
"path": "data.name"
},
"peerings": {
"column": "enabled",
"type": "string",
"size": 1000
},
"provisioning_state": {
"column": "enabled"
},
"service_provider_properties": {
"column": "enabled",
"path": "data.serviceProviderProperties",
"type": "string",
"size": 1000
},
"service_provider_provisioning_state": {
"column": "enabled"
},
"sku_family": {
"column": "enabled",
"path": "data.sku.family",
"label": "SKU Family"
},
"sku_name": {
"column": "enabled",
"path": "data.sku.name",
"label": "SKU Name"
},
"sku_tier": {
"column": "enabled",
"path": "data.sku.tier",
"label": "SKU Tier"
},
"tags": {
"column": "enabled",
"type": "string",
"size": 1000
}
},
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/expressRouteCircuitsServiceNow",
"modUri": "tmod:@turbot/azure-network"
}
}

network

{
"allOf": [
{
"$ref": "turbot#/definitions/service"
},
{
"type": "object",
"properties": {
"name": {
"const": "Network"
},
"namespace": {
"const": "Microsoft.Network"
},
"registrationState": {
"type": "string"
},
"turbot": {
"type": "object",
"properties": {
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/networkAka"
}
},
"title": {
"const": "Network"
},
"custom": {
"type": "object",
"properties": {
"azure": {
"$ref": "azure#/definitions/azureMetadata"
}
}
}
}
}
},
"additionalProperties": true,
"tests": [
{
"description": "All details provided",
"input": {
"name": "Network",
"turbot": {
"akas": [
"azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/providers/Microsoft.Network/services/network"
],
"title": "Network",
"custom": {
"azure": {
"subscriptionId": "9e3548cf-17e2-4751-b87e-b72bdd2c77f7"
}
}
}
}
},
{
"description": "Invalid - Name is not as declared",
"input": {
"name": "mysql",
"turbot": {
"akas": [
"azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/providers/Microsoft.Network/services/network"
],
"title": "Network",
"custom": {
"azure": {
"subscriptionId": "9e3548cf-17e2-4751-b87e-b72bdd2c77f7"
}
}
}
}
},
{
"description": "Invalid - Service name missing",
"input": {
"turbot": {
"akas": [
"azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/providers/Microsoft.Network/services/network"
]
},
"title": "Network",
"custom": {
"azure": {
"subscriptionId": "9e3548cf-17e2-4751-b87e-b72bdd2c77f7"
}
}
}
}
]
}
],
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/network",
"modUri": "tmod:@turbot/azure-network"
}
}

networkAka

{
"type": "string",
"pattern": "^azure:///subscriptions/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/providers/Microsoft.Network/services/network$",
"tests": [
{
"description": "base",
"input": "azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/providers/Microsoft.Network/services/network"
},
{
"description": "invalid service name",
"input": "azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/providers/Microsoft.MySql/services/network",
"expected": false
},
{
"description": "invalid subscription id",
"input": "azure:///subscriptions/9e3548cf-17e2-4751-12345-b72bdd2c77f7/providers/Microsoft.Network/services/network",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/networkAka",
"modUri": "tmod:@turbot/azure-network"
}
}

networkInterface

{
"type": "object",
"properties": {
"name": {
"$ref": "#/definitions/networkInterfaceName"
},
"id": {
"$ref": "#/definitions/networkInterfaceId"
},
"type": {
"type": "string"
},
"location": {
"type": "string"
},
"ipConfigurations": {
"type": "array"
},
"tapConfigurations": {
"type": "array"
},
"dnsSettings": {
"type": "object"
},
"enableAcceleratedNetworking": {
"type": "boolean"
},
"enableIPForwarding": {
"type": "boolean"
},
"hostedWorkloads": {
"type": "array"
},
"resourceGuid": {
"type": "string"
},
"provisioningState": {
"type": "string"
},
"etag": {
"type": "string"
},
"tags": {
"$ref": "azure#/definitions/tags"
},
"turbot": {
"type": "object",
"properties": {
"title": {
"$ref": "#/definitions/nsgName"
},
"tags": {
"$ref": "azure#/definitions/tags"
},
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/networkInterfaceAka"
}
},
"custom": {
"type": "object",
"properties": {
"createTimestamp": {
"$ref": "turbot#/definitions/isoTimestamp"
},
"azure": {
"$ref": "azure#/definitions/azureMetadata"
}
}
}
}
}
},
"additionalProperties": true,
"tests": [
{
"description": "Valid - All properties given",
"input": {
"name": "test0001",
"id": "/subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/networkInterfaces/test0001",
"type": "Microsoft.Network/networkInterfaces",
"location": "eastus",
"ipConfigurations": [
{
"id": "/subscriptions/3510ae4d-530b-497d-8f30-53b9616fc6c1/resourceGroups/test/providers/Microsoft.Network/networkInterfaces/pratiksvirtual/ipConfigurations/ipconfig1",
"privateIPAddress": "172.16.0.4",
"privateIPAllocationMethod": "Dynamic",
"privateIPAddressVersion": "IPv4",
"subnet": {
"id": "/subscriptions/3510ae4d-530b-497d-8f30-53b9616fc6c1/resourceGroups/test/providers/Microsoft.Network/virtualNetworks/pratiksvirtual/subnets/default"
},
"primary": true,
"provisioningState": "Succeeded",
"name": "ipconfig1",
"etag": "W/\"6f865a1a-2c2c-45a7-9219-59d498439594\"",
"type": "Microsoft.Network/networkInterfaces/ipConfigurations"
}
],
"tapConfigurations": [],
"dnsSettings": {
"dnsServers": [],
"appliedDnsServers": [],
"internalDomainNameSuffix": "0qhkcrbxar2ednw3vwdjmbkw4f.bx.internal.cloudapp.net"
},
"enableAcceleratedNetworking": false,
"enableIPForwarding": false,
"hostedWorkloads": [],
"resourceGuid": "cea964cf-5fca-4d97-8bc1-7ca62e9a42ca",
"provisioningState": "Succeeded",
"etag": "W/\"6f865a1a-2c2c-45a7-9219-59d498439594\"",
"turbot": {
"title": "test0001",
"akas": [
"azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/networkInterfaces/test0001"
],
"custom": {
"azure": {
"subscriptionId": "9e3548cf-17e2-4751-b87e-b72bdd2c77f7",
"regionName": "centralindia",
"resourceGroupName": "test"
}
}
}
}
},
{
"description": "Invalid - security group name missing",
"input": {
"id": "/subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/networkInterfaces/test0001",
"turbot": {
"title": "test0001",
"akas": [
"azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/networkInterfaces/test0001"
],
"custom": {
"azure": {
"subscriptionId": "9e3548cf-17e2-4751-b87e-b72bdd2c77f7",
"regionName": "centralindia",
"resourceGroupName": "test"
}
}
}
}
}
],
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/networkInterface",
"modUri": "tmod:@turbot/azure-network"
}
}

networkInterfaceAka

{
"type": "string",
"pattern": "^azure:///subscriptions/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/resourceGroups/[A-Za-z0-9-_().]*[A-Za-z0-9-_()]/providers/Microsoft.Network/networkInterfaces/[a-zA-Z0-9][a-zA-Z0-9-_.]{0,78}[A-Za-z0-9_]$",
"tests": [
{
"description": "base case",
"input": "azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/networkInterfaces/test"
},
{
"description": "invalid - subsription info missing",
"input": "providers/microsoft.network/networkInterfaces/test",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/networkInterfaceAka",
"modUri": "tmod:@turbot/azure-network"
}
}

networkInterfaceId

{
"type": "string",
"pattern": "^/subscriptions/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/resourceGroups/[A-Za-z0-9_.-]{0,89}[A-Za-z0-9_-]/providers/Microsoft.Network/networkInterfaces/[a-zA-Z0-9][a-zA-Z0-9-_.]{0,78}[a-zA-Z0-9_]$",
"tests": [
{
"description": "base",
"input": "/subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/networkInterfaces/test01"
},
{
"description": "invalid service name",
"input": "//subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/networkInterfaces/test",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/networkInterfaceId",
"modUri": "tmod:@turbot/azure-network"
}
}

networkInterfaceName

{
"type": "string",
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{0,78}[a-zA-Z0-9_]$",
"tests": [
{
"description": "base case",
"input": "test01"
},
{
"description": "invalid - must not start with underscore",
"input": "_terss",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/networkInterfaceName",
"modUri": "tmod:@turbot/azure-network"
}
}

networkInterfaceServiceNow

{
"defaultColumns": {
"region": {
"column": "enabled",
"path": "data.location"
},
"resource_group": {
"type": "string",
"size": 200,
"column": "enabled",
"path": "metadata.azure.resourceGroupName"
},
"subscription_id": {
"column": "enabled",
"label": "Subscription ID",
"path": "metadata.azure.subscriptionId"
},
"dns_servers": {
"column": "enabled",
"path": "data.dnsSettings.dnsServers",
"label": "DNS Servers",
"type": "string",
"size": 1000
},
"enable_accelerated_networking": {
"column": "enabled",
"type": "boolean"
},
"enable_ip_forwarding": {
"column": "enabled",
"path": "data.enableIPForwarding",
"label": "Enable IP Forwarding",
"type": "boolean"
},
"id": {
"column": "enabled",
"label": "ID"
},
"ip_configurations": {
"column": "enabled",
"path": "data.ipConfigurations",
"label": "IP Configurations",
"type": "string",
"size": 1000
},
"network_interface_mac_address": {
"column": "enabled",
"label": "Network Interface MAC Address"
},
"network_interface_name": {
"column": "enabled",
"path": "data.name"
},
"provisioning_state": {
"column": "enabled"
},
"tags": {
"column": "enabled",
"type": "string",
"size": 1000
},
"tap_configurations": {
"column": "enabled",
"type": "string",
"size": 1000
},
"type": {
"column": "enabled"
},
"virtual_machine_id": {
"column": "enabled",
"path": "data.virtualMachine.id",
"label": "Virtual Machine ID"
}
},
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/networkInterfaceServiceNow",
"modUri": "tmod:@turbot/azure-network"
}
}

networkSecurityGroup

{
"type": "object",
"properties": {
"name": {
"$ref": "#/definitions/nsgName"
},
"id": {
"$ref": "#/definitions/nsgId"
},
"tags": {
"$ref": "azure#/definitions/tags"
},
"sourceAddressPrefixes": {
"$ref": "#/definitions/nsgSourceAddressPrefixes"
},
"sourceAddressPrefix": {
"$ref": "#/definitions/nsgSourceAddressPrefix"
},
"destinationAddressPrefix": {
"$ref": "#/definitions/nsgDestinationAddressPrefix"
},
"destinationAddressPrefixes": {
"$ref": "#/definitions/nsgDestinationAddressPrefixes"
},
"securityRules": {
"type": "array"
},
"defaultSecurityRules": {
"type": "array"
},
"resourceGuid": {
"type": "string"
},
"provisioningState": {
"type": "string"
},
"etag": {
"type": "string"
},
"location": {
"type": "string"
},
"turbot": {
"type": "object",
"properties": {
"title": {
"$ref": "#/definitions/nsgName"
},
"tags": {
"$ref": "azure#/definitions/tags"
},
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/nsgAka"
}
},
"custom": {
"type": "object",
"properties": {
"createTimestamp": {
"$ref": "turbot#/definitions/isoTimestamp"
},
"azure": {
"$ref": "azure#/definitions/azureMetadata"
}
}
}
}
}
},
"additionalProperties": true,
"tests": [
{
"description": "Valid - All properties given",
"input": {
"name": "test0001",
"id": "/subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/networkSecurityGroups/test0001",
"securityRules": [],
"location": "centralindia",
"provisioningState": "Succeeded",
"resourceGuid": "c1f35714-70d0-403a-aeb6-ed3b0816e39f",
"etag": "W/\"58e9678a-385e-49c6-abf1-93fbbfc10211\"",
"defaultSecurityRules": [
{
"id": "/subscriptions/3510ae4d-530b-497d-8f30-53b9616fc6c1/resourceGroups/test/providers/Microsoft.Network/networkSecurityGroups/test01/defaultSecurityRules/AllowVnetInBound",
"description": "Allow inbound traffic from all VMs in VNET",
"protocol": "*",
"sourcePortRange": "*",
"destinationPortRange": "*",
"sourceAddressPrefix": "VirtualNetwork",
"sourceAddressPrefixes": [],
"destinationAddressPrefix": "VirtualNetwork",
"destinationAddressPrefixes": [],
"sourcePortRanges": [],
"destinationPortRanges": [],
"access": "Allow",
"priority": 65000,
"direction": "Inbound",
"provisioningState": "Succeeded",
"name": "AllowVnetInBound",
"etag": "W/\"58e9678a-385e-49c6-abf1-93fbbfc10211\"",
"type": "Microsoft.Network/networkSecurityGroups/defaultSecurityRules"
}
],
"turbot": {
"title": "test0001",
"akas": [
"azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/networkSecurityGroups/test0001"
],
"custom": {
"azure": {
"subscriptionId": "9e3548cf-17e2-4751-b87e-b72bdd2c77f7",
"regionName": "centralindia",
"resourceGroupName": "test"
}
}
}
}
},
{
"description": "Invalid - security group name missing",
"input": {
"id": "/subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/networkSecurityGroups/test0001",
"turbot": {
"title": "test0001",
"akas": [
"azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/networkSecurityGroups/test0001"
],
"custom": {
"azure": {
"subscriptionId": "9e3548cf-17e2-4751-b87e-b72bdd2c77f7",
"regionName": "centralindia",
"resourceGroupName": "test"
}
}
}
}
}
],
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/networkSecurityGroup",
"modUri": "tmod:@turbot/azure-network"
}
}

networkSecurityGroupServiceNow

{
"defaultColumns": {
"default_security_rules": {
"column": "enabled",
"type": "string",
"size": 1000
},
"id": {
"column": "enabled",
"label": "ID"
},
"network_security_group_name": {
"column": "enabled",
"path": "data.name"
},
"network_interfaces": {
"column": "enabled",
"type": "string",
"size": 1000
},
"provisioning_state": {
"column": "enabled"
},
"region": {
"column": "enabled",
"path": "data.location"
},
"resource_group": {
"type": "string",
"size": 200,
"column": "enabled",
"path": "metadata.azure.resourceGroupName"
},
"resource_guid": {
"column": "enabled",
"label": "Resource GUID"
},
"security_rules": {
"column": "enabled",
"type": "string",
"size": 1000
},
"subnets": {
"column": "enabled",
"type": "string",
"size": 1000
},
"subscription_id": {
"column": "enabled",
"label": "Subscription ID",
"path": "metadata.azure.subscriptionId"
},
"tags": {
"column": "enabled",
"label": "Tags",
"type": "string",
"size": 1000
},
"type": {
"column": "enabled"
}
},
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/networkSecurityGroupServiceNow",
"modUri": "tmod:@turbot/azure-network"
}
}

nsgAka

{
"type": "string",
"pattern": "^azure:///subscriptions/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/resourceGroups/[A-Za-z0-9-_().]*[A-Za-z0-9-_()]/providers/Microsoft.Network/networkSecurityGroups/[a-zA-Z0-9]{1}[a-zA-Z0-9_-]{0,80}[a-zA-Z0-9_]$",
"tests": [
{
"description": "base case",
"input": "azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/networkSecurityGroups/test"
},
{
"description": "invalid - subsription info missing",
"input": "providers/microsoft.network/networkSecurityGroups/test",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/nsgAka",
"modUri": "tmod:@turbot/azure-network"
}
}

nsgDestinationAddressPrefix

{
"type": "string",
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/nsgDestinationAddressPrefix",
"modUri": "tmod:@turbot/azure-network"
}
}

nsgDestinationAddressPrefixes

{
"type": "array",
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/nsgDestinationAddressPrefixes",
"modUri": "tmod:@turbot/azure-network"
}
}

nsgId

{
"type": "string",
"pattern": "^/subscriptions/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/resourceGroups/[A-Za-z0-9_.-]{0,89}[A-Za-z0-9_-]/providers/Microsoft.Network/networkSecurityGroups/([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-]{0,61}[A-Za-z0-9])$",
"tests": [
{
"description": "base",
"input": "/subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/networkSecurityGroups/test01"
},
{
"description": "invalid service name",
"input": "//subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/networkSecurityGroups/test",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/nsgId",
"modUri": "tmod:@turbot/azure-network"
}
}

nsgName

{
"type": "string",
"pattern": "^[a-zA-Z0-9]{1}[a-zA-Z0-9_.-]{0,80}[a-zA-Z0-9_]$",
"tests": [
{
"description": "base case",
"input": "test01"
},
{
"description": "invalid name",
"input": "_terss",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/nsgName",
"modUri": "tmod:@turbot/azure-network"
}
}

nsgSourceAddressPrefix

{
"type": "array",
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/nsgSourceAddressPrefix",
"modUri": "tmod:@turbot/azure-network"
}
}

nsgSourceAddressPrefixes

{
"type": "array",
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/nsgSourceAddressPrefixes",
"modUri": "tmod:@turbot/azure-network"
}
}

privateDnsZones

{
"type": "object",
"properties": {
"name": {
"$ref": "#/definitions/privateDnsZonesName"
},
"id": {
"$ref": "#/definitions/privateDnsZonesId"
},
"type": {
"type": "string"
},
"location": {
"type": "string"
},
"maxNumberOfRecordSets": {
"type": "integer"
},
"maxNumberOfVirtualNetworkLinks": {
"type": "integer"
},
"maxNumberOfVirtualNetworkLinksWithRegistration": {
"type": "integer"
},
"numberOfRecordSets": {
"type": "integer"
},
"numberOfVirtualNetworkLinks": {
"type": "integer"
},
"numberOfVirtualNetworkLinksWithRegistration": {
"type": "integer"
},
"provisioningState": {
"type": "string"
},
"etag": {
"type": "string"
},
"tags": {
"$ref": "azure#/definitions/tags"
},
"turbot": {
"type": "object",
"properties": {
"title": {
"$ref": "#/definitions/privateDnsZonesName"
},
"tags": {
"$ref": "azure#/definitions/tags"
},
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/privateDnsZonesAka"
}
},
"custom": {
"type": "object",
"properties": {
"createTimestamp": {
"$ref": "turbot#/definitions/isoTimestamp"
},
"azure": {
"$ref": "azure#/definitions/azureMetadata"
}
}
}
}
}
},
"additionalProperties": true,
"tests": [
{
"description": "Valid - All properties given",
"input": {
"name": "privatezone1.com",
"id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com",
"type": "Microsoft.Network/privateDnsZones",
"location": "global",
"provisioningState": "Succeeded",
"etag": "W/\"6f865a1a-2c2c-45a7-9219-59d498439594\"",
"turbot": {
"title": "privatezone1.com",
"akas": [
"azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/privateDnsZones/privatezone1.com"
],
"custom": {
"azure": {
"subscriptionId": "9e3548cf-17e2-4751-b87e-b72bdd2c77f7",
"resourceGroupName": "test"
}
}
}
}
},
{
"description": "Invalid - private dns name missing",
"input": {
"id": "/subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/privateDnsZones/",
"turbot": {
"title": "privatezone1.com",
"akas": [
"azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/privateDnsZones/privatezone1.com"
],
"custom": {
"azure": {
"subscriptionId": "9e3548cf-17e2-4751-b87e-b72bdd2c77f7",
"resourceGroupName": "test"
}
}
}
}
}
],
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/privateDnsZones",
"modUri": "tmod:@turbot/azure-network"
}
}

privateDnsZonesAka

{
"type": "string",
"pattern": "^azure:///subscriptions/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/resourceGroups/[A-Za-z0-9-_().]*[A-Za-z0-9-_()]/providers/Microsoft.Network/privateDnsZones/[a-zA-Z_.-]{1,64}$",
"tests": [
{
"description": "base case",
"input": "azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/privateDnsZones/test.com"
},
{
"description": "invalid - subscription ID missing",
"input": "providers/microsoft.network/privateDnsZoness/test.com",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/privateDnsZonesAka",
"modUri": "tmod:@turbot/azure-network"
}
}

privateDnsZonesId

{
"type": "string",
"pattern": "^/subscriptions/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/resourceGroups/[A-Za-z0-9_.-]{0,89}[A-Za-z0-9_-]/providers/Microsoft.Network/privateDnsZones/[a-zA-Z_.-]{1,64}$",
"tests": [
{
"description": "base",
"input": "/subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/privateDnsZones/test01.com"
},
{
"description": "invalid service name",
"input": "//subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/privateDnsZoness/test",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/privateDnsZonesId",
"modUri": "tmod:@turbot/azure-network"
}
}

privateDnsZonesName

{
"type": "string",
"pattern": "^[a-zA-Z_.-]{1,64}$",
"tests": [
{
"description": "base case",
"input": "demo.co.in"
},
{
"description": "invalid - cannot contain space",
"input": "tess .com",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/privateDnsZonesName",
"modUri": "tmod:@turbot/azure-network"
}
}

privateDnsZonesServiceNow

{
"defaultColumns": {
"region": {
"column": "enabled",
"path": "data.location"
},
"resource_group": {
"type": "string",
"size": 200,
"column": "enabled",
"path": "metadata.azure.resourceGroupName"
},
"subscription_id": {
"column": "enabled",
"label": "Subscription ID",
"path": "metadata.azure.subscriptionId"
},
"id": {
"column": "enabled",
"label": "ID"
},
"max_number_of_record_sets": {
"column": "enabled"
},
"max_number_of_virtual_network_links": {
"column": "enabled"
},
"private_dns_zones_name": {
"column": "enabled",
"path": "data.name"
},
"number_of_record_sets": {
"column": "enabled"
},
"number_of_virtual_network_links": {
"column": "enabled"
},
"provisioning_state": {
"column": "enabled"
},
"tags": {
"column": "enabled",
"type": "string",
"size": 1000
},
"type": {
"column": "enabled"
}
},
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/privateDnsZonesServiceNow",
"modUri": "tmod:@turbot/azure-network"
}
}

privateEndpoints

{
"type": "object",
"properties": {
"name": {
"$ref": "#/definitions/privateEndpointsName"
},
"id": {
"$ref": "#/definitions/privateEndpointsId"
},
"provisioningState": {
"type": "string"
},
"privateLinkServiceConnections": {
"type": "array"
},
"type": {
"type": "string"
},
"location": {
"type": "string"
},
"etag": {
"type": "string"
},
"tags": {
"$ref": "azure#/definitions/tags"
},
"turbot": {
"type": "object",
"properties": {
"title": {
"$ref": "#/definitions/privateEndpointsName"
},
"tags": {
"$ref": "azure#/definitions/tags"
},
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/privateEndpointsAka"
}
},
"custom": {
"type": "object",
"properties": {
"createTimestamp": {
"$ref": "turbot#/definitions/isoTimestamp"
},
"azure": {
"$ref": "azure#/definitions/azureMetadata"
}
}
}
}
}
},
"additionalProperties": true,
"tests": [
{
"description": "Valid - All properties given",
"input": {
"name": "test0001",
"id": "/subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/privateEndpoints/test0001",
"type": "Microsoft.Network/privateEndpoints",
"location": "eastus",
"etag": "W/\"6f865a1a-2c2c-45a7-9219-59d498439594\"",
"turbot": {
"title": "test0001",
"akas": [
"azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/privateEndpoints/test0001"
],
"custom": {
"azure": {
"subscriptionId": "9e3548cf-17e2-4751-b87e-b72bdd2c77f7",
"regionName": "centralindia",
"resourceGroupName": "test"
}
}
}
}
}
],
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/privateEndpoints",
"modUri": "tmod:@turbot/azure-network"
}
}

privateEndpointsAka

{
"type": "string",
"pattern": "^azure:///subscriptions/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/resourceGroups/[A-Za-z0-9-_().]*[A-Za-z0-9-_()]/providers/Microsoft.Network/privateEndpoints/[a-zA-Z0-9][a-zA-Z0-9-_.]{0,78}[A-Za-z0-9_]$",
"tests": [
{
"description": "base case",
"input": "azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/privateEndpoints/test"
},
{
"description": "invalid - subsription info missing",
"input": "providers/microsoft.network/privateEndpoints/test",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/privateEndpointsAka",
"modUri": "tmod:@turbot/azure-network"
}
}

privateEndpointsId

{
"type": "string",
"pattern": "^/subscriptions/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/resourceGroups/[A-Za-z0-9_.-]{0,89}[A-Za-z0-9_-]/providers/Microsoft.Network/privateEndpoints/[a-zA-Z0-9][a-zA-Z0-9-_.]{0,78}[a-zA-Z0-9_]$",
"tests": [
{
"description": "base",
"input": "/subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/privateEndpoints/test01"
},
{
"description": "invalid service name",
"input": "//subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/privateEndpoints/test",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/privateEndpointsId",
"modUri": "tmod:@turbot/azure-network"
}
}

privateEndpointsName

{
"type": "string",
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{0,78}[a-zA-Z0-9_]$",
"tests": [
{
"description": "base case",
"input": "test01"
},
{
"description": "invalid - must not start with underscore",
"input": "_terss",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/privateEndpointsName",
"modUri": "tmod:@turbot/azure-network"
}
}

privateEndpointsServiceNow

{
"defaultColumns": {
"custom_dns_configs": {
"column": "enabled",
"label": "Custom DNS Configs",
"type": "string",
"size": 1000,
"path": "data.customDnsConfigs"
},
"custom_network_interface_name": {
"type": "string",
"label": "Custom Network Interface Name",
"size": 200,
"column": "enabled",
"path": "data.customNetworkInterfaceName"
},
"region": {
"column": "enabled",
"path": "metadata.azure.regionName"
},
"resource_group": {
"type": "string",
"size": 200,
"column": "enabled",
"path": "metadata.azure.resourceGroupName"
},
"subscription_id": {
"column": "enabled",
"label": "Subscription ID",
"path": "metadata.azure.subscriptionId"
},
"manual_private_link_service_connections": {
"column": "enabled",
"label": "Manual Private Link Service Connections",
"type": "string",
"size": 1000,
"path": "data.manualPrivateLinkServiceConnections"
},
"id": {
"column": "enabled",
"label": "ID",
"path": "data.id"
},
"private_endpoint_name": {
"column": "enabled",
"path": "data.name"
},
"network_interfaces": {
"type": "string",
"size": 1000,
"label": "Network Interfaces",
"column": "enabled",
"path": "data.networkInterfaces"
},
"etag": {
"column": "enabled",
"label": "ETag",
"path": "data.etag"
},
"provisioning_state": {
"column": "enabled",
"label": "Provisioning State",
"path": "data.provisioningState"
},
"subnets": {
"column": "enabled",
"type": "string",
"size": 1000
},
"tags": {
"column": "enabled",
"label": "Tags",
"type": "string",
"size": 1000
},
"type": {
"column": "enabled",
"label": "Type"
}
},
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/privateEndpointsServiceNow",
"modUri": "tmod:@turbot/azure-network"
}
}

provisioningGatewayState

{
"type": "string",
"enum": [
"Deleting",
"Failed",
"Succeeded",
"Updating"
],
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/provisioningGatewayState",
"modUri": "tmod:@turbot/azure-network"
}
}

provisioningState

{
"type": "string",
"enum": [
"Activating",
"Succeeded"
],
"tests": [
{
"input": "Activating"
},
{
"input": "Succeeded"
},
{
"description": "invalid - Activatingsss",
"input": "Activatingsss",
"expected": false
},
{
"description": "invalid - Succeededsscasa",
"input": "Succeededsscasa",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/provisioningState",
"modUri": "tmod:@turbot/azure-network"
}
}

publicIpAddress

{
"type": "object",
"properties": {
"name": {
"$ref": "#/definitions/publicIpAddressName"
},
"id": {
"$ref": "#/definitions/publicIpAddressId"
},
"tags": {
"$ref": "azure#/definitions/tags"
},
"location": {
"type": "string"
},
"sku": {
"type": "object"
},
"publicIPAllocationMethod": {
"type": "string"
},
"publicIPAddressVersion": {
"type": "string"
},
"ipTags": {
"type": "array"
},
"ipAddress": {
"type": "string"
},
"idleTimeoutInMinutes": {
"type": "number"
},
"resourceGuid": {
"type": "string"
},
"provisioningState": {
"type": "string"
},
"turbot": {
"type": "object",
"properties": {
"title": {
"$ref": "#/definitions/publicIpAddressName"
},
"tags": {
"$ref": "azure#/definitions/tags"
},
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/publicIpAddressAka"
}
},
"custom": {
"type": "object",
"properties": {
"createTimestamp": {
"$ref": "turbot#/definitions/isoTimestamp"
},
"azure": {
"$ref": "azure#/definitions/azureMetadata"
}
}
}
}
}
},
"additionalProperties": true,
"tests": [
{
"description": "Valid - All properties given",
"input": {
"name": "test0001",
"id": "/subscriptions/3510ae4d-530b-497d-8f30-53b9616fc6c1/resourceGroups/test/providers/Microsoft.Network/publicIPAddresses/test0001",
"location": "eastasia",
"sku": {
"name": "Standard",
"tier": "Regional"
},
"publicIPAllocationMethod": "Static",
"publicIPAddressVersion": "IPv4",
"ipTags": [],
"ipAddress": "20.189.74.94",
"idleTimeoutInMinutes": 6,
"resourceGuid": "1dfb5854-2ea3-447b-82e8-1921f2b529bc",
"provisioningState": "Succeeded",
"etag": "W/\"994fa92c-067c-4ad5-b247-5a9924be5d23\"",
"turbot": {
"title": "test0001",
"akas": [
"azure:///subscriptions/3510ae4d-530b-497d-8f30-53b9616fc6c1/resourceGroups/test/providers/Microsoft.Network/publicIPAddresses/test0001"
],
"custom": {
"azure": {
"subscriptionId": "3510ae4d-530b-497d-8f30-53b9616fc6c1",
"regionName": "eastasia",
"resourceGroupName": "test"
}
}
}
}
},
{
"description": "Invalid - security group name missing",
"input": {
"id": "/subscriptions/3510ae4d-530b-497d-8f30-53b9616fc6c1/resourceGroups/test/providers/Microsoft.Network/publicIPAddresses/test0001",
"turbot": {
"title": "test0001",
"akas": [
"azure:///subscriptions/3510ae4d-530b-497d-8f30-53b9616fc6c1/resourceGroups/test/providers/Microsoft.Network/publicIPAddresses/test0001"
],
"custom": {
"azure": {
"subscriptionId": "3510ae4d-530b-497d-8f30-53b9616fc6c1",
"regionName": "eastasia",
"resourceGroupName": "test"
}
}
}
}
}
],
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/publicIpAddress",
"modUri": "tmod:@turbot/azure-network"
}
}

publicIpAddressAka

{
"type": "string",
"pattern": "^azure:///subscriptions/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/resourceGroups/[A-Za-z0-9-_().]*[A-Za-z0-9-_()]/providers/Microsoft.Network/publicIPAddresses/[A-Za-z0-9][A-Za-z0-9-_.]{0,78}[A-Za-z0-9_]$",
"tests": [
{
"description": "base case",
"input": "azure:///subscriptions/3510ae4d-530b-497d-8f30-53b9616fc6c1/resourceGroups/test/providers/Microsoft.Network/publicIPAddresses/test"
},
{
"description": "invalid - subsription info missing",
"input": "providers/microsoft.network/networkSecurityGroups/test",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/publicIpAddressAka",
"modUri": "tmod:@turbot/azure-network"
}
}

publicIpAddressId

{
"type": "string",
"pattern": "^/subscriptions/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/resourceGroups/[A-Za-z0-9_.-]{0,89}[A-Za-z0-9_-]/providers/Microsoft.Network/publicIPAddresses/[A-Za-z0-9][A-Za-z0-9-_.]{0,78}[A-Za-z0-9_]$",
"tests": [
{
"description": "base",
"input": "/subscriptions/3510ae4d-530b-497d-8f30-53b9616fc6c1/resourceGroups/test/providers/Microsoft.Network/publicIPAddresses/test01"
},
{
"description": "invalid service name",
"input": "//subscriptions/3510ae4d-530b-497d-8f30-53b9616fc6c1/resourceGroups/test/providers/Microsoft.Network/publicIPAddresses/test",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/publicIpAddressId",
"modUri": "tmod:@turbot/azure-network"
}
}

publicIpAddressName

{
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9-_.]{0,78}[A-Za-z0-9_]$",
"tests": [
{
"description": "base case",
"input": "test01"
},
{
"description": "invalid name",
"input": "_terss",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/publicIpAddressName",
"modUri": "tmod:@turbot/azure-network"
}
}

publicIpAddressServiceNow

{
"defaultColumns": {
"region": {
"column": "enabled",
"path": "data.location"
},
"resource_group": {
"type": "string",
"size": 200,
"column": "enabled",
"path": "metadata.azure.resourceGroupName"
},
"subscription_id": {
"column": "enabled",
"label": "Subscription ID",
"path": "metadata.azure.subscriptionId"
},
"id": {
"column": "enabled",
"label": "ID"
},
"idle_timeout_in_minutes": {
"column": "enabled",
"path": "data.idleTimeoutInMinutes"
},
"public_ip_address": {
"column": "enabled",
"label": "IP Address"
},
"ip_configuration_id": {
"column": "enabled",
"path": "data.ipConfiguration.id",
"label": "IP Configuration ID"
},
"ip_tags": {
"column": "enabled",
"label": "IP Tags",
"type": "string",
"size": 1000
},
"public_ip_address_name": {
"column": "enabled",
"path": "data.name",
"label": "Public IP Address Name"
},
"provisioning_state": {
"column": "enabled"
},
"public_ip_address_version": {
"column": "enabled",
"path": "data.publicIPAddressVersion",
"label": "Public IP Address Version"
},
"public_ip_allocation_method": {
"column": "enabled",
"path": "data.publicIPAllocationMethod",
"label": "Public IP Allocation Method"
},
"sku_name": {
"column": "enabled",
"path": "data.sku.name",
"label": "SKU Name"
},
"tags": {
"column": "enabled",
"type": "string",
"size": 1000
},
"type": {
"column": "enabled"
},
"zones": {
"column": "enabled",
"type": "string",
"size": 1000
}
},
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/publicIpAddressServiceNow",
"modUri": "tmod:@turbot/azure-network"
}
}

routeTable

{
"type": "object",
"properties": {
"name": {
"$ref": "#/definitions/routeTableName"
},
"id": {
"type": "string"
},
"location": {
"type": "string"
},
"routes": {
"type": "array"
},
"disableBgpRoutePropagation": {
"type": "boolean"
},
"provisioningState": {
"type": "string"
},
"etag": {
"type": "string"
},
"tags": {
"$ref": "azure#/definitions/tags"
},
"turbot": {
"type": "object",
"properties": {
"title": {
"$ref": "#/definitions/routeTableName"
},
"tags": {
"$ref": "azure#/definitions/tags"
},
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/routeTableAka"
}
},
"custom": {
"type": "object",
"properties": {
"createTimestamp": {
"$ref": "turbot#/definitions/isoTimestamp"
},
"azure": {
"$ref": "azure#/definitions/azureMetadata"
}
}
}
}
}
},
"tests": [
{
"description": "Valid - All properties given",
"input": {
"name": "testrt",
"id": "/subscriptions/3510ae4d-530b-497d-8f30-53b9616fc6c1/resourceGroups/test/providers/Microsoft.Network/routeTables/pratiksroutetable",
"location": "eastus",
"routes": [],
"disableBgpRoutePropagation": false,
"provisioningState": "Succeeded",
"etag": "W/\"79eb1099-02aa-4e81-b336-215812c97c44\"",
"turbot": {
"title": "testrt",
"akas": [
"azure:///subscriptions/3510ae4d-530b-497d-8f30-53b9616fc6c1/resourceGroups/test/providers/Microsoft.Network/routeTables/pratiksroutetable"
],
"custom": {
"azure": {
"subscriptionId": "3510ae4d-530b-497d-8f30-53b9616fc6c1",
"regionName": "eastus",
"resourceGroupName": "test"
}
}
}
}
},
{
"description": "Invalid - missing route table name missing",
"input": {
"id": "/subscriptions/3510ae4d-530b-497d-8f30-53b9616fc6c1/resourceGroups/test/providers/Microsoft.Network/routeTables/pratiksroutetable",
"turbot": {
"title": "testrt",
"akas": [
"azure:///subscriptions/3510ae4d-530b-497d-8f30-53b9616fc6c1/resourceGroups/test/providers/Microsoft.Network/routeTables/pratiksroutetable"
],
"custom": {
"azure": {
"subscriptionId": "3510ae4d-530b-497d-8f30-53b9616fc6c1",
"regionName": "eastus",
"resourceGroupName": "test"
}
}
}
}
}
],
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/routeTable",
"modUri": "tmod:@turbot/azure-network"
}
}

routeTableAka

{
"type": "string",
"pattern": "^azure:///subscriptions/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/resourceGroups/[A-Za-z0-9-_().]*[A-Za-z0-9-_()]/providers/Microsoft.Network/routeTables/[a-zA-Z0-9]{1}[a-zA-Z0-9_-]{0,80}[a-zA-Z0-9_]$",
"tests": [
{
"description": "base case",
"input": "azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/routeTables/test"
},
{
"description": "invalid - subsription info missing",
"input": "providers/microsoft.network/routeTables/test",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/routeTableAka",
"modUri": "tmod:@turbot/azure-network"
}
}

routeTableName

{
"type": "string",
"pattern": "^[a-zA-Z0-9]{1}[a-zA-Z0-9_.-]{0,80}[a-zA-Z0-9_]$",
"tests": [
{
"description": "base case",
"input": "test01"
},
{
"description": "invalid name",
"input": "_terss",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/routeTableName",
"modUri": "tmod:@turbot/azure-network"
}
}

routeTableServiceNow

{
"defaultColumns": {
"region": {
"column": "enabled",
"path": "data.location"
},
"resource_group": {
"type": "string",
"size": 200,
"column": "enabled",
"path": "metadata.azure.resourceGroupName"
},
"subscription_id": {
"column": "enabled",
"label": "Subscription ID",
"path": "metadata.azure.subscriptionId"
},
"id": {
"column": "enabled",
"label": "ID"
},
"disable_bgp_route_propagation": {
"column": "enabled",
"label": "Disable BGP Route Propagation",
"type": "boolean"
},
"route_table_name": {
"column": "enabled",
"path": "data.name"
},
"provisioning_state": {
"column": "enabled"
},
"routes": {
"column": "enabled",
"label": "Routes",
"type": "string",
"size": 1000
},
"subnets": {
"column": "enabled",
"label": "Subnets",
"type": "string",
"size": 1000
},
"tags": {
"column": "enabled",
"label": "Tags",
"type": "string",
"size": 1000
},
"type": {
"column": "enabled",
"label": "Type"
}
},
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/routeTableServiceNow",
"modUri": "tmod:@turbot/azure-network"
}
}

subnet

{
"type": "object",
"properties": {
"name": {
"$ref": "#/definitions/subnetName"
},
"id": {
"$ref": "#/definitions/subnetId"
},
"addressPrefix": {
"type": "string"
},
"serviceEndpoints": {
"type": "array"
},
"delegations": {
"type": "array"
},
"provisioningState": {
"type": "string"
},
"etag": {
"type": "string"
},
"type": {
"type": "string"
},
"turbot": {
"type": "object",
"properties": {
"title": {
"$ref": "#/definitions/subnetName"
},
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/subnetAka"
}
},
"custom": {
"type": "object",
"properties": {
"createTimestamp": {
"$ref": "turbot#/definitions/isoTimestamp"
},
"virtualNetworkName": {
"$ref": "#/definitions/virtualNetworkName"
},
"azure": {
"$ref": "azure#/definitions/azureMetadata"
}
}
}
}
}
},
"additionalProperties": true,
"tests": [
{
"description": "all properties given",
"input": {
"name": "testsubnet",
"addressPrefix": "10.1.0.0/24",
"serviceEndpoints": [],
"delegations": [],
"provisioningState": "Succeeded",
"id": "/subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/virtualNetworks/demovnet/subnets/testsubnet",
"etag": "W/\"69258eb9-cc64-4d30-913f-a968a7d87f75\"",
"type": "Microsoft.Network/virtualNetworks/subnets",
"turbot": {
"title": "testsubnet",
"akas": [
"azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/virtualNetworks/demovnet/subnets/testsubnet"
],
"custom": {
"createTimestamp": "2000-01-02T00:00:00.123Z",
"azure": {
"subscriptionId": "9e3548cf-17e2-4751-b87e-b72bdd2c77f7",
"regionName": "centralindia",
"resourceGroupName": "test"
}
}
}
}
},
{
"description": "invalid - missing subscriptionId",
"input": {
"azure": {
"resourceGroupName": "adytest"
},
"name": "testsub",
"title": "testsub"
}
}
],
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/subnet",
"modUri": "tmod:@turbot/azure-network"
}
}

subnetAka

{
"type": "string",
"pattern": "^azure:///subscriptions/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/resourceGroups/[A-Za-z0-9_.-]{0,89}[A-Za-z0-9_-]/providers/Microsoft.Network/virtualNetworks/([A-Za-z][A-Za-z0-9-]+[A-Za-z0-9])/subnets/[a-zA-Z0-9][a-zA-Z0-9-_.]{0,80}[a-zA-Z0-9_]$",
"tests": [
{
"description": "base",
"input": "azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/virtualNetworks/test0012/subnets/test01"
},
{
"description": "invalid service ID",
"input": "azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.MySql/servers/test0012/databases/test01",
"expected": false
},
{
"description": "invalid subscription id",
"input": "azure:///subscriptions/9e3548cf-17e2-4751-12345-b72bdd2c77f700/resourceGroups/test/providers/Microsoft.Sql/servers/test0012/databases/test01",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/subnetAka",
"modUri": "tmod:@turbot/azure-network"
}
}

subnetId

{
"type": "string",
"pattern": "^/subscriptions/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/resourceGroups/[A-Za-z0-9-_().]*[A-Za-z0-9-_()]/providers/Microsoft.Network/virtualNetworks/[a-zA-Z0-9][a-zA-Z0-9-_.]{2,80}[a-zA-Z0-9_]/subnets/[[a-zA-Z0-9][a-zA-Z0-9-_.]{0,80}[a-zA-Z0-9_]$",
"tests": [
{
"description": "base",
"input": "/subscriptions/3510ae4d-530b-497d-8f30-53b9616fc6c1/resourceGroups/parthtestrg/providers/Microsoft.Network/virtualNetworks/parth-test/subnets/testsubnet"
},
{
"description": "invalid service name",
"input": "/subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.MySql/servers/test0012/databases/test01",
"expected": false
},
{
"description": "invalid subscription id",
"input": "/subscriptions/9e3548cf-17e2-4751-12345-b72bdd2c77f700/resourceGroups/test/providers/Microsoft.Sql/servers/test0012/databases/test01",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/subnetId",
"modUri": "tmod:@turbot/azure-network"
}
}

subnetName

{
"type": "string",
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{0,80}[a-zA-Z0-9_]$",
"tests": [
{
"input": "foo"
},
{
"input": "0cho5"
},
{
"description": "invalid - too short",
"input": "",
"expected": false
},
{
"description": "invalid - too long",
"input": "abcvgderfgabcvgderfgabcvgderfgabcvgderfgabcvgderfgabcvgderfgabcvgderfgabcvgderfgabcvgderfgabcvgderfgabcvgderfgabcvgderfgabcvgderfg",
"expected": false
},
{
"description": "invalid - can't end with '.'",
"input": "Test.",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/subnetName",
"modUri": "tmod:@turbot/azure-network"
}
}

subnetServiceNow

{
"defaultColumns": {
"address_prefix": {
"column": "enabled",
"label": "Address Prefix"
},
"id": {
"column": "enabled",
"label": "ID"
},
"ip_configurations": {
"column": "enabled",
"label": "IP Configurations",
"type": "string",
"size": 1000
},
"subnet_name": {
"column": "enabled",
"path": "data.name"
},
"network_security_group_id": {
"column": "enabled",
"label": "Network Security Group ID",
"path": "data.networkSecurityGroup.id"
},
"private_endpoint_network_policies": {
"column": "enabled"
},
"private_link_service_network_policies": {
"column": "enabled"
},
"provisioning_state": {
"column": "enabled"
},
"resource_group": {
"type": "string",
"size": 200,
"column": "enabled",
"path": "metadata.azure.resourceGroupName"
},
"subscription_id": {
"column": "enabled",
"label": "Subscription ID",
"path": "metadata.azure.subscriptionId"
},
"type": {
"column": "enabled"
}
},
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/subnetServiceNow",
"modUri": "tmod:@turbot/azure-network"
}
}

virtualNetwork

{
"type": "object",
"properties": {
"name": {
"$ref": "#/definitions/virtualNetworkName"
},
"id": {
"$ref": "#/definitions/virtualNetworkId"
},
"location": {
"type": "string"
},
"addressSpace": {
"type": "object"
},
"subnets": {
"type": "array"
},
"virtualNetworkPeerings": {
"type": "array"
},
"resourceGuid": {
"type": "string"
},
"provisioningState": {
"type": "string"
},
"enableDdosProtection": {
"type": "boolean"
},
"enableVmProtection": {
"type": "boolean"
},
"etag": {
"type": "string"
},
"tags": {
"$ref": "azure#/definitions/tags"
},
"turbot": {
"type": "object",
"properties": {
"title": {
"$ref": "#/definitions/virtualNetworkName"
},
"tags": {
"$ref": "azure#/definitions/tags"
},
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/virtualNetworkAka"
}
},
"custom": {
"type": "object",
"properties": {
"createTimestamp": {
"$ref": "turbot#/definitions/isoTimestamp"
},
"azure": {
"$ref": "azure#/definitions/azureMetadata"
}
}
}
}
}
},
"additionalProperties": true,
"tests": [
{
"description": "Valid - All properties given",
"input": {
"name": "test0001",
"id": "/subscriptions/3510ae4d-530b-497d-8f30-53b9616fc6c1/resourceGroups/test/providers/Microsoft.Network/virtualNetworks/test01",
"location": "westindia",
"addressSpace": {
"addressPrefixes": [
"10.0.0.0/16"
]
},
"subnets": [
{
"id": "/subscriptions/3510ae4d-530b-497d-8f30-53b9616fc6c1/resourceGroups/test/providers/Microsoft.Network/virtualNetworks/test01/subnets/default",
"addressPrefix": "10.0.0.0/24",
"delegations": [],
"provisioningState": "Succeeded",
"name": "default",
"etag": "W/\"4c1408a2-1345-4632-af4b-0d73de88d6b6\"",
"type": "Microsoft.Network/virtualNetworks/subnets"
}
],
"virtualNetworkPeerings": [],
"resourceGuid": "e8b8cae0-1722-4b2b-9c48-76c7e23146c5",
"provisioningState": "Succeeded",
"enableDdosProtection": false,
"enableVmProtection": false,
"etag": "W/\"4c1408a2-1345-4632-af4b-0d73de88d6b6\"",
"turbot": {
"title": "test0001",
"akas": [
"azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/virtualNetworks/test0012"
],
"custom": {
"azure": {
"subscriptionId": "9e3548cf-17e2-4751-b87e-b72bdd2c77f7",
"regionName": "centralindia",
"resourceGroupName": "test"
}
}
}
}
}
],
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/virtualNetwork",
"modUri": "tmod:@turbot/azure-network"
}
}

virtualNetworkAka

{
"type": "string",
"pattern": "^azure:///subscriptions/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/resourceGroups/[A-Za-z0-9_.-]{0,89}[A-Za-z0-9_-]/providers/Microsoft.Network/virtualNetworks/([A-Za-z][A-Za-z0-9_.-]+[A-Za-z0-9_])$",
"tests": [
{
"description": "base",
"input": "azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/virtualNetworks/test0012"
},
{
"description": "invalid service name",
"input": "azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.VirtualNetwork/virtualNetworks/test",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/virtualNetworkAka",
"modUri": "tmod:@turbot/azure-network"
}
}

virtualNetworkGateway

{
"type": "object",
"properties": {
"name": {
"$ref": "#/definitions/virtualNetworkGatewayName"
},
"id": {
"$ref": "#/definitions/virtualNetworkGatewayId"
},
"location": {
"type": "string"
},
"etag": {
"type": "string"
},
"vpnType": {
"type": "string"
},
"vpnGatewayGeneration": {
"type": "string"
},
"vpnClientConfiguration": {
"type": "object"
},
"virtualNetworkGatewayPolicyGroups": {
"type": "object"
},
"vNetExtendedLocationResourceId": {
"type": "string"
},
"sku": {
"type": "object"
},
"resourceGuid": {
"type": "string"
},
"provisioningState": {
"$ref": "#/definitions/provisioningGatewayState"
},
"natRules": {
"type": "array"
},
"ipConfigurations": {
"type": "array"
},
"inboundDnsForwardingEndpoint": {
"type": "string"
},
"gatewayType": {
"type": "string"
},
"enablePrivateIpAddress": {
"type": "boolean"
},
"gatewayDefaultSite": {
"type": "boolean"
},
"enableDnsForwarding": {
"type": "boolean"
},
"enableBgpRouteTranslationForNat": {
"type": "boolean"
},
"enableBgp": {
"type": "boolean"
},
"disableIPSecReplayProtection": {
"type": "boolean"
},
"customRoutes": {
"type": "object"
},
"bgpSettings": {
"type": "object"
},
"allowVirtualWanTraffic": {
"type": "boolean"
},
"allowRemoteVnetTraffic": {
"type": "boolean"
},
"activeActive": {
"type": "boolean"
},
"tags": {
"$ref": "azure#/definitions/tags"
},
"turbot": {
"type": "object",
"properties": {
"title": {
"$ref": "#/definitions/virtualNetworkGatewayName"
},
"tags": {
"$ref": "azure#/definitions/tags"
},
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/virtualNetworkGatewayAka"
}
},
"custom": {
"type": "object",
"properties": {
"createTimestamp": {
"$ref": "turbot#/definitions/isoTimestamp"
},
"azure": {
"$ref": "azure#/definitions/azureMetadata"
}
}
}
}
}
},
"additionalProperties": true,
"tests": [
{
"description": "Valid - All properties given",
"input": {
"name": "vpngw1",
"id": "/subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/virtualNetworkGateways/vpngw1",
"etag": "W/\"00000000-0000-0000-0000-000000000000\"",
"type": "Microsoft.Network/virtualNetworkGateways",
"location": "loc1",
"turbot": {
"title": "vpngw1",
"akas": [
"azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/virtualNetworkGateways/vpngw1"
],
"custom": {
"azure": {
"subscriptionId": "9e3548cf-17e2-4751-b87e-b72bdd2c77f7",
"regionName": "centralindia",
"resourceGroupName": "test"
}
}
}
}
},
{
"description": "Invalid - name property missing",
"input": {
"id": "/subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/virtualNetworkGateways/",
"etag": "W/\"00000000-0000-0000-0000-000000000000\"",
"type": "Microsoft.Network/virtualNetworkGateways",
"location": "loc1",
"turbot": {
"title": null,
"akas": [
"azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/virtualNetworkGateways/"
],
"custom": {
"azure": {
"subscriptionId": "9e3548cf-17e2-4751-b87e-b72bdd2c77f7",
"regionName": "centralindia",
"resourceGroupName": "test"
}
}
}
},
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/virtualNetworkGateway",
"modUri": "tmod:@turbot/azure-network"
}
}

virtualNetworkGatewayAka

{
"type": "string",
"pattern": "^azure:///subscriptions/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/resourceGroups/[A-Za-z0-9-_().]*[A-Za-z0-9-_()]/providers/Microsoft.Network/virtualNetworkGateways/([A-Za-z0-9][A-Za-z0-9-._]{0,79})$",
"tests": [
{
"description": "base",
"input": "azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/virtualNetworkGateways/test0012"
},
{
"description": "invalid service name",
"input": "azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.VirtualNetwork/virtualNetworkGateways/test",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/virtualNetworkGatewayAka",
"modUri": "tmod:@turbot/azure-network"
}
}

virtualNetworkGatewayId

{
"type": "string",
"pattern": "^/subscriptions/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/resourceGroups/[A-Za-z0-9-_().]*[A-Za-z0-9-_()]/providers/Microsoft.Network/virtualNetworkGateways/([A-Za-z0-9][A-Za-z0-9-._]{0,79})$",
"tests": [
{
"description": "base",
"input": "/subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/virtualNetworkGateways/test0012"
},
{
"description": "invalid service name",
"input": "/subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.VirtualNetwork/virtualNetworkGateways/test",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/virtualNetworkGatewayId",
"modUri": "tmod:@turbot/azure-network"
}
}

virtualNetworkGatewayName

{
"type": "string",
"pattern": "^([A-Za-z0-9][A-Za-z0-9-._]{0,79})$",
"tests": [
{
"input": "test-vnet"
},
{
"description": "invalid - cannot start with number",
"input": "1test-vnet",
"expected": false
},
{
"description": "invalid - cannot contain dollar symbol",
"input": "test$vnet",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/virtualNetworkGatewayName",
"modUri": "tmod:@turbot/azure-network"
}
}

virtualNetworkGatewayServiceNow

{
"defaultColumns": {
"region": {
"column": "enabled",
"path": "data.location"
},
"resource_group": {
"type": "string",
"size": 200,
"column": "enabled",
"path": "metadata.azure.resourceGroupName"
},
"subscription_id": {
"column": "enabled",
"label": "Subscription ID",
"path": "metadata.azure.subscriptionId"
},
"id": {
"column": "enabled",
"label": "ID"
},
"enable_bgp": {
"column": "enabled",
"label": "Enable BGP",
"type": "boolean"
},
"enable_private_ip_address": {
"column": "enabled",
"label": "Enable Private IP Address",
"type": "boolean"
},
"gateway_type": {
"column": "enabled"
},
"ip_configurations": {
"column": "enabled",
"path": "data.ipConfigurations",
"label": "IP Configurations",
"type": "string",
"size": 1000
},
"virtual_network_gateway_name": {
"column": "enabled",
"path": "data.name"
},
"provisioning_state": {
"column": "enabled"
},
"sku_capacity": {
"column": "enabled",
"path": "data.sku.capacity",
"label": "SKU Capacity"
},
"sku_name": {
"column": "enabled",
"path": "data.sku.name",
"label": "SKU Name"
},
"sku_tier": {
"column": "enabled",
"path": "data.sku.tier",
"label": "SKU Tier"
},
"tags": {
"column": "enabled",
"type": "string",
"size": 1000
},
"type": {
"column": "enabled"
},
"vpn_client_configuration": {
"column": "enabled",
"label": "VPN Client Configuration",
"type": "string",
"size": 1000
},
"vpn_type": {
"column": "enabled",
"label": "VPN Type"
}
},
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/virtualNetworkGatewayServiceNow",
"modUri": "tmod:@turbot/azure-network"
}
}

virtualNetworkId

{
"type": "string",
"pattern": "^/subscriptions/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/resourceGroups/[A-Za-z0-9_.-]{0,89}[A-Za-z0-9_-]/providers/Microsoft.Network/virtualNetworks/([A-Za-z][A-Za-z0-9_.-]+[A-Za-z0-9_])$",
"tests": [
{
"description": "base",
"input": "/subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/virtualNetworks/test0012"
},
{
"description": "invalid service name",
"input": "/subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.VirtualNetwork/virtualNetworks/test",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/virtualNetworkId",
"modUri": "tmod:@turbot/azure-network"
}
}

virtualNetworkName

{
"type": "string",
"pattern": "^([A-Za-z][A-Za-z0-9-._]+[A-Za-z0-9_])$",
"tests": [
{
"input": "test-vnet"
},
{
"description": "invalid - cannot start with number",
"input": "1test-vnet",
"expected": false
},
{
"description": "invalid - cannot contain dollar symbol",
"input": "test$vnet",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/virtualNetworkName",
"modUri": "tmod:@turbot/azure-network"
}
}

virtualNetworkServiceNow

{
"defaultColumns": {
"address_prefixes": {
"column": "enabled",
"path": "data.addressSpace.addressPrefixes",
"type": "string",
"size": 1000
},
"enable_ddos_protection": {
"column": "enabled",
"label": "Enable DDOS Protection",
"type": "boolean"
},
"enable_vm_protection": {
"column": "enabled",
"label": "Enable VM Protection",
"type": "boolean"
},
"id": {
"column": "enabled",
"label": "ID"
},
"virtual_network_name": {
"column": "enabled",
"path": "data.name"
},
"network_peerings": {
"column": "enabled",
"path": "data.virtualNetworkPeerings",
"type": "string",
"size": 1000
},
"provisioning_state": {
"column": "enabled"
},
"region": {
"column": "enabled",
"path": "data.location"
},
"resource_group": {
"type": "string",
"size": 200,
"column": "enabled",
"path": "metadata.azure.resourceGroupName"
},
"subnets": {
"column": "enabled",
"type": "string",
"size": 1000
},
"subscription_id": {
"column": "enabled",
"label": "Subscription ID",
"path": "metadata.azure.subscriptionId"
},
"tags": {
"column": "enabled",
"label": "Tags",
"type": "string",
"size": 1000
},
"type": {
"column": "enabled"
}
},
".turbot": {
"uri": "tmod:@turbot/azure-network#/definitions/virtualNetworkServiceNow",
"modUri": "tmod:@turbot/azure-network"
}
}