Share via

Issue with Change Feed while creating Blob Storage Account

Pallab Chakraborty 401 Reputation points
2021-05-24T05:52:32.083+00:00

I am trying to create a Blob Storage Account along with 2 containers. I would like to enable Change Feed for my Storage Blob along with Object Versioning,Retention Policy etc. I am trying to use Azure DevOps pipeline to deploy the Storage Account resource along with the containers. While running the pipeline i get the error attached in the screenshot. My code is shown below. Can anyone tell me what is the issue with Change Feed. Thanks

{  
    "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",  
    "contentVersion": "1.0.0.0",  
    "parameters": {  
        "storageAccountType": {  
            "type": "string",  
            "defaultValue": "Standard_LRS",  
            "allowedValues": [  
                "Standard_LRS",  
                "Standard_GRS",  
                "Standard_ZRS",  
                "Premium_LRS"  
            ],  
            "metadata": {  
                "description": "Storage Account type"  
            }  
        },  
        "location": {  
            "type": "string",  
            "defaultValue": "[resourceGroup().location]",  
            "metadata": {  
                "description": "Storage Account Location"  
            }  
        },  
        "containerPrefix" : {  
            "type"          : "string",  
            "defaultValue"  : "[resourceGroup().location]"  
        }  
},  
    "variables": {  
        "storageAccountName": "[tolower(concat('stor', uniquestring(subscription().id,resourceGroup().id)))]"  
    },  
    "resources": [  
        {  
            "type": "Microsoft.Storage/storageAccounts",  
            "apiVersion": "2021-01-01",  
            "name": "[variables('storageAccountName')]",  
            "location": "[parameters('location')]",  
            "sku": {  
                "name": "[parameters('storageAccountType')]"  
            },  
            "kind": "StorageV2",  
            "properties": {  
                "minimumTlsVersion"     : "TLS1_2",  
                "allowBlobPublicAccess" : false  
            }  
        },  
        {  
            "type": "Microsoft.Storage/storageAccounts/blobServices",  
            "apiVersion": "2021-01-01",  
            "name"      :"[tolower(concat(variables('storageaccountname'), '/default'))]",  
            "dependsOn": [  
              "[resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName'))]"  
            ],  
            "properties": {  
                "isVersioningEnabled"   : true,  
                "deleteRetentionPolicy" : {  
                    "enabled" :  true,  
                    "days"    :  30  
                },  
                "changeFeed"  : {  
                    "enabled"        : true,  
                    "retentionInDays": 30  
                },  
                "containerDeleteRetentionPolicy" :{  
                    "enabled" : true,  
                    "days"    : 30  
                }  
            }  
        },  
        {  
            "type": "Microsoft.Storage/storageAccounts/blobServices/containers",  
            "apiVersion": "2021-01-01",  
            "name": "[concat(variables('storageAccountName'), '/default/', parameters('containerPrefix'), copyIndex())]",  
            "copy": {  
                "name": "containercopy",  
                "count": 2  
            },  
            "dependsOn": [  
              "[resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName'))]"  
            ]   
        }  
    ],  
    "outputs": {  
        "storageAccountName": {  
            "type": "string",  
            "value": "[variables('storageAccountName')]"  
        }  
    }  
}![98996-change-feed-error.jpg][1]  
Azure Storage
Azure Storage

Globally unique resources that provide access to data management services and serve as the parent namespace for the services.

Azure Blob Storage
Azure Blob Storage

An Azure service that stores unstructured data in the cloud as blobs.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.