From e3c8739d3c49e09bf9b9cc3bae3d9ef4fc1ac845 Mon Sep 17 00:00:00 2001 From: Zunli Hu Date: Mon, 2 Mar 2020 22:32:03 +0800 Subject: [PATCH] add examples for snapshot --- src/azure-cli/azure/cli/command_modules/storage/_help.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/azure-cli/azure/cli/command_modules/storage/_help.py b/src/azure-cli/azure/cli/command_modules/storage/_help.py index a23b813af78..39b5f1377e2 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/_help.py +++ b/src/azure-cli/azure/cli/command_modules/storage/_help.py @@ -953,6 +953,9 @@ - name: Copy a file asynchronously from source uri to destination storage account with sas token. text: | az storage file copy start --source-uri "https://srcaccount.file.core.windows.net/myshare/mydir/myfile?" --destination-path --destination-share destshare --account-name destaccount --sas-token + - name: Copy a file asynchronously from file snapshot to destination storage account with sas token. + text: | + az storage file copy start --source-account-name srcaccount --source-account-key 00000000 --source-path --source-share srcshare --file-snapshot "2020-03-02T13:51:54.0000000Z" --destination-path --destination-share destshare --account-name destaccount --sas-token """ helps['storage file copy start-batch'] = """