'Unable to Publish ADF Storage Event Trigger

I have created storage event trigger in my Azure Data Factory. StorageV2 (general purpose v2) account has been configured with it, If file is place in input container event trigger should run the pipeline. While publishing trigger I got below exception, Unable to publish storeg event trigger.

The attempt to configure storage notifications for the provided storage account xxxxxxxxxxxxx failed. Please ensure that your storage account meets the requirements described at https://aka.ms/storageevents. The error is Failed to retrieve credentials for request=RequestUri=https://management.azure.com/subscriptions/xxxxxxxxxxxxxxxxxxxxxxx/resourceGroups/xxxxxxxxx/providers/Microsoft.Storage/storageAccounts/xxxxxxxxxxxxxxx/listAccountSas, Method=POST, response=StatusCode=400, StatusDescription=Bad Request, IsSuccessStatusCode=False, Content=System.Net.HttpWebResponse, responseContent={"error":{"code":"InvalidValuesForRequestParameters","message":"Values for request parameters are invalid: keyToSign."}}



Solution 1:[1]

The same issue observed by other users in the past and the most possible reason for this error could be because of firewall settings. Please check if your storage account have a firewall setup? If yes, please try stopping the firewall and then check if it works.

Also, please double check if your storage type is General purpose V2.

enter image description here

Solution 2:[2]

On your storage account in the networking pane, there is an exception you can enable: "Allow Azure services on the trusted services list to access this storage account."

Exception that should be enabled.

In case you do not want to have the public network access enabled from all networks, this setting works with self hosted integration runtimes through adding the virtual network and trusted resource type.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 UtkarshPal-MT
Solution 2 daanlib