@Ankita Rani Patro Welcome to Microsoft Q&A Forum, Thank you for posting your query here!
Adding more information to the above response!
Based on the error message, Please refer to the suggestion mentioned in this Tech Community Blog
"Public access is not permitted on the storage account" means that the Azure storage account is configured to prevent anonymous access to its data, meaning anyone without specific credentials cannot access the files stored within it, effectively blocking public access to the storage account; this is typically done for security reasons to protect sensitive data.
Can you please share the screenshot of the error message, If the issue still persists?
To enable a service principal to access a private storage container from an on-premises Splunk instance, you need to ensure that the network configuration and permissions are correctly set up. Here are the steps you can follow:
Network Configuration: Ensure that your on-premises Splunk instance is connected to Azure via a secure method such as VPN or ExpressRoute. If you're using the internet, you need to enable the public endpoint of the Azure Storage Account and configure the storage firewall to allow access from specific public IP addresses
Private Endpoint: If you're using a private endpoint, make sure it is correctly configured. The service principal must have the necessary permissions to access the storage account via the private endpoint. You can refer to the Azure documentation on how to connect to a storage account using a private endpoint
Service Principal Permissions: Verify that the service principal has the correct permissions. The Storage Blob Data Contributor role should be sufficient, but ensure there are no additional restrictions or policies affecting access
Firewall Rules: Check the firewall rules on the storage account to ensure they allow access from the selected network. Make sure there are no conflicting rules that might be blocking access
By following these steps, you should be able to configure your service principal to access the private storage container from your on-premises Splunk instance. If you encounter any issues, double-check the network configuration, permissions, and firewall rules to ensure everything is set up correctly.
Additional information : To access a private Azure storage container from an on-premise Splunk instance using a service principal, you need to configure the Splunk add-on for Microsoft Cloud Services, create a service principal with appropriate permissions on the storage account in Azure, and then use the service principal credentials within the Splunk add-on to access the private container data
Authorize access to blobs using Microsoft Entra ID
Splunking Microsoft Cloud Data
You must install the latest version of Splunk Add-on for Microsoft Cloud Services from Splunkbase (https://splunkbase.splunk.com/app/3110/#/details)). You must be ingesting Azure Active Directory events into your Splunk environment through an EventHub. This analytic was written to be used with the azure:monitor:aad sourcetype leveraging the SignInLogs log category.
Please let us know if you have any further queries. I’m happy to assist you further.
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.