I need to store the powershell json output into azure storage account using windows powershell ISE. Eg: "$result" is the output file to be stored in storage account
I have tested in my environment.
Firstly, we can store the PowerShell JSON output in a local file using below command :
$result | out-file /path/to/file
Then we can copy the file from local to azure storage account using below command :
az storage blob upload --account-name mystorageaccount --account-key 0000-0000 --container-name mycontainer --file /path/to/file --name myblob
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.