Skip to content

Commit 8fa78ee

Browse files
Merge pull request #250065 from pauldotyu/docs-editor/managed-identity-1693526138
Update managed-identity.md to include requirement for custom subdomain for AAD auth
2 parents d5a1920 + 20f04ed commit 8fa78ee

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

articles/ai-services/openai/how-to/managed-identity.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@ In the following sections, you'll use the Azure CLI to assign roles, and obtain
2222

2323
- An Azure subscription - <a href="https://azure.microsoft.com/free/cognitive-services" target="_blank">Create one for free</a>
2424
- Access granted to the Azure OpenAI Service in the desired Azure subscription
25+
- Currently, access to this service is granted only by application. You can apply for access to Azure OpenAI by completing the form at [https://aka.ms/oai/access</a>. Open an issue on this repo to contact us if you have an issue.
26+
27+
- [Custom subdomain names are required to enable features like Azure Active Directory (Azure AD) for authentication.](
28+
../../cognitive-services-custom-subdomains.md)
2529

26-
Currently, access to this service is granted only by application. You can apply for access to Azure OpenAI by completing the form at <a href="https://aka.ms/oai/access" target="_blank">https://aka.ms/oai/access</a>. Open an issue on this repo to contact us if you have an issue.
2730
- Azure CLI - [Installation Guide](/cli/azure/install-azure-cli)
2831
- The following Python libraries: os, requests, json
2932

@@ -62,14 +65,16 @@ Assigning yourself to the "Cognitive Services User" role will allow you to use y
6265
```
6366
6467
4. Make an API call
68+
6569
Use the access token to authorize your API call by setting the `Authorization` header value.
6670
67-
```bash
68-
curl ${endpoint%/}/openai/deployments/YOUR_DEPLOYMENT_NAME/completions?api-version=2023-05-15 \
69-
-H "Content-Type: application/json" \
70-
-H "Authorization: Bearer $accessToken" \
71-
-d '{ "prompt": "Once upon a time" }'
72-
```
71+
72+
```bash
73+
curl ${endpoint%/}/openai/deployments/YOUR_DEPLOYMENT_NAME/completions?api-version=2023-05-15 \
74+
-H "Content-Type: application/json" \
75+
-H "Authorization: Bearer $accessToken" \
76+
-d '{ "prompt": "Once upon a time" }'
77+
```
7378

7479
## Authorize access to managed identities
7580

@@ -86,3 +91,4 @@ Before you can use managed identities for Azure resources to authorize access to
8691
- [Azure Resource Manager client libraries](../../../active-directory/managed-identities-azure-resources/qs-configure-sdk-windows-vm.md)
8792

8893
For more information about managed identities, see [Managed identities for Azure resources](../../../active-directory/managed-identities-azure-resources/overview.md).
94+

0 commit comments

Comments
 (0)