Skip to content

Commit efefb59

Browse files
authored
Merge pull request #291819 from MicrosoftDocs/main
12/11/2024 AM Publish
2 parents e2beb26 + 24b7fd6 commit efefb59

File tree

233 files changed

+872
-855
lines changed

Some content is hidden

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

233 files changed

+872
-855
lines changed

articles/api-management/api-management-gateways-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ Managed and self-hosted gateways support all available [policies](api-management
126126
| [GraphQL resolvers](api-management-policies.md#graphql-resolvers) and [GraphQL validation](api-management-policies.md#content-validation)| ✔️ | ✔️ |✔️ |||
127127
| [Get authorization context](get-authorization-context-policy.md) | ✔️ | ✔️ |✔️ |||
128128
| [Authenticate with managed identity](authentication-managed-identity-policy.md) | ✔️ | ✔️ |✔️ | ✔️ ||
129-
| [Azure OpenAI and LLM semantic caching](api-management-policies.md#caching) | | ✔️ | |||
129+
| [Azure OpenAI and LLM semantic caching](api-management-policies.md#caching) | ✔️ | ✔️ |✔️ |||
130130
| [Quota and rate limit](api-management-policies.md#rate-limiting-and-quotas) | ✔️ | ✔️<sup>2</sup> | ✔️<sup>3</sup> | ✔️<sup>4</sup> | ✔️ |
131131

132132
<sup>1</sup> Configured policies that aren't supported by the self-hosted gateway are skipped during policy execution.<br/>

articles/api-management/azure-openai-enable-semantic-caching.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ Configure a [backend](backends.md) resource for the embeddings API deployment wi
6161
```
6262
https://my-aoai.openai.azure.com/openai/deployments/embeddings-deployment/embeddings
6363
```
64+
* **Authorization credentials** - Go to **Managed Identity** tab.
65+
* **Client indentity** - Select *System assigned identity* or type in a User assigned managed identity client ID.
66+
* **Resource ID** - Enter `https://cognitiveservices.azure.com/` for Azure OpenAI Service.
67+
6468
### Test backend
6569

6670
To test the backend, create an API operation for your Azure OpenAI Service API:
@@ -123,7 +127,6 @@ Configure the following policies to enable semantic caching for Azure OpenAI API
123127
<azure-openai-semantic-cache-lookup
124128
score-threshold="0.8"
125129
embeddings-backend-id="embeddings-deployment"
126-
embeddings-backend-auth="system-assigned"
127130
ignore-system-messages="true"
128131
max-message-count="10">
129132
<vary-by>@(context.Subscription.Id)</vary-by>

articles/api-management/azure-openai-semantic-cache-lookup-policy.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ Use the `azure-openai-semantic-cache-lookup` policy to perform cache lookup of r
3434
<azure-openai-semantic-cache-lookup
3535
score-threshold="similarity score threshold"
3636
embeddings-backend-id ="backend entity ID for embeddings API"
37-
embeddings-backend-auth ="system-assigned"
3837
ignore-system-messages="true | false"
3938
max-message-count="count" >
4039
<vary-by>"expression to partition caching"</vary-by>
@@ -47,7 +46,6 @@ Use the `azure-openai-semantic-cache-lookup` policy to perform cache lookup of r
4746
| ----------------- | ------------------------------------------------------ | -------- | ------- |
4847
| score-threshold | Similarity score threshold used to determine whether to return a cached response to a prompt. Value is a decimal between 0.0 and 1.0. [Learn more](../azure-cache-for-redis/cache-tutorial-semantic-cache.md#change-the-similarity-threshold). | Yes | N/A |
4948
| embeddings-backend-id | [Backend](backends.md) ID for OpenAI embeddings API call. | Yes | N/A |
50-
| embeddings-backend-auth | Authentication used for Azure OpenAI embeddings API backend. | Yes. Must be set to `system-assigned`. | N/A |
5149
| ignore-system-messages | Boolean. If set to `true`, removes system messages from a GPT chat completion prompt before assessing cache similarity. | No | false |
5250
| max-message-count | If specified, number of remaining dialog messages after which caching is skipped. | No | N/A |
5351
@@ -62,7 +60,7 @@ Use the `azure-openai-semantic-cache-lookup` policy to perform cache lookup of r
6260

6361
- [**Policy sections:**](./api-management-howto-policies.md#sections) inbound
6462
- [**Policy scopes:**](./api-management-howto-policies.md#scopes) global, product, API, operation
65-
- [**Gateways:**](api-management-gateways-overview.md) v2
63+
- [**Gateways:**](api-management-gateways-overview.md) classic, v2, consumption
6664

6765
### Usage notes
6866

articles/api-management/azure-openai-semantic-cache-store-policy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ The `azure-openai-semantic-cache-store` policy caches responses to Azure OpenAI
4646

4747
- [**Policy sections:**](./api-management-howto-policies.md#sections) outbound
4848
- [**Policy scopes:**](./api-management-howto-policies.md#scopes) global, product, API, operation
49-
- [**Gateways:**](api-management-gateways-overview.md) v2
49+
- [**Gateways:**](api-management-gateways-overview.md) classic, v2, consumption
5050

5151
### Usage notes
5252

articles/api-management/llm-semantic-cache-lookup-policy.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ Use the `llm-semantic-cache-lookup` policy to perform cache lookup of responses
3434
<llm-semantic-cache-lookup
3535
score-threshold="similarity score threshold"
3636
embeddings-backend-id ="backend entity ID for embeddings API"
37-
embeddings-backend-auth ="system-assigned"
3837
ignore-system-messages="true | false"
3938
max-message-count="count" >
4039
<vary-by>"expression to partition caching"</vary-by>
@@ -47,7 +46,6 @@ Use the `llm-semantic-cache-lookup` policy to perform cache lookup of responses
4746
| ----------------- | ------------------------------------------------------ | -------- | ------- |
4847
| score-threshold | Similarity score threshold used to determine whether to return a cached response to a prompt. Value is a decimal between 0.0 and 1.0. [Learn more](../azure-cache-for-redis/cache-tutorial-semantic-cache.md#change-the-similarity-threshold). | Yes | N/A |
4948
| embeddings-backend-id | [Backend](backends.md) ID for OpenAI embeddings API call. | Yes | N/A |
50-
| embeddings-backend-auth | Authentication used for Azure OpenAI embeddings API backend. | Yes. Must be set to `system-assigned`. | N/A |
5149
| ignore-system-messages | Boolean. If set to `true`, removes system messages from a GPT chat completion prompt before assessing cache similarity. | No | false |
5250
| max-message-count | If specified, number of remaining dialog messages after which caching is skipped. | No | N/A |
5351
@@ -62,7 +60,7 @@ Use the `llm-semantic-cache-lookup` policy to perform cache lookup of responses
6260

6361
- [**Policy sections:**](./api-management-howto-policies.md#sections) inbound
6462
- [**Policy scopes:**](./api-management-howto-policies.md#scopes) global, product, API, operation
65-
- [**Gateways:**](api-management-gateways-overview.md) v2
63+
- [**Gateways:**](api-management-gateways-overview.md) classic, v2, consumption
6664

6765
### Usage notes
6866

articles/api-management/llm-semantic-cache-store-policy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ The `llm-semantic-cache-store` policy caches responses to chat completion API an
4545

4646
- [**Policy sections:**](./api-management-howto-policies.md#sections) outbound
4747
- [**Policy scopes:**](./api-management-howto-policies.md#scopes) global, product, API, operation
48-
- [**Gateways:**](api-management-gateways-overview.md) v2
48+
- [**Gateways:**](api-management-gateways-overview.md) classic, v2, consumption
4949

5050
### Usage notes
5151

articles/azure-app-configuration/enable-dynamic-configuration-java-spring-app.md

Lines changed: 10 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: mrm9084
77
ms.service: azure-app-configuration
88
ms.devlang: java
99
ms.topic: tutorial
10-
ms.date: 03/07/2024
10+
ms.date: 12/04/2024
1111
ms.custom: devx-track-java, devx-track-extended-java
1212
ms.author: mametcal
1313
#Customer intent: As a Java Spring developer, I want to dynamically update my app to use the latest configuration data in App Configuration.
@@ -23,7 +23,7 @@ Both libraries support manual triggering to check for refreshed configuration va
2323

2424
Refresh allows you to update your configuration values without having to restart your application, though it causes all beans in the `@RefreshScope` to be recreated. It checks for any changes to configured triggers, including metadata. By default, the minimum amount of time between checks for changes, refresh interval, is set to 30 seconds.
2525

26-
`spring-cloud-azure-appconfiguration-config-web`'s automated refresh is triggered based on activity, specifically Spring Web's `ServletRequestHandledEvent`. If a `ServletRequestHandledEvent` isn't triggered, `spring-cloud-azure-appconfiguration-config-web`'s automated refresh doesn't trigger a refresh even if the cache expiration time has expired.
26+
`spring-cloud-azure-appconfiguration-config-web`'s automated refresh is triggered based on activity, specifically Spring Web's `ServletRequestHandledEvent`. If a `ServletRequestHandledEvent` isn't triggered, `spring-cloud-azure-appconfiguration-config-web`'s automated refresh doesn't trigger a refresh even if the cache expiration time is expired.
2727

2828
## Use manual refresh
2929

@@ -57,9 +57,9 @@ App Configuration exposes `AppConfigurationRefresh`, which can be used to check
5757
}
5858
```
5959

60-
`AppConfigurationRefresh`'s `refreshConfigurations()` returns a `Mono` that is true if a refresh has been triggered, and false if not. False means either the cache expiration time hasn't expired, there was no change, or another thread is currently checking for a refresh.
60+
`AppConfigurationRefresh`'s `refreshConfigurations()` returns a `Mono` that is true if a refresh is triggered, and false if not. False means either the cache expiration time isn't expired, there was no change, or another thread is currently checking for a refresh.
6161

62-
1. Update `bootstrap.properties` to enable refresh:
62+
1. To enable refresh update `bootstrap.properties`:
6363

6464
```properties
6565
spring.cloud.azure.appconfiguration.stores[0].monitoring.enabled=true
@@ -84,7 +84,7 @@ App Configuration exposes `AppConfigurationRefresh`, which can be used to check
8484
mvn spring-boot:run
8585
```
8686

87-
1. Open a browser window, and go to the URL: `http://localhost:8080`. You see the message associated with your key.
87+
1. Open a browser window, and go to the URL: `http://localhost:8080`. You see the message associated with your key.
8888

8989
You can also use *curl* to test your application, for example:
9090

@@ -98,7 +98,7 @@ App Configuration exposes `AppConfigurationRefresh`, which can be used to check
9898
|---|---|
9999
| /application/config.message | Hello - Updated |
100100

101-
1. Update the sentinel key you created earlier to a new value. This change triggers the application to refresh all configuration keys once the refresh interval has passed.
101+
1. Update the sentinel key you created earlier to a new value. This change triggers the application to refresh all configuration keys once the refresh interval is passed.
102102

103103
| Key | Value |
104104
|---|---|
@@ -115,31 +115,15 @@ To use automated refresh, start with a Spring Boot app that uses App Configurati
115115
116116
Then, open the *pom.xml* file in a text editor and add a `<dependency>` for `spring-cloud-azure-appconfiguration-config-web` using the following code.
117117
118-
**Spring Boot**
119-
120-
### [Spring Boot 3](#tab/spring-boot-3)
121-
122-
```xml
123-
<dependency>
124-
<groupId>com.azure.spring</groupId>
125-
<artifactId>spring-cloud-azure-appconfiguration-config-web</artifactId>
126-
<version>5.8.0</version>
127-
</dependency>
128-
```
129-
130-
### [Spring Boot 2](#tab/spring-boot-2)
131-
132118
```xml
133119
<dependency>
134120
<groupId>com.azure.spring</groupId>
135121
<artifactId>spring-cloud-azure-appconfiguration-config-web</artifactId>
136-
<version>4.14.0</version>
122+
<version>5.18.0</version>
137123
</dependency>
138124
```
139125
140-
---
141-
142-
1. Update `bootstrap.properties` to enable refresh
126+
1. To enable refresh update `bootstrap.properties`:
143127
144128
```properties
145129
spring.cloud.azure.appconfiguration.stores[0].monitoring.enabled=true
@@ -164,7 +148,7 @@ Then, open the *pom.xml* file in a text editor and add a `<dependency>` for `spr
164148
mvn spring-boot:run
165149
```
166150
167-
1. Open a browser window, and go to the URL: `http://localhost:8080`. You now see the message associated with your key.
151+
1. Open a browser window, and go to the URL: `http://localhost:8080`. You now see the message associated with your key.
168152
169153
You can also use *curl* to test your application, for example:
170154
@@ -178,7 +162,7 @@ Then, open the *pom.xml* file in a text editor and add a `<dependency>` for `spr
178162
|---|---|
179163
| /application/config.message | Hello - Updated |
180164
181-
1. Update the sentinel key you created earlier to a new value. This change triggers the application to refresh all configuration keys once the refresh interval has passed.
165+
1. Update the sentinel key you created earlier to a new value. This change triggers the application to refresh all configuration keys once the refresh interval is passed.
182166
183167
| Key | Value |
184168
|---|---|

0 commit comments

Comments
 (0)