|
940 | 940 | - name: Delete all blobs ending with ".py" in a container that have not been modified for 10 days.
|
941 | 941 | text: |
|
942 | 942 | date=`date -d "10 days ago" '+%Y-%m-%dT%H:%MZ'`
|
943 |
| - az storage blob delete-batch -s mycontainer --account-name mystorageaccount --pattern *.py --if-unmodified-since $date --auth-mode login |
| 943 | + az storage blob delete-batch -s mycontainer --account-name mystorageaccount --pattern "*.py" --if-unmodified-since $date --auth-mode login |
944 | 944 | - name: Delete all the blobs in a directory named "dir" in a container named "mycontainer".
|
945 | 945 | text: |
|
946 |
| - az storage blob delete-batch -s mycontainer --pattern dir/* |
| 946 | + az storage blob delete-batch -s mycontainer --pattern "dir/*" |
947 | 947 | - name: Delete the blobs with the format 'cli-2018-xx-xx.txt' or 'cli-2019-xx-xx.txt' in a container.
|
948 | 948 | text: |
|
949 |
| - az storage blob delete-batch -s mycontainer --pattern cli-201[89]-??-??.txt |
| 949 | + az storage blob delete-batch -s mycontainer --pattern "cli-201[89]-??-??.txt" |
950 | 950 | - name: Delete all blobs with the format 'cli-201x-xx-xx.txt' except cli-2018-xx-xx.txt' and 'cli-2019-xx-xx.txt' in a container.
|
951 | 951 | text: |
|
952 |
| - az storage blob delete-batch -s mycontainer --pattern cli-201[!89]-??-??.txt |
| 952 | + az storage blob delete-batch -s mycontainer --pattern "cli-201[!89]-??-??.txt" |
953 | 953 | """
|
954 | 954 |
|
955 | 955 | helps['storage blob download-batch'] = """
|
|
973 | 973 | examples:
|
974 | 974 | - name: Download all blobs that end with .py
|
975 | 975 | text: |
|
976 |
| - az storage blob download-batch -d . --pattern *.py -s mycontainer --account-name mystorageaccount --account-key 00000000 |
| 976 | + az storage blob download-batch -d . --pattern "*.py" -s mycontainer --account-name mystorageaccount --account-key 00000000 |
977 | 977 | - name: Download all blobs in a directory named "dir" from container named "mycontainer".
|
978 | 978 | text: |
|
979 |
| - az storage blob download-batch -d . -s mycontainer --pattern dir/* |
| 979 | + az storage blob download-batch -d . -s mycontainer --pattern "dir/*" |
980 | 980 | - name: Download all blobs with the format 'cli-2018-xx-xx.txt' or 'cli-2019-xx-xx.txt' in container to current path.
|
981 | 981 | text: |
|
982 |
| - az storage blob download-batch -d . -s mycontainer --pattern cli-201[89]-??-??.txt |
| 982 | + az storage blob download-batch -d . -s mycontainer --pattern "cli-201[89]-??-??.txt" |
983 | 983 | - name: Download all blobs with the format 'cli-201x-xx-xx.txt' except cli-2018-xx-xx.txt' and 'cli-2019-xx-xx.txt' in container to current path.
|
984 | 984 | text: |
|
985 |
| - az storage blob download-batch -d . -s mycontainer --pattern cli-201[!89]-??-??.txt |
| 985 | + az storage blob download-batch -d . -s mycontainer --pattern "cli-201[!89]-??-??.txt" |
986 | 986 | """
|
987 | 987 |
|
988 | 988 | helps['storage blob exists'] = """
|
|
1316 | 1316 | examples:
|
1317 | 1317 | - name: Upload all files that end with .py unless blob exists and has been modified since given date.
|
1318 | 1318 | text: |
|
1319 |
| - az storage blob upload-batch -d mycontainer --account-name mystorageaccount --account-key 00000000 -s <path-to-directory> --pattern *.py --if-unmodified-since 2018-08-27T20:51Z |
| 1319 | + az storage blob upload-batch -d mycontainer --account-name mystorageaccount --account-key 00000000 -s <path-to-directory> --pattern "*.py" --if-unmodified-since 2018-08-27T20:51Z |
1320 | 1320 | - name: Upload all files from local path directory to a container named "mycontainer".
|
1321 | 1321 | text: |
|
1322 | 1322 | az storage blob upload-batch -d mycontainer -s <path-to-directory>
|
1323 | 1323 | - name: Upload all files with the format 'cli-2018-xx-xx.txt' or 'cli-2019-xx-xx.txt' in local path directory.
|
1324 | 1324 | text: |
|
1325 |
| - az storage blob upload-batch -d mycontainer -s <path-to-directory> --pattern cli-201[89]-??-??.txt |
| 1325 | + az storage blob upload-batch -d mycontainer -s <path-to-directory> --pattern "cli-201[89]-??-??.txt" |
1326 | 1326 | - name: Upload all files with the format 'cli-201x-xx-xx.txt' except cli-2018-xx-xx.txt' and 'cli-2019-xx-xx.txt' in a container.
|
1327 | 1327 | text: |
|
1328 |
| - az storage blob upload-batch -d mycontainer -s <path-to-directory> --pattern cli-201[!89]-??-??.txt |
| 1328 | + az storage blob upload-batch -d mycontainer -s <path-to-directory> --pattern "cli-201[!89]-??-??.txt" |
1329 | 1329 | """
|
1330 | 1330 |
|
1331 | 1331 | helps['storage blob download'] = """
|
|
2004 | 2004 | crafted: true
|
2005 | 2005 | - name: Delete files from an Azure Storage File Share. (autogenerated)
|
2006 | 2006 | text: |
|
2007 |
| - az storage file delete-batch --account-key 00000000 --account-name MyAccount --pattern *.py --source /path/to/file |
| 2007 | + az storage file delete-batch --account-key 00000000 --account-name MyAccount --pattern "*.py" --source /path/to/file |
2008 | 2008 | crafted: true
|
2009 | 2009 | """
|
2010 | 2010 |
|
|
0 commit comments