While trying to connect to an Azure Storage bucket in Automation Cloud Orchestrator, the error "An error has occurred" is encountered. How can this be resolved?
Issue Description: The following error is displayed when accessing the Azure storage account through Automation Cloud: "An error has occurred".
Root Cause: This issue will occur in the following scenarios:
- Not allowing public access to the Storage bucket and setting the Network policy of the Storage bucket to only allow access from certain IP Addresses.
- Creating the Automation Cloud tenant and the Azure storage bucket in the same regions.
Azure sends the Status: 403 (This request is not authorized to perform this operation.)
ErrorCode: AuthorizationFailure
According to Azure documentation, IP network rules cannot be used to restrict access to Azure services deployed in the same region as the storage account, because services deployed in the same region use private Azure IPs addresses for communication, and the Private IP Addresses cannot be added in the allowed list of addresses in "Network policy:" .
Resolution: Create the Azure storage account in a different region from the same geography (Example: for the North Europe tenant, the storage account should be created in other available Europe regions like France Central or West Europe.