Is there way to change to instance type in Azure Cloud Services

前端 未结 3 509
既然无缘
既然无缘 2021-01-17 08:32

Is there any way to change the VM Size of an Azure Cloud Service without having to rebuild the package?

The vmsize parameter is defined

相关标签:
3条回答
  • 2021-01-17 08:45

    You can use Azure Powershell:

    C:\PS>Get-AzureVM -ServiceName "MySvc1" -Name "MyVM3" | Set-AzureVMSize "Basic_A2" | Update-AzureVM
    
    0 讨论(0)
  • 2021-01-17 08:46

    Yes, when you create your service model, you can specify the size to which to deploy an instance of your role, depending on its resource requirements. The size of the role determines the number of CPU cores, the memory capacity, and the local file system size that is allocated to a running instance.

    Basically, you need to change the “vmsize” parameter in the ServiceConfiguration.cscfg file to the required value (vmsize="[ExtraSmall|Small|Medium|Large|ExtraLarge]") and re-deploy the package back to Azure.

    http://www.nimbo.com/blog/changing-the-instance-size-from-the-windows-azure-management-portal/

    0 讨论(0)
  • 2021-01-17 08:59

    The vmsize is attribute of csdef file and not of ServiceConfiguration.cscfg

    You can see on http://msdn.microsoft.com/en-us/library/jj156212.aspx

    0 讨论(0)
提交回复
热议问题