When working with Azure, Blob Storage is frequently used. This article documents several common approaches for accessing Blob Storage from applications running in production environments:
一、Accessing Blob Storage via a Microsoft Entra ID Application Account
Advantages:
- Works outside Azure environments (e.g., on-premises servers, AWS EC2)
- Supports cross-subscription and cross-tenant access
Disadvantages:
- Secrets must be securely stored (e.g., in Azure Key Vault)
- Manual secret rotation is required upon expiration; otherwise, the application will break
- Risk of credential leakage, especially if secrets are hardcoded in CI/CD pipelines
The specific configuration is as follows: