Hey Freddy,
That's a frustrating one! I've seen this authentication issue pop up a few times with managed compute deployments, especially with the newer GPT-5 models. The 401 error you're seeing is usually related to the managed identity not having the right permissions to access Azure's internal blob storage.
Here's what's likely happening: When you deploy a model on managed compute, Azure creates a system-assigned managed identity for your endpoint that needs to download the model files from Microsoft's internal storage. Sometimes this identity doesn't get the right permissions automatically.
Quick things to try:
- Check your workspace permissions - Make sure your user account has "Contributor" or "Owner" role on the AI Foundry workspace (not just the resource group)
- Try a different region - I know it's annoying, but sometimes certain regions have temporary issues with the automatic permission assignment. If you're not tied to a specific region, try deploying in East US or West Europe
- Wait and retry - Sometimes it's just a temporary glitch. Give it 15-20 minutes and try deploying again
If those don't work:
Open a support ticket and mention the specific error from your screenshot. The Azure AI team can manually fix the managed identity permissions on the backend - they've had to do this for several people I know.
When you open the ticket, include:
- Your workspace name and region
- The exact model you're trying to deploy (gpt-5-mini)
- The timestamp of when you tried the deployment
- That screenshot you already have
One more thing to check: Make sure you're not hitting any quota limits for GPT-5 models in your subscription. Sometimes quota issues can show up as weird authentication errors.
Let me know if any of those work for you! This is definitely a known issue with the service, not something you did wrong.
Best Regards,
Jerald Felix