Search code examples
azureazure-cloud-servicesazure-cli

Restart an instance of Azure Cloud Service using Azure CLI


Is it possible to restart an instance of an Azure Cloud Service through the Azure CLI?

Azure CLI command reference here. I have seen options for restarting a vm, a vmss, a function app, a service fabric node and a web app.


Solution

  • Note: It is not possible to restart an instance of an Azure Cloud Services through Azure CLI.

    As Walter said, you can use Azure CLI 1.0 to create and manage Azure Cloud Service, but you cannot restart an instance.

    You may check the available options for Azure Cloud Service with Azure CLI 1.0:

    Azure CLI Options for Cloud Services

    You may use Azure PowerShell to restart an instance of an Cloud Services:

    PS C:> ReSet-AzureRoleInstance -ServiceName "MySvc01" -Slot "Staging" -InstanceName "MyWebRole_IN_0" -Reboot