Skip to content

Commit ab10169

Browse files
authored
Merge pull request #274540 from MicrosoftDocs/repo_sync_working_branch
Confirm merge from repo_sync_working_branch to main to sync with https://github.com/MicrosoftDocs/azure-docs (branch main)
2 parents 2edacff + bc1b208 commit ab10169

File tree

8 files changed

+108
-65
lines changed

8 files changed

+108
-65
lines changed

articles/ai-services/language-service/conversational-language-understanding/concepts/best-practices.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,3 +216,38 @@ curl --request POST \
216216
"targetResourceRegion": "<target-region>"
217217
}'
218218
```
219+
220+
221+
## Addressing out of domain utterances
222+
223+
Customers can use the new recipe version '2024-06-01-preview' in case the model has poor AIQ on out of domain utterances. An example of this with the default recipe can be like the below where the model has 3 intents Sports, QueryWeather and Alarm. The test utterances are out of domain utterances and the model classifies them as InDomain with a relatively high confidence score.
224+
225+
| Text | Predicted intent | Confidence score |
226+
|----|----|----|
227+
| "*Who built the Eiffel Tower?*" | `Sports` | 0.90 |
228+
| "*Do I look good to you today?*" | `QueryWeather` | 1.00 |
229+
| "*I hope you have a good evening.*" | `Alarm` | 0.80 |
230+
231+
To address this, use the `2024-06-01-preview` configuration version that is built specifically to address this issue while also maintaining reasonably good quality on In Domain utterances.
232+
233+
```console
234+
curl --location 'https://<your-resource>.cognitiveservices.azure.com/language/authoring/analyze-conversations/projects/<your-project>/:train?api-version=2022-10-01-preview' \
235+
--header 'Ocp-Apim-Subscription-Key: <your subscription key>' \
236+
--header 'Content-Type: application/json' \
237+
--data '{
238+
      "modelLabel": "<modelLabel>",
239+
      "trainingMode": "advanced",
240+
      "trainingConfigVersion": "2024-06-01-preview",
241+
      "evaluationOptions": {
242+
            "kind": "percentage",
243+
            "testingSplitPercentage": 0,
244+
            "trainingSplitPercentage": 100
245+
      }
