profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/andrewiankidd/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Andrew Kidd andrewiankidd Glasgow, Scotland http://andrewkidd.co.uk 🤠 gist.github.com/andrewiankidd

andrewiankidd/rcloneExplorer 136

rclone GUI for Windows

andrewiankidd/Plextras.js 55

Minor customizations to plex/web plugin

andrewiankidd/OpenWindowsLogger 1

Performance test tool to monitor the delay between action/reaction

andrewiankidd/TumblrOpticaCSSMod 1

Mod of the Tumblr theme Optica, to include Slick carousel/Featured posts

issue commenthashicorp/terraform-provider-azurerm

AppService: Setting Virtual applications and directories

Hit this today, combined with not being able to pass arrays, I came up with below. Thanks to @IanMoroney for the template. https://github.com/hashicorp/terraform-provider-azurerm/issues/34

resource "azurerm_template_deployment" "slots-virtualapps" {
  for_each            = {for k, v in local.slots : k => v if v.virtual_apps != []}
  name                = "${each.value.app_name}-${each.value.slot_key}-virtualapps-template-deployment"
  resource_group_name = var.rg_name
  template_body       = file("${path.module}/ARMTemplates/app-service-virtual-apps.json")
  deployment_mode     = "Incremental"
  parameters          = {
    "app_service_name"      = "${each.value.app_name}"
    "name_of_slot"          = "${each.value.slot_key}"
    "virtual_applications"  = base64encode(jsonencode(concat(
      [for virtualPath, physicalPath in each.value.virtual_apps : {
        "virtualPath": virtualPath,
        "physicalPath": physicalPath
      }],
      [{
        "virtualPath": "/",
        "physicalPath": "site\\wwwroot"
      }]
    )))
  }

  depends_on = [
    azurerm_app_service_slot.platform
  ]
}

resource "azurerm_template_deployment" "virtualapps" {
  for_each            = {for k, v in local.app_services : k => v if v.virtual_apps != []}
  name                = "${azurerm_app_service.platform[each.key].name}-virtualapps-template-deployment"
  resource_group_name = var.rg_name
  template_body       = file("${path.module}/ARMTemplates/app-service-virtual-apps.json")
  deployment_mode     = "Incremental"
  parameters          = {
    "app_service_name" = azurerm_app_service.platform[each.key].name
    "virtual_applications"  = base64encode(jsonencode(concat(
      [for virtualPath, physicalPath in each.value.virtual_apps : {
        "virtualPath": virtualPath,
        "physicalPath": physicalPath
      }],
      [{
        "virtualPath": "/",
        "physicalPath": "site\\wwwroot"
      }]
    )))
  }

  depends_on = [
    azurerm_app_service.platform
  ]
}

template:

{
	"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
	"contentVersion": "1.0.0.0",
	"parameters": {
		"app_service_name": {
			"type": "String"
		},
		"name_of_slot": {
			"type": "String",
			"defaultValue": "production"
		},
		"virtual_applications": {
			"type": "string",
			"defaultValue": "W10="
		}
	},
	"variables": {
		"virtual_applications": "[base64ToJson(parameters('virtual_applications'))]"
	},
	"resources": [
		{
			"type": "Microsoft.Web/sites/config",
			"name": "[concat(parameters('app_service_name'), '/web')]",
			"apiVersion": "2016-08-01",
			"condition": "[equals(parameters('name_of_slot'), 'production')]",
			"properties": {
				"virtualApplications": "[variables('virtual_applications')]"
			},
			"dependsOn": []
		},
		{
			"type": "Microsoft.Web/sites/slots/config",
			"name": "[concat(parameters('app_service_name'),'/', parameters('name_of_slot'),'/web')]",
			"apiVersion": "2016-08-01",
			"condition": "[not(equals(parameters('name_of_slot'), 'production'))]",
			"properties": {
				"virtualApplications": "[variables('virtual_applications')]"
			},
			"dependsOn": []
		}

	]
}
ghost

comment created time in 14 days

starteddebarshibasak/awesome-paas

started time in 17 days

issue openedandrewiankidd/project_armoire

multiplayer support

experimental branch

created time in 21 days

issue openedandrewiankidd/project_armoire

Create more maps

even just for testing purposes

created time in 21 days

create barnchandrewiankidd/project_armoire

branch : experimental/socket-tests

created branch time in 2 months

create barnchandrewiankidd/project_armoire

branch : develop

created branch time in 2 months

startedRafaelBarbosatec/bonfire

started time in 2 months

startedPh3nol/NotificationPusher

started time in 3 months

startedsid04naik/safari-push-notification

started time in 3 months