Can We Bring Our Own Key to Access Azure AI Services Instead of Using the Microsoft Default Key?

Niket Kumar Singh 320 Reputation points
2024-07-19T15:12:09.9933333+00:00

Hi everyone,

I'm looking into using Azure AI services for our projects, and I have a question regarding encryption keys. Is it possible to bring our own key and use it to access the Azure AI services instead of using the default key provided by Microsoft? If so, what are the steps involved in setting this up? Any guidance or documentation links would be greatly appreciated!
User's image

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,184 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,631 questions
0 comments No comments
{count} votes

Accepted answer
  1. Amira Bedhiafi 19,706 Reputation points
    2024-07-21T17:46:15.5433333+00:00

    You can create or Import Your Key in Azure Key Vault:

    • Go to the Azure portal.
    • Navigate to Azure Key Vault.
    • Create a new key vault if you don't already have one.
    • In the key vault, you can either generate a new key or import an existing one.

    Then set Up Access Policies:

    • In your Key Vault, configure the access policies to grant permissions to the necessary Azure AI services.
    • Ensure that the appropriate identities (e.g., service principals, managed identities) have permissions like get, unwrapKey, and wrapKey.

    Then configure Azure AI Service to Use the Key:

    • When setting up your Azure AI service (e.g., Azure Cognitive Services), configure it to use the key stored in Azure Key Vault.
    • During the setup or configuration of the AI service, you will specify the Key Vault URL and the key to be used.

    Check the documentation : https://learn.microsoft.com/en-us/azure/key-vault/keys/byok-specification

    0 comments No comments

0 additional answers

Sort by: Most helpful