从Powershell克隆限制,但不是从门户克隆吗? [英] Clone Restriction From Powershell But Not From Portal?

查看:56
本文介绍了从Powershell克隆限制,但不是从门户克隆吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在学习期间,我将通过3种方法在Azure,门户网站,PowerShell和Cloud Shell中进行操作.

从powershell可以创建应用程序服务计划(标准),可以创建新的部署插槽,不能克隆插槽并接收此消息.

new-azurermwebappslot:源服务器场'< name>'不支持克隆SKU标准".允许的SKU为'HyperV_P1v2,HyperV_P2v2,HyperV_P3v2,隔离,Premium,PremiumContainer,PremiumV2

但是,如果我转到门户并创建一个新的部署槽,则可以选择要克隆的源并进行克隆.

相同的资源组,相同的应用程序服务计划,相同的Web应用程序,相同的源站点.

这是Commandlet的问题吗?或对网站的引用不正确.我正在根据教科书获得参考

  • $ qasite = get-azurermwebappslot -resourcegroupname< rg名称> -name<网络应用程序名称> -插槽qa

并使用

进行克隆
  • new-azurermwebappslot -resourcegroupname <网络应用程序名称> -slot prod -appserviceplan<应用程序服务计划名称> -sourcewebapp $ qasite

解决方案

克隆应用程序是一项功能,仅适用于托管的应用程序 有关高级应用程序服务计划的信息.

您已创建了应用服务计划标准",但并非支持克隆应用.

错误消息清楚地说明了源服务器场不支持克隆' < name>' SKU标准".允许的SKU为'HyperV_P1v2,HyperV_P2v2,HyperV_P3v2, 隔离,Premium,PremiumContainer,PremiumV2".

我建议您在允许的SKU中创建应用程序服务计划.

有关详细信息,请参阅"

Azure Portal:

PowerShell:

当您说无论如何,我都要进入门户并创建一个新的部署插槽,我可以选择要克隆的源并进行克隆",可以共享屏幕截图吗?

--------------- -------------------------------------------------- ------------------------------

如果此答案有帮助,请单击"标记为答案"或"投票".要提供有关您的论坛体验的其他反馈,请单击 在这里 >

while studying I am going through 3 methods of doing things in Azure, the portal, powershell, and cloud shell.

From powershell I can create the app service plan (standard), I can create new deployment slots, I can't clone a slot and receive this message.

new-azurermwebappslot : Cloning is not supported for source server farm '<name>' SKU 'Standard'. Allowed SKUs are 'HyperV_P1v2, HyperV_P2v2, HyperV_P3v2, Isolated, Premium, PremiumContainer, PremiumV2

however if I go to the portal, and create a new deployment slot, I can choose a source to clone from and cloning works.

Same resource group, same app service plan, same web app, same source site.

Is this an issue with the commandlet?  or incorrect referencing of the site.  I am getting reference as per textbook

  • $qasite = get-azurermwebappslot -resourcegroupname <rg name> -name <web app name> -slot qa

and cloning using 

  • new-azurermwebappslot -resourcegroupname <rg name> -name <web app name> -slot prod -appserviceplan <app service plan name> -sourcewebapp $qasite

解决方案

Note: Clone app is a feature that is only available to apps hosted on Premium App Service Plans.

As you have created the app service plan "Standard", which is not supported to clone app.

The error message clearly explains "Cloning is not supported for source server farm '<name>' SKU 'Standard'. Allowed SKUs are 'HyperV_P1v2, HyperV_P2v2, HyperV_P3v2, Isolated, Premium, PremiumContainer, PremiumV2".

I would suggest you to create the app service plan in the allowed SKUs.

For more details, refer "Azure app service app cloning using powershell".

Azure Portal:

PowerShell:

When you say, "however if I go to the portal, and create a new deployment slot, I can choose a source to clone from and cloning works", could you share the screenshot.

-----------------------------------------------------------------------------------------------

If this answer was helpful, click "Mark as Answer" or "Up-Vote". To provide additional feedback on your forum experience, click here


这篇关于从Powershell克隆限制,但不是从门户克隆吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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