246+
}
247+
```
248+
249+
Once the request is sent, you can track the progress of the training job in Language Studio as usual.
250+
251+
Caveats:
252+
- The None Score threshold for the app (confidence threshold below which the topIntent is marked as None) when using this recipe should be set to 0. This is because this new recipe attributes a certain portion of the in domain probabiliities to out of domain so that the model is not incorrectly overconfident about in domain utterances. As a result, users may see slightly reduced confidence scores for in domain utterances as compared to the prod recipe.
253+
- This recipe is not recommended for apps with just two (2) intents, such as IntentA and None, for example.

articles/azure-app-configuration/enable-dynamic-configuration-dotnet-core-push-refresh.md

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ In this tutorial, you learn how to:
3939

4040
## Set up Azure Service Bus topic and subscription
4141

42-
This tutorial uses the Service Bus integration for Event Grid to simplify the detection of configuration changes for applications that don't wish to poll App Configuration for changes continuously. The Azure Service Bus SDK provides an API to register a message handler that can be used to update configuration when changes are detected in App Configuration. Follow steps in the [Quickstart: Use the Azure portal to create a Service Bus topic and subscription](../service-bus-messaging/service-bus-quickstart-topics-subscriptions-portal.md) to create a service bus namespace, topic, and subscription.
42+
This tutorial uses the Service Bus integration for Event Grid to simplify the detection of configuration changes for applications that don't wish to poll App Configuration for changes continuously. The Azure Service Bus SDK provides an API to register a message handler that can be used to update configuration when changes are detected in App Configuration. Follow the steps in the [Quickstart: Use the Azure portal to create a Service Bus topic and subscription](../service-bus-messaging/service-bus-quickstart-topics-subscriptions-portal.md) to create a service bus namespace, topic, and subscription.
4343

4444
Once the resources are created, add the following environment variables. These will be used to register an event handler for configuration changes in the application code.
4545

@@ -111,13 +111,14 @@ namespace TestConsole
111111
options.ConfigureRefresh(refresh =>
112112
refresh
113113
.Register("TestApp:Settings:Message")
114-
.SetCacheExpiration(TimeSpan.FromDays(1)) // Important: Reduce poll frequency
114+
// Important: Reduce poll frequency
115+
.SetCacheExpiration(TimeSpan.FromDays(1))
115116
);
116117

117118
_refresher = options.GetRefresher();
118119
}).Build();
119120

120-
RegisterRefreshEventHandler();
121+
await RegisterRefreshEventHandler();
121122
var message = configuration["TestApp:Settings:Message"];
122123
Console.WriteLine($"Initial value: {configuration["TestApp:Settings:Message"]}");
123124

@@ -135,33 +136,35 @@ namespace TestConsole
135136
}
136137
}
137138

138-
private static void RegisterRefreshEventHandler()
139+
private static async Task RegisterRefreshEventHandler()
139140
{
140141
string serviceBusConnectionString = Environment.GetEnvironmentVariable(ServiceBusConnectionStringEnvVarName);
141142
string serviceBusTopic = Environment.GetEnvironmentVariable(ServiceBusTopicEnvVarName);
142-
string serviceBusSubscription = Environment.GetEnvironmentVariable(ServiceBusSubscriptionEnvVarName);
143+
string serviceBusSubscription = Environment.GetEnvironmentVariable(ServiceBusSubscriptionEnvVarName);
143144
ServiceBusClient serviceBusClient = new ServiceBusClient(serviceBusConnectionString);
144145
ServiceBusProcessor serviceBusProcessor = serviceBusClient.CreateProcessor(serviceBusTopic, serviceBusSubscription);
145146

146147
serviceBusProcessor.ProcessMessageAsync += (processMessageEventArgs) =>
147-
{
148-
// Build EventGridEvent from notification message
149-
EventGridEvent eventGridEvent = EventGridEvent.Parse(BinaryData.FromBytes(processMessageEventArgs.Message.Body));
148+
{
149+
// Build EventGridEvent from notification message
150+
EventGridEvent eventGridEvent = EventGridEvent.Parse(BinaryData.FromBytes(processMessageEventArgs.Message.Body));
150151

151-
// Create PushNotification from eventGridEvent
152-
eventGridEvent.TryCreatePushNotification(out PushNotification pushNotification);
152+
// Create PushNotification from eventGridEvent
153+
eventGridEvent.TryCreatePushNotification(out PushNotification pushNotification);
153154

154-
// Prompt Configuration Refresh based on the PushNotification
155-
_refresher.ProcessPushNotification(pushNotification);
155+
// Prompt Configuration Refresh based on the PushNotification
156+
_refresher.ProcessPushNotification(pushNotification);
156157

157-
return Task.CompletedTask;
158-
};
158+
return Task.CompletedTask;
159+
};
159160

160161
serviceBusProcessor.ProcessErrorAsync += (exceptionargs) =>
161-
{
162-
Console.WriteLine($"{exceptionargs.Exception}");
163-
return Task.CompletedTask;
164-
};
162+
{
163+
Console.WriteLine($"{exceptionargs.Exception}");
164+
return Task.CompletedTask;
165+
};
166+
167+
await serviceBusProcessor.StartProcessingAsync();
165168
}
166169
}
167170
}

articles/container-registry/zone-redundancy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Zone redundancy is a feature of the Premium container registry service tier. Fo
2424

2525
|Americas |Europe |Africa |Asia Pacific |
2626
|---------|---------|---------|---------|
27-
|Brazil South<br/>Canada Central<br/>Central US<br/>East US<br/>East US 2<br/>East US 2 EUAP<br/>South Central US<br/>US Government Virginia<br/>West US 2<br/>West US 3 |France Central<br/>Germany West Central<br/>North Europe<br/>Norway East<br/>Sweden Central<br/>Switzerland North<br/>UK South<br/>West Europe |South Africa North<br/> |Australia East<br/>Central India<br/>China North 3<br/>East Asia<br/>Japan East<br/>Korea Central<br/>Qatar Central<br/>Southeast Asia<br/>UAE North |
27+
|Brazil South<br/>Canada Central<br/>Central US<br/>East US<br/>East US 2<br/>East US 2 EUAP<br/>South Central US<br/>US Government Virginia<br/>West US 2<br/>West US 3 |France Central<br/>Germany West Central<br/>Italy North<br/>North Europe<br/>Norway East<br/>Sweden Central<br/>Switzerland North<br/>UK South<br/>West Europe |South Africa North<br/> |Australia East<br/>Central India<br/>China North 3<br/>East Asia<br/>Japan East<br/>Korea Central<br/>Qatar Central<br/>Southeast Asia<br/>UAE North |
2828

2929
* Region conversions to availability zones aren't currently supported.
3030
* To enable availability zone support in a region, create the registry in the desired region with availability zone support enabled, or add a replicated region with availability zone support enabled.

articles/spring-apps/enterprise/how-to-configure-enterprise-spring-cloud-gateway.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ If you send the `GET` request to the `/scg-logout` endpoint by using `XMLHttpReq
244244

