Skip to content

Commit 5c8cd8c

Browse files
authored
Merge pull request #103838 from aahill/ta-prereqs
[CogSvcs] Updating resource creation note
2 parents 5acf8b5 + 6f0fdcf commit 5c8cd8c

File tree

8 files changed

+39
-49
lines changed

8 files changed

+39
-49
lines changed

articles/cognitive-services/text-analytics/includes/find-azure-resource-info.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ ms.author: aahi
1212
---
1313

1414
> [!IMPORTANT]
15-
> Go to the Azure portal and find the key and endpoint for the Text Analytics resource you created in the prerequisites. They will be located on the resource's **Quick start** page, under **resource management**. Then replace the strings in the code below with your key and endpoint.
15+
> Go to the Azure portal and find the key and endpoint for the Text Analytics resource you created in the prerequisites. They will be located on the resource's **key and endpoint** page, under **resource management**. Then replace the strings in the code below with your key and endpoint.
1616
>
1717
> Remember to remove the key from your code when you're done, and never post it publicly. For production, consider using a secure way of storing and accessing your credentials. For example, [Azure key vault](https://docs.microsoft.com/azure/key-vault/key-vault-overview).

articles/cognitive-services/text-analytics/includes/quickstarts/csharp-sdk.md

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ manager: nitinme
66
ms.service: cognitive-services
77
ms.subservice: text-analytics
88
ms.topic: include
9-
ms.date: 02/24/2020
9+
ms.date: 02/26/2020
1010
ms.author: aahi
1111
ms.reviewer: assafi
1212
---
@@ -27,8 +27,9 @@ ms.reviewer: assafi
2727

