File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/pentesting-cloud/azure-security/az-services Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,11 @@ az storage file list --account-name <name> --share-name <share-name>
4646az storage file list --account-name < name> --share-name < prev_dir/share-name>
4747# Download a complete share (with directories and files inside of them)
4848az storage file download-batch -d . --source < share-name> --account-name < name>
49+ # List snapshots
50+ az storage share snapshot --name < share-name>
51+ # List file shares, including deleted ones
52+ az rest --method GET \
53+ --url " https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{storageAccountName}/fileServices/default/shares?%24skipToken=&%24maxpagesize=20&%24filter=&%24expand=deleted&api-version=2019-06-01"
4954
5055# Get snapshots/backups
5156az storage share list --account-name < name> --include-snapshots --query " [?snapshot != null]"
You can’t perform that action at this time.
0 commit comments