Skip to content

Commit 93c6cfa

Browse files
Merge pull request #100305 from aahill/v3-quickstarts
[CogSvcs][Text Analytics] V3 quickstarts
2 parents 898ac9f + d60e75f commit 93c6cfa

File tree

16 files changed

+1493
-40
lines changed

16 files changed

+1493
-40
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: Find your Text Analytics resource endpoint and key - v2
3+
titleSuffix: Azure Cognitive Services
4+
description: Learn how to create a Cognitive Services Text Analytics resource.
5+
services: cognitive-services
6+
author: aahill
7+
manager: nitinme
8+
ms.service: cognitive-services
9+
ms.topic: include
10+
ms.date: 01/08/2019
11+
ms.author: aahi
12+
---
13+
> [!IMPORTANT]
14+
> To find your key and endpoint on the Azure portal:
15+
> 1. Navigate to your azure resource at https://portal.azure.com/.
16+
> 2. Click on **Quick start**, located under **Resource Management**.
17+
>
18+
> Remember to remove your credentials from your code when you're done, and never post them 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/find-azure-resource-info.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Find your Text Analytics resource endpoint and key
2+
title: Find your Text Analytics resource endpoint and key - v3 client library
33
titleSuffix: Azure Cognitive Services
44
description: Learn how to create a Cognitive Services Text Analytics resource.
55
services: cognitive-services
@@ -10,6 +10,7 @@ ms.topic: include
1010
ms.date: 01/14/2019
1111
ms.author: aahi
1212
---
13+
1314
> [!IMPORTANT]
1415
> Go to the resource you created to find your key and endpoint. They'll be located on the resource's **Quick start** page, under **resource management**.
1516
>

articles/cognitive-services/text-analytics/includes/quickstarts/csharp.md renamed to articles/cognitive-services/text-analytics/includes/quickstarts/v2/csharp.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ ms.author: aahi
2222

2323
### Create a Text Analytics Azure resource
2424

25-
[!INCLUDE [text-analytics-resource-creation](resource-creation.md)]
25+
[!INCLUDE [text-analytics-resource-creation](../resource-creation.md)]
2626

2727
### Create a new .NET Core application
2828

@@ -36,7 +36,7 @@ Open the *program.cs* file and add the following `using` directives:
3636

3737
In the application's `Program` class, create variables for your resource's key and endpoint.
3838

39-
[!INCLUDE [text-analytics-find-resource-information](../find-azure-resource-info.md)]
39+
[!INCLUDE [text-analytics-find-resource-information](../../find-azure-resource-info-v2.md)]
4040

4141
```csharp
4242
private static readonly string key = "<replace-with-your-text-analytics-key-here>";

articles/cognitive-services/text-analytics/includes/quickstarts/go-sdk.md renamed to articles/cognitive-services/text-analytics/includes/quickstarts/v2/go-sdk.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ms.author: aahi
1717

1818
### Create a Text Analytics Azure resource
1919

20-
[!INCLUDE [text-analytics-resource-creation](resource-creation.md)]
20+
[!INCLUDE [text-analytics-resource-creation](../resource-creation.md)]
2121

2222
### Create a new Go project
2323

@@ -87,7 +87,7 @@ These code snippets show you how to do the following with the Text Analytics cli
8787

8888
In a new function, create variables for your resource's Azure endpoint and subscription key.
8989

90-
[!INCLUDE [text-analytics-find-resource-information](../find-azure-resource-info.md)]
90+
[!INCLUDE [text-analytics-find-resource-information](../../find-azure-resource-info-v2.md)]
9191

9292
Create a new [BaseClient](https://godoc.org/github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v2.1/textanalytics#New) object. Pass your key to the [autorest.NewCognitiveServicesAuthorizer()](https://godoc.org/github.com/Azure/go-autorest/autorest#NewCognitiveServicesAuthorizer) function, which will then be passed to the client's `authorizer` property.
9393

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ms.author: aahi
1919

2020
### Create a Text Analytics Azure resource
2121

22-
[!INCLUDE [text-analytics-resource-creation](resource-creation.md)]
22+
[!INCLUDE [text-analytics-resource-creation](../resource-creation.md)]
2323

2424
### Create a new Node.js application
2525

@@ -41,7 +41,7 @@ Create a file named `index.js` and add the following libraries:
4141

4242
Create variables for your resource's Azure endpoint and subscription key.
4343

44-
[!INCLUDE [text-analytics-find-resource-information](../find-azure-resource-info.md)]
44+
[!INCLUDE [text-analytics-find-resource-information](../../find-azure-resource-info-v2.md)]
4545

4646
```javascript
4747
const subscription_key = '<paste-your-text-analytics-key-here>';

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ ms.author: aahi
2121

2222
### Create a Text Analytics Azure resource
2323

24-
[!INCLUDE [text-analytics-resource-creation](resource-creation.md)]
24+
[!INCLUDE [text-analytics-resource-creation](../resource-creation.md)]
2525

2626
### Install the client library
2727

@@ -39,7 +39,7 @@ Create a new Python file and import the following libraries.
3939

4040
Create variables for your resource's Azure endpoint and subscription key.
4141

42-
[!INCLUDE [text-analytics-find-resource-information](../find-azure-resource-info.md)]
42+
[!INCLUDE [text-analytics-find-resource-information](../../find-azure-resource-info-v2.md)]
4343

4444
```python
4545
subscription_key = "<paste-your-text-analytics-key-here>"

articles/cognitive-services/text-analytics/includes/quickstarts/ruby-sdk.md renamed to articles/cognitive-services/text-analytics/includes/quickstarts/v2/ruby-sdk.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ms.author: aahi
1919

2020
### Create a Text Analytics Azure resource
2121

22-
[!INCLUDE [text-analytics-resource-creation](resource-creation.md)]
22+
[!INCLUDE [text-analytics-resource-creation](../resource-creation.md)]
2323

2424
### Create a new Ruby application
2525

@@ -42,7 +42,7 @@ In your Ruby file, import the following packages.
4242

4343
Create variables for your resource's Azure endpoint and key.
4444

45-
[!INCLUDE [text-analytics-find-resource-information](../find-azure-resource-info.md)]
45+
[!INCLUDE [text-analytics-find-resource-information](../../find-azure-resource-info-v2.md)]
4646

4747
```ruby
4848
const subscription_key = '<paste-your-text-analytics-key-here>'

0 commit comments

Comments
 (0)