在ARM VNET上部署Cloud Service

时间:2016-06-23 11:14:49

标签: powershell azure azure-cloud-services

是否可以将CloudService(从预览门户创建)部署到ARM-VNet。

这是我的conf文件:

<NetworkConfiguration>
  <VirtualNetworkSite name="my-network" />
  <AddressAssignments>
    <InstanceAddress roleName="webrole">
      <Subnets>
        <Subnet name="Subnet-1" />
      </Subnets>
    </InstanceAddress>
  </AddressAssignments>
</NetworkConfiguration>

VNet确实存在但是当我尝试部署服务时出现以下错误:

statusCode:BadRequest
serviceRequestId:southcentralus:c1dafc51-0cc8-4208-b725-9d2b069f2c24
statusMessage:{"error":    {"code":"DeploymentSlotUpdateOperationFailed","message":"The update deployment operation failed for the domain '....' in the deployment slot 'staging' with the name 'test': 'The virtual network my-network does not exist.'."}}

我正在看这篇文章:Azure - Virtual Network does not exist when deploy to Cloud Service

...而且我尝试使用powershell控制台获取VNet配置,但该命令返回经典VNet的配置。

无论如何我得到了ARM-VNets的配置? 是否可以将cloudService部署到ARM-VNet,或者它必须是经典的VNet。

由于

0 个答案:

没有答案