Skip to content

Commit 67860b7

Browse files
committed
Merge branch 'main' of https://github.com/MicrosoftDocs/azure-docs-pr into rolyon-includes-active-directory-cleanup-v14
2 parents afd2cdb + c10181f commit 67860b7

File tree

9 files changed

+56
-45
lines changed

9 files changed

+56
-45
lines changed

articles/ai-services/openai/includes/use-your-data-common-variables.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ To successfully make a call against Azure OpenAI, you need the following variabl
1616
|--------------------------|-------------|
1717
| `AZURE_OPENAI_ENDPOINT` | This value can be found in the **Keys & Endpoint** section when examining your Azure OpenAI resource from the Azure portal. Alternatively, you can find the value in **Azure AI studio** > **Chat playground** > **Code view**. An example endpoint is: `https://my-resoruce.openai.azure.com`.|
1818
| `AZURE_OPENAI_API_KEY` | This value can be found in **Resource management** > **Keys & Endpoint** section when examining your Azure OpenAI resource from the Azure portal. You can use either `KEY1` or `KEY2`. Always having two keys allows you to securely rotate and regenerate keys without causing a service disruption. |
19-
| `AZURE_OPEN_AI_DEPLOYMENT_ID` | This value corresponds to the custom name you chose for your deployment when you deployed a model. This value can be found under **Resource Management** > **Deployments** in the Azure portal or alternatively under **Management** > **Deployments** in Azure AI studio.|
19+
| `AZURE_OPENAI_DEPLOYMENT_ID` | This value corresponds to the custom name you chose for your deployment when you deployed a model. This value can be found under **Resource Management** > **Deployments** in the Azure portal or alternatively under **Management** > **Deployments** in Azure AI studio.|
2020
| `AZURE_AI_SEARCH_ENDPOINT` | This value can be found in the **Overview** section when examining your Azure AI Search resource from the Azure portal. |
2121
| `AZURE_AI_SEARCH_API_KEY` | This value can be found in the **Settings** > **Keys** section when examining your Azure AI Search resource from the Azure portal. You can use either the primary admin key or secondary admin key. Always having two keys allows you to securely rotate and regenerate keys without causing a service disruption. |
2222
| `AZURE_AI_SEARCH_INDEX` | This value corresponds to the name of the index you created to store your data. You can find it in the **Overview** section when examining your Azure AI Search resource from the Azure portal. |
@@ -56,7 +56,7 @@ setx AZURE_AI_SEARCH_INDEX REPLACE_WITH_YOUR_INDEX_NAME_HERE
5656
```
5757

5858
```powershell
59-
[System.Environment]::SetEnvironmentVariable('AZURE_OPEN_AI_DEPLOYMENT_ID', 'REPLACE_WITH_YOUR_AOAI_DEPLOYMENT_VALUE_HERE', 'User')
59+
[System.Environment]::SetEnvironmentVariable('AZURE_OPENAI_DEPLOYMENT_ID', 'REPLACE_WITH_YOUR_AOAI_DEPLOYMENT_VALUE_HERE', 'User')
6060
```
6161

6262
```powershell
@@ -80,7 +80,7 @@ export AZURE_OPENAI_ENDPOINT=REPLACE_WITH_YOUR_AOAI_ENDPOINT_VALUE_HERE
8080
export AZURE_OPENAI_API_KEY=REPLACE_WITH_YOUR_AOAI_KEY_VALUE_HERE
8181
```
8282
```Bash
83-
export AZURE_OPEN_AI_DEPLOYMENT_ID=REPLACE_WITH_YOUR_AOAI_DEPLOYMENT_VALUE_HERE
83+
export AZURE_OPENAI_DEPLOYMENT_ID=REPLACE_WITH_YOUR_AOAI_DEPLOYMENT_VALUE_HERE
8484
```
8585
```Bash
8686
export AZURE_AI_SEARCH_ENDPOINT=REPLACE_WITH_YOUR_AZURE_SEARCH_RESOURCE_VALUE_HERE

