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
@@ -33,92 +30,137 @@ Learn how to use Azure PowerShell to create an Azure Data Lake Storage Gen1 acco
33
30
***Azure PowerShell 1.0 or greater**. See [How to install and configure Azure PowerShell](/powershell/azure/overview).
34
31
35
32
## Authentication
36
-
This article uses a simpler authentication approach with Data Lake Storage Gen1 where you are prompted to enter your Azure account credentials. The access level to Data Lake Storage Gen1 account and file system is then governed by the access level of the logged in user. However, there are other approaches as well to authenticate with Data Lake Storage Gen1, which are **end-user authentication** or **service-to-service authentication**. For instructions and more information on how to authenticate, see [End-user authentication](data-lake-store-end-user-authenticate-using-active-directory.md) or [Service-to-service authentication](data-lake-store-authenticate-using-active-directory.md).
33
+
34
+
This article uses a simpler authentication approach with Data Lake Storage Gen1 where you're prompted to enter your Azure account credentials. The access level to Data Lake Storage Gen1 account and file system is then governed by the access level of the logged in user. However, there are other approaches to authenticate with Data Lake Storage Gen1, which are end-user authentication or service-to-service authentication. For instructions and more information on how to authenticate, see [End-user authentication](data-lake-store-end-user-authenticate-using-active-directory.md) or [Service-to-service authentication](data-lake-store-authenticate-using-active-directory.md).
37
35
38
36
## Create a Data Lake Storage Gen1 account
37
+
39
38
1. From your desktop, open a new Windows PowerShell window. Enter the following snippet to log in to your Azure account, set the subscription, and register the Data Lake Storage Gen1 provider. When prompted to log in, make sure you log in as one of the subscription administrators/owner:
40
39
41
-
# Log in to your Azure account
42
-
Connect-AzAccount
40
+
```PowerShell
41
+
# Log in to your Azure account
42
+
Connect-AzAccount
43
+
44
+
# List all the subscriptions associated to your account
45
+
Get-AzSubscription
43
46
44
-
# List all the subscriptions associated to your account
2. A Data Lake Storage Gen1 account is associated with an Azure Resource Group. Start by creating an Azure Resource Group.
54
+
1. A Data Lake Storage Gen1 account is associated with an Azure resource group. Start by creating a resource group.
53
55
54
-
$resourceGroupName = "<your new resource group name>"
55
-
New-AzResourceGroup -Name $resourceGroupName -Location "East US 2"
56
+
```PowerShell
57
+
$resourceGroupName = "<your new resource group name>"
58
+
New-AzResourceGroup -Name $resourceGroupName -Location "East US 2"
59
+
```
56
60
57
61

58
-
3. Create a Data Lake Storage Gen1 account. The name you specify must only contain lowercase letters and numbers.
59
62
60
-
$dataLakeStorageGen1Name = "<your new Data Lake Storage Gen1 account name>"
61
-
New-AzDataLakeStoreAccount -ResourceGroupName $resourceGroupName -Name $dataLakeStorageGen1Name -Location "East US 2"
63
+
1. Create a Data Lake Storage Gen1 account. The name you specify must only contain lowercase letters and numbers.
64
+
65
+
```PowerShell
66
+
$dataLakeStorageGen1Name = "<your new Data Lake Storage Gen1 account name>"
67
+
New-AzDataLakeStoreAccount -ResourceGroupName $resourceGroupName -Name $dataLakeStorageGen1Name -Location "East US 2"
68
+
```
62
69
63
70

64
-
4. Verify that the account is successfully created.
## Upload data to your Data Lake Storage Gen1 account
106
+
## Upload data
107
+
88
108
You can upload your data to Data Lake Storage Gen1 directly at the root level, or to a directory that you created within the account. The snippets in this section demonstrate how to upload some sample data to the directory (**mynewdirectory**) you created in the previous section.
89
109
90
110
If you are looking for some sample data to upload, you can get the **Ambulance Data** folder from the [Azure Data Lake Git Repository](https://github.com/MicrosoftBigData/usql/tree/master/Examples/Samples/Data/AmbulanceData). Download the file and store it in a local directory on your computer, such as C:\sampledata\.
0 commit comments