Skip to content

Commit c4ce87b

Browse files
authored
Merge pull request #289186 from MicrosoftDocs/main
10/24/2024 PM Publish
2 parents e017cd3 + 8e77e62 commit c4ce87b

File tree

84 files changed

+1056
-502
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+1056
-502
lines changed
2.41 KB
Loading

articles/azure-cache-for-redis/cache-overview-vector-similarity.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Vector similarity search can be used in multiple applications. Some common use-c
7676
- **Document Retrieval**. Use the deeper semantic understanding of text provided by LLMs to provide a richer document search experience where traditional keyword-based search falls short. [Document Retrieval Example](https://github.com/RedisVentures/redis-arXiv-search)
7777
- **Product Recommendation**. Find similar products or services to recommend based on past user activities, like search history or previous purchases. [Product Recommendation Example](https://github.com/RedisVentures/LLM-Recommender)
7878
- **Visual Search**. Search for products that look similar to a picture taken by a user or a picture of another product. [Visual Search Example](https://github.com/RedisVentures/redis-product-search)
79-
- **Semantic Caching**. Reduce the cost and latency of LLMs by caching LLM completions. LLM queries are compared using vector similarity. If a new query is similar enough to a previously cached query, the cached query is returned. [Semantic Caching example using LangChain](https://python.langchain.com/docs/integrations/llms/llm_caching#redis-cache)
79+
- **Semantic Caching**. Reduce the cost and latency of LLMs by caching LLM completions. LLM queries are compared using vector similarity. If a new query is similar enough to a previously cached query, the cached query is returned. [Semantic Caching example using LangChain](https://python.langchain.com/docs/integrations/llm_caching/#redis-cache)
8080
- **LLM Conversation Memory**. Persist conversation history with an LLM as embeddings in a vector database. Your application can use vector search to pull relevant history or "memories" into the response from the LLM. [LLM Conversation Memory example](https://github.com/continuum-llms/chatgpt-memory)
8181

8282
## Why choose Azure Cache for Redis for storing and searching vectors?

articles/azure-resource-manager/bicep/installation-troubleshoot.md

Lines changed: 1 addition & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -10,61 +10,6 @@ ms.date: 03/20/2024
1010

1111
This article describes how to resolve potential errors in your Bicep installation.
1212

13-
## .NET runtime error
14-
15-
When installing the Bicep extension for Visual Studio Code, you may run into the following error messages:
16-
17-
```error
18-
Failed to install .NET runtime v5.0
19-
```
20-
21-
```error
22-
Failed to download .NET 5.0.x ....... Error!
23-
```
24-
25-
> [!WARNING]
26-
> This is a last resort solution that may cause problems when updating versions.
27-
28-
To solve the problem, you can manually install .NET from the [.NET website](https://aka.ms/dotnet-core-download), and then configure Visual Studio Code to reuse an existing installation of .NET with the following settings:
29-
30-
**Windows**
31-
32-
```json
33-
"dotnetAcquisitionExtension.existingDotnetPath": [
34-
{
35-
"extensionId": "ms-azuretools.vscode-bicep",
36-
"path": "C:\\Program Files\\dotnet\\dotnet.exe"
37-
}
38-
]
39-
40-
```
41-
42-
**macOS**
43-
44-
If you need an **x64** installation, use:
45-
46-
```json
47-
"dotnetAcquisitionExtension.existingDotnetPath": [
48-
{
49-
"extensionId": "ms-azuretools.vscode-bicep",
50-
"path": "/usr/local/share/dotnet/x64/dotnet"
51-
}
52-
]
53-
```
54-
55-
For other **macOS** installations, use:
56-
57-
```json
58-
"dotnetAcquisitionExtension.existingDotnetPath": [
59-
{
60-
"extensionId": "ms-azuretools.vscode-bicep",
61-
"path": "/usr/local/share/dotnet/dotnet"
62-
}
63-
]
64-
```
65-
66-
See [User and Workspace Settings](https://code.visualstudio.com/docs/getstarted/settings) for configuring Visual Studio Code settings.
67-
6813
## Visual Studio Code error
6914

7015
If you see the following error message popup in Visual Studio Code:
@@ -77,7 +22,7 @@ From VS Code, open the **Output** view in the pane at the bottom of the screen,
7722

7823
:::image type="content" source="./media/installation-troubleshoot/visual-studio-code-output-pane-bicep.png" alt-text="Visual Studio Code output pane":::
7924

80-
If you see the following output in the pane, and you're using Bicep CLI **version 0.4.1124** or later, check whether you have added the `dotnetAcquisitionExtension.existingDotnetPath` configuration option to VS Code. See [.NET runtime error](#net-runtime-error). If this configuration option is present, remove it and restart VS Code.
25+
If you see the following output in the pane, check whether you have added the `dotnetAcquisitionExtension.existingDotnetPath` setting to VS Code. If this setting is present, remove it and restart VS Code. See [User and Workspace Settings](https://code.visualstudio.com/docs/getstarted/settings) for configuring Visual Studio Code settings.
8126

8227
```error
8328
It was not possible to find any compatible framework version.

articles/azure-resource-manager/templates/create-visual-studio-deployment-project.md

Lines changed: 11 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Create & deploy Visual Studio resource group projects
33
description: Use Visual Studio to create an Azure resource group project and deploy the resources to Azure.
44
ms.topic: how-to
5-
ms.date: 03/20/2024
5+
ms.date: 10/24/2024
66
---
77

88
# Creating and deploying Azure resource groups through Visual Studio
@@ -11,7 +11,7 @@ ms.date: 03/20/2024
1111
> The Azure Resource Group project is now in extended support, meaning we will continue to support existing features and capabilities but won't prioritize adding new features.
1212
1313
> [!NOTE]
14-
> For the best and most secure experience, we strongly recommend updating your Visual Studio installation to the [latest Long-Term Support (LTS) version](/visualstudio/install/update-visual-studio?view=vs-2022). Upgrading will improve both the reliability and overall performance of your Visual Studio environment.
14+
> For the best and most secure experience, we strongly recommend updating your Visual Studio installation to the [latest Long-Term Support (LTS) version](/visualstudio/install/update-visual-studio). Upgrading will improve both the reliability and overall performance of your Visual Studio environment. If you choose not to upgrade, you may encounter the issues documented in [Issues when creating and deploying Azure resource groups through Visual Studio](https://learn.microsoft.com/troubleshoot/developer/visualstudio/ide/troubleshoot-create-deploy-resource-group).
1515
1616
With Visual Studio, you can create a project that deploys your infrastructure and code to Azure. For example, you can deploy the web host, website, and code for the website. Visual Studio provides many different starter templates for deploying common scenarios. In this article, you deploy a web app.
1717

@@ -22,9 +22,9 @@ This article shows how to use [Visual Studio 2019 or later with the Azure develo
2222
In this section, you create an Azure Resource Group project with a **Web app** template.
2323

2424
1. In Visual Studio, choose **File**>**New**>**Project**.
25-
1. Select the **Azure Resource Group** project template and **Next**.
25+
1. Search **resource group**, and then select the **Azure Resource Group (extended support)** project template and **Next**.
2626

27-
:::image type="content" source="./media/create-visual-studio-deployment-project/create-project.png" alt-text="Screenshot of Create a new project window highlighting Azure Resource Group and Next button.":::
27+
:::image type="content" source="./media/create-visual-studio-deployment-project/add-app.png" alt-text="Screenshot of Create a new project window highlighting Azure Resource Group and Next button.":::
2828

2929
1. Give your project a name. The other default settings are probably fine, but review them to make they work for your environment. When done, select **Create**.
3030

@@ -64,7 +64,7 @@ You can customize a deployment project by modifying the Resource Manager templat
6464

6565
:::image type="content" source="./media/create-visual-studio-deployment-project/navigate-json.png" alt-text="Screenshot of the Visual Studio editor with a selected element in the JSON Outline window.":::
6666

67-
1. You can add a resource by either selecting the **Add Resource** button at the top of the JSON Outline window, or by right-clicking **resources** and selecting **Add New Resource**.
67+
1. You can add a resource by right-clicking **resources** and selecting **Add New Resource**.
6868

6969
:::image type="content" source="./media/create-visual-studio-deployment-project/add-resource.png" alt-text="Screenshot of the JSON Outline window highlighting the Add New Resource option.":::
7070

@@ -92,40 +92,6 @@ You can customize a deployment project by modifying the Resource Manager templat
9292
}
9393
```
9494

95-
1. Navigate to the **HostingPlan** resource, and add a value for the **properties** with some properties.
96-
97-
```json
98-
"properties": {
99-
"name": "[parameters('hostingPlanName')]",
100-
"numberOfWorkers": 1
101-
}
102-
```
103-
104-
You also need to define the `hostingPlanName` parameter:
105-
106-
```json
107-
"hostingPlanName": {
108-
"type": "string",
109-
"metadata": {
110-
"description": "Hosting paln name."
111-
}
112-
}
113-
```
114-
115-
1. Open the **WebSite.parameters.json** file. You use the parameters file to pass in values during deployment that customize the resource being deployed. Give the hosting plan a name, and save the file.
116-
117-
```json
118-
{
119-
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#",
120-
"contentVersion": "1.0.0.0",
121-
"parameters": {
122-
"hostingPlanName": {
123-
"value": "demoHostPlan"
124-
}
125-
}
126-
}
127-
```
128-
12995
## Deploy project to Azure
13096

13197
You're now ready to deploy your project to a resource group.
@@ -182,7 +148,7 @@ At this point, you've deployed the infrastructure for your app, but there's no a
182148

183149
1. Add an **ASP.NET Core Web Application**.
184150

185-
:::image type="content" source="./media/create-visual-studio-deployment-project/add-app.png" alt-text="Screenshot of the New Project window with ASP.NET Core Web Application selected.":::
151+
:::image type="content" source="./media/create-visual-studio-deployment-project/arm-vs-create-aspnet-core-web-app.png" alt-text="Screenshot of the New Project window with ASP.NET Core Web Application selected.":::
186152

187153
1. Give your web app a name, and select **Create**.
188154

@@ -218,18 +184,19 @@ At this point, you've deployed the infrastructure for your app, but there's no a
218184

219185
Save your template.
220186

221-
1. There are some new parameters in your template. They were added in the previous step. You don't need to provide values for **_artifactsLocation** or **_artifactsLocationSasToken** because those values are automatically generated. However, you have to set the folder and file name to the path that contains the deployment package. The names of these parameters end with **PackageFolder** and **PackageFileName**. The first part of the name is the name of the Web Deploy resource you added. In this article, they're named **ExampleAppPackageFolder** and **ExampleAppPackageFileName**.
187+
1. There are some new parameters added in the previous step.
188+
189+
:::image type="content" source="./media/create-visual-studio-deployment-project/new-parameters.png" alt-text="Screenshot of the new parameters.":::
222190

191+
You don't need to provide values for **_artifactsLocation** or **_artifactsLocationSasToken** because those values are automatically generated. However, you have to set the folder and file name to the path that contains the deployment package. The names of these parameters end with **PackageFolder** and **PackageFileName**. The first part of the name is the name of the Web Deploy resource you added. In this article, they're named **ExampleAppPackageFolder** and **ExampleAppPackageFileName**.
192+
223193
Open **Website.parameters.json** and set those parameters to the values you saw in the reference properties. Set **ExampleAppPackageFolder** to the name of the folder. Set **ExampleAppPackageFileName** to the name of the zip file.
224194

225195
```json
226196
{
227197
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#",
228198
"contentVersion": "1.0.0.0",
229199
"parameters": {
230-
"hostingPlanName": {
231-
"value": "demoHostPlan"
232-
},
233200
"ExampleAppPackageFolder": {
234201
"value": "ExampleApp"
235202
},
19.4 KB
Loading
-8.41 KB
Loading
-4.32 KB
Loading
2.03 KB
Loading
-26.5 KB
Loading
Loading

0 commit comments

Comments
 (0)