Can We Replace the SAS Key with Our Own API Key for Azure AI Services?

Niket Kumar Singh 340 Reputation points
2024-07-22T16:54:31.59+00:00

Hi,

I’m currently using Azure AI services and want to know if it’s possible to replace the default SAS (Shared Access Signature) key with a key that we own. If so, what steps are involved in configuring this? Any guidance or documentation links would be greatly appreciated.

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
2,824 questions
{count} votes

Accepted answer
  1. AshokPeddakotla-MSFT 32,056 Reputation points
    2024-08-09T02:26:22.3166667+00:00

    Niket Kumar Singh AFAIK, you cannot use your own keys for accessing the Azure OpenAI service it self. There are other ways to authenticate Azure OpenAI as you referred.

    Also, Azure OpenAI provides alternative authentication to Azure OpenAI services through a gateway and keyless authentication with Azure OpenAI.

    I hope this clarifies. Do let me know if there are any further queries.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Azar 22,850 Reputation points MVP
    2024-07-22T20:14:25.3133333+00:00

    Hi there Niket Kumar Singh

    Thanks for using QandA platform

    I think, you cannot replace the default SAS key with your own key for Azure AI services. SAS keys are generated and managed for secure access to its resources. butr, you can manage and rotate these keys through the Azure portal to enhance security.

    For managing SAS keys, look below

    go to your Azure AI service resource.

    Access the Keys and Endpoint section- where you can find the SAS keys.

    Regenerate the keys as needed to maintain security.

    If you need more advanced key management, try using Azure Key Vault to store and manage your keys securely.

    https://learn.microsoft.com/en-us/azure/key-vault/general/overview

    If this helps kindly accept the answer thanks much,


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.