From 29d381ebe509026140fa9890ad03a7c194492528 Mon Sep 17 00:00:00 2001 From: Zunli Hu Date: Tue, 3 Mar 2020 22:13:40 +0800 Subject: [PATCH] {Storage} az storage file copy start: add examples for snapshot #12410 --- 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'] = """