articles/ai-services/openai/includes/use-your-data-dotnet.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: travisw
55
ms.author: travisw
66
ms.service: azure-ai-openai
77
ms.topic: include
8-
ms.date: 08/29/2023
8+
ms.date: 03/07/2024
99
---
1010

1111
[!INCLUDE [Set up required variables](./use-your-data-common-variables.md)]
@@ -24,10 +24,10 @@ using static System.Environment;
2424

2525
string azureOpenAIEndpoint = GetEnvironmentVariable("AZURE_OPENAI_ENDPOINT");
2626
string azureOpenAIKey = GetEnvironmentVariable("AZURE_OPENAI_API_KEY");
27+
string deploymentName = GetEnvironmentVariable("AZURE_OPENAI_DEPLOYMENT_ID");
2728
string searchEndpoint = GetEnvironmentVariable("AZURE_AI_SEARCH_ENDPOINT");
2829
string searchKey = GetEnvironmentVariable("AZURE_AI_SEARCH_API_KEY");
2930
string searchIndex = GetEnvironmentVariable("AZURE_AI_SEARCH_INDEX");
30-
string deploymentName = GetEnvironmentVariable("AZURE_OPEN_AI_DEPLOYMENT_ID");
3131

3232

3333
var client = new OpenAIClient(new Uri(azureOpenAIEndpoint), new AzureKeyCredential(azureOpenAIKey));
@@ -130,10 +130,10 @@ using static System.Environment;
130130

131131
string azureOpenAIEndpoint = GetEnvironmentVariable("AZURE_OPENAI_ENDPOINT");
132132
string azureOpenAIKey = GetEnvironmentVariable("AZURE_OPENAI_API_KEY");
133+
string deploymentName = GetEnvironmentVariable("AZURE_OPENAI_DEPLOYMENT_ID");
133134
string searchEndpoint = GetEnvironmentVariable("AZURE_AI_SEARCH_ENDPOINT");
134135
string searchKey = GetEnvironmentVariable("AZURE_AI_SEARCH_API_KEY");
135136
string searchIndex = GetEnvironmentVariable("AZURE_AI_SEARCH_INDEX");
136-
string deploymentName = GetEnvironmentVariable("AZURE_OPEN_AI_DEPLOYMENT_ID");
137137

138138

139139
var client = new OpenAIClient(new Uri(azureOpenAIEndpoint), new AzureKeyCredential(azureOpenAIKey));

articles/ai-services/openai/includes/use-your-data-go.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: travisw
55
ms.author: travisw
66
ms.service: azure-ai-openai
77
ms.topic: include
8-
ms.date: 08/29/2023
8+
ms.date: 03/07/2024
99
---
1010

