ip限制阻止自动化运行 [英] ip restriction preventing automation to run

查看:128
本文介绍了ip限制阻止自动化运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法添加ms vnet或ip以便能够运行powershell脚本来删除设置了ip限制的blob存储?

is there a way to add ms vnet or ip to be able to run powershell script to delete blob storage that has ip restrictions set?

当我有自己的ip限制时,我遇到了

i am running into when i have my own ip restrictions

Get-AzureStorageBlob : The remote server returned an error: (403) Forbidden. HTTP Status Code: 403 - HTTP Error 
Message: This request is not authorized to perform this operation.
At line:22 char:14
+ ... blob_list = Get-AzureStorageBlob -Context $context -Container $contai ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [Get-AzureStorageBlob], StorageException
    + FullyQualifiedErrorId : 
StorageException,Microsoft.WindowsAzure.Commands.Storage.Blob.Cmdlet.GetAzureStorageBlobCommand

作为我删除ip限制的儿子,我能够操作blob存储

As son as i remove the ip restrictions, i am able to manipulate blob storage

谢谢

推荐答案

如果您在Azure工作者上运行此工具,则无法事先知道Azure工作人员将拥有哪些IP。在许多情况下,您将运行一次作业,并使用具有一个IP的工作人员,并且下次运行该作业时,工作人员将使用另一个IP。

If you are running this on Azure worker there is no way to know in advance what IP the Azure worker will have. In many cases you will run the job once and you use worker with one IP and next time you run the job the worker will use another IP.

在这些情况下,您没有其他选项除了打开你的blob存储服务。遗憾的是,存储上的可信服务选项不包括Azure自动化。

In those cases you do not have other option besides opening your blob storage service. Trusted services option on the storage does not include Azure Automation unfortunately.

如果在混合工作程序上运行此选项,则可以添加该混合工作服务器所在的vnet。这应该允许连接到存储。

If you run this on a Hybrid worker you can add the vnet where that hybrid worker server is located. That should allow to connect to the storage.


这篇关于ip限制阻止自动化运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