简体   繁体   English

尝试部署 Azure 云服务 ES 时出现“PackageUriForbidden”错误

[英]"PackageUriForbidden" error when trying to deploy an Azure Cloud Service ES

I am trying to redeploy an Azure Cloud Service (classic) to an "extended support" one since the former is being deprecated.我正在尝试将 Azure 云服务(经典)重新部署到“扩展支持”服务,因为前者已被弃用。 Following this guide and the prerequisites I have created a virtual.network and new storage account.按照本指南先决条件,我创建了一个 virtual.network 和新的存储帐户。 I set up a bunch of permissions and the Connectivity Check for my storage account indicates no problems.我设置了一系列权限,我的存储帐户的连接检查表明没有问题。 However when I try to create and deploy a new Cloud Service (Extended Support) using my (updated).cscfg, .csdef and.cspkg files I get this error:但是,当我尝试使用我的(更新的).cscfg、.csdef 和 .cspkg 文件创建和部署新的云服务(扩展支持)时,出现此错误:

Error:AuthorizationFailure, message:This request is not authorized to perform this operation.错误:AuthorizationFailure,消息:此请求无权执行此操作。 (Code: PackageUriForbidden) (代码:PackageUriForbidden)

I've tried setting the container and blob access to public for the deploy files, I have added Network Contributor and Storage Blob Data Contributor to both the subscription and the cloud storage resources for my user account.我已尝试将部署文件的容器和 blob 访问权限设置为 public,我已将Network ContributorStorage Blob Data Contributor添加到我的用户帐户的订阅和云存储资源中。 What am I missing?我错过了什么?

I tried deploying cloud services extended support via Azure Portal and it got deployed successfully.我尝试通过 Azure 门户部署云服务扩展支持并成功部署。
Refer below:-参考以下:-

在此处输入图像描述

I have uploaded all my cloud services packages in my storage account and used those packages from my storage blobs and created the Cloud service ES instance.我已将所有云服务包上传到我的存储帐户中,并使用我的存储 blob 中的这些包并创建了云服务 ES 实例。

I enabled connection from all.networks for my storage account, Thus I did not receive any authorization error :-我为我的存储帐户启用了来自 all.networks 的连接,因此我没有收到任何授权错误:-

在此处输入图像描述

It looks like your Storage account has Firewall and V-Net enabled for the selected Networks.您的存储帐户似乎已为所选网络启用了防火墙和 V-Net。 Or There's an IP Address added to restrict storage account.或者添加了一个 IP 地址来限制存储帐户。

I created a Create a Service endpoint in my V-Net to allow Microsoft.storage like below:-我在我的 V-Net 中创建了一个创建服务端点以允许 Microsoft.storage,如下所示:-

在此处输入图像描述

Added this V-Net in the selected Networks in Storage account's Firewall:-在存储帐户的防火墙中的选定网络中添加了此 V-Net:-

在此处输入图像描述

Checked this in order to allow azure services to access storage account like below:-检查此以允许 azure 服务访问存储帐户,如下所示:-

在此处输入图像描述

Now, when I try to deploy another cloud service with the same storage account having firewall and V-Net enabled, I get the same error as yours refer below:-现在,当我尝试使用启用了防火墙和 V-Net 的相同存储帐户部署另一个云服务时,我得到了与您的错误相同的错误,如下所示:-

在此处输入图像描述

I allowed my client machine's IP in the storage account and was able to add the packages without any error while deploying the Cloud Service:-我在存储帐户中允许我的客户端计算机的 IP,并且能够在部署云服务时毫无错误地添加包:-

在此处输入图像描述

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

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