【发布时间】:2022-09-29 01:35:59
【问题描述】:
我正在尝试访问 AzureStorage 以在 Azure-Powershell-Runbook 中使用它。 我需要完成此操作才能将 SharePoint-Sitetemplate 保存到该位置。 我尝试过的事情是使用:
$StorageAccountKey = Get-AutomationVariable -Name \'StorageKey\'
$Context = New-AzureStorageContext -StorageAccountName \'spotemplatestore\' -StorageAccountKey
$StorageAccountKey
$container = Get-AzureStorageContainer -Name \'spotemplatestore\' -Context $Context
但我不知道如何在本地访问它。 不能使用 New-PSDrive,因为它不适用于 Azure Powershell Runbook 尝试直接使用 c:\\ 也不起作用,因为运行手册没有直接对 c:\\temp 的写入权限。
标签: azure powershell azure-storage runbook