使用AzureRM Powershell创建和发布Azure经典Cloud Service项目 [英] Create and Publish Azure classic Cloud Service project with AzureRM powershell

查看:44
本文介绍了使用AzureRM Powershell创建和发布Azure经典Cloud Service项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

即使查看了文档,我也找不到使用AzureRM powershell cmdlet做到这一点的方法.有人知道该怎么做吗?

Even after looking at the docs, I couldn't find a way to do this with the AzureRM powershell cmdlets. Does anyone know how to do this?

旧的Azure Service Management Powershell cmdlet具有Publish-AzureServiceProject,但我认为现在已弃用.

The old Azure Service Management powershell cmdlets have a Publish-AzureServiceProject, but I believe it is deprecated now.

您可以使用以下内容创建一个新的传统云服务项目:

You can create a new classical cloud service project using something like this:

New-AzureRmResource -ResourceType "Microsoft.ClassicCompute/domainNames" -Location "centralus" -ResourceName "myCloudServiceProjectName"  -ResourceGroupName "myResourceGroup"

其中, Microsoft.ClassicCompute/domainNames 是创建所需的经典云服务项目所需的魔力.

Where Microsoft.ClassicCompute/domainNames is the magic sauce one needs to create the desired classic cloud service project.

但是,(afaik)您仍然需要通过旧的cmdlet: Publish-AzureServiceProject 来部署/发布经典的云服务.使用上述cmdlet可以使您在适当的资源组中创建云项目.

However, (afaik) you will still need to deploy/publish the classic cloud service via the old cmdlet: Publish-AzureServiceProject. Using the above cmdlet lets you create the cloud project in the proper resource group though.

推荐答案

经典的计算服务是

The classic compute services are basically not supported by the Azure Resource Manager model. This means you cannot use the AzureRM cmdlets for publishing your Cloud Services.

Publish-AzureServiceProject 尚未描述ASM的cmdlet(尚未),您仍然可以使用它(实际上,它仍然是从PowerShell发布您的Cloud Service的唯一方法).也许您在考虑弃用Switch-AzureMode cmdlet?

The Publish-AzureServiceProject cmdlet from ASM is not depricated (yet), you can still use it (in fact it is still the only way to publish your Cloud Service from PowerShell). Perhaps you where thinking about the deprecation of the Switch-AzureMode cmdlet?

这篇关于使用AzureRM Powershell创建和发布Azure经典Cloud Service项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