An Azure service that provides a hybrid, multi-cloud management platform for APIs.
The message indicates lacking permission on the Azure OpenAI resource that backs uaisopenaiplaygroundeastus2. Only users with appropriate RBAC roles on that resource can view API keys.
To get access to the keys, the subscription owner or resource administrator must:
- Identify the Azure OpenAI resource
- In the Azure portal, locate the Azure OpenAI resource that corresponds to
uaisopenaiplaygroundeastus2.
- In the Azure portal, locate the Azure OpenAI resource that corresponds to
- Assign appropriate role-based access control (RBAC)
- On the Azure OpenAI resource, go to Access control (IAM).
- Assign a role that allows key access (for example, a role that grants permissions to manage or read keys on the resource) to the user or group that needs to see the keys.
- RBAC is required to create and manage Azure OpenAI resources and deployments, and the same access governs who can view keys.
- Retrieve the API key and endpoint (once access is granted)
- After the correct role is assigned, open the Azure OpenAI resource in the Azure portal.
- Go to Resource management > Keys & Endpoint.
- Copy
KEY1orKEY2and the endpoint URL from this page. These are used by the AI agent integration.
If not the subscription owner or resource admin, contact that person or team and request they either:
- Grant the necessary RBAC role on the Azure OpenAI resource, or
- Retrieve the API key and endpoint from Keys & Endpoint and provide them securely.
For security, API keys should not be embedded directly in code or shared broadly; they should be stored securely (for example, in Azure Key Vault) and rotated using the two-key mechanism (KEY1/KEY2).
References:
- FAQs about AI capabilities in Dynamics 365
- Quickstart: Chat with Azure OpenAI models using your own data (programming-language-typescript)
- Quickstart: Chat with Azure OpenAI models using your own data (programming-language-javascript)
- Quickstart: Chat with Azure OpenAI models using your own data (programming-language-powershell)