[英]Importing publish settings file from azure storage using power shell
I want to import publish settings file in powershell which is kept in azure storage. 我想在Powershell中导入发布设置文件,该文件保存在Azure存储中。 But it is not working I am trying the below command.
但是它不起作用,我正在尝试下面的命令。 If I use my local file system it works...
如果我使用本地文件系统,则可以使用...
Import-AzurePublishSettingsFile -PublishSettingsFile "https://.blob.core.windows.net/scripts/MyFile.publishsettings" Import-AzurePublishSettingsFile -PublishSettingsFile“ https://.blob.core.windows.net/scripts/MyFile.publishsettings”
How do I resolve this ? 我该如何解决?
Simply put, you can't do that because the cmdlet expects the publish settings file location to be on a local computer (and that's why when you use local file system, it works). 简而言之,您无法执行此操作,因为该cmdlet希望发布设置文件的位置位于本地计算机上(这就是为什么使用本地文件系统时它可以工作的原因)。
If you want to use a publish settings file stored in blob storage, you must download it first on the local computer (you can use Get-AzureStorageBlobContent
cmdlet for that) and then provide the path where you downloaded the file to this cmdlet. 如果要使用存储在blob存储中的发布设置文件,则必须首先在本地计算机上下载它(可以使用
Get-AzureStorageBlobContent
cmdlet),然后提供将文件下载到此cmdlet的路径。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.