Hii Su Myat Hlaing, Yes, using Managed Identity is the recommended and secure approach for your scenario where both Azure Cognitive Search and Azure Blob Storage are restricted to Selected Networks.
Why Managed Identity Is the Right Approach
- Secure Authentication
- Managed Identity eliminates the need to store and manage credentials like connection strings or keys.
- You don’t expose secrets that could be leaked or compromised.
- Network Compatibility
- By allowing resource access via "Resource instances" in your Blob Storage network settings, you bypass the need for public IP whitelisting.
- This makes your setup more secure and cloud-native.
- Granular Access Control
- You can assign only the necessary role (e.g., Storage Blob Data Reader) to the AI Search service.
- This follows the principle of least privilege.
- Scalability and Maintenance
- No need to manage IP addresses (which can change).
Works seamlessly across environments (e.g., dev/test/prod).
You can mark it 'Accept Answer' and 'Upvote' if this helped you
Regards,
Vishvani