locked
Azure File Sync - Selective Tiering by File Type RRS feed

  • Question

  • I may be missing something, but I am trying to find a way to keep certain file types hot. Is this possible or on a roadmap?
    Monday, June 10, 2019 6:03 PM

All replies

  • May I know what exactly are you trying to perform (Can you bit elaborate more on the issue)?

    If you are referring to types of storage accounts and their capabilities:

    Tuesday, June 11, 2019 4:38 AM
  • You can indeed set lifecycle rules to transition from multiple access tiers an example of setting rules can be seen in here and as below using ARM, this can pertain so specific blobs.

    {
      "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
      "contentVersion": "1.0.0.0",
      "parameters": {},
      "variables": {
        "storageAccountName": "[uniqueString(resourceGroup().id)]"
      },
      "resources": [
        {
          "type": "Microsoft.Storage/storageAccounts",
          "name": "[variables('storageAccountName')]",
          "location": "[resourceGroup().location]",
          "apiVersion": "2019-04-01",
          "sku": {
            "name": "Standard_RAGRS"
          },
          "kind": "StorageV2",
          "properties": {
            "networkAcls": {}
          }
        },
        {
          "name": "[concat(variables('storageAccountName'), '/default')]",
          "type": "Microsoft.Storage/storageAccounts/managementPolicies",
          "apiVersion": "2019-04-01",
          "dependsOn": [
            "[variables('storageAccountName')]"
          ],
          "properties": {
            "policy": {...}
          }
        }
      ],
      "outputs": {}
    }
    If you'd like to specifically keep blobs in a cool or hot tier, you can create a rule using a specific prefix. Let me know if this helps.

    Wednesday, June 12, 2019 4:53 PM
  • @Jameson, Just checking in to see if the above answer helped. If this answers your query, do click “Mark as Answer” and Up-Vote for the same, which might be beneficial to other community members reading this thread. And, if you have any further query do let us know.


    Thursday, June 20, 2019 5:47 AM