2828
* Azure subscription - [Create one for free](https://azure.microsoft.com/free/)
2929
* The [Visual Studio IDE](https://visualstudio.microsoft.com/vs/)
30-
31-
[!INCLUDE [text-analytics-resource-creation](resource-creation.md)]
30+
* Once you have your Azure subscription, <a href="https://ms.portal.azure.com/#create/Microsoft.CognitiveServicesTextAnalytics" title="Create a Text Analytics resource" target="_blank">create a Text Analytics resource <span class="docon docon-navigate-external x-hidden-focus"></span></a> in the Azure portal to get your key and endpoint.
31+
* You will need the key and endpoint from the resource you create to connect your application to the Text Analytics API. You'll do this later in the quickstart.
32+
* You can use the free pricing tier to try the service, and upgrade later to a paid tier for production.
3233

3334
## Setting up
3435

@@ -40,6 +41,20 @@ Using the Visual Studio IDE, create a new .NET Core console app. This will creat
4041

4142
Install the client library by right-clicking on the solution in the **Solution Explorer** and selecting **Manage NuGet Packages**. In the package manager that opens select **Browse**, check **Include prerelease**, and search for `Azure.AI.TextAnalytics`. Select version `1.0.0-preview.2`, and then **Install**. You can also use the [Package Manager Console](https://docs.microsoft.com/nuget/consume-packages/install-use-packages-powershell#find-and-install-a-package).
4243

44+
> [!TIP]
45+
> Want to view the whole quickstart code file at once? You can find it [on GitHub](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/dotnet/TextAnalytics/program.cs), which contains the code examples in this quickstart.
46+
47+
#### [Version 2.1](#tab/version-2)
48+
49+
Install the client library by right-clicking on the solution in the **Solution Explorer** and selecting **Manage NuGet Packages**. In the package manager that opens, select **Browse** and search for `Microsoft.Azure.CognitiveServices.Language.TextAnalytics`. Click on it, and then **Install**. You can also use the [Package Manager Console](https://docs.microsoft.com/nuget/consume-packages/install-use-packages-powershell#find-and-install-a-package).
50+
51+
> [!TIP]
52+
> Want to view the whole quickstart code file at once? You can find it [on GitHub](https://github.com/Azure-Samples/cognitive-services-dotnet-sdk-samples/blob/master/samples/TextAnalytics/synchronous/Program.cs), which contains the code examples in this quickstart.
53+
54+
---
55+
56+
#### [Version 3.0-preview](#tab/version-3)
57+
4358
Open the *program.cs* file and add the following `using` directives:
4459

4560
```csharp
@@ -78,8 +93,6 @@ static void Main(string[] args)
7893

7994
#### [Version 2.1](#tab/version-2)
8095

81-
Install the client library by right-clicking on the solution in the **Solution Explorer** and selecting **Manage NuGet Packages**. In the package manager that opens, select **Browse** and search for `Microsoft.Azure.CognitiveServices.Language.TextAnalytics`. Click on it, and then **Install**. You can also use the [Package Manager Console](https://docs.microsoft.com/nuget/consume-packages/install-use-packages-powershell#find-and-install-a-package).
82-
8396
Open the *program.cs* file and add the following `using` directives:
8497

8598
[!code-csharp[Import directives](~/cognitive-services-dotnet-sdk-samples/samples/TextAnalytics/synchronous/Program.cs?name=imports)]

articles/cognitive-services/text-analytics/includes/quickstarts/java-sdk.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ manager: nitinme
66
ms.service: cognitive-services
77
ms.subservice: text-analytics
88
ms.topic: include
9-
ms.date: 02/11/2020
9+
ms.date: 02/26/2020
1010
ms.author: aahi
1111
ms.reviewer: tasharm, assafi
1212
---
@@ -19,9 +19,9 @@ ms.reviewer: tasharm, assafi
1919

2020
* Azure subscription - [Create one for free](https://azure.microsoft.com/free/)
2121
* [Java Development Kit](https://www.oracle.com/technetwork/java/javase/downloads/index.html) (JDK) with version 8 or above
22-
23-
24-
[!INCLUDE [text-analytics-resource-creation](resource-creation.md)]
22+
* Once you have your Azure subscription, <a href="https://ms.portal.azure.com/#create/Microsoft.CognitiveServicesTextAnalytics" title="Create a Text Analytics resource" target="_blank">create a Text Analytics resource <span class="docon docon-navigate-external x-hidden-focus"></span></a> in the Azure portal to get your key and endpoint.
23+
* You will need the key and endpoint from the resource you create to connect your application to the Text Analytics API. You'll do this later in the quickstart.
24+
* You can use the free pricing tier to try the service, and upgrade later to a paid tier for production.
2525

2626
## Setting up
2727

articles/cognitive-services/text-analytics/includes/quickstarts/nodejs-sdk.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ manager: nitinme
66
ms.service: cognitive-services
77
ms.subservice: text-analytics
88
ms.topic: include
9-
ms.date: 01/13/2020
9+
ms.date: 02/26/2020
1010
ms.author: aahi
1111
ms.reviewer: sumeh, assafi
1212
---
@@ -28,8 +28,9 @@ ms.reviewer: sumeh, assafi
2828

2929
* Azure subscription - [Create one for free](https://azure.microsoft.com/free/)
3030
* The current version of [Node.js](https://nodejs.org/).
31-
32-
[!INCLUDE [text-analytics-resource-creation](resource-creation.md)]
31+
* Once you have your Azure subscription, <a href="https://ms.portal.azure.com/#create/Microsoft.CognitiveServicesTextAnalytics" title="Create a Text Analytics resource" target="_blank">create a Text Analytics resource <span class="docon docon-navigate-external x-hidden-focus"></span></a> in the Azure portal to get your key and endpoint.
32+
* You will need the key and endpoint from the resource you create to connect your application to the Text Analytics API. You'll do this later in the quickstart.
33+
* You can use the free pricing tier to try the service, and upgrade later to a paid tier for production.
3334

3435
## Setting up
3536

articles/cognitive-services/text-analytics/includes/quickstarts/python-sdk.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
author: aahill
33
ms.service: cognitive-services
44
ms.topic: include
5-
ms.date: 02/14/2019
5+
ms.date: 02/26/2019
66
ms.author: aahi
77
---
88

@@ -22,8 +22,9 @@ ms.author: aahi
2222

2323
* Azure subscription - [Create one for free](https://azure.microsoft.com/free/)
2424
* [Python 3.x](https://www.python.org/)
25-
26-
[!INCLUDE [text-analytics-resource-creation](resource-creation.md)]
25+
* Once you have your Azure subscription, <a href="https://ms.portal.azure.com/#create/Microsoft.CognitiveServicesTextAnalytics" title="Create a Text Analytics resource" target="_blank">create a Text Analytics resource <span class="docon docon-navigate-external x-hidden-focus"></span></a> in the Azure portal to get your key and endpoint.
26+
* You will need the key and endpoint from the resource you create to connect your application to the Text Analytics API. You'll do this later in the quickstart.
27+
* You can use the free pricing tier to try the service, and upgrade later to a paid tier for production.
2728

2829
## Setting up
2930

articles/cognitive-services/text-analytics/includes/quickstarts/resource-creation.md

Lines changed: 0 additions & 23 deletions
This file was deleted.

articles/cognitive-services/text-analytics/quickstarts/go-sdk.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ manager: nitinme
88
ms.service: cognitive-services
99
ms.subservice: text-analytics
1010
ms.topic: quickstart
11-
ms.date: 01/29/2020
11+
ms.date: 02/26/2020
1212
ms.author: aahi
1313
---
1414

@@ -23,13 +23,12 @@ ms.author: aahi
2323

2424
* An Azure subscription - [create one for free](https://azure.microsoft.com/free/)
2525
* The latest version of [Go](https://golang.org/dl/)
26+
* Once you have your Azure subscription, <a href="https://ms.portal.azure.com/#create/Microsoft.CognitiveServicesTextAnalytics" title="Create a Text Analytics resource" target="_blank">create a Text Analytics resource <span class="docon docon-navigate-external x-hidden-focus"></span></a> in the Azure portal to get your key and endpoint.
27+
* You will need the key and endpoint from the resource you create to connect your application to the Text Analytics API. You'll do this later in the quickstart.
28+
* You can use the free pricing tier to try the service, and upgrade later to a paid tier for production.
2629

2730
## Setting up
2831

29-
### Create a Text Analytics Azure resource
30-
31-
[!INCLUDE [text-analytics-resource-creation](../includes/quickstarts/resource-creation.md)]
32-
3332
### Create a new Go project
3433

3534
In a console window (cmd, PowerShell, Terminal, Bash), create a new workspace for your Go project and navigate to it. Your workspace will contain three folders:

articles/cognitive-services/text-analytics/quickstarts/ruby-sdk.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ manager: nitinme
88
ms.service: cognitive-services
99
ms.subservice: text-analytics
1010
ms.topic: quickstart
11-
ms.date: 01/29/2020
11+
ms.date: 02/26/2020
1212
ms.author: aahi
1313
---
1414

@@ -34,13 +34,12 @@ Use the Text Analytics client library to perform:
3434

3535
* An Azure subscription - [create one for free](https://azure.microsoft.com/free/)
3636
* The current version of [Ruby](https://www.ruby-lang.org/)
37+
* Once you have your Azure subscription, <a href="https://ms.portal.azure.com/#create/Microsoft.CognitiveServicesTextAnalytics" title="Create a Text Analytics resource" target="_blank">create a Text Analytics resource <span class="docon docon-navigate-external x-hidden-focus"></span></a> in the Azure portal to get your key and endpoint.
38+
* You will need the key and endpoint from the resource you create to connect your application to the Text Analytics API. You'll do this later in the quickstart.
39+
* You can use the free pricing tier to try the service, and upgrade later to a paid tier for production.
3740

3841
## Setting up
3942

40-
### Create a Text Analytics Azure resource
41-
42-
[!INCLUDE [text-analytics-resource-creation](../includes/quickstarts/resource-creation.md)]
43-
4443
### Create a new Ruby application
4544

4645
In a console window (such as cmd, PowerShell, or Bash), create a new directory for your app, and navigate to it. Then create a file named `GemFile`, and a Ruby file for your code.

0 commit comments

Comments
 (0)