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
  • 相关阅读:
    Mybatis学习笔记(八) —— Mybatis整合spring
    Mybatis学习笔记(七) —— 关联查询
    Mybatis学习笔记(六) —— 动态sql
    Mybatis学习笔记(五) —— Mapper.xml(输入映射和输出映射)
    Mybatis学习笔记(四) —— SqlMapConfig.xml配置文件
    Mybatis学习笔记(三) —— DAO开发方法
    Mybatis学习笔记(二) —— mybatis入门程序
    Mybatis学习笔记(一) —— mybatis介绍
    tomcat的热部署配置
    int bool 字符串 列表 字典 集合
  • 原文地址:https://www.cnblogs.com/zangdalei/p/7516109.html
Copyright © 2011-2022 走看看