Share via

Logic App API Connection Error : Storage account access key should be a correct base64 encoded string

Kothai Ramanathan 951 Reputation points Microsoft Employee
2021-07-07T05:50:36.293+00:00

I created a logic app with a storage api connection. However, I get this error : Storage account access key should be a correct base64 encoded string. I created the logic app through arm template.

If I edit the api connection, provide the same value again, initially it gives the same error, but after some time this error goes.

It would be helpful to know why this issue is coming up and how to overcome it.

Thanks.

Azure Logic Apps
Azure Logic Apps

An Azure service that automates the access and use of data across clouds without writing code.

0 comments No comments

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 71,016 Reputation points Moderator
    2021-07-08T09:30:30.417+00:00

    Hi @Kothai Ramanathan

    Due to character limit posting as answer. Are you defining the "Microsoft.Web/connections" in your ARM templated or just referring the existing connection. As it looks like the value are not correctly specified in the Microsoft.Web/connections therefore when you reconfigure it works fine. For your reference sharing from the below from quick start templates.

     "resources": [  
            {  
                "type": "Microsoft.Web/connections",  
                "apiVersion": "2018-07-01-preview",  
                "name": "[parameters('storageConnectionName')]",  
                "location": "[parameters('location')]",  
                "dependsOn": [  
                    "[resourceId('Microsoft.Storage/storageAccounts', parameters('storageAccountName'))]"  
                ],  
                "properties": {  
                    "api": {  
                        "id": "[subscriptionResourceId('Microsoft.Web/locations/managedApis', parameters('location'), 'azureblob')]"  
                    },  
                    "parameterValues": {  
                        "accountName": "[parameters('storageAccountName')]",  
                        "accessKey": "[listKeys(variables('storageAccountId'), '2019-04-01').keys[0].value]"  
                    },  
                    "testLinks": [  
                        {  
                            "requestUri": "[uri(parameters('azureMgmtUri'), concat('subscriptions/', subscription().subscriptionId, '/resourceGroups/', resourceGroup().name, '/providers/Microsoft.Web/connections/', parameters('storageConnectionName'), '/extensions/proxy/testconnection?api-version=2018-07-01-preview'))]",  
                            "method": "get"  
                        }  
                    ]  
                }  
            }  
    

    Was this answer helpful?


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.