Skip to main content

Azure Open AI API key

Description

General

  • Documentation: https://learn.microsoft.com/en-us/azure/ai-services/openai/reference

  • Summary: Azure is a cloud computing service created by Microsoft. Open AI is an AI service which enables one to train its own LLM to fit its needs. The trained model is then serviced through a REST API, which requires authentication by an API key. This detector finds this key.

  • IPs allowlist: See Restrict caller IPs

  • Scopes: API keys are specific for each resource

Revoke the secret

It is possible to rotate keys in Azure AI services

Check for suspicious activity

Azure gives access to detailed logs, see Azure platform logs

Details for Azure open ai api key

  • Family: Api

  • Category: AI

  • Company: Microsoft

  • High recall: False

  • Validity check available: True

  • On-premise instances exist: False

  • Only valid secrets raise an alert: False

  • Minimum number of matches: 2

  • Occurrences found for one million commits: 5.83

  • Prefixed: False

  • PreValidators:

- type: ContentWhitelistPreValidator
patterns:
- openai
- type: ContentWhitelistPreValidator
patterns:
- azure

Examples

- text: |
"AZURE_OPENAI_ENDPOINT": "https://my-gpt.openai.azure.com/openai/deployments/my-deployment",
"AZURE_OPENAI_APIKEY": "dc79f95b01254ecbab4f721ff655ae2f",
apikey: dc79f95b01254ecbab4f721ff655ae2f
azure_endpoint: https://my-gpt.openai.azure.com

- text: |
AZURE_OPENAI_ENDPOINT=https://test-llm.openai.azure.com/openai/deployments/my-deployment
AZURE_OPENAI_API_KEY=28e3ada2c45a4e0581fc095cbb3d5faa
apikey: 28e3ada2c45a4e0581fc095cbb3d5faa
azure_endpoint: https://test-llm.openai.azure.com

- text: |
azureEndpoint=https://new-completion.openai.azure.com/openai/deployments/my-deployment
azureOpenAIApiKey: "a6e48f0a94d949309e66faa91827fd86",
apikey: a6e48f0a94d949309e66faa91827fd86
azure_endpoint: https://new-completion.openai.azure.com

- text: |
os.environ["AZURE_ENDPOINT"] = "https://openai-test-resource-france.openai.azure.com/"
os.environ["AZURE_OPENAI_API_KEY"] = "b19b2357dcde45af8ddb27a196867812"
apikey: b19b2357dcde45af8ddb27a196867812
azure_endpoint: https://openai-test-resource-france.openai.azure.com

How can I help you ?