> For the complete documentation index, see llms.txt.
Skip to main content

Check out Port for yourself ➜ 

Azure Anthropic setup

Connect Port to Claude models hosted in your Azure deployment through the Anthropic on Azure integration. This guide walks you through storing your Azure credentials and registering Azure Anthropic as an LLM provider in Port.

Prerequisites

  • An active Azure subscription with access to Anthropic models through Azure AI Model Catalog or Anthropic on Azure.
  • A deployed Anthropic model in Azure with the endpoint and API key.
  • Your Azure endpoint URL and API key for the Anthropic deployment.
Azure Anthropic integration

This provider type connects to Claude models made available through Azure's Anthropic integration. For Claude models on Google Cloud's Vertex AI, use the Vertex Anthropic provider instead.

Step 1: Gather your Azure Anthropic configuration

Before configuring the provider, collect the following information from your Azure Anthropic deployment:

  • Endpoint URL: Your Azure Anthropic endpoint URL.
  • API Key: Your Azure Anthropic API key.

Step 2: Store your API key in Port secrets

Store your Azure Anthropic API key in Port's secrets system.

  1. In your Port application, click on your profile picture .
  2. Click on Credentials.
  3. Click on the Secrets tab.
  4. Click on + Secret and add your secret(s).

For provider-specific secret requirements and examples, see Step 2: Store API Keys in Secrets.

Secret naming flexibility

You can choose any names for your secrets. The examples are suggestions. Use names that make sense for your organization, and reference the exact names in your provider configuration.

For more details on managing secrets, see the Port Secrets documentation.

Step 3: Register Azure Anthropic with the Port API

Call the Create or connect an LLM provider API with validate_connection=true to test your configuration. Set provider to "azure-anthropic" and provide your Azure endpoint and the secret name you created in Step 2.

{
"provider": "azure-anthropic",
"enabled": true,
"config": {
"apiKeySecretName": "azure-anthropic-api-key",
"endpoint": "https://your-endpoint.azure.com"
}
}

Replace your-endpoint.azure.com with your actual Azure Anthropic endpoint URL.

Supported models

When you register Azure Anthropic without specifying model overrides, Port validates all supported Claude models by default. If you only have access to specific models or want to limit which models are enabled, use the overrides field. See Model overrides for details.

Step 4: Validate the configuration

The validate_connection=true parameter tests your configuration by making a request to your provider. If validation succeeds, your provider configuration is saved. If it fails, check the error message for details.

For more troubleshooting steps, see the Setup & Configuration guide.

Common validation failures:

  • Invalid API key: Verify your API key is correct and active in the Azure portal.
  • Incorrect endpoint: Ensure the endpoint URL matches your Azure Anthropic deployment's endpoint.
  • Insufficient quota: Ensure your Azure deployment has sufficient quota allocated.
  • Model access: Verify you have access to the Claude models through your Azure subscription.

After registration

Once your provider is configured:

For more information on provider selection and validation flow, see Setup & Configuration.