Description
stringlengths
19
200
IaC
stringlengths
159
7.6k
Deploy Azure Sql Managed Instance (SQL MI) and configure diagnostic settings for sending logs and metrics. Logs and metrics are sent to Azure storage account, Azure Event Hub, and Azure Monitor.
{"type": "microsoft.sql/managedinstances", "apiversion": "2020-02-02-preview", "name": "[parameters('managedinstancename')]", "location": "[parameters('location')]", "sku": {"name": "[parameters('skuname')]"}, "identity": {"type": "systemassigned"}, "dependson": ["[parameters('virtualnetworkname')]"], "properties": {"a...
Create a SQL logical server.
{"type": "microsoft.sql/servers", "apiversion": "2020-02-02-preview", "name": "[parameters('servername')]", "location": "[parameters('location')]", "identity": "[if(parameters(\"enableads\'), json(\"{"type":"systemassigned"}\'), json(\"null\'))]", "properties": {"administratorlogin": "[parameters('administratorlogin')]...
Provision a SQL Server with firewall and a SQL database with Transparent Data Encryption.
{"name": "[variables('sqlservername')]", "type": "microsoft.sql/servers", "apiversion": "2020-02-02-preview", "location": "[parameters('location')]", "tags": {"displayname": "sqlserver"}, "properties": {"administratorlogin": "[parameters('sqladministratorlogin')]", "administratorloginpassword": "[parameters('sqladminis...
Deploy an Azure SQL Server with Auditing enabled to write audit logs to Log Analytics
{"type": "microsoft.sql/servers", "apiversion": "2019-06-01-preview", "location": "[parameters('location')]", "name": "[parameters('sqlservername')]", "properties": {"administratorlogin": "[parameters('sqladministratorlogin')]", "administratorloginpassword": "[parameters('sqladministratorloginpassword')]", "version": "...
Deploy a new SQL Elastic Pool.
{"type": "microsoft.sql/servers", "apiversion": "2020-02-02-preview", "location": "[parameters('location')]", "name": "[parameters('servername')]", "properties": {"administratorlogin": "[parameters('administratorlogin')]", "administratorloginpassword": "[parameters('administratorloginpassword')]", "version": "12.0"}}{"...
Deploy Azure Sql Database Managed Instance (SQL MI) and Virtual network gateway configured for point-to-site connection inside the new virtual network.
{"type": "microsoft.sql/managedinstances", "apiversion": "2019-06-01-preview", "dependson": ["[parameters('virtualnetworkname')]"], "identity": {"type": "systemassigned"}, "location": "[parameters('location')]", "name": "[parameters('managedinstancename')]", "sku": {"name": "[parameters('skuname')]"}, "properties": {"a...
Deploy an Azure SQL Server with Threat Detection enabled and a user-defined number of Azure SQL Databases with Threat Detection enabled, with an email address to receive alerts for each database.
{"type": "microsoft.sql/servers", "apiversion": "2020-02-02-preview", "location": "[variables('databaseserverlocation')]", "name": "[variables('databaseservername')]", "properties": {"administratorlogin": "[variables('databaseserveradminlogin')]", "administratorloginpassword": "[variables('databaseserveradminloginpassw...
Create a SQL Server and Database
{"type": "microsoft.sql/servers", "apiversion": "2021-05-01-preview", "name": "[parameters('servername')]", "location": "[parameters('location')]", "properties": {"administratorlogin": "[parameters('administratorlogin')]", "administratorloginpassword": "[parameters('administratorloginpassword')]"}}{"type": "microsoft.s...
This template creates two Azure SQL servers, a database, and a failover group.
{"type": "microsoft.sql/servers", "kind": "v12.0", "name": "[parameters('sqlserverprimaryname')]", "apiversion": "2020-02-02-preview", "location": "[parameters('location')]", "properties": {"administratorlogin": "[parameters('sqlserverprimaryadminusername')]", "administratorloginpassword": "[parameters('sqlserverprimar...
Deploy Azure Sql Database Managed Instance (SQL MI) and JumpBox with SSMS inside new Virtual Network
{"type": "microsoft.sql/managedinstances", "apiversion": "2019-06-01-preview", "dependson": ["[parameters('virtualnetworkname')]"], "identity": {"type": "systemassigned"}, "location": "[parameters('location')]", "name": "[parameters('managedinstancename')]", "sku": {"name": "[parameters('skuname')]"}, "properties": {"a...
This template creates a private endpoint, Private DNS Zone and a virtual machine to test the private connection to an Azure SQL Server
{"type": "microsoft.sql/servers", "apiversion": "2020-02-02-preview", "name": "[variables('sqlservername')]", "location": "[parameters('location')]", "kind": "v12.0", "tags": {"displayname": "[variables('sqlservername')]"}, "properties": {"administratorlogin": "[parameters('sqladministratorlogin')]", "administratorlogi...
This template creates a managed application that has a customized default view.
{"type": "microsoft.solutions/applicationdefinitions", "apiversion": "2019-07-01", "name": "[variables('managedapplicationdefinitionname')]", "location": "[parameters('location')]", "properties": {"locklevel": "[variables('locklevel')]", "description": "[variables('description')]", "displayname": "[variables('displayna...
This template creates a managed application that deploys linked templates.
{"type": "microsoft.solutions/applicationdefinitions", "apiversion": "2019-07-01", "name": "[variables('managedapplicationdefinitionname')]", "location": "[parameters('location')]", "properties": {"locklevel": "[variables('locklevel')]", "description": "[variables('description')]", "displayname": "[variables('displayna...
This template creates a managed application that has application metrics and alerts.
{"type": "microsoft.solutions/applicationdefinitions", "apiversion": "2019-07-01", "name": "[variables('applicationdefinitionname')]", "location": "[parameters('location')]", "properties": {"locklevel": "[variables('locklevel')]", "description": "[variables('description')]", "displayname": "[variables('displayname')]",...
Create Testing environment for Firewall Premium (IDPS,TLS Inspection,Web Categories)
{"type": "microsoft.network/routetables", "apiversion": "2020-05-01", "name": "workerroute", "location": "[parameters('location')]", "properties": {"routes": [{"name": "workerroutefirewall", "properties": {"addressprefix": "0.0.0.0/0", "nexthoptype": "virtualappliance", "nexthopipaddress": "[variables('firewallprivatei...
Load Balancer with Inbound NAT Rule
{"apiversion": "2020-05-01", "type": "microsoft.network/publicipaddresses", "name": "[variables('publicipaddressname')]", "location": "[parameters('location')]", "properties": {"publicipallocationmethod": "[parameters('publicipaddresstype')]", "dnssettings": {"domainnamelabel": "[parameters('dnsnameforlbip')]"}}}{"apiv...
Route table with routes
{"type": "microsoft.network/routetables", "apiversion": "2021-02-01", "name": "[parameters('routetablename')]", "location": "[parameters('location')]", "properties": {"copy": [{"name": "routes", "count": "[length(parameters('routes'))]", "input": {"name": "[parameters('routes')[copyindex('routes')].name]", "properties"...
Create an ExpressRoute Circuit
{"type": "microsoft.network/expressroutecircuits", "apiversion": "2021-02-01", "name": "[parameters('circuitname')]", "location": "[parameters('location')]", "sku": {"name": "[format('{0}_{1}", parameters('skutier'), parameters('skufamily'))]", "tier": "[parameters('skutier')]", "family": "[parameters('skufamily')]"}, ...
Create a Site to Site VPN connection to any on premises or other cloud networks such as AWS Virtual Private Cloud
{"apiversion": "2020-08-01", "type": "microsoft.network/localnetworkgateways", "name": "[parameters('localgatewayname')]", "location": "[parameters('location')]", "properties": {"localnetworkaddressspace": {"addressprefixes": "[parameters('localaddressprefix')]"}, "gatewayipaddress": "[parameters('localgatewayipaddress...
Create a Virtual Network with two Subnets
{"type": "microsoft.network/virtualnetworks", "apiversion": "2020-06-01", "name": "[parameters('vnetname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[parameters('vnetaddressprefix')]"]}, "subnets": [{"name": "[parameters('subnet1name')]", "properties": {"addresspref...
Virtual Network with diagnostic logs
{"type": "microsoft.network/virtualnetworks", "apiversion": "2021-02-01", "name": "[parameters('vnetname')]", "location": "[parameters('location')]", "properties": {"copy": [{"name": "subnets", "count": "[length(parameters('subnets'))]", "input": {"name": "[parameters('subnets')[copyindex('subnets')].name]", "propertie...
This template creates a private link service that exposes a virtual machine, and it is consumed via a private endpoint.
{"type": "microsoft.network/virtualnetworks", "apiversion": "2020-06-01", "name": "[variables('vnetname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[variables('vnetaddressprefix')]"]}, "subnets": [{"name": "[variables('frontendsubnetname')]", "properties": {"address...
This template adds and secures a custom domain to your Front Door with a customer-managed certificate.
{"type": "microsoft.network/frontdoors", "apiversion": "2020-01-01", "name": "[parameters('frontdoorname')]", "location": "global", "properties": {"enabledstate": "enabled", "frontendendpoints": [{"name": "[variables('frontendendpointdefaultname')]", "properties": {"hostname": "[variables('frontendendpointdefaulthostna...
Create a VNET to VNET connection across using BGP
{"type": "microsoft.network/virtualnetworks", "apiversion": "2020-06-01", "name": "[variables('vnet1cfg').name]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[variables('vnet1cfg').addressspaceprefix]"]}, "subnets": [{"name": "[variables('vnet1cfg').subnetname]", "proper...
Application Gateway for Multi Hosting
{"apiversion": "2021-02-01", "type": "microsoft.network/publicipaddresses", "name": "[variables('publicipaddressname')]", "location": "[parameters('location')]", "properties": {"publicipallocationmethod": "dynamic"}}{"apiversion": "2015-06-15", "type": "microsoft.network/virtualnetworks", "name": "[variables('virtualne...
Deploy Managed AADDS with required VNet and NSG configurations
{"type": "microsoft.network/networksecuritygroups", "apiversion": "2020-11-01", "name": "[variables('domainservicesnsgname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "allowpsremotingslicep", "properties": {"protocol": "tcp", "sourceportrange": "*", "destinationportrange": "59...
This template updates your Front Door to change the health probe settings by setting the probe path and also the intervals in which the probes will be sent.
{"type": "microsoft.network/frontdoors", "apiversion": "2020-05-01", "name": "[parameters('frontdoorname')]", "location": "[variables('frontdoorlocation')]", "properties": {"routingrules": [{"name": "routingrule1", "properties": {"frontendendpoints": [{"id": "[resourceid('microsoft.network/frontdoors/frontendendpoints"...
Sets service endpoint on one of the 2 subnets in a VNet and secures storage account to that subnet
{"comments": "default network security group for template", "type": "microsoft.network/networksecuritygroups", "apiversion": "2019-08-01", "name": "[variables('networksecuritygroupname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "default-allow-3389", "properties": {"priority":...
This template creates a Network Security Group
{"apiversion": "2020-05-01", "type": "microsoft.network/networksecuritygroups", "name": "[variables('networksecuritygroupname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "first_rule", "properties": {"description": "this is the first rule", "protocol": "tcp", "sourceportrange":...
This template creates an Azure Traffic Manager profile that provides an App Service behind it
{"type": "microsoft.network/trafficmanagerprofiles", "apiversion": "2018-08-01", "name": "[parameters('trafficmanagername')]", "location": "global", "properties": {"profilestatus": "enabled", "trafficroutingmethod": "priority", "dnsconfig": {"relativename": "[parameters('uniquednsname')]", "ttl": 30}, "monitorconfig": ...
Create a sandbox setup of Azure Firewall with Availability Zones
{"type": "microsoft.network/routetables", "apiversion": "2020-06-01", "name": "[variables('azfwroutetablename')]", "location": "[parameters('location')]", "properties": {"disablebgproutepropagation": false, "routes": [{"name": "azfwdefaultroute", "properties": {"addressprefix": "0.0.0.0/0", "nexthoptype": "virtualappli...
This template creates an Azure Traffic Manager profile using external endpoints.
{"type": "microsoft.network/trafficmanagerprofiles", "apiversion": "2018-08-01", "name": "externalendpointexample", "location": "global", "properties": {"profilestatus": "enabled", "trafficroutingmethod": "performance", "dnsconfig": {"relativename": "[parameters('uniquednsname')]", "ttl": 30}, "monitorconfig": {"protoc...
This template allows you to add an NSG with Azure Redis Cache security rules to an existing subnet within a VNET.
{"type": "microsoft.network/networksecuritygroups", "apiversion": "2020-05-01", "name": "[parameters('newnsgname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "allow_outbound_storage_pki", "properties": {"description": "redis dependencies on azure storage/pki (internet)", "proto...
Deploy a NAT gateway and virtual machine to the virtual network associated with the NAT gateway
{"type": "microsoft.network/networksecuritygroups", "apiversion": "2020-06-01", "name": "[parameters('nsgname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "ssh", "properties": {"protocol": "tcp", "sourceportrange": "*", "destinationportrange": "22", "sourceaddressprefix": "*", ...
This template applies a newly created NSG to an existing subnet
{"type": "microsoft.network/networksecuritygroups", "name": "new-nsg", "location": "[parameters('location')]", "apiversion": "2020-05-01", "properties": {"securityrules": [{"name": "ssh", "properties": {"description": "allows ssh traffic", "protocol": "tcp", "sourceportrange": "*", "destinationportrange": "22", "source...
Reserved IP Use Case Snippet
{"type": "microsoft.network/publicipaddresses", "name": "[variables('network_pip_reserved_name')]", "apiversion": "2020-11-01", "location": "[parameters('location')]", "properties": {"publicipallocationmethod": "static", "dnssettings": {"domainnamelabel": "[variables('network_pip_reserved_fqdn')]"}}}{"type": "microsoft...
Deploy a NAT gateway and virtual network. The NAT gateway resource will be associated with the single subnet in the virtual network
{"type": "microsoft.network/publicipaddresses", "apiversion": "2020-06-01", "name": "[variables('publicipname')]", "location": "[parameters('location')]", "sku": {"name": "standard"}, "properties": {"publicipaddressversion": "ipv4", "publicipallocationmethod": "static", "idletimeoutinminutes": 4, "dnssettings": {"domai...
Creates a simple environment that shows how to work with Application Security Groups within templates.
{"comments": "application security group", "name": "[variables('asgname')]", "type": "microsoft.network/applicationsecuritygroups", "apiversion": "2020-05-01", "location": "[parameters('location')]", "properties": {}}{"comments": "network security group", "name": "[variables('nsgname')]", "type": "microsoft.network/net...
Create an virtual hub secured with Azure Firewall
{"type": "microsoft.network/virtualwans", "apiversion": "2020-06-01", "name": "vwan-01", "location": "[parameters('location')]", "properties": {"disablevpnencryption": false, "allowbranchtobranchtraffic": true, "office365localbreakoutcategory": "none", "type": "standard"}}{"type": "microsoft.network/virtualhubs", "apiv...
Create a sandbox setup of Azure Firewall with Linux jumpbox and Linux server
{"type": "microsoft.network/routetables", "name": "[variables('azfwroutetablename')]", "apiversion": "2020-05-01", "location": "[parameters('location')]", "properties": {"disablebgproutepropagation": false, "routes": [{"name": "azfwdefaultroute", "properties": {"addressprefix": "0.0.0.0/0", "nexthoptype": "virtualappli...
This template updates a Front Door to enable session affinity for your frontend host, thereby, sending subsequent traffic from the same user session to the same backend.
{"apiversion": "2020-07-01", "type": "microsoft.network/frontdoors", "name": "[parameters('frontdoorname')]", "location": "[variables('frontdoorlocation')]", "properties": {"routingrules": [{"name": "routingrule1", "properties": {"frontendendpoints": [{"id": "[resourceid('microsoft.network/frontdoors/frontendendpoints"...
This template demonstrates configuring a Backend Pool by IP Address when deploying a Standard Load Balancer
{"type": "microsoft.network/networkinterfaces", "apiversion": "2020-06-01", "name": "[concat(parameters('projectname'),"-vm", copyindex(1), "-networkinterface')]", "location": "[parameters('location')]", "copy": {"name": "networkinterfacecopy", "count": 3}, "dependson": ["[resourceid('microsoft.network/virtualnetworks"...
Create an Internet-facing standard load-balancer with three VMs
{"type": "microsoft.network/networkinterfaces", "apiversion": "2020-06-01", "name": "[concat(parameters('projectname'),"-vm", copyindex(1), "-networkinterface')]", "location": "[parameters('location')]", "copy": {"name": "networkinterfacecopy", "count": 3}, "dependson": ["[resourceid('microsoft.network/virtualnetworks"...
This template creates a WAF geo filtering rule for Azure Front Door that allows/blocks traffic from certain countries.
{"apiversion": "2020-11-01", "type": "microsoft.network/frontdoorwebapplicationfirewallpolicies", "name": "[parameters('wafpolicyname')]", "location": "[variables('waflocation')]", "properties": {"policysettings": {"mode": "[parameters('wafmode')]", "enabledstate": "enabled"}, "customrules": {"rules": [{"name": "rule1"...
This template creates a private DNS zone within the Azure DNS resource provider. It can optionally enable VM registration which lets newly created VMs add their A record to the zone.
{"type": "microsoft.network/virtualnetworks", "apiversion": "2021-03-01", "name": "[parameters('vnetname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[parameters('vnetaddressprefix')]"]}, "subnets": [{"name": "[parameters('subnetname')]", "properties": {"addressprefi...
This template creates a Front Door with load balancing configured for multiple backends in a backend pool and also across backend pools based on URL path.
{"apiversion": "2020-05-01", "type": "microsoft.network/frontdoors", "name": "[parameters('frontdoorname')]", "location": "[variables('frontdoorlocation')]", "properties": {"routingrules": [{"name": "routingrule1", "properties": {"frontendendpoints": [{"id": "[resourceid('microsoft.network/frontdoors/frontendendpoints"...
This template creates a basic Front Door configuration with a single backend, single default path match '/*' and no custom domain.
{"type": "microsoft.network/frontdoors", "apiversion": "2020-05-01", "name": "[parameters('frontdoorname')]", "location": "global", "properties": {"enabledstate": "enabled", "frontendendpoints": [{"name": "[variables('frontendendpointname')]", "properties": {"hostname": "[format('{0}.azurefd.net", parameters('frontdoor...
Create an Internet-facing load-balancer with a Public IPv6 address
{"apiversion": "2016-03-30", "type": "microsoft.network/publicipaddresses", "name": "[variables('ipv4publicipaddressname')]", "location": "[parameters('location')]", "properties": {"publicipaddressversion": "ipv4", "publicipallocationmethod": "[variables('ipv4publicipaddresstype')]", "dnssettings": {"domainnamelabel": ...
Service Chaining with User defined Routes (UDR)
{"apiversion": "2020-08-01", "type": "microsoft.network/publicipaddresses", "name": "[concat(parameters('uniquednsprefixforvm'), copyindex())]", "location": "[parameters('location')]", "copy": {"name": "pubiploop", "count": "[variables('scalenumber')]"}, "properties": {"publicipallocationmethod": "[parameters('publicip...
This template creates an Azure Traffic Manager profile that load-balances across multiple virtual machines.
{"copy": {"name": "pip", "count": "[length(range(0, variables('numvms')))]"}, "type": "microsoft.network/publicipaddresses", "apiversion": "2021-03-01", "name": "[format('{0}{1}-pip", variables('vmname'), range(0, variables('numvms'))[copyindex()])]", "location": "[parameters('location')]", "sku": {"name": "basic"}, "p...
This template deploys a Custom IPSec Policy to an existing VPN Gateway.
{"type": "microsoft.network/connections", "apiversion": "2020-04-01", "name": "[parameters('vpnname')]", "location": "[parameters('location')]", "properties": {"virtualnetworkgateway1": {"id": "[resourceid('microsoft.network/virtualnetworkgateways", parameters('vpngateway_name'))]"}, "localnetworkgateway2": {"id": "[re...
This template creates a Network Watcher resource for the subscription.
{"type": "microsoft.network/networkwatchers", "apiversion": "2021-02-01", "name": "[parameters('networkwatchername')]", "location": "[parameters('location')]", "properties": {}}
Create an Azure Firewall with Firewall Policy and IpGroups
{"type": "microsoft.network/ipgroups", "apiversion": "2019-12-01", "name": "[parameters('ipgroups_name1')]", "location": "[parameters('location')]", "properties": {"ipaddresses": ["13.73.64.64/26", "13.73.208.128/25", "52.126.194.0/23"]}}{"type": "microsoft.network/ipgroups", "apiversion": "2019-12-01", "name": "[param...
Create an Application Gateway v2
{"type": "microsoft.network/virtualnetworks", "apiversion": "2020-06-01", "name": "[parameters('virtualnetworkname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[parameters('vnetaddressprefix')]"]}, "subnets": [{"name": "[parameters('subnetname')]", "properties": {"ad...
This template creates a DNS zone within the Azure DNS resource provider. It then creates a RecordSet containing two DNS A records within that zone.
{"type": "microsoft.network/dnszones", "apiversion": "2018-05-01", "name": "[parameters('newzonename')]", "location": "global"}{"type": "microsoft.network/dnszones/a", "apiversion": "2018-05-01", "name": "[concat(parameters('newzonename'), "/", parameters('newrecordname'))]", "location": "global", "dependson": ["[param...
Create an Azure Firewall with multiple public IP addresses
{"type": "microsoft.network/networksecuritygroups", "apiversion": "2020-06-01", "name": "[concat(variables('nsg_name'), copyindex(1))]", "location": "[parameters('location')]", "copy": {"name": "nsg-loop", "count": 2}, "properties": {"securityrules": [{"name": "rdp", "properties": {"protocol": "tcp", "sourceportrange":...
This template configures WAF custom rules based on specific http parameters for Azure Front Door endpoint.
{"apiversion": "2019-03-01", "type": "microsoft.network/frontdoorwebapplicationfirewallpolicies", "name": "[parameters('wafpolicyname')]", "location": "[variables('waflocation')]", "properties": {"policysettings": {"mode": "[parameters('wafmode')]", "enabledstate": "enabled"}, "customrules": {"rules": [{"name": "[param...
Create a Site-to-Site VPN Connection to any on premises or other cloud networks such as AWS Virtual Private Cloud
{"apiversion": "2020-08-01", "type": "microsoft.network/localnetworkgateways", "name": "[parameters('localgatewayname')]", "location": "[parameters('location')]", "properties": {"localnetworkaddressspace": {"addressprefixes": ["[parameters('localaddressprefix')]"]}, "gatewayipaddress": "[parameters('localgatewayipaddre...
Create a Point-to-Site Gateway
{"apiversion": "2020-05-01", "type": "microsoft.network/virtualnetworks", "name": "[parameters('virtualnetworkname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[parameters('vnetaddressprefix')]"]}, "subnets": [{"name": "gatewaysubnet", "properties": {"addressprefix":...
This template provisions Azure Bastion and dependent resources in a Virtual Network.
{"apiversion": "2020-07-01", "type": "microsoft.network/publicipaddresses", "name": "[variables('public-ip-address-name')]", "location": "[parameters('location')]", "sku": {"name": "standard"}, "properties": {"publicipallocationmethod": "static"}}{"apiversion": "2020-07-01", "type": "microsoft.network/networksecuritygr...
Creates Virtual WAN resources
{"type": "microsoft.network/virtualwans", "apiversion": "2021-03-01", "name": "[parameters('vwanname')]", "location": "[parameters('location')]", "properties": {"type": "[parameters('vwansku')]"}}{"type": "microsoft.network/virtualhubs", "apiversion": "2021-03-01", "name": "[parameters('hubname')]", "location": "[param...
This template deploys a Route Server into a subnet named RouteServerSubnet.
{"condition": "[equals(parameters('vnetnew_or_existing'), "new')]", "type": "microsoft.network/virtualnetworks", "apiversion": "2020-05-01", "name": "[parameters('vnetname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[parameters('vnetipprefix')]"]}}}{"type": "microso...
Create an Application Gateway with path override
{"apiversion": "2020-07-01", "type": "microsoft.network/publicipaddresses", "name": "[variables('publicipaddressname')]", "location": "[parameters('location')]", "properties": {"publicipallocationmethod": "dynamic"}}{"apiversion": "2017-06-01", "type": "microsoft.network/virtualnetworks", "name": "[variables('virtualne...
Extend existing VNET to Multi-VNET
{"type": "microsoft.network/virtualnetworks", "apiversion": "2020-11-01", "name": "[variables('vnetname')]", "location": "[parameters('vnetlocation')]", "properties": {"addressspace": {"addressprefixes": ["10.0.0.0/16"]}, "subnets": [{"name": "[concat(variables('vnetname'),"-subnet')]", "properties": {"addressprefix": ...
Create a Point-to-Site Gateway with AAD
{"type": "microsoft.network/virtualnetworks", "apiversion": "2021-02-01", "name": "[parameters('virtualnetworkname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[parameters('virtualnetworkprefix')]"]}, "subnets": [{"name": "[parameters('frontendsubname')]", "propertie...
Network Security Group with diagnostic logs
{"type": "microsoft.network/networksecuritygroups", "apiversion": "2021-02-01", "name": "[parameters('nsgname')]", "location": "[parameters('location')]", "properties": {"copy": [{"name": "securityrules", "count": "[length(parameters('securityrules'))]", "input": {"name": "[parameters('securityrules')[copyindex('securi...
Create an Azure Firewall with Firewall Policy (including multiple application and network rules) and IpGroups
{"type": "microsoft.network/ipgroups", "apiversion": "2019-12-01", "name": "[parameters('workloadipgroup')]", "location": "[parameters('location')]", "properties": {"ipaddresses": ["10.20.0.0/24", "10.30.0.0/24"]}}{"type": "microsoft.network/ipgroups", "apiversion": "2019-12-01", "name": "[parameters('infraipgroup')]",...
Creates a Front Door that demonstrates priority-based routing for Active-Standby application topology. It sends all traffic to the primary (highest-priority) backend until it becomes unavailable.
{"apiversion": "2020-07-01", "type": "microsoft.network/frontdoors", "name": "[parameters('frontdoorname')]", "location": "[variables('frontdoorlocation')]", "properties": {"routingrules": [{"name": "routingrule1", "properties": {"frontendendpoints": [{"id": "[resourceid('microsoft.network/frontdoors/frontendendpoints"...
Install Virtual Network with DMZ Subnet
{"apiversion": "2020-05-01", "type": "microsoft.network/networksecuritygroups", "name": "[parameters('fensgname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "rdp_rule", "properties": {"description": "allow rdp", "protocol": "tcp", "sourceportrange": "*", "destinationportrange":...
Creates an ExpressRoute Circuit and an AzurePublicPeering BGP Peering
{"apiversion": "2020-08-01", "type": "microsoft.network/expressroutecircuits", "name": "[parameters('circuitname')]", "location": "[parameters('location')]", "tags": {"key1": "value1", "key2": "value2"}, "sku": {"name": "[concat(parameters('sku_tier'),"_", parameters('sku_family'))]", "tier": "[parameters('sku_tier')]"...
Azure Route Server in BGP peering with Quagga
{"comments": "network security group", "type": "microsoft.network/networksecuritygroups", "apiversion": "2021-03-01", "name": "[variables('nsgname')]", "location": "[variables('location')]", "properties": {"securityrules": [{"name": "ssh-rule", "properties": {"description": "allow ssh", "protocol": "tcp", "sourceportra...
Create a VNET to VNET connection using vNet Peering
{"type": "microsoft.network/virtualnetworks", "apiversion": "2020-05-01", "name": "[parameters('vnet1name')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[variables('vnet1config').addressspaceprefix]"]}, "subnets": [{"name": "[variables('vnet1config').subnetname]", "pro...
Add endpoint to existing profile
{"apiversion": "2018-04-01", "type": "microsoft.network/trafficmanagerprofiles/externalendpoints", "name": "[concat(parameters('existingtmprofilename'), "/", parameters('endpointname'))]", "properties": {"endpointstatus": "[variables('endpointstatus')]", "endpointlocation": "[variables('endpointlocation')]", "endpointm...
This template creates a standard internal Azure Load Balancer with a HA ports load-balancing rule
{"apiversion": "2020-05-01", "type": "microsoft.network/virtualnetworks", "name": "[variables('virtualnetworkname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[parameters('vnetaddressprefix')]"]}, "subnets": [{"name": "[variables('subnetname')]", "properties": {"addr...
Create an Application Gateway V2 with Key Vault
{"type": "microsoft.network/publicipaddresses", "apiversion": "2020-05-01", "name": "[variables('publicipaddressname')]", "location": "[parameters('location')]", "sku": {"name": "standard"}, "properties": {"publicipallocationmethod": "static"}}{"type": "microsoft.network/virtualnetworks", "apiversion": "2020-05-01", "n...
This template creates an Azure Traffic Manager profile that load-balances across multiple virtual machines placed in Availability Zones.
{"type": "microsoft.network/publicipaddresses", "apiversion": "2020-05-01", "name": "[concat(variables('publicipaddressname'), copyindex())]", "zones": "[split(string(add(mod(copyindex(),3),1)), ",')]", "sku": {"name": "standard"}, "copy": {"name": "iploop", "count": "[parameters('numberofvms')]"}, "location": "[parame...
This template configures WAF managed defaultRuleSet for Azure Front Door
{"type": "microsoft.network/frontdoorwebapplicationfirewallpolicies", "apiversion": "2020-11-01", "name": "[parameters('wafpolicyname')]", "location": "global", "properties": {"policysettings": {"mode": "[parameters('wafmode')]", "enabledstate": "enabled"}, "managedrules": {"managedrulesets": [{"rulesettype": "defaultr...
This template creates two vNets with peerings, a Bastion host in the Hub vNet and a Linux VM in the spoke vNet
{"name": "[parameters('vnethubname')]", "type": "microsoft.network/virtualnetworks", "apiversion": "2020-05-01", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[variables('vnethubprefix')]"]}, "subnets": [{"name": "[variables('subnetbastionname')]", "properties": {"addressp...
Application Gateway for URL Path Based Routing
{"apiversion": "2020-08-01", "type": "microsoft.network/publicipaddresses", "name": "[variables('publicipaddressname')]", "location": "[parameters('location')]", "properties": {"publicipallocationmethod": "dynamic"}}{"apiversion": "2020-08-01", "type": "microsoft.network/virtualnetworks", "name": "[variables('virtualne...
Configure ExpressRoute private peering, deploy and connect an Azure VNet to an ExpressRoute circuit
{"comments": "create the er circuit", "type": "microsoft.network/expressroutecircuits", "apiversion": "2020-06-01", "name": "[variables('ercircuitname')]", "location": "[variables('erlocation')]", "sku": {"name": "[variables('ersku_name')]", "tier": "[variables('ersku_tier')]", "family": "[variables('ersku_family')]"},...
This template creates a Front Door configuration with routing rule that is used to redirect HTTP traffic to HTTPS.
{"type": "microsoft.network/frontdoors", "apiversion": "2020-05-01", "name": "[parameters('frontdoorname')]", "location": "global", "properties": {"routingrules": [{"name": "httptohttps", "properties": {"frontendendpoints": [{"id": "[resourceid('microsoft.network/frontdoors/frontendendpoints", parameters('frontdoorname...
Add a subnet to an existing VNET
{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2021-03-01", "name": "[format('{0}/{1}", parameters('existingvnetname'), parameters('newsubnetname'))]", "properties": {"addressprefix": "[parameters('newsubnetaddressprefix')]"}}
This template configures a WAF rule for Azure Front Door to rate limit incoming traffic for a given frontend host.
{"apiversion": "2019-03-01", "type": "microsoft.network/frontdoorwebapplicationfirewallpolicies", "name": "[parameters('wafpolicyname')]", "location": "[variables('waflocation')]", "properties": {"policysettings": {"mode": "[parameters('wafmode')]", "enabledstate": "enabled"}, "customrules": {"rules": [{"name": "rule1"...
Network Interface in a Virtual Network with Public IP Address
{"apiversion": "2020-05-01", "type": "microsoft.network/publicipaddresses", "name": "[variables('publicipaddressname')]", "location": "[parameters('location')]", "properties": {"publicipallocationmethod": "[parameters('publicipaddresstype')]", "dnssettings": {"domainnamelabel": "[parameters('dnslabelprefix')]"}}}{"apiv...
This template configures WAF client IP restriction for Azure Front Door endpoint
{"apiversion": "2019-03-01", "type": "microsoft.network/frontdoorwebapplicationfirewallpolicies", "name": "[parameters('wafpolicyname')]", "location": "[variables('waflocation')]", "properties": {"policysettings": {"mode": "[parameters('wafmode')]", "enabledstate": "enabled"}, "customrules": {"rules": [{"name": "rule1"...
Create an Azure portal dashboard
{"type": "microsoft.portal/dashboards", "apiversion": "2019-01-01-preview", "name": "[parameters('dashboardname')]", "location": "[parameters('location')]", "tags": {"hidden-title": "[parameters('dashboarddisplayname')]"}, "properties": {"lenses": {"0": {"order": 0, "parts": {"0": {"position": {"x": 0, "y": 0, "rowspan...
A default dashboard that includes a pinned resource group tile and a markup tile with instructions to customize and share
{"apiversion": "2020-09-01-preview", "name": "[concat('shared-dashboard-", parameters('dashboardname'))]", "type": "microsoft.portal/dashboards", "location": "[parameters('location')]", "tags": {"hidden-title": "[parameters('dashboardname')]"}, "properties": {"lenses": [{"order": 0, "parts": [{"position": {"x": 0, "y":...
This template creates a scheduled analytics rule
{"scope": "[concat('microsoft.operationalinsights/workspaces/", parameters('existingworkspacename'))]", "type": "microsoft.securityinsights/alertrules", "apiversion": "2021-03-01-preview", "name": "[variables('ruleguid')]", "kind": "scheduled", "properties": {"displayname": "known iridium ip", "description": "iridium c...
This template creates an automation rule that triggers on incident creation (with certain conditions), executes a playbook and modifies two incident properies
{"type": "microsoft.securityinsights/automationrules", "name": "[variables('automationruleguid')]", "scope": "[concat('microsoft.operationalinsights/workspaces/", parameters('existingworkspacename'))]", "apiversion": "2019-01-01-preview", "properties": {"displayname": "[parameters('automationrulename')]", "order": 2, "...
Performs ETL job on data stored on blob.Also visualize real time data on PowerBI
{"type": "microsoft.datalakestore/accounts", "name": "[parameters('adlaccountname')]", "location": "[parameters('adllocation')]", "apiversion": "2016-11-01", "properties": {"newtier": "consumption", "encryptionstate": "disabled"}}