You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Azure Table storage is a NoSQL datastore that you can use to store and query huge sets of structured, non-relational data. The main components of the service are tables, entities, and properties. A table is a collection of entities. An entity is a set of properties. Each entity can have up to 252 properties, which are all name-value pairs. This article assumes that you are already familiar with the Azure Table Storage Service concepts. For detailed information, see [Understanding the Table Service Data Model](/rest/api/storageservices/Understanding-the-Table-Service-Data-Model) and [Get started with Azure Table storage using .NET](../../cosmos-db/tutorial-develop-table-dotnet.md).
18
18
19
-
This how-to article covers common Azure Table storage operations. You learn how to:
19
+
This how-to article covers common Azure Table storage operations. You learn how to:
20
20
21
21
> [!div class="checklist"]
22
22
> * Create a table
@@ -26,26 +26,30 @@ This how-to article covers common Azure Table storage operations. You learn how
26
26
> * Delete table entities
27
27
> * Delete a table
28
28
29
-
This how-to article shows you how to create a new Azure Storage account in a new resource group so you can easily remove it when you're done. If you'd rather use an existing Storage account, you can do that instead.
29
+
This how-to article shows you how to create a new storage account in a new resource group so you can easily remove it when you're done. You can also use an existing storage account.
30
30
31
31
The examples require Az PowerShell modules `Az.Storage (1.1.0 or greater)` and `Az.Resources (1.2.0 or greater)`. In a PowerShell window, run `Get-Module -ListAvailable Az*` to find the version. If nothing is displayed, or you need to upgrade, see [Install Azure PowerShell module](/powershell/azure/install-az-ps).
32
32
33
33
> [!IMPORTANT]
34
-
> Using this Azure feature from PowerShell requires that you have the `Az` module installed. The current version of `AzTable` is not compatible with the older AzureRM module.
35
-
> Follow the [latest install instructions for installing Az module](/powershell/azure/install-az-ps) if needed.
34
+
> Using this Azure feature from PowerShell requires that you have the `Az` module installed. The current version of `AzTable` is not compatible with the older AzureRM module. Follow the [latest install instructions for installing Az module](/powershell/azure/install-az-ps) if needed.
35
+
>
36
+
> For module name compatibility reasons, this module is also published under the previous name `AzureRmStorageTables` in PowerShell Gallery. This document will reference the new name only.
36
37
37
38
After Azure PowerShell is installed or updated, you must install module **AzTable**, which has the commands for managing the entities. To install this module, run PowerShell as an administrator and use the **Install-Module** command.
38
39
39
-
> [!IMPORTANT]
40
-
> For module name compatibility reasons we are still publishing this same module under the old name `AzureRmStorageTables` in PowerShell Gallery. This document will reference the new name only.
41
-
42
40
```powershell
43
41
Install-Module AzTable
44
42
```
45
43
44
+
## Authorizing table data operations
45
+
46
+
The AzTable PowerShell module supports authorization with the account access key via Shared Key authorization. The examples in this article show how to authorize table data operations via Shared Key.
47
+
48
+
Azure Table Storage supports authorization with Azure AD. However, the AzTable PowerShell module does not natively support authorization with Azure AD. Using Azure AD with the AzTable module requires that you call methods in the .NET client library from PowerShell.
49
+
46
50
## Sign in to Azure
47
51
48
-
Sign in to your Azure subscription with the `Add-AzAccount` command and follow the on-screen directions.
52
+
To get started, sign in to your Azure subscription with the `Add-AzAccount` command and follow the on-screen directions.
49
53
50
54
```powershell
51
55
Add-AzAccount
@@ -62,7 +66,7 @@ $location = "eastus"
62
66
63
67
## Create resource group
64
68
65
-
Create a resource group with the [New-AzResourceGroup](/powershell/module/az.resources/new-azresourcegroup) command.
69
+
Create a resource group with the [New-AzResourceGroup](/powershell/module/az.resources/new-azresourcegroup) command.
66
70
67
71
An Azure resource group is a logical container into which Azure resources are deployed and managed. Store the resource group name in a variable for future use. In this example, a resource group named *pshtablesrg* is created in the *eastus* region.
68
72
@@ -111,15 +115,15 @@ To perform operations on a table, you need a reference to the specific table. Ge
## Reference CloudTable property of a specific table
118
+
## Reference the CloudTable property of a specific table
115
119
116
120
> [!IMPORTANT]
117
-
> Usage of CloudTableis mandatory when working with **AzTable** PowerShell module. Call the **Get-AzStorageTable** command to get the reference to this object. This command also creates the table if it does not already exist.
121
+
> Using the **CloudTable** property is mandatory when working with table data via the**AzTable** PowerShell module. Call the **Get-AzStorageTable** command to get the reference to this object. This command also creates the table if it does not already exist.
118
122
119
-
To perform operations on a table using **AzTable**, you need a reference to CloudTable property of a specific table.
123
+
To perform operations on a table using **AzTable**, return a reference to the **CloudTable** property of a specific table. The **CloudTable** property exposes the .NET methods available for managing table data from PowerShell.
0 commit comments