简体   繁体   English

Azure云服务(经典)无法使用新的存储帐户自动扩展

[英]Azure Cloud Service(classic) does not autoscale with new Storage Account

I deployed WorkerRole to Azure Cloud Service (classic) in new portal. 我在新门户中将WorkerRole部署到了Azure云服务(经典)。 With this, I also created Azure Storage account for queue. 这样,我还为队列创建了Azure存储帐户。

Try to add AutoScale rule, the storage account is not listed. 尝试添加自动缩放规则,该存储帐户未列出。 Tried to select Other Resource and put Resource Identifier of storage, there's no Metric name listed. 试图选择“ Other Resource并放置存储的“ Resource Identifier ”,但未列出度量标准名称。

Is it by design that classic Cloud Service and new Storage account not working together? 是设计使传统的Cloud Service和新的Storage帐户无法一起使用吗?

Storage account data (eg blobs, queues, containers, tables) are accessible simply with account name + key. 只需使用帐户名+密钥即可访问存储帐户数据 (例如blob,队列,容器,表)。 Any app can work with them. 任何应用都可以与他们合作。

However, to manage/enumerate available storage accounts, there are Classic-created and ARM-created accounts, each with different API's. 但是,要管理/枚举可用的存储帐户,有Classic创建的帐户和ARM创建的帐户,每个帐户都有不同的API。

The original Azure Service Management (ASM) API doesn't know anything about ARM resources. 原始的Azure服务管理(ASM)API对ARM资源一无所知。 There's a fairly good chance that, since you're deploying to a Classic cloud service, it's using ASM only and will not be able to enumerate ARM-created storage accounts. 由于您正部署到Classic云服务,因此很有可能仅使用ASM,而无法枚举ARM创建的存储帐户。

If you create a Classic storage account (which has zero difference in functionality), you should be able to see it as an option for auto-scale. 如果创建经典存储帐户(功能差异为零),则应该可以将其视为自动扩展的选项。

I have a bit more details on the differences in this answer . 关于这个答案的区别,我还有更多细节。

At this time, it is not possible to autoscale anything based on a new "v2" storage account. 目前,无法基于新的“ v2”存储帐户自动缩放任何内容。 It has nothing to do with the fact that you are using the classic Azure Cloud Service. 这与您正在使用传统的Azure云服务无关。 I am having the same issue with using Azure App Services. 我在使用Azure App Services时遇到相同的问题。 In the end, I just created a classic storage account to use for the autoscaling. 最后,我只是创建了一个经典的存储帐户用于自动扩展。 There is no difference in how you interact with the different types of storage accounts. 与不同类型的存储帐户进行交互的方式没有区别。

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

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