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
  • 相关阅读:
    宏的全解
    Mathematica 表达式求值
    nandflash中oob、ecc分析
    ubuntu 12.04下安装openldap,slapd.conf找不到的解决方法
    jetbrains
    看看美国公务员挣多少钱
    css的#和.的区别
    Ubuntu 14.04 LTS下安装Google Chrome浏览器
    Bootstrap 模态框(Modal)插件
    怎么旋转PDF文件的方向并保存成功
  • 原文地址:https://www.cnblogs.com/zangdalei/p/7516109.html
Copyright © 2011-2022 走看看