App Layering - Azure gallery images publish with Standard disks

book

Article ID: CTX694937

calendar_today

Updated On:

Description

App Layering is creating images with Standard Disk configuration in the Azure gallery.

Cause

The Azure template spec used for the "Layered Image" template was not configured for an alternate storage type.

Resolution

  1. Start with the starter ARM template found here for the Layered Image template:
    https://docs.citrix.com/en-us/citrix-app-layering/4/connect/azure-deployments/starter-templates#layered-image-template

  2. Find "publishingProfile" and the following line as the first object:
    "storageAccountType": "[variables('storageSku')]",
  3. The full block for "publishingProfile" should now look like this:
    "publishingProfile": {
                                 "storageAccountType": "[variables('storageSku')]",
                                 "replicaCount": "[variables('replicaCount')]",
                                 "targetRegions": "[map(variables('targetRegions'), lambda('item', if(contains(lambdaVariables('item'), 'name'), lambdaVariables('item'), createObject('name', lambdaVariables('item')))))]"
                             },
  4. Towards the top of the template find the "variables" and then look for "storageSku". By default there will already be a variable on the same line for 'StandardSSD_LRS'. Change this to the appropriate storage type you need, such as 'Premium_LRS'. The line should now look like this:
    "storageSku": "[if(contains(variables('custom'), 'storageSku'), variables('custom').storageSku, 'Premium_LRS')]",

 

Alternate Option

Alternatively this can be added to the Custom Data section of the App Layering connector page for Layered Image. Change the region and storage type as needed. No additional changes would need to be made to the template spec.

   "targetRegions": [
         {
             "name": "eastus2",
             "storageAccountType": "Premium_LRS"
         }
     ]

 

Issue/Introduction

Azure gallery images published from App Layering default to StandardHDD_LRS disks while an alternate disk type is required.