An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.
Azure Virtual Machines aren't needed to "host" Claude itself. Claude models are offered as a managed service through Microsoft Foundry (formerly Azure AI Foundry), and your automation agent can call them securely from anywhere including code running on an Azure VM.
Recommended architecture for your recruitment automation
| Component | Where it runs | How it works |
|---|---|---|
| -------- | ||
| Claude models (Opus/Sonnet/Haiku) | Microsoft Foundry (managed) | Deploy via the Foundry model catalog; no infrastructure to manage |
| Automation agent (LinkedIn scanning, profile matching, interview requests) | Azure VM / Azure Functions / Container | Python or .NET code that calls Claude's Messages API |
| Authentication | Azure Entra ID or API key | Use DefaultAzureCredential or API key from Foundry's Endpoints & keys page |
Step-by-step setup
- Deploy Claude in Microsoft Foundry
- Go to the Microsoft Foundry portal
- From the catalog, deploy Claude Sonnet 4.5, Claude Haiku 4.5, or Claude Opus 4.1[anthropic]
- These are available in public preview, serverless (Anthropic manages the infrastructure) [anthropic]
- Get API access
- In your Foundry resource: Endpoints and keys → copy the API key[code.claude]
- Or use Entra ID authentication with
DefaultAzureCredential
- Set environment variables on your VM (or agent runtime)
bash export ANTHROPIC_API_KEY="<your-foundry-api-key>"
export ANTHROPIC_RESOURCE="<your-foundry-project-name>" export ANTHROPIC_DEPLOYMENT_NAME="claude-sonnet-4-5"
1. **Call Claude from your automation code** Use the official Anthropic SDK (Python example):
```python
python
from
- Deploy your agent
- Run the agent on your Azure VM, or use Azure Functions, Container Apps, or AKS
- The VM is only for your application logic, not for hosting the model itself
Additional resources
- Deploy and use Claude models in Microsoft Foundry (preview)[learn.microsoft]
- Claude now available in Microsoft Foundry[anthropic]
- Build AI Agents Using Claude Models in Microsoft Foundry (video)[youtube]
This pattern lets you build your recruitment automation agent securely on Azure while leveraging Claude's capabilities through Microsoft's enterprise-grade managed service.
I Hope this helps. Do let me know if you have any further queries.
Thankyou!