如何从PowerShell停止/启动Azure功能

时间:2019-05-16 12:41:35

标签: azure powershell azure-functions

有没有办法从PowerShell停止(然后重新启动)Azure功能?

2 个答案:

答案 0 :(得分:2)

Start-AzureRmWebApp

Start-AzureRmWebApp -ResourceGroupName "Default-Web-WestUS" -Name "ContosoWebApp"

https://docs.microsoft.com/en-us/powershell/module/azurerm.websites/start-azurermwebapp?view=azurermps-6.13.0

Stop-AzureRmWebApp

PS C:\>Stop-AzureRmWebApp -ResourceGroupName "Default-Web-WestUS" -Name "ContosoWebApp"

https://docs.microsoft.com/en-us/powershell/module/azurerm.websites/stop-azurermwebapp?view=azurermps-6.13.0

答案 1 :(得分:-1)

当前,我们没有用于Azure Functions的PowerShell cmdlet。我在https://feedback.azure.com/forums/355860-azure-functions/suggestions/37667092-powershell-cmdlets-for-functions

上为此请求创建了一个条目