245245
You need to have a route configuration to route the logout request to your application, as shown in the following example. This code makes a gateway-only logout SSO session.
246246

247-
```java
247+
```javascript
248248
const req = new XMLHttpRequest();
249249
req.open("GET", "/scg-logout);
250250
req.send();

articles/virtual-machines/linux/disk-encryption-sample-scripts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ To configure encryption during the distribution installation, do the following s
279279

280280
![openSUSE 13.2 Setup - Provide passphrase on boot](./media/disk-encryption/opensuse-encrypt-fig2.png)
281281

282-
3. Prepare the VM for uploading to Azure by following the instructions in [Prepare a SLES or openSUSE virtual machine for Azure](./suse-create-upload-vhd.md?toc=/azure/virtual-machines/linux/toc.json#prepare-opensuse-152). Don't run the last step (deprovisioning the VM) yet.
282+
3. Prepare the VM for uploading to Azure by following the instructions in [Prepare a SLES or openSUSE virtual machine for Azure](./suse-create-upload-vhd.md?toc=/azure/virtual-machines/linux/toc.json#prepare-opensuse-154). Don't run the last step (deprovisioning the VM) yet.
283283

284284
To configure encryption to work with Azure, do the following steps:
285285

articles/virtual-machines/linux/suse-create-upload-vhd.md

Lines changed: 44 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.subservice: imaging
77
ms.collection: linux
88
ms.custom: linux-related-content
99
ms.topic: how-to
10-
ms.date: 12/14/2022
10+
ms.date: 04/28/2024
1111
ms.author: srijangupta
1212
ms.reviewer: mattmcinnes
1313
---
@@ -221,33 +221,35 @@ As an alternative to building your own VHD, SUSE also publishes BYOS (bring your
221221
sudo rm -f ~/.bash_history
222222
```
223223
224-
## Prepare openSUSE 15.2+
224+
## Prepare openSUSE 15.4+
225225
226226
1. On the center pane of Hyper-V Manager, select the virtual machine.
227-
2. Select **Connect** to open the window for the virtual machine.
228-
3. In a terminal, run the command `zypper lr`. If this command returns output similar to the following example, the repositories are configured as expected and no adjustments are necessary. (Version numbers might vary.)
229-
230-
| # | Alias | Name | Enabled | Refresh
231-
| - | :-------------------- | :-------------------- | :------ | :------
232-
| 1 | Cloud:Tools_15.2 | Cloud:Tools_15.2 | Yes | Yes
233-
| 2 | openSUSE_15.2_OSS | openSUSE_15.2_OSS | Yes | Yes
234-
| 3 | openSUSE_15.2_Updates | openSUSE_15.2_Updates | Yes | Yes
235-
236-
If the command returns "No repositories defined," use the following commands to add these repos:
237-
238-
```bash
239-
sudo zypper ar -f http://download.opensuse.org/repositories/Cloud:Tools/openSUSE_15.2 Cloud:Tools_15.2
240-
sudo zypper ar -f https://download.opensuse.org/distribution/15.2/repo/oss openSUSE_15.2_OSS
241-
sudo zypper ar -f http://download.opensuse.org/update/15.2 openSUSE_15.2_Updates
242-
```
243-
244-
You can then verify that the repositories have been added by running the command `zypper lr` again. If one of the relevant update repositories isn't enabled, enable it by using the following command:
245-
246-
```bash
247-
sudo zypper mr -e [NUMBER OF REPOSITORY]
248-
```
249-
250-
4. Update the kernel to the latest available version:
227+
1. Select **Connect** to open the window for the virtual machine.
228+
1. In a terminal, run the command `zypper lr`. If this command returns output similar to the following example, the repositories are configured as expected and no adjustments are necessary. (Version numbers might vary.)
229+
230+
| # | Alias | Name | Enabled | GPG Check | Refresh
231+
| - | :------------------------------------------------------------------------------------------| :-------------| :-------| :---------| :------
232+
| 1 | Cloud:Tools_15.4 | Cloud:Tools-> | Yes | (r ) Yes | Yes
233+
| 2 | openSUSE_stable_OSS | openSUSE_st-> | Yes | (r ) Yes | Yes
234+
| 3 | openSUSE_stable_Updates | openSUSE_st-> | Yes | (r ) Yes | Yes
235+
236+
If the the message "___No repositories defined___" appears from the `zypper lr` the repositories must be added manually.
237+
238+
Below are examples of commands for adding these repositories (versions and links may vary):
239+
240+
```bash
241+
sudo zypper ar -f https://download.opensuse.org/update/openSUSE-stable openSUSE_stable_Updates
242+
sudo zypper ar -f https://download.opensuse.org/repositories/Cloud:/Tools/15.4 Cloud:Tools_15.4
243+
sudo zypper ar -f https://download.opensuse.org/distribution/openSUSE-stable/repo/oss openSUSE_stable_OSS
244+
```
245+
246+
You can then verify that the repositories have been added by running the command `zypper lr` again. If one of the relevant update repositories isn't enabled, enable it by using the following command:
247+
248+
```bash
249+
sudo zypper mr -e [NUMBER OF REPOSITORY]
250+
```
251+
252+
1. Update the kernel to the latest available version:
251253

252254
```bash
253255
sudo zypper up kernel-default
@@ -259,16 +261,16 @@ As an alternative to building your own VHD, SUSE also publishes BYOS (bring your
259261
sudo zypper update
260262
```
261263

262-
5. Install the Azure Linux Agent:
264+
1. Install the Azure Linux Agent:
263265

264266
```bash
265267
sudo zypper install WALinuxAgent
266268
```
267269

268-
6. Modify the kernel boot line in your GRUB configuration to include other kernel parameters for Azure. To do this, open */boot/grub/menu.lst* in a text editor and ensure that the default kernel includes the following parameters:
270+
1. Modify the kernel boot line in your GRUB configuration to include other kernel parameters for Azure. To do this, open */boot/grub/menu.lst* in a text editor and ensure that the default kernel includes the following parameters:
269271

270272
```config-grub
271-
console=ttyS0 earlyprintk=ttyS0
273+
console=ttyS0 earlyprintk=ttyS0
272274
```
273275

274276
This option ensures that all console messages are sent to the first serial port, which can assist Azure support with debugging issues. In addition, remove the following parameters from the kernel boot line if they exist:
@@ -277,21 +279,21 @@ As an alternative to building your own VHD, SUSE also publishes BYOS (bring your
277279
libata.atapi_enabled=0 reserve=0x1f0,0x8
278280
```
279281

280-
7. We recommend that you edit the */etc/sysconfig/network/dhcp* file and change the `DHCLIENT_SET_HOSTNAME` parameter to the following setting:
282+
1. We recommend that you edit the */etc/sysconfig/network/dhcp* file and change the `DHCLIENT_SET_HOSTNAME` parameter to the following setting:
281283

282284
```config
283285
DHCLIENT_SET_HOSTNAME="no"
284286
```
285287

286-
8. In the */etc/sudoers* file, comment out or remove the following lines if they exist. This is an important step.
288+
1. In the */etc/sudoers* file, comment out or remove the following lines if they exist. This is an important step.
287289

288290
```output
289291
Defaults targetpw # ask for the password of the target user i.e. root
290292
ALL ALL=(ALL) ALL # WARNING! Only use this together with 'Defaults targetpw'!
291293
```
292294

293-
9. Ensure that the SSH server is installed and configured to start at boot time.
294-
10. Don't create swap space on the OS disk.
295+
1. Ensure that the SSH server is installed and configured to start at boot time.
296+
1. Don't create swap space on the OS disk.
295297
296298
The Azure Linux Agent can automatically configure swap space by using the local resource disk that's attached to the VM after provisioning on Azure. The local resource disk is a *temporary* disk and will be emptied when the VM is deprovisioned.
297299

@@ -305,26 +307,26 @@ As an alternative to building your own VHD, SUSE also publishes BYOS (bring your
305307
ResourceDisk.SwapSizeMB=2048 ## NOTE: set the size to whatever you need it to be.
306308
```
307309

308-
11. Ensure that the Azure Linux Agent runs at startup:
310+
1. Ensure that the Azure Linux Agent runs at startup:
309311

310312
```bash
311313
sudo systemctl enable waagent.service
312314
```
313315

314-
12. Run the following commands to deprovision the virtual machine and prepare it for provisioning on Azure.
316+
1. Run the following commands to deprovision the virtual machine and prepare it for provisioning on Azure.
315317

316318
If you're migrating a specific virtual machine and don't want to create a generalized image, skip the deprovisioning step.
317319

318320
```bash
319-
sudo rm -f ~/.bash_history # Remove current user history
320-
sudo rm -rf /var/lib/waagent/
321-
sudo rm -f /var/log/waagent.log
322-
sudo waagent -force -deprovision+user
323-
sudo rm -f ~/.bash_history # Remove root user history
324-
sudo export HISTSIZE=0
321+
sudo rm -f ~/.bash_history # Remove current user history
322+
sudo rm -rf /var/lib/waagent/
323+
sudo rm -f /var/log/waagent.log
324+
sudo waagent -force -deprovision+user
325+
sudo rm -f ~/.bash_history # Remove root user history
326+
sudo export HISTSIZE=0
325327
```
326328

327-
13. Select **Action** > **Shut Down** in Hyper-V Manager.
329+
1. Select **Action** > **Shut Down** in Hyper-V Manager.
328330

329331
## Next steps
330332

articles/vpn-gateway/tutorial-site-to-site-portal.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,10 @@ To see more information about the public IP address object, select the name/IP a
9595

9696
## <a name="LocalNetworkGateway"></a>Create a local network gateway
9797

98-
The local network gateway is a specific object that represents your on-premises location (the site) for routing purposes. You give the site a name by which Azure can refer to it, and then specify the IP address of the on-premises VPN device to which you create a connection. You also specify the IP address prefixes that are routed through the VPN gateway to the VPN device. The address prefixes you specify are the prefixes located on your on-premises network. If your on-premises network changes or you need to change the public IP address for the VPN device, you can easily update the values later.
98+
The local network gateway is a specific object that represents your on-premises location (the site) for routing purposes. You give the site a name by which Azure can refer to it, and then specify the IP address of the on-premises VPN device to which you create a connection. You also specify the IP address prefixes that are routed through the VPN gateway to the VPN device. The address prefixes you specify are the prefixes located on your on-premises network. If your on-premises network changes or you need to change the public IP address for the VPN device, you can easily update the values later.
99+
100+
> [!Note]
101+
> The local network gateway is deployed in Azure only and not on your on-premises.
99102
100103
Create a local network gateway by using the following values:
101104

0 commit comments

Comments
 (0)