1111
[!INCLUDE [Set up required variables](./use-your-data-common-variables.md)]
@@ -48,7 +48,7 @@ ms.date: 08/29/2023
4848
4949
func main() {
5050
azureOpenAIKey := os.Getenv("AZURE_OPENAI_API_KEY")
51-
modelDeploymentID := os.Getenv("AZURE_OPEN_AI_DEPLOYMENT_ID")
51+
modelDeploymentID := os.Getenv("AZURE_OPENAI_DEPLOYMENT_ID")
5252
5353
// Ex: "https://<your-azure-openai-host>.openai.azure.com"
5454
azureOpenAIEndpoint := os.Getenv("AZURE_OPENAI_ENDPOINT")

articles/ai-services/openai/includes/use-your-data-javascript.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ const { OpenAIClient, AzureKeyCredential } = require("@azure/openai");
4141
// Set the Azure and AI Search values from environment variables
4242
const endpoint = process.env["AZURE_OPENAI_ENDPOINT"];
4343
const azureApiKey = process.env["AZURE_OPENAI_API_KEY"];
44+
const deploymentId = process.env["AZURE_OPENAI_DEPLOYMENT_ID"];
4445
const searchEndpoint = process.env["AZURE_AI_SEARCH_ENDPOINT"];
4546
const searchKey = process.env["AZURE_AI_SEARCH_API_KEY"];
4647
const searchIndex = process.env["AZURE_AI_SEARCH_INDEX"];
47-
const deploymentId = process.env["AZURE_OPEN_AI_DEPLOYMENT_ID"];
4848

4949

5050
async function main(){

articles/ai-services/openai/includes/use-your-data-python.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: mrbullwinkle #travisw
55
ms.author: mbullwin #travisw
66
ms.service: azure-ai-openai
77
ms.topic: include
8-
ms.date: 11/09/2023
8+
ms.date: 03/07/2024
99
---
1010

1111
[!INCLUDE [Set up required variables](./use-your-data-common-variables.md)]
@@ -82,12 +82,12 @@ pip install python-dotenv
8282

8383
openai.requestssession = session
8484

85-
aoai_deployment_id = os.environ.get("AZURE_OPEN_AI_DEPLOYMENT_ID")
85+
aoai_deployment_id = os.environ.get("AZURE_OPENAI_DEPLOYMENT_ID")
8686
setup_byod(aoai_deployment_id)
8787

8888
completion = openai.ChatCompletion.create(
8989
messages=[{"role": "user", "content": "What are the differences between Azure Machine Learning and Azure AI services?"}],
90-
deployment_id=os.environ.get("AZURE_OPEN_AI_DEPLOYMENT_ID"),
90+
deployment_id=os.environ.get("AZURE_OPENAI_DEPLOYMENT_ID"),
9191
dataSources=[ # camelCase is intentional, as this is the format the API expects
9292
{
9393
"type": "AzureCognitiveSearch",
@@ -113,7 +113,7 @@ dotenv.load_dotenv()
113113

114114
endpoint = os.environ.get("AZURE_OPENAI_ENDPOINT")
115115
api_key = os.environ.get("AZURE_OPENAI_API_KEY")
116-
deployment = os.environ.get("AZURE_OPEN_AI_DEPLOYMENT_ID")
116+
deployment = os.environ.get("AZURE_OPENAI_DEPLOYMENT_ID")
117117

118118
client = openai.AzureOpenAI(
119119
base_url=f"{endpoint}/openai/deployments/{deployment}/extensions",

articles/ai-services/openai/includes/use-your-data-rest.md

Lines changed: 31 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: aahill
55
ms.author: aahi
66
ms.service: azure-ai-openai
77
ms.topic: include
8-
ms.date: 08/11/2023
8+
ms.date: 03/07/2024
99
---
1010

1111
[!INCLUDE [Set up required variables](./use-your-data-common-variables.md)]
@@ -20,26 +20,26 @@ To trigger a response from the model, you should end with a user message indicat
2020
> There are several parameters you can use to change the model's response, such as `temperature` or `top_p`. See the [reference documentation](../reference.md#completions-extensions) for more information.
2121
2222
```bash
23-
curl -i -X POST $AZURE_OPENAI_ENDPOINT/openai/deployments/$AZURE_OPEN_AI_DEPLOYMENT_ID/extensions/chat/completions?api-version=2023-06-01-preview \
23+
curl -i -X POST $AZURE_OPENAI_ENDPOINT/openai/deployments/$AZURE_OPENAI_DEPLOYMENT_ID/chat/completions?api-version=2024-02-15-preview \
2424
-H "Content-Type: application/json" \
2525
-H "api-key: $AZURE_OPENAI_API_KEY" \
2626
-d \
2727
'
2828
{
29-
"dataSources": [
29+
"data_sources": [
3030
{
3131
"type": "AzureCognitiveSearch",
3232
"parameters": {
3333
"endpoint": "'$AZURE_AI_SEARCH_ENDPOINT'",
3434
"key": "'$AZURE_AI_SEARCH_API_KEY'",
35-
"indexName": "'$AZURE_AI_SEARCH_INDEX'"
35+
"index_name": "'$AZURE_AI_SEARCH_INDEX'"
3636
}
3737
}
3838
],
3939
"messages": [
4040
{
4141
"role": "user",
42-
"content": "What are the differences between Azure Machine Learning and Azure AI services?"
42+
"content": "Tell me an interesting fact"
4343
}
4444
]
4545
}
@@ -51,26 +51,37 @@ curl -i -X POST $AZURE_OPENAI_ENDPOINT/openai/deployments/$AZURE_OPEN_AI_DEPLOYM
5151
```json
5252
{
5353
"id": "12345678-1a2b-3c4e5f-a123-12345678abcd",
54-
"model": "",
55-
"created": 1684304924,
56-
"object": "chat.completion",
54+
"model": "gpt-4",
55+
"created": 1709835345,
56+
"object": "extensions.chat.completion",
5757
"choices": [
5858
{
5959
"index": 0,
60-
"messages": [
61-
{
62-
"role": "tool",
63-
"content": "{\"citations\": [{\"content\": \"\\nAzure AI services are cloud-based artificial intelligence (AI) services...\", \"id\": null, \"title\": \"What is Azure AI services\", \"filepath\": null, \"url\": null, \"metadata\": {\"chunking\": \"orignal document size=250. Scores=0.4314117431640625 and 1.72564697265625.Org Highlight count=4.\"}, \"chunk_id\": \"0\"}], \"intent\": \"[\\\"Learn about Azure AI services.\\\"]\"}",
64-
"end_turn": false
65-
},
66-
{
67-
"role": "assistant",
68-
"content": " \nAzure AI services are cloud-based artificial intelligence (AI) services that help developers build cognitive intelligence into applications without having direct AI or data science skills or knowledge. [doc1]. Azure Machine Learning is a cloud service for accelerating and managing the machine learning project lifecycle. [doc1].",
69-
"end_turn": true
60+
"finish_reason": "stop",
61+
"message": {
62+
"role": "assistant",
63+
"content": "An interesting fact from the retrieved document is... [doc1].",
64+
"end_turn": true,
65+
"context": {
66+
"citations": [
67+
{
68+
"content": "...",
69+
"title": "...",
70+
"url": "https://mysearch.blob.core.windows.net/xyz/001.txt",
71+
"filepath": "001.txt",
72+
"chunk_id": "0"
73+
}
74+
],
75+
"intent": "[\"Interesting facts\"]"
7076
}
71-
]
77+
}
7278
}
73-
]
79+
],
80+
"usage": {
81+
"prompt_tokens": 3779,
82+
"completion_tokens": 105,
83+
"total_tokens": 3884
84+
}
7485
}
7586
```
7687

articles/peering-service/azure-portal.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Sign in to the [Azure portal](https://portal.azure.com).
5656

5757
1. Select the **provider backup peering location** as the next closest to your network location. A peering service will be active via the backup peering location only in the event of failure of primary peering service location for disaster recovery. If **None** is selected, internet is the default failover route in the event of primary peering service location failure.
5858

59-
1. Under the **Prefixes** section, select **Create new prefix**. In **Name**, enter a name for the prefix resource. Enter the prefixes that are associated with the service provider in **Prefix**. In **Prefix key**, enter the prefix key that was given to you by your provider (ISP or IXP). This key allows Microsoft to validate the prefix and provider who have allocated your IP prefix. If your provider is a Route Server partner, you can create all of your prefixes with the same Peering Service prefix key.
59+
1. Under the **Prefixes** section, select **Create new prefix**. In **Name**, enter a name for the prefix resource. Enter the prefixes that are associated with the service provider in **Prefix**. In **Prefix key**, enter the prefix key that was given to you by your provider (ISP or IXP). This key allows Microsoft to validate the prefix and provider who allocated your IP prefix. If your provider is a Route Server partner, you can create all of your prefixes with the same Peering Service prefix key.
6060

6161
:::image type="content" source="./media/azure-portal/peering-service-configuration.png" alt-text="Screenshot of the Configuration tab of Create a peering service connection in Azure portal.":::
6262

@@ -70,7 +70,7 @@ Sign in to the [Azure portal](https://portal.azure.com).
7070

7171
:::image type="content" source="./media/azure-portal/peering-service-prefix-validation.png" alt-text="Screenshot shows the validation status of the prefixes." lightbox="./media/azure-portal/peering-service-prefix-validation.png":::
7272

73-
If the validation fails, one of the following error messages is displayed:
73+
If the validation fails, you might see one of the following error messages:
7474

7575
- Invalid Peering Service prefix, the prefix should be valid format, only IPv4 prefix is supported currently.
7676
- Prefix wasn't received from Peering Service provider, contact Peering Service provider.
@@ -104,7 +104,7 @@ Review the [Technical requirements for Peering Service prefixes](../internet-pee
104104

105105
:::image type="content" source="./media/azure-portal/peering-service-delete.png" alt-text="Screenshot of deleting a Peering Service in Azure portal.":::
106106

107-
## Modifying the primary or backup peering location
107+
## Modify the primary or backup peering location
108108

109109
If you would like to change the primary or backup peering location in your Peering Service, reach out to [email protected]. Provide the resource ID of the peering service to modify, and the new primary and backup locations you'd like to be configured.
110110

articles/virtual-machines/linux/faq.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
ms.service: virtual-machines
77
ms.collection: linux
88
ms.topic: faq
9-
ms.date: 05/08/2019
9+
ms.date: 03/06/2024
1010
ms.author: jushiman
1111
title: Frequently asked question about Linux Virtual Machines
1212
summary: |
@@ -114,9 +114,9 @@ sections:
114114
What are the password requirements when creating a VM?
115115
answer: |
116116
There are varying password length requirements, depending on the tool you are using:
117-
- Portal - between 12 - 72 characters
118-
- PowerShell - between 8 - 123 characters
119-
- CLI - between 12 - 123 characters
117+
- Azure portal - between 12 - 72 characters
118+
- Azure PowerShell - between 8 - 123 characters
119+
- Azure CLI - between 12 - 123 characters
120120
- Azure Resource Manager (ARM) templates - 12 - 72 characters and control characters are not allowed
121121
122122

articles/virtual-machines/windows/faq.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
ms.service: virtual-machines
77
ms.collection: windows
88
ms.topic: faq
9-
ms.date: 05/08/2019
9+
ms.date: 03/06/2024
1010
ms.author: jushiman
1111
title: Frequently asked question about Windows Virtual Machines
1212
summary: |
@@ -21,7 +21,7 @@ sections:
2121
answer: |
2222
All subscribers can run server software on an Azure virtual machine. For information about the support policy for running Microsoft server software in Azure, see [Microsoft server software support for Azure Virtual Machines](https://support.microsoft.com/kb/2721672).
2323
24-
Certain versions of Windows 7, Windows 8.1, and Windows 10 are available to MSDN Azure benefit subscribers and MSDN Dev and Test Pay-As-You-Go subscribers, for development and test tasks. For details, including instructions and limitations, see [Windows Client images for MSDN subscribers](/azure/virtual-machines/windows/client-images).
24+
Certain versions of Windows 7, Windows 8.1, and Windows 10 are available to MSDN Azure benefit subscribers and MSDN Dev and Test Pay-As-You-Go subscribers, for development and test tasks. For details, including instructions and limitations, see [Windows Client images for MSDN subscribers](client-images.md).
2525
2626
- question: |
2727
How much storage can I use with a virtual machine?
@@ -140,9 +140,9 @@ sections:
140140
What are the password requirements when creating a VM?
141141
answer: |
142142
There are varying password length requirements, depending on the tool you are using:
143-
- Portal - between 12 - 123 characters
144-
- PowerShell - between 8 - 123 characters
145-
- CLI - between 12 - 123
143+
- Azure portal - between 12 - 123 characters
144+
- Azure PowerShell - between 8 - 123 characters
145+
- Azure CLI - between 12 - 123
146146
147147
* Have lower characters
148148
* Have upper characters

0 commit comments

Comments
 (0)