Skip to content

Commit 4f78bae

Browse files
authored
Merge pull request #102012 from SnehaGunda/PrivateLink1
Adding Table API gateway connection mode example
2 parents 44d0296 + 882e56f commit 4f78bae

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

articles/cosmos-db/tutorial-develop-table-dotnet.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,12 @@ public static async Task<CloudTable> CreateTableAsync(string tableName)
174174
}
175175
```
176176

177+
If you get a "503 service unavailable exception" error, it's possible that the required ports for the connectivity mode are blocked by a firewall. To fix this issue, either open the required ports or use the gateway mode connectivity as shown in the following code:
178+
179+
```csharp
180+
tableClient.TableClientConfiguration.UseRestExecutorForCosmosEndpoint = true;
181+
```
182+
177183
## Define the entity
178184

179185
Entities map to C# objects by using a custom class derived from [TableEntity](https://docs.microsoft.com/dotnet/api/microsoft.azure.cosmos.table.tableentity). To add an entity to a table, create a class that defines the properties of your entity.

articles/storage/tables/table-storage-how-to-use-powershell.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
---
22
title: Perform Azure Table storage operations with PowerShell | Microsoft Docs
33
description: Learn how to run common tasks such as creating, querying, deleting data from Azure Table storage account by using PowerShell.
4-
services: cosmos-db
54
author: roygara
65

7-
ms.service: cosmos-db
6+
ms.service: storage
87
ms.topic: article
98
ms.date: 04/05/2019
109
ms.author: rogarana
11-
ms.subservice: cosmosdb-table
10+
ms.subservice: tables
1211
---
1312

1413
# Perform Azure Table storage operations with Azure PowerShell

0 commit comments

Comments
 (0)