Skip to content

Commit 4e26037

Browse files
Merge pull request #249553 from stevenmatthew/modified-since
blob-cli: Update "upload-batch" modified-since example
2 parents 7d276f9 + 25714c4 commit 4e26037

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/storage/blobs/blob-cli.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: StevenMatthew
77
ms.author: shaas
88
ms.service: azure-storage
99
ms.topic: how-to
10-
ms.date: 03/02/2022
10+
ms.date: 08/28/2023
1111
ms.devlang: azurecli
1212
ms.custom: devx-track-azurecli
1313
---
@@ -68,14 +68,14 @@ You can use the `az storage blob upload-batch` command to recursively upload mul
6868

6969
In the following example, the first operation uses the `az storage blob upload` command to upload a single, named file. The source file and destination storage container are specified with the `--file` and `--container-name` parameters.
7070

71-
The second operation demonstrates the use of the `az storage blob upload-batch` command to upload multiple files. The `--if-unmodified-since` parameter ensures that only files modified with the last seven days will be uploaded. The value supplied by this parameter must be provided in UTC format.
71+
The second operation demonstrates the use of the `az storage blob upload-batch` command to upload multiple files. The `--if-modified-since` parameter ensures that only files modified within the last seven days will be uploaded. The value supplied by this parameter must be provided in UTC format.
7272

7373
```azurecli-interactive
7474
7575
#!/bin/bash
7676
storageAccount="<storage-account>"
7777
containerName="demo-container"
78-
lastModified=`date -d "10 days ago" '+%Y-%m-%dT%H:%MZ'`
78+
lastModified=`date -d "7 days ago" '+%Y-%m-%dT%H:%MZ'`
7979
8080
path="C:\\temp\\"
8181
filename="demo-file.txt"
@@ -96,7 +96,7 @@ az storage blob upload-batch \
9696
--pattern *.png \
9797
--account-name $storageAccount \
9898
--auth-mode login \
99-
--if-unmodified-since $lastModified
99+
--if-modified-since $lastModified
100100
101101
```
102102

0 commit comments

Comments
 (0)