Skip to content

Instantly share code, notes, and snippets.

@mat-mcloughlin
Created November 6, 2018 14:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mat-mcloughlin/1a618ca8eb1bf14b732492317d6bf745 to your computer and use it in GitHub Desktop.
Save mat-mcloughlin/1a618ca8eb1bf14b732492317d6bf745 to your computer and use it in GitHub Desktop.
Expected ARM
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"sites_vnet_test_manual_as_name": {
"defaultValue": "vnet-test-manual-as",
"type": "String"
},
"serverfarms_vnet_test_manual_asp_name": {
"defaultValue": "vnet-test-manual-asp",
"type": "String"
},
"config_web_name": {
"defaultValue": "web",
"type": "String"
},
"virtualNetworks_vnet_test_manual_vn_name": {
"defaultValue": "vnet-test-manual-vn",
"type": "String"
},
"publicIPAddresses_vnet_test_manual_ip_name": {
"defaultValue": "vnet-test-manual-ip",
"type": "String"
},
"virtualNetworkGateways_vnet_test_manual_vng_name": {
"defaultValue": "vnet-test-manual-vng",
"type": "String"
},
"subnets_default_name": {
"defaultValue": "default",
"type": "String"
},
"subnets_GatewaySubnet_name": {
"defaultValue": "GatewaySubnet",
"type": "String"
},
"virtualNetworkConnections_vnet_test_manual_vn_name": {
"defaultValue": "vnet-test-manual-vn",
"type": "String"
},
"hostNameBindings_vnet_test_manual_as.azurewebsites.net_name": {
"defaultValue": "vnet-test-manual-as.azurewebsites.net",
"type": "String"
}
},
"variables": {},
"resources": [
{
"comments": "Generalized from resource: '/subscriptions/c74a7e55-a05b-4e94-8f74-0da587bbd439/resourceGroups/vnet-test-manual/providers/Microsoft.Network/publicIPAddresses/vnet-test-manual-ip'.",
"type": "Microsoft.Network/publicIPAddresses",
"sku": {
"name": "Basic",
"tier": "Regional"
},
"name": "[parameters('publicIPAddresses_vnet_test_manual_ip_name')]",
"apiVersion": "2018-08-01",
"location": "ukwest",
"scale": null,
"properties": {
"provisioningState": "Succeeded",
"resourceGuid": "632ea0ed-2732-49f0-b405-4cf982b8861f",
"ipAddress": "51.141.5.121",
"publicIPAddressVersion": "IPv4",
"publicIPAllocationMethod": "Dynamic",
"idleTimeoutInMinutes": 4,
"ipTags": []
},
"dependsOn": []
},
{
"comments": "Generalized from resource: '/subscriptions/c74a7e55-a05b-4e94-8f74-0da587bbd439/resourceGroups/vnet-test-manual/providers/Microsoft.Network/virtualNetworkGateways/vnet-test-manual-vng'.",
"type": "Microsoft.Network/virtualNetworkGateways",
"name": "[parameters('virtualNetworkGateways_vnet_test_manual_vng_name')]",
"apiVersion": "2018-08-01",
"location": "ukwest",
"scale": null,
"properties": {
"resourceGuid": "9e29d82a-6673-42ab-8e3a-6473f0c3e17f",
"ipConfigurations": [
{
"name": "default",
"etag": "W/\"a5b9c5b6-3f2c-4f02-b919-814ceb38e68c\"",
"properties": {
"privateIPAllocationMethod": "Dynamic",
"publicIPAddress": {
"id": "[resourceId('Microsoft.Network/publicIPAddresses', parameters('publicIPAddresses_vnet_test_manual_ip_name'))]"
},
"subnet": {
"id": "[resourceId('Microsoft.Network/virtualNetworks/subnets', parameters('virtualNetworks_vnet_test_manual_vn_name'), parameters('subnets_GatewaySubnet_name'))]"
}
}
}
],
"sku": {
"name": "VpnGw1",
"tier": "VpnGw1",
"capacity": 2
},
"gatewayType": "Vpn",
"vpnType": "RouteBased",
"enableBgp": false,
"activeActive": false,
"vpnClientConfiguration": {
"vpnClientAddressPool": {
"addressPrefixes": [
"10.0.1.0/24"
]
},
"vpnClientProtocols": [
"SSTP",
"IkeV2"
],
"vpnClientRootCertificates": [
{
"name": "AppServiceCertificate.cer",
"etag": "W/\"a5b9c5b6-3f2c-4f02-b919-814ceb38e68c\"",
"properties": {
"publicCertData": "MIIDSjCCAjagAwIBAgIQU4f3RYQK/odHGagnWOrGgTAJBgUrDgMCHQUAMDExLzAtBgNVBAMTJldlYnNpdGVzQ2VydGlmaWNhdGV2bmV0LXRlc3QtbWFudWFsLX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 65515,
"bgpPeeringAddress": "10.1.1.254",
"peerWeight": 0
}
},
"dependsOn": [
"[resourceId('Microsoft.Network/publicIPAddresses', parameters('publicIPAddresses_vnet_test_manual_ip_name'))]",
"[resourceId('Microsoft.Network/virtualNetworks/subnets', parameters('virtualNetworks_vnet_test_manual_vn_name'), parameters('subnets_GatewaySubnet_name'))]"
]
},
{
"comments": "Generalized from resource: '/subscriptions/c74a7e55-a05b-4e94-8f74-0da587bbd439/resourceGroups/vnet-test-manual/providers/Microsoft.Network/virtualNetworks/vnet-test-manual-vn'.",
"type": "Microsoft.Network/virtualNetworks",
"name": "[parameters('virtualNetworks_vnet_test_manual_vn_name')]",
"apiVersion": "2018-08-01",
"location": "ukwest",
"scale": null,
"properties": {
"provisioningState": "Succeeded",
"resourceGuid": "ecc5af15-423e-4aa2-b80e-9f90ec7f1454",
"addressSpace": {
"addressPrefixes": [
"10.1.0.0/16"
]
},
"subnets": [
{
"name": "default",
"etag": "W/\"7568d497-5967-46ac-bb8f-b9317ee84565\"",
"properties": {
"provisioningState": "Succeeded",
"addressPrefix": "10.1.0.0/24",
"delegations": []
}
},
{
"name": "GatewaySubnet",
"etag": "W/\"7568d497-5967-46ac-bb8f-b9317ee84565\"",
"properties": {
"provisioningState": "Succeeded",
"addressPrefix": "10.1.1.0/24",
"delegations": []
}
}
],
"virtualNetworkPeerings": [],
"enableDdosProtection": false,
"enableVmProtection": false
},
"dependsOn": []
},
{
"comments": "Generalized from resource: '/subscriptions/c74a7e55-a05b-4e94-8f74-0da587bbd439/resourceGroups/vnet-test-manual/providers/Microsoft.Web/serverfarms/vnet-test-manual-asp'.",
"type": "Microsoft.Web/serverfarms",
"sku": {
"name": "S1",
"tier": "Standard",
"size": "S1",
"family": "S",
"capacity": 1
},
"kind": "app",
"name": "[parameters('serverfarms_vnet_test_manual_asp_name')]",
"apiVersion": "2016-09-01",
"location": "UK West",
"scale": null,
"properties": {
"name": "[parameters('serverfarms_vnet_test_manual_asp_name')]",
"workerTierName": null,
"adminSiteName": null,
"hostingEnvironmentProfile": null,
"perSiteScaling": false,
"reserved": false,
"targetWorkerCount": 0,
"targetWorkerSizeId": 0
},
"dependsOn": []
},
{
"comments": "Generalized from resource: '/subscriptions/c74a7e55-a05b-4e94-8f74-0da587bbd439/resourceGroups/vnet-test-manual/providers/Microsoft.Web/sites/vnet-test-manual-as'.",
"type": "Microsoft.Web/sites",
"kind": "app",
"name": "[parameters('sites_vnet_test_manual_as_name')]",
"apiVersion": "2016-08-01",
"location": "UK West",
"scale": null,
"properties": {
"enabled": true,
"hostNameSslStates": [
{
"name": "[concat(parameters('sites_vnet_test_manual_as_name'),'.azurewebsites.net')]",
"sslState": "Disabled",
"virtualIP": null,
"thumbprint": null,
"toUpdate": null,
"hostType": "Standard"
},
{
"name": "[concat(parameters('sites_vnet_test_manual_as_name'),'.scm.azurewebsites.net')]",
"sslState": "Disabled",
"virtualIP": null,
"thumbprint": null,
"toUpdate": null,
"hostType": "Repository"
}
],
"serverFarmId": "[resourceId('Microsoft.Web/serverfarms', parameters('serverfarms_vnet_test_manual_asp_name'))]",
"reserved": false,
"siteConfig": null,
"scmSiteAlsoStopped": false,
"hostingEnvironmentProfile": null,
"clientAffinityEnabled": true,
"clientCertEnabled": false,
"hostNamesDisabled": false,
"containerSize": 0,
"dailyMemoryTimeQuota": 0,
"cloningInfo": null,
"httpsOnly": false
},
"dependsOn": [
"[resourceId('Microsoft.Web/serverfarms', parameters('serverfarms_vnet_test_manual_asp_name'))]"
]
},
{
"comments": "Generalized from resource: '/subscriptions/c74a7e55-a05b-4e94-8f74-0da587bbd439/resourceGroups/vnet-test-manual/providers/Microsoft.Network/virtualNetworks/vnet-test-manual-vn/subnets/default'.",
"type": "Microsoft.Network/virtualNetworks/subnets",
"name": "[concat(parameters('virtualNetworks_vnet_test_manual_vn_name'), '/', parameters('subnets_default_name'))]",
"apiVersion": "2018-08-01",
"scale": null,
"properties": {
"provisioningState": "Succeeded",
"addressPrefix": "10.1.0.0/24",
"delegations": []
},
"dependsOn": [
"[resourceId('Microsoft.Network/virtualNetworks', parameters('virtualNetworks_vnet_test_manual_vn_name'))]"
]
},
{
"comments": "Generalized from resource: '/subscriptions/c74a7e55-a05b-4e94-8f74-0da587bbd439/resourceGroups/vnet-test-manual/providers/Microsoft.Network/virtualNetworks/vnet-test-manual-vn/subnets/GatewaySubnet'.",
"type": "Microsoft.Network/virtualNetworks/subnets",
"name": "[concat(parameters('virtualNetworks_vnet_test_manual_vn_name'), '/', parameters('subnets_GatewaySubnet_name'))]",
"apiVersion": "2018-08-01",
"scale": null,
"properties": {
"provisioningState": "Succeeded",
"addressPrefix": "10.1.1.0/24",
"delegations": []
},
"dependsOn": [
"[resourceId('Microsoft.Network/virtualNetworks', parameters('virtualNetworks_vnet_test_manual_vn_name'))]"
]
},
{
"comments": "Generalized from resource: '/subscriptions/c74a7e55-a05b-4e94-8f74-0da587bbd439/resourceGroups/vnet-test-manual/providers/Microsoft.Web/sites/vnet-test-manual-as/config/web'.",
"type": "Microsoft.Web/sites/config",
"name": "[concat(parameters('sites_vnet_test_manual_as_name'), '/', parameters('config_web_name'))]",
"apiVersion": "2016-08-01",
"location": "UK West",
"scale": null,
"properties": {
"numberOfWorkers": 1,
"defaultDocuments": [
"Default.htm",
"Default.html",
"Default.asp",
"index.htm",
"index.html",
"iisstart.htm",
"default.aspx",
"index.php",
"hostingstart.html"
],
"netFrameworkVersion": "v4.0",
"phpVersion": "5.6",
"pythonVersion": "",
"nodeVersion": "",
"linuxFxVersion": "",
"windowsFxVersion": null,
"requestTracingEnabled": false,
"remoteDebuggingEnabled": false,
"remoteDebuggingVersion": null,
"httpLoggingEnabled": false,
"logsDirectorySizeLimit": 35,
"detailedErrorLoggingEnabled": false,
"publishingUsername": "$vnet-test-manual-as",
"publishingPassword": null,
"appSettings": null,
"azureStorageAccounts": {},
"metadata": null,
"connectionStrings": null,
"machineKey": null,
"handlerMappings": null,
"documentRoot": null,
"scmType": "None",
"use32BitWorkerProcess": true,
"webSocketsEnabled": false,
"alwaysOn": false,
"javaVersion": null,
"javaContainer": null,
"javaContainerVersion": null,
"appCommandLine": "",
"managedPipelineMode": "Integrated",
"virtualApplications": [
{
"virtualPath": "/",
"physicalPath": "site\\wwwroot",
"preloadEnabled": false,
"virtualDirectories": null
}
],
"winAuthAdminState": 0,
"winAuthTenantState": 0,
"customAppPoolIdentityAdminState": false,
"customAppPoolIdentityTenantState": false,
"runtimeADUser": null,
"runtimeADUserPassword": null,
"loadBalancing": "LeastRequests",
"routingRules": [],
"experiments": {
"rampUpRules": []
},
"limits": null,
"autoHealEnabled": false,
"autoHealRules": null,
"tracingOptions": null,
"vnetName": "vnet-test-manual-vn",
"siteAuthEnabled": false,
"siteAuthSettings": {
"enabled": null,
"unauthenticatedClientAction": null,
"tokenStoreEnabled": null,
"allowedExternalRedirectUrls": null,
"defaultProvider": null,
"clientId": null,
"clientSecret": null,
"issuer": null,
"allowedAudiences": null,
"additionalLoginParams": null,
"isAadAutoProvisioned": false,
"googleClientId": null,
"googleClientSecret": null,
"googleOAuthScopes": null,
"facebookAppId": null,
"facebookAppSecret": null,
"facebookOAuthScopes": null,
"twitterConsumerKey": null,
"twitterConsumerSecret": null,
"microsoftAccountClientId": null,
"microsoftAccountClientSecret": null,
"microsoftAccountOAuthScopes": null
},
"cors": null,
"push": null,
"apiDefinition": null,
"autoSwapSlotName": null,
"localMySqlEnabled": false,
"managedServiceIdentityId": null,
"xManagedServiceIdentityId": null,
"ipSecurityRestrictions": null,
"http20Enabled": false,
"minTlsVersion": "1.2",
"ftpsState": "AllAllowed",
"reservedInstanceCount": 0
},
"dependsOn": [
"[resourceId('Microsoft.Web/sites', parameters('sites_vnet_test_manual_as_name'))]"
]
},
{
"comments": "Generalized from resource: '/subscriptions/c74a7e55-a05b-4e94-8f74-0da587bbd439/resourceGroups/vnet-test-manual/providers/Microsoft.Web/sites/vnet-test-manual-as/hostNameBindings/vnet-test-manual-as.azurewebsites.net'.",
"type": "Microsoft.Web/sites/hostNameBindings",
"name": "[concat(parameters('sites_vnet_test_manual_as_name'), '/', parameters('hostNameBindings_vnet_test_manual_as.azurewebsites.net_name'))]",
"apiVersion": "2016-08-01",
"location": "UK West",
"scale": null,
"properties": {
"siteName": "vnet-test-manual-as",
"domainId": null,
"hostNameType": "Verified"
},
"dependsOn": [
"[resourceId('Microsoft.Web/sites', parameters('sites_vnet_test_manual_as_name'))]"
]
},
{
"comments": "Generalized from resource: '/subscriptions/c74a7e55-a05b-4e94-8f74-0da587bbd439/resourceGroups/vnet-test-manual/providers/Microsoft.Web/sites/vnet-test-manual-as/virtualNetworkConnections/vnet-test-manual-vn'.",
"type": "Microsoft.Web/sites/virtualNetworkConnections",
"name": "[concat(parameters('sites_vnet_test_manual_as_name'), '/', parameters('virtualNetworkConnections_vnet_test_manual_vn_name'))]",
"apiVersion": "2016-08-01",
"location": "UK West",
"scale": null,
"properties": {
"vnetResourceId": "[resourceId('Microsoft.Network/virtualNetworks', parameters('virtualNetworks_vnet_test_manual_vn_name'))]",
"certThumbprint": "6167A308BED528C0384486DB1A7B822A8D0EA003",
"certBlob": "MIIDSjCCAjagAwIBAgIQU4f3RYQK/odHGagnWOrGgTAJBgUrDgMCHQUAMDExLzAtBgNVBAMTJldlYnNpdGVzQ2VydGlmaWNhdGV2bmV0LXRlc3QtbWFudWFsLXZuMB4XDTE4MTEwNjA4MTkxNVoXDTM5MTIzMTIzNTk1OVowMTEvMC0GA1UEAxMmV2Vic2l0ZXNDZXJ0aWZpY2F0ZXZuZXQtdGVzdC1tYW51YWwtdm4wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCnfQ3F7jJCaS1DwuAvM/FtmCnxabouZApEvt88XEkdBbRrZ67VD2xTK6oNfntuFdcBlOFTUP9gkmtzrzAijv5fYeFmL3bM6mMEXWLuPsqlmOTKFP6Z3MxyeI96UewtkV1X6z9GIfaBb3F3/+AbsP66DxtKx27nHH7L8lete4yu+bdFmOj33QQH8ZBl1SCOKIpOBq2130e1mr+dJj6deGspFTH5hbnp5h15tmSp5RYrkom5tC2K3J8xFFX3zBRZwjzA5KIgjxipz/Zlt3Mu/yR6iLFGPKYWNqlYE2Q5h8JDWy5eFDEQE1lqMvcD3mFb/EkvViFWldyJ4j0aoGFqFZ9/AgMBAAGjZjBkMGIGA1UdAQRbMFmAEPiWWzcBC0lPbjd+xcjm+UqhMzAxMS8wLQYDVQQDEyZXZWJzaXRlc0NlcnRpZmljYXRldm5ldC10ZXN0LW1hbnVhbC12boIQU4f3RYQK/odHGagnWOrGgTAJBgUrDgMCHQUAA4IBAQBcUJMIpznh1qkmzc1bJLdlEwKxclM7U0zLhGZAR9LqLAeaQrXDhHqAEHVrNAeDxg+RYzGLTGsCVxw+jieIOAcyQiMHwtsy3T6jLoaiyqU913C6m1JZbuCr+WMLKQoLQtbrvtiG/jMunYOpAQA3V44n0mw8u64hRZA4aZ0GHAOrZ2b0N59lLNgcRyVJtBFjNj7Km6k5GkT5bNybVtOhApWPdyfm4ij9SB+XJdnXx7VLyvsb0yeivNzNChezdoGauq5KgqLsL43bJ1Q5VLNP1C1KEu118GORbwrCbuT2mnJdlFui2BSL04yX4iPfmFHZir2h/L5l7ztzVtW28XMtUePb",
"routes": null,
"resyncRequired": false,
"dnsServers": null,
"isSwift": false
},
"dependsOn": [
"[resourceId('Microsoft.Web/sites', parameters('sites_vnet_test_manual_as_name'))]",
"[resourceId('Microsoft.Network/virtualNetworks', parameters('virtualNetworks_vnet_test_manual_vn_name'))]"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment