I am trying to access an AzureStorage to utilize it in an Azure- Powershell-Runbook. I need to accomplish that to save a SharePoint-Sitetemplate to that location. Things I've tried was using:
$StorageAccountKey = Get-AutomationVariable -Name 'StorageKey'
$Context = New-AzureStorageContext -StorageAccountName 'spotemplatestore' -StorageAccountKey
$StorageAccountKey
$container = Get-AzureStorageContainer -Name 'spotemplatestore' -Context $Context
But I don't know how to access that locally. Using New-PSDrive is not an option as it does not work with Azure Powershell Runbook Trying to use c:\ directly doesn't work either as the runbook does not have writing permissions ont c:\temp directly.