zoukankan      html  css  js  c++  java
  • 订阅无法在 ARM 模式下创建虚拟机,只能在 ASM 模式下创建 Azure VM 部署

    问题描述

    资源组所有者可以在新版 portal 创建经典模式的虚拟机,但是无法创建 ARM 模式的虚拟机。

    问题现象

    环境中有个相对权限比较高的账户,比如 account admin (以下简称为 AA),这个账号创建一个资源组和对应的 owner。

    如果用这个资源组的 owner 登陆 Azure,会出现这个问题:只能创建经典模式的虚拟机,但无法创建 ARM 模式的虚拟机。

    问题分析

    ARM 下很多资源提供程序没有注册,包括 ARM 下的 Microsoft.Compute:

    NameSpaceRegistrationState
    Microsoft.Batch Registered
    Microsoft.ClassicCompute Registered
    Microsoft.ClassicNetwork Registered
    Microsoft.ClassicStorage Registered
    microsoft.insights Registered
    Microsoft.Sql Registered
    Microsoft.StreamAnalytics Registered
    Microsoft.Web Registered
    Microsoft.ApiManagement NotRegistered
    Microsoft.Authorization Registered
    Microsoft.Cache NotRegistered
    Microsoft.ClassicInfrastructureMigrate NotRegistered
    Microsoft.CognitiveServices NotRegistered
    Microsoft.Compute NotRegistered
    Microsoft.Devices NotRegistered
    Microsoft.DocumentDB NotRegistered
    Microsoft.EventHub NotRegistered
    Microsoft.Features Registered
    Microsoft.HDInsight NotRegistered
    Microsoft.KeyVault NotRegistered
    Microsoft.Media NotRegistered
    Microsoft.Network NotRegistered
    Microsoft.Portal NotRegistered
    Microsoft.Resources Registered
    Microsoft.Scheduler Registered
    Microsoft.ServiceBus NotRegistered
    Microsoft.ServiceFabric NotRegistered
    Microsoft.Storage NotRegistered

    AA 创建的资源组的 owner 之所以没有自动注册资源提供程序是由于 AA 的权限导致的。如果 AA 没有创建过 Azure 虚拟机,那么就没有自动注册过资源提供程序,所以 AA 所创建的资源组的 owner 也没有这个权限。

    解决方法

    基于以上理论,解决方案有两个:

    1. 手动运行 PowerShell 命令注册资源提供程序;
    2. 用创建资源组 owner 的那个账号(AA) 先创建一个 ARM 的 Azure 虚拟机。           立即访问http://market.azure.cn
  • 相关阅读:
    silverlight 中缓存应用程序相应的库文件
    Silverlight 4 Unleashed 读书笔记:第二章
    使用虚拟打印机提交文档的文本
    ORACLE 中为什么要把列名都转换成大写字母?
    在 silverlight 自由绘图(WriteableBitmapEx)
    新的 WINDOWS 2003 系统上装了 TOMCAT 6 启动不了
    计算两个坐标所形成的角的角度
    在 Silverlight 绘制线帽(箭头)
    Linux下安装memecache缓存程序
    Linux下安装、配置、启动Apache
  • 原文地址:https://www.cnblogs.com/zangdalei/p/7516109.html
Copyright © 2011-2022 走看看