Skip to content

Commit 8cc51bf

Browse files
authored
Merge pull request #270882 from MicrosoftDocs/main
4/2 11:00 AM IST Publish
2 parents 6e88bb6 + f1abbc8 commit 8cc51bf

File tree

27 files changed

+371
-248
lines changed

27 files changed

+371
-248
lines changed

articles/advisor/advisor-resiliency-reviews.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ You can find resiliency reviews created by your account team in the left navigat
7272

7373
If there's a new review available to you, you see a notification banner on top of the Advisor pages. A **New** review is one with all recommendations in the *Pending* state.
7474

75-
1. Open the Azure portal and navigate to [Advisor](https://aka.ms/Advisor_Reviews).
75+
1. Open the Azure portal and navigate to [Advisor](https://aka.ms/azureadvisordashboard).
7676
Select **Manage** > **Reviews (Preview)** in the left navigation pane. A list of reviews opens. At the top of the page, you see the number of **Total Reviews** and review **Recommendations**, and a graph of **Reviews by status**.
7777
1. Use search, filters, and sorting to find the review you need. You can filter reviews by one of the **Status equals** states shown next, or choose *All* (the default) to see all reviews. If you don’t see a review for your subscription, make sure the review subscription is included in the global portal filter. You might need to update the filter to see the reviews for a subscription.
7878

@@ -86,7 +86,7 @@ Select **Manage** > **Reviews (Preview)** in the left navigation pane. A list of
8686
At the top of the reviews page, use **Feedback** to tell us about your experience. Use the **Refresh** button to refresh the page as needed.
8787

8888
> [!NOTE]
89-
> If you have no reviews, the **Reviews** menu item in the left navigation is greyed out.
89+
> If you have no reviews, the **Reviews** menu item in the left navigation is hidden.
9090
9191
### Review recommendations
9292

articles/ai-services/openai/concepts/models.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,9 @@ The following Embeddings models are available with [Azure Government](/azure/azu
235235
| --- | --- | :---: | :---: |
236236
| `babbage-002` | North Central US <br> Sweden Central | 16,384 | Sep 2021 |
237237
| `davinci-002` | North Central US <br> Sweden Central | 16,384 | Sep 2021 |
238-
| `gpt-35-turbo` (0613) | North Central US <br> Sweden Central | 4,096 | Sep 2021 |
239-
| `gpt-35-turbo` (1106) | North Central US <br> Sweden Central | Input: 16,385<br> Output: 4,096 | Sep 2021|
240-
| `gpt-35-turbo` (0125) | North Central US <br> Sweden Central | 16,385 | Sep 2021 |
238+
| `gpt-35-turbo` (0613) | East US2 <br> North Central US <br> Sweden Central | 4,096 | Sep 2021 |
239+
| `gpt-35-turbo` (1106) | East US2 <br> North Central US <br> Sweden Central | Input: 16,385<br> Output: 4,096 | Sep 2021|
240+
| `gpt-35-turbo` (0125) | East US2 <br> North Central US <br> Sweden Central | 16,385 | Sep 2021 |
241241

242242
### Whisper models
243243

articles/ai-services/openai/includes/model-matrix/quota.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The default quota for models varies by model and region. Default quota limits ar
1616
| brazilsouth | - | - | - | - | - | - | 350 K | - | - | - | - | - | - | - | - | - |
1717
| canadaeast | 40 K | 80 K | 80 K | - | 300 K | - | 350 K | 350 K | 350 K | - | - | - | - | - | - | - |
1818
| eastus | - | - | 80 K | - | 240 K | 240 K | 240 K | 350 K | 350 K | - | - | - | - | - | - | - |
19-
| eastus2 | - | 80 K | 80 K | - | 300 K | - | 350 K | 350 K | 350 K | - | - | - | - | - | - | - |
19+
| eastus2 | - | 80 K | 80 K | - | 300 K | - | 350 K | 350 K | 350 K | - | - | - | - | 250 K | 250 K | 250 K |
2020
| francecentral | 20 K | 60 K | 80 K | - | 240 K | - | 240 K | - | - | - | - | - | - | - | - | - |
2121
| japaneast | - | - | - | 30 K | 300 K | - | 350 K | - | - | - | - | - | - | - | - | - |
2222
| northcentralus | - | - | 80 K | - | 300 K | - | 350 K | - | - | 240 K | 250 K | 240 K | 250 K | 250 K | 250 K | 250 K |

articles/batch/batch-upgrade-policy.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,12 @@
22
title: Provision a pool with Auto OS Upgrade
33
description: Learn how to create a Batch pool with Auto OS Upgrade so that customers can have control over their OS upgrade strategy to ensure safe, workload-aware OS upgrade deployments.
44
ms.topic: how-to
5-
ms.date: 03/27/2024
5+
ms.date: 04/02/2024
66
ms.custom:
77
---
88

99
# Create an Azure Batch pool with Automatic Operating System (OS) Upgrade
1010

11-
> [!IMPORTANT]
12-
> - This preview version is provided without a service level agreement, and it's not recommended for production workloads. Certain features might not be supported or might have constrained capabilities.
13-
> - For more information, see [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/).
14-
1511
When you create an Azure Batch pool, you can provision the pool with nodes that have Auto OS Upgrade enabled. This article explains how to set up a Batch pool with Auto OS Upgrade.
1612

1713
## Why use Auto OS Upgrade?

articles/communication-services/quickstarts/telephony/includes/number-lookup-java.md

Lines changed: 63 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
Get started with the Phone Numbers client library for Java to look up operator information for phone numbers, which can be used to determine whether and how to communicate with that phone number. Follow these steps to install the package and look up operator information about a phone number.
1+
Get started with the Phone Numbers client library for Java to look up operator information for phone numbers, which can be used to determine whether and how to communicate with that phone number. Follow these steps to install the package and look up operator information about a phone number.
22

33
> [!NOTE]
4-
> Find the code for this quickstart on [GitHub](https://github.com/Azure/communication-preview/tree/master/samples/NumberLookup).
4+
> Find the code for this quickstart on [GitHub](https://github.com/Azure-Samples/communication-services-java-quickstarts/tree/main/LookupNumber).
55
66
## Prerequisites
77

@@ -29,7 +29,7 @@ mvn archetype:generate -DgroupId=com.communication.lookup.quickstart -DartifactI
2929
The 'generate' task creates a directory with the same name as the `artifactId`. Under this directory, the src/main/java directory contains the project source code, the `src/test/java directory` contains the test source, and the `pom.xml` file is the project's Project Object Model, or POM.
3030

3131
### Connect to dev package feed
32-
The public preview version of the SDK is published to a dev package feed. To connect to the dev feed, open the **pom.xml** file in your text editor and add the dev repo to **both** your pom.xml's `<repositories>` and `<distributionManagement>` sections
32+
The public preview version of the SDK is published to a dev package feed. To connect to the dev feed, open the **pom.xml** file in your text editor and add the dev repo to **both** your pom.xml's `<repositories>` and `<distributionManagement>` sections that you can add if they don't already exist.
3333

3434
```xml
3535
<repository>
@@ -44,7 +44,7 @@ The public preview version of the SDK is published to a dev package feed. To con
4444
</repository>
4545
```
4646

47-
Add or edit the `settings.xml` file in `${user.home}/.m2`
47+
You may need to add or edit the `settings.xml` file in `${user.home}/.m2`
4848

4949
```xml
5050
<server>
@@ -54,7 +54,7 @@ Add or edit the `settings.xml` file in `${user.home}/.m2`
5454
</server>
5555
```
5656

57-
Finally, generate a [Personal Access Token](https://dev.azure.com/azure-sdk/_details/security/tokens) with _Packaging_ read & write scopes and paste it into the `<password>` tag.
57+
You can generate a [Personal Access Token](https://dev.azure.com/azure-sdk/_details/security/tokens) with _Packaging_ read & write scopes and paste it into the `<password>` tag.
5858

5959
More detailed information and other options for connecting to the dev feed can be found [here](https://dev.azure.com/azure-sdk/public/_artifacts/feed/azure-sdk-for-java/connect).
6060

@@ -72,7 +72,7 @@ Add the following dependency elements to the group of dependencies in the **pom.
7272
<dependency>
7373
<groupId>com.azure</groupId>
7474
<artifactId>azure-communication-phonenumbers</artifactId>
75-
<version>1.2.0-beta.1</version>
75+
<version>1.2.0-beta.3</version>
7676
</dependency>
7777

7878
<dependency>
@@ -89,6 +89,16 @@ Add the following dependency elements to the group of dependencies in the **pom.
8989
</dependencies>
9090
```
9191

92+
Check the `properties` section to ensure your project is targeting Maven version 1.8 or above.
93+
94+
```xml
95+
<properties>
96+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
97+
<maven.compiler.source>1.8</maven.compiler.source>
98+
<maven.compiler.target>1.8</maven.compiler.target>
99+
</properties>
100+
```
101+
92102
## Code examples
93103

94104
### Set up the app framework
@@ -125,63 +135,87 @@ public class App
125135

126136
### Authenticate the client
127137

128-
## Authenticate the Phone Numbers Client
129-
130-
The `PhoneNumberClientBuilder` is enabled to use Microsoft Entra authentication. Using the `DefaultAzureCredentialBuilder` is the easiest way to get started with Microsoft Entra ID. You can acquire your resource name from an Azure Communication Services resource in the [Azure portal](https://portal.azure.com).
131-
<!-- embedme ./src/samples/java/com/azure/communication/phonenumbers/ReadmeSamples.java#L52-L62 -->
138+
The client can be authenticated using a connection string acquired from an Azure Communication Services resource in the [Azure portal](https://portal.azure.com). Using a `COMMUNICATION_SERVICES_CONNECTION_STRING` environment variable is recommended to avoid putting your connection string in plain text within your code. Learn how to [manage your resource's connection string](../../create-communication-resource.md#store-your-connection-string).
139+
<!-- embedme ./src/samples/java/com/azure/communication/phonenumbers/ReadmeSamples.java#L30-L41 -->
132140
```java
133-
// You can find your resource name from your resource in the Azure portal
134-
String endpoint = "https://<RESOURCE_NAME>.communication.azure.com";
141+
// This code retrieves your connection string from an environment variable
142+
String connectionString = System.getenv("COMMUNICATION_SERVICES_CONNECTION_STRING");
135143

136144
PhoneNumbersClient phoneNumberClient = new PhoneNumbersClientBuilder()
137-
.endpoint(endpoint)
138-
.credential(new DefaultAzureCredentialBuilder().build())
145+
.connectionString(connectionString)
139146
.buildClient();
140147
```
141148

142-
Alternatively, the client can be authenticated using a connection string, also acquired from an Azure Communication Services resource in the [Azure portal](https://portal.azure.com). It's recommended to use a `COMMUNICATION_SERVICES_CONNECTION_STRING` environment variable to avoid putting your connection string in plain text within your code. Learn how to [manage your resource's connection string](../../create-communication-resource.md#store-your-connection-string).
143-
<!-- embedme ./src/samples/java/com/azure/communication/phonenumbers/ReadmeSamples.java#L30-L41 -->
149+
Alternatively, you can authenticate using Microsoft Entra authentication. Using the `DefaultAzureCredentialBuilder` is the easiest way to get started with Microsoft Entra ID. You can acquire your resource name from an Azure Communication Services resource in the [Azure portal](https://portal.azure.com).
150+
<!-- embedme ./src/samples/java/com/azure/communication/phonenumbers/ReadmeSamples.java#L52-L62 -->
144151
```java
145-
// This code retrieves your connection string from an environment variable
146-
String connectionString = System.getenv("COMMUNICATION_SERVICES_CONNECTION_STRING");
152+
// You can find your resource name from your resource in the Azure portal
153+
String endpoint = "https://<RESOURCE_NAME>.communication.azure.com";
147154

148155
PhoneNumbersClient phoneNumberClient = new PhoneNumbersClientBuilder()
149-
.connectionString(connectionString)
156+
.endpoint(endpoint)
157+
.credential(new DefaultAzureCredentialBuilder().build())
150158
.buildClient();
151159
```
152160

153-
### Look up operator information for a number
161+
### Look up phone number formatting
154162

155-
To search for a phone number's operator information, call `searchOperatorInformation` from the `PhoneNumbersClient`.
163+
To look up the national and international formatting for a number, call `searchOperatorInformation` from the `PhoneNumbersClient`.
156164

157165
```java
158166
ArrayList<String> phoneNumbers = new ArrayList<String>();
159167
phoneNumbers.add("<target-phone-number>");
160-
OperatorInformationResult result = phoneNumberClient.searchOperatorInformation(phoneNumbers);
168+
169+
// Use the free number lookup functionality to get number formatting information
170+
OperatorInformationResult formattingResult = phoneNumberClient.searchOperatorInformation(phoneNumbers);
171+
OperatorInformation formattingInfo = formattingResult.getValues().get(0);
161172
```
162173

163174
Replace `<target-phone-number>` with the phone number you're looking up, usually a number you'd like to send a message to.
164175

165176
> [!WARNING]
166177
> Provide phone numbers in E.164 international standard format, for example, +14255550123.
167178
179+
### Look up operator information for a number
180+
181+
To search for a phone number's operator information, call `searchOperatorInformationWithResponse` from the `PhoneNumbersClient`, passing `true` for the `IncludeAdditionalOperatorDetails` option.
182+
183+
```java
184+
OperatorInformationOptions options = new OperatorInformationOptions();
185+
options.setIncludeAdditionalOperatorDetails(true);
186+
Response<OperatorInformationResult> result = phoneNumberClient.searchOperatorInformationWithResponse(phoneNumbers, options, Context.NONE);
187+
OperatorInformation operatorInfo = result.getValue().getValues().get(0);
188+
```
189+
190+
> [!WARNING]
191+
> Using this functionality will incur a charge to your account.
192+
168193
### Use operator information
169194

170-
You can now use the operator information. For this quickstart guide, we can print some of the details to the console.
195+
You can now use the operator information. For this quickstart guide, we can print some of the details to the console.
196+
197+
First, we can print details about the number format.
171198

172199
```java
173-
OperatorInformation operatorInfo = result.getValues().get(0);
200+
System.out.println(formattingInfo.getPhoneNumber() + " is formatted "
201+
+ formattingInfo.getInternationalFormat() + " internationally, and "
202+
+ formattingInfo.getNationalFormat() + " nationally");
203+
```
174204

205+
Next, we can print details about the phone number and operator.
206+
207+
```java
175208
String numberType = operatorInfo.getNumberType() == null ? "unknown" : operatorInfo.getNumberType().toString();
176209
String operatorName = "an unknown operator";
177210
if (operatorInfo.getOperatorDetails()!= null && operatorInfo.getOperatorDetails().getName() != null)
178211
{
179212
operatorName = operatorInfo.getOperatorDetails().getName();
180213
}
181-
System.out.println(operatorInfo.getPhoneNumber() + " is a " + numberType + " number, operated by " + operatorName);
214+
System.out.println(operatorInfo.getPhoneNumber() + " is a " + numberType + " number, operated in "
215+
+ operatorInfo.getIsoCountryCode() + " by " + operatorName);
182216
```
183217

184-
You may also use the operator information to determine whether to send an SMS. For more information on sending an SMS, see the [SMS Quickstart](../../sms/send.md).
218+
You may also use the operator information to determine whether to send an SMS. For more information on sending an SMS, see the [SMS Quickstart](../../sms/send.md).
185219

186220
## Run the code
187221

@@ -198,12 +232,12 @@ Then, build the package.
198232
mvn package
199233
```
200234

201-
Run the following `mvn` command to execute the app.
235+
To execute the app, use the `mvn` command.
202236

203237
```console
204-
mvn exec:java -Dexec.mainClass="com.communication.lookup.quickstart.App" -Dexec.cleanupDaemonThreads=false
238+
mvn exec:java -D"exec.mainClass"="com.communication.lookup.quickstart.App" -D"exec.cleanupDaemonThreads"="false"
205239
```
206240

207241
## Sample code
208242

209-
You can download the sample app from [GitHub](https://github.com/Azure/communication-preview/tree/master/samples/NumberLookup).
243+
You can download the sample app from [GitHub](https://github.com/Azure-Samples/communication-services-java-quickstarts/tree/main/LookupNumber).

0 commit comments

Comments
 (0)