Azure Web Service Commands

One Aieda 21 Reputation points
2019-11-01T20:36:55.513+00:00

Do I use the end quotes when copying my Webapp name? I tried it both ways but was unsuccessful in stopping and starting Web Service. For example; "AzureNow" =

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,069 questions
{count} votes

Accepted answer
  1. Grmacjon-MSFT 16,791 Reputation points
    2019-11-01T22:44:13.78+00:00

    Hi @One Aieda ,

    You don't need the end quotes for CLI commands but you do for powershell. Here's the Azure CLI commands for starting and stopping a web app:

    Start a web app:

    az webapp start --name MyWebapp --resource-group MyResourceGroup  
    

    Stop a web app:

        az webapp stop --name MyWebapp --resource-group MyResourceGroup  
    

    For Powershell:

    The Start-AzureRmWebApp cmdlet starts an Azure Web App.

    The Stop-AzureRmWebApp cmdlet stops an Azure Web App.

    Ex: Stop-AzureRmWebApp -ResourceGroupName "Default-Web-WestUS" -Name "ContosoWebApp"

    This command stops the Web App named ContosoWebApp that belongs to the resource group named Default-Web-WestUS.

    Hope that helps.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more