Reputation: 17850
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.
Upvotes: 1
Views: 2923
Reputation: 12768
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
Upvotes: 2
Reputation: 19195
Is it possible to restart an instance of an Azure Cloud Service through the Azure CLI?
Based on my knowledge, it is not possible.
Azure Cloud Service is a Classic mode service. However, Azure CLI 2.0 is optimized for managing and administering Azure resources from the command line, and for building automation scripts that work against the Azure Resource Manager. ASM/Classic mode is not supported in the Azure CLI 2.0. Please refer to this link.
Azure Cli 1.0 supports ASM mode and Cloud Service.
Upvotes: 1