简体   繁体   English

Azure 存储网络安全组

[英]Azure Storage Network Security Group

I want to add an Azure storage account to a VNet / Network Security Group but keep receiving an Authorisation Failure message.我想将 Azure 存储帐户添加到 VNet/网络安全组,但一直收到授权失败消息。

The error was: 'code: AuthorizationFailure content: _CYCLIC_OBJECT_ message: This request is not authorized to perform this operation.错误是:'代码:AuthorizationFailure 内容:_CYCLIC_OBJECT_ 消息:该请求无权执行此操作。

I've added the VNet to the storage account with the Microsoft.Storage service endpoint and the subnets have been associated with the NSG.我已将 VNet 添加到具有 Microsoft.Storage 服务终结点的存储帐户,并且子网已与 NSG 关联。

I've created an inbound rule for the IP addresses and an outbound rule using the storage service tag on the NSG.我已经使用 NSG 上的存储服务标签为 IP 地址创建了一个入站规则和一个出站规则。

I've even tried it with an all internet inbound rule but no joy.我什至尝试过使用所有互联网入站规则,但没有任何乐趣。

If I whitelist the IP address in the Firewall and Virtual Network settings on the storage account then it works fine.如果我将存储帐户的防火墙和虚拟网络设置中的 IP 地址列入白名单,则它可以正常工作。

Is there something that I'm missing?有什么我想念的吗?

In your comment, you want to manage the firewall rule of storage account via associated it with a VNet and NSG.在您的评论中,您希望通过将存储帐户与 VNet 和 NSG 关联来管理存储帐户的防火墙规则。 This's not in the right direction.这不是正确的方向。

You can not use network security rules for Azure Storage Services because the storage account can not be inside a VNet or a part of a VNet and the NSG works at the IP address, port, protocol level.不能对 Azure 存储服务使用网络安全规则,因为存储帐户不能位于 VNet 内或 VNet 的一部分,并且 NSG 在 IP 地址、端口、协议级别工作。 For more information, you could refer to this answer .有关更多信息,您可以参考这个答案

In addition, if you have added selected VNets in the Firewall and Virtual Network settings on the storage account, it grants access storage account from a virtual network.此外,如果您在存储帐户的Firewall and Virtual Network设置中添加了选定的 VNet,它会授予从虚拟网络访问存储帐户的权限 So only selected VNet could access your storage account.因此,只有选定的 VNet 才能访问您的存储帐户。 It will appear access deny from your corporate network if you don't add its external IP address in the firewall.如果您没有在防火墙中添加其外部 IP 地址,它将显示来自您公司网络的访问拒绝。

You may want to create Private Endpoints for your storage account , which assigns a private IP address from your VNet to the storage account, and secures all traffic between your VNet and the storage account over a private link.您可能希望为您的存储帐户创建专用终结点,这会将您的 VNet 中的专用 IP 地址分配给存储帐户,并通过专用链接保护您的 VNet 和存储帐户之间的所有流量。 With this, You can also use the firewall to block all access through the public endpoint when using private endpoints.有了这个,您还可以在使用私有端点时使用防火墙阻止通过公共端点的所有访问。 Please note that currently, you can't configure NSG rules and user-defined routes for private endpoints.请注意,目前您无法为私有端点配置 NSG 规则和用户定义的路由。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM