启动Azurermwebapp cmd无法正常工作 [英] Start-Azurermwebapp cmd not working

查看:94
本文介绍了启动Azurermwebapp cmd无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个Runbook,它是从automys的Runbook派生到"关闭vms"。

I made a runbook which is derived from the automys' runbook to "shutdown the vms".

我的Runbook我也应该关闭web应用程序。

My runbook I supposed to shut down web apps as well.

现在的问题是,由于缺少模块,它无法运行Start-AzureRmWebApp。

The problem now is, It was not able to run Start-AzureRmWebApp due to a missing module.

因此,我必须导入AzureRM.Websites,它具有AzureRM.Profile的依赖关系。

So, I had to import AzureRM.Websites, that has a dependency of AzureRM.Profile.

添加这些模块的BOTH后。

After adding BOTH of these modules.

脚本抛出一个异常,说明"Run login-azurermaccount"

the script throws an exception stating "Run login-azurermaccount"

你能告诉我怎样才能解决这个问题?

Can you tell me how can I workaround this??

MCSA,MCP,Microsoft专家 - Microsoft Azure

MCSA, MCP, Microsoft Specialist - Microsoft Azure

推荐答案

无需关闭Web应用程序。与Azure VM不同,Azure App Service由Instance by App Service计划收费,因此即使您的Web Apps停止,实例仍会收费。

There is no need to shutdown the Web Apps. Unlike Azure VMs, the Azure App Service is charged by Instance by App Service plan, so even if your Web Apps are stopped, the instance still charged.

为了停止计费,您需要要么:

In order to stop billing, you need to either :

- 将您的应用服务计划降级到免费套餐

- Downgrade your App Service Plan to the Free tier

- 将您的网络应用程序转移到免费的应用服务计划

- Move your Web Apps to a free App Service Plan

如果您使用特定的层功能,您将无法执行任何操作

You will not be able to do either operations if you are using specific tier features


这篇关于启动Azurermwebapp cmd无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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