Azure automation runbook unable to write csv output to Azure blob
I am running azure automation runbook and writing data into csv.
When I try to save the csv to Azure blob, I'm getting below error:
The remote name could not be resolved:'azuretest.blob.core.windows.net.blob.core.windows.net'
The code looks like this:
Get key to storage account
$acctKey = (Get-AzStorageAccountKey -ResourceGroupName "Usage" -Name "reportsusagestorage").Value[0]
Map to the reports BLOB context
$storageContext = New-AzureStorageContext -StorageAccountName "Usage" -StorageAccountKey $acctKey
Copy the file to the storage account
Set-AzureStorageBlobContent -File OutputCSV.csv -Container "usagecontainer" -BlobType "Block" -Context $storageContext -Verbose
Any help would be appreicated