Skip to content

Commit 640449f

Browse files
authored
Merge pull request #106723 from v-thepet/azurecli4
Fix more azurecli tags
2 parents ce2a885 + f6dcc27 commit 640449f

15 files changed

+117
-123
lines changed

articles/azure-functions/functions-add-output-binding-storage-queue-cli.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,17 +137,17 @@ You can view the queue in the [Azure portal](../storage/queues/storage-quickstar
137137
$env:AZURE_STORAGE_CONNECTION_STRING = "<MY_CONNECTION_STRING>"
138138
```
139139
140-
# [Cmd](#tab/cmd)
140+
# [Azure CLI](#tab/cmd)
141141
142-
```cmd
142+
```azurecli
143143
set AZURE_STORAGE_CONNECTION_STRING="<MY_CONNECTION_STRING>"
144144
```
145145
146146
---
147147
148148
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.
149149
150-
```azure-cli
150+
```azurecli
151151
az storage queue list --output tsv
152152
```
153153
@@ -165,9 +165,9 @@ You can view the queue in the [Azure portal](../storage/queues/storage-quickstar
165165
[System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($(az storage message get --queue-name outqueue -o tsv --query '[].{Message:content}')))
166166
```
167167
168-
# [Cmd](#tab/cmd)
168+
# [Azure CLI](#tab/cmd)
169169
170-
```cmd
170+
```azurecli
171171
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
172172
```
173173

articles/data-lake-analytics/data-lake-analytics-get-started-cli.md

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,11 @@ Before you begin, you need the following items:
2121

2222

2323

24-
## Log in to Azure
24+
## Sign in to Azure
2525

26-
To log in to your Azure subscription:
26+
To sign in to your Azure subscription:
2727

28-
```
29-
azurecli
28+
```azurecli
3029
az login
3130
```
3231

@@ -36,7 +35,7 @@ Once you have logged in, the login command lists your subscriptions.
3635

3736
To use a specific subscription:
3837

39-
```
38+
```azurecli
4039
az account set --subscription <subscription id>
4140
```
4241

@@ -47,13 +46,13 @@ You need a Data Lake Analytics account before you can run any jobs. To create a
4746

4847
To list the existing resource groups under your subscription:
4948

50-
```
49+
```azurecli
5150
az group list
5251
```
5352

5453
To create a new resource group:
5554

56-
```
55+
```azurecli
5756
az group create --name "<Resource Group Name>" --location "<Azure Location>"
5857
```
5958

@@ -63,7 +62,7 @@ az group create --name "<Resource Group Name>" --location "<Azure Location>"
6362

6463
To list the existing Data Lake Store account:
6564

66-
```
65+
```azurecli
6766
az dls account list
6867
```
6968

@@ -75,13 +74,13 @@ az dls account create --account "<Data Lake Store Account Name>" --resource-grou
7574

7675
Use the following syntax to create a Data Lake Analytics account:
7776

78-
```
77+
```azurecli
7978
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>"
8079
```
8180

8281
After creating an account, you can use the following commands to list the accounts and show account details:
8382

84-
```
83+
```azurecli
8584
az dla account list
8685
az dla account show --account "<Data Lake Analytics Account Name>"
8786
```
@@ -93,7 +92,7 @@ The Azure portal provides a user interface for copying some sample data files to
9392

9493
To upload files using Azure CLI, use the following commands:
9594

96-
```
95+
```azurecli
9796
az dls fs upload --account "<Data Lake Store Account Name>" --source-path "<Source File Path>" --destination-path "<Destination File Path>"
9897
az dls fs list --account "<Data Lake Store Account Name>" --path "<Path>"
9998
```
@@ -145,35 +144,34 @@ wasb://<BlobContainerName>@<StorageAccountName>.blob.core.windows.net/Samples/Da
145144

146145
Use the following syntax to submit a job.
147146

148-
```
147+
```azurecli
149148
az dla job submit --account "<Data Lake Analytics Account Name>" --job-name "<Job Name>" --script "<Script Path and Name>"
150149
```
151150

152151
For example:
153152

154-
```
153+
```azurecli
155154
az dla job submit --account "myadlaaccount" --job-name "myadlajob" --script @"C:\DLA\myscript.txt"
156155
```
157156

158157
**To list jobs and show job details**
159158

160-
```
161-
azurecli
159+
```azurecli
162160
az dla job list --account "<Data Lake Analytics Account Name>"
163161
az dla job show --account "<Data Lake Analytics Account Name>" --job-identity "<Job Id>"
164162
```
165163

166164
**To cancel jobs**
167165

168-
```
166+
```azurecli
169167
az dla job cancel --account "<Data Lake Analytics Account Name>" --job-identity "<Job Id>"
170168
```
171169

172170
## Retrieve job results
173171

174172
After a job is completed, you can use the following commands to list the output files, and download the files:
175173

176-
```
174+
```azurecli
177175
az dls fs list --account "<Data Lake Store Account Name>" --source-path "/Output" --destination-path "<Destination>"
178176
az dls fs preview --account "<Data Lake Store Account Name>" --path "/Output/SearchLog-from-Data-Lake.csv"
179177
az dls fs preview --account "<Data Lake Store Account Name>" --path "/Output/SearchLog-from-Data-Lake.csv" --length 128 --offset 0
@@ -182,7 +180,7 @@ az dls fs download --account "<Data Lake Store Account Name>" --source-path "/Ou
182180

183181
For example:
184182

185-
```
183+
```azurecli
186184
az dls fs download --account "myadlsaccount" --source-path "/Output/SearchLog-from-Data-Lake.csv" --destination-path "C:\DLA\myfile.csv"
187185
```
188186

articles/data-lake-analytics/data-lake-analytics-manage-use-cli.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,15 +195,15 @@ Use the list command to find the job id, and then use cancel to cancel the job.
195195

196196
Use the `az dla job pipeline` commands to see the pipeline information previously submitted jobs.
197197

198-
```
198+
```azurecli
199199
az dla job pipeline list --account "<Data Lake Analytics Account Name>"
200200
201201
az dla job pipeline show --account "<Data Lake Analytics Account Name>" --pipeline-identity "<Pipeline ID>"
202202
```
203203

204204
Use the `az dla job recurrence` commands to see the recurrence information for previously submitted jobs.
205205

206-
```
206+
```azurecli
207207
az dla job recurrence list --account "<Data Lake Analytics Account Name>"
208208
209209
az dla job recurrence show --account "<Data Lake Analytics Account Name>" --recurrence-identity "<Recurrence ID>"

0 commit comments

Comments
 (0)