Temporary location to save the log file using automation runbook and update blob using powershell.
I am getting error- " Can not find the specified file 'C:\Windows\System32\log.txt'.
I am using below code - I am running in it automationrunbook.
someoutput | Out-File -FilePath "$env:temp\log.txt" -Append
tried with : Set-AzStorageBlobContent -Container "data1" -File "log.txt" -Blob "log.txt" -Context $context -Force
tried with : Set-AzStorageBlobContent -Container "data1" -File "$env:temp\log.txt" -Blob "log.txt" -Context $context -Force
I am getting error in both the cases. it's not updating blob file .please suggest . there is some issue with "file" parameter .i need to use some temp location .