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
set AZURE_STORAGE_CONNECTION_STRING="<MY_CONNECTION_STRING>"
144
144
```
145
145
146
146
---
147
147
148
148
1. (Optional) Use the [`az storage queue list`](/cli/azure/storage/queue#az-storage-queue-list) command to view the Storage queues in your account. The output from this command should include a queue named `outqueue`, which was created when the function wrote its first message to that queue.
149
149
150
-
```azure-cli
150
+
```azurecli
151
151
az storage queue list --output tsv
152
152
```
153
153
@@ -165,9 +165,9 @@ You can view the queue in the [Azure portal](../storage/queues/storage-quickstar
165
165
[System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($(az storage message get --queue-name outqueue -o tsv --query '[].{Message:content}')))
166
166
```
167
167
168
-
# [Cmd](#tab/cmd)
168
+
# [Azure CLI](#tab/cmd)
169
169
170
-
```cmd
170
+
```azurecli
171
171
az storage message get --queue-name outqueue -o tsv --query [].{Message:content} > %TEMP%out.b64 && certutil -decode -f %TEMP%out.b64 %TEMP%out.txt > NUL && type %TEMP%out.txt && del %TEMP%out.b64 %TEMP%out.txt /q
Copy file name to clipboardExpand all lines: articles/data-lake-analytics/data-lake-analytics-get-started-cli.md
+16-18Lines changed: 16 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,12 +21,11 @@ Before you begin, you need the following items:
21
21
22
22
23
23
24
-
## Log in to Azure
24
+
## Sign in to Azure
25
25
26
-
To log in to your Azure subscription:
26
+
To sign in to your Azure subscription:
27
27
28
-
```
29
-
azurecli
28
+
```azurecli
30
29
az login
31
30
```
32
31
@@ -36,7 +35,7 @@ Once you have logged in, the login command lists your subscriptions.
36
35
37
36
To use a specific subscription:
38
37
39
-
```
38
+
```azurecli
40
39
az account set --subscription <subscription id>
41
40
```
42
41
@@ -47,13 +46,13 @@ You need a Data Lake Analytics account before you can run any jobs. To create a
47
46
48
47
To list the existing resource groups under your subscription:
49
48
50
-
```
49
+
```azurecli
51
50
az group list
52
51
```
53
52
54
53
To create a new resource group:
55
54
56
-
```
55
+
```azurecli
57
56
az group create --name "<Resource Group Name>" --location "<Azure Location>"
58
57
```
59
58
@@ -63,7 +62,7 @@ az group create --name "<Resource Group Name>" --location "<Azure Location>"
63
62
64
63
To list the existing Data Lake Store account:
65
64
66
-
```
65
+
```azurecli
67
66
az dls account list
68
67
```
69
68
@@ -75,13 +74,13 @@ az dls account create --account "<Data Lake Store Account Name>" --resource-grou
75
74
76
75
Use the following syntax to create a Data Lake Analytics account:
77
76
78
-
```
77
+
```azurecli
79
78
az dla account create --account "<Data Lake Analytics Account Name>" --resource-group "<Resource Group Name>" --location "<Azure location>" --default-data-lake-store "<Default Data Lake Store Account Name>"
80
79
```
81
80
82
81
After creating an account, you can use the following commands to list the accounts and show account details:
83
82
84
-
```
83
+
```azurecli
85
84
az dla account list
86
85
az dla account show --account "<Data Lake Analytics Account Name>"
87
86
```
@@ -93,7 +92,7 @@ The Azure portal provides a user interface for copying some sample data files to
93
92
94
93
To upload files using Azure CLI, use the following commands:
95
94
96
-
```
95
+
```azurecli
97
96
az dls fs upload --account "<Data Lake Store Account Name>" --source-path "<Source File Path>" --destination-path "<Destination File Path>"
98
97
az dls fs list --account "<Data Lake Store Account Name>" --path "<Path>"
0 commit comments