你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
VirtualMachineScaleSet Interface
public interface VirtualMachineScaleSet extends GroupableResource<ComputeManager, VirtualMachineScaleSetInner>,Refreshable,Updatable<VirtualMachineScaleSet.UpdateStages.WithPrimaryLoadBalancer>
An immutable client-side representation of an Azure virtual machine scale set.
Method Summary
Modifier and Type | Method and Description |
---|---|
Set<Availability |
availabilityZones() |
int | capacity() |
String | computerNamePrefix() |
void |
deallocate()
Shuts down the virtual machines in the scale set and releases its compute resources. |
Completable |
deallocateAsync()
Shuts down the virtual machines in the scale set and releases its compute resources asynchronously. |
ServiceFuture<Void> |
deallocateAsync(ServiceCallback<Void> callback)
Shuts down the virtual machines in the scale set and releases its compute resources asynchronously. |
Map<String, Virtual |
extensions() |
Virtual |
getNetworkInterfaceByInstanceId(String instanceId, String name)
Gets a network interface associated with a virtual machine scale set instance. |
Load |
getPrimaryInternalLoadBalancer() |
Load |
getPrimaryInternetFacingLoadBalancer() |
Network |
getPrimaryNetwork()
A primary internal load balancer associated with the primary network interfaces of the scale set virtual machine will be also belong to this network |
boolean | isManagedDiskEnabled() |
boolean | isManagedServiceIdentityEnabled() |
PagedList<Virtual |
listAvailableSkus() |
PagedList<Virtual |
listNetworkInterfaces() |
PagedList<Virtual |
listNetworkInterfacesByInstanceId(String virtualMachineInstanceId)
Lists the network interface associated with a specific virtual machine instance in the scale set. |
Map<String, Load |
listPrimaryInternalLoadBalancerBackends() |
Map<String, Load |
listPrimaryInternalLoadBalancerInboundNatPools() |
Map<String, Load |
listPrimaryInternetFacingLoadBalancerBackends() |
Map<String, Load |
listPrimaryInternetFacingLoadBalancerInboundNatPools() |
String | managedServiceIdentityPrincipalId() |
String | managedServiceIdentityTenantId() |
Virtual |
networkProfile() |
Caching |
osDiskCachingType() |
String | osDiskName() |
Operating |
osType() |
boolean | overProvisionEnabled() |
void |
powerOff()
Powers off (stops) the virtual machines in the scale set. |
Completable |
powerOffAsync()
Powers off (stops) the virtual machines in the scale set asynchronously. |
ServiceFuture<Void> |
powerOffAsync(ServiceCallback<Void> callback)
Powers off (stops) the virtual machines in the scale set asynchronously. |
List<String> | primaryPublicIPAddressIds() |
void |
reimage()
Re-images (updates the version of the installed operating system) the virtual machines in the scale set. |
Completable |
reimageAsync()
Re-images (updates the version of the installed operating system) the virtual machines in the scale set asynchronously. |
ServiceFuture<Void> |
reimageAsync(ServiceCallback<Void> callback)
Re-images (updates the version of the installed operating system) the virtual machines in the scale set asynchronously. |
void |
restart()
Restarts the virtual machines in the scale set. |
Completable |
restartAsync()
Restarts the virtual machines in the scale set asynchronously. |
ServiceFuture<Void> |
restartAsync(ServiceCallback<Void> callback)
Restarts the virtual machines in the scale set asynchronously. |
Virtual |
sku() |
void |
start()
Starts the virtual machines in the scale set. |
Completable |
startAsync()
Starts the virtual machines in the scale set asynchronously. |
ServiceFuture<Void> |
startAsync(ServiceCallback<Void> callback)
Starts the virtual machines in the scale set asynchronously. |
Virtual |
storageProfile() |
Upgrade |
upgradeModel() |
List<String> | vhdContainers() |
Virtual |
virtualMachines() |
Inherited Members
Method Details
availabilityZones
public Set
Returns:
capacity
public int capacity()
Returns:
computerNamePrefix
public String computerNamePrefix()
Returns:
deallocate
public void deallocate()
Shuts down the virtual machines in the scale set and releases its compute resources.
deallocateAsync
public Completable deallocateAsync()
Shuts down the virtual machines in the scale set and releases its compute resources asynchronously.
Returns:
deallocateAsync
public ServiceFuture
Shuts down the virtual machines in the scale set and releases its compute resources asynchronously.
Parameters:
Returns:
extensions
public Map
Returns:
getNetworkInterfaceByInstanceId
public VirtualMachineScaleSetNetworkInterface getNetworkInterfaceByInstanceId(String instanceId, String name)
Gets a network interface associated with a virtual machine scale set instance.
Parameters:
Returns:
getPrimaryInternalLoadBalancer
public LoadBalancer getPrimaryInternalLoadBalancer()
Returns:
Throws:
getPrimaryInternetFacingLoadBalancer
public LoadBalancer getPrimaryInternetFacingLoadBalancer()
Returns:
Throws:
getPrimaryNetwork
public Network getPrimaryNetwork()
A primary internal load balancer associated with the primary network interfaces of the scale set virtual machine will be also belong to this network
Returns:
Throws:
isManagedDiskEnabled
public boolean isManagedDiskEnabled()
Returns:
isManagedServiceIdentityEnabled
public boolean isManagedServiceIdentityEnabled()
Returns:
listAvailableSkus
public PagedList
Returns:
listNetworkInterfaces
public PagedList
Returns:
listNetworkInterfacesByInstanceId
public PagedList
Lists the network interface associated with a specific virtual machine instance in the scale set.
Parameters:
Returns:
listPrimaryInternalLoadBalancerBackends
public Map
Returns:
Throws:
listPrimaryInternalLoadBalancerInboundNatPools
public Map
Returns:
Throws:
listPrimaryInternetFacingLoadBalancerBackends
public Map
Returns:
Throws:
listPrimaryInternetFacingLoadBalancerInboundNatPools
public Map
Returns:
Throws:
managedServiceIdentityPrincipalId
public String managedServiceIdentityPrincipalId()
Returns:
managedServiceIdentityTenantId
public String managedServiceIdentityTenantId()
Returns:
networkProfile
public VirtualMachineScaleSetNetworkProfile networkProfile()
Returns:
osDiskCachingType
public CachingTypes osDiskCachingType()
Returns:
osDiskName
public String osDiskName()
Returns:
osType
public OperatingSystemTypes osType()
Returns:
overProvisionEnabled
public boolean overProvisionEnabled()
Returns:
powerOff
public void powerOff()
Powers off (stops) the virtual machines in the scale set.
powerOffAsync
public Completable powerOffAsync()
Powers off (stops) the virtual machines in the scale set asynchronously.
Returns:
powerOffAsync
public ServiceFuture
Powers off (stops) the virtual machines in the scale set asynchronously.
Parameters:
Returns:
primaryPublicIPAddressIds
public List
Returns:
Throws:
reimage
public void reimage()
Re-images (updates the version of the installed operating system) the virtual machines in the scale set.
reimageAsync
public Completable reimageAsync()
Re-images (updates the version of the installed operating system) the virtual machines in the scale set asynchronously.
Returns:
reimageAsync
public ServiceFuture
Re-images (updates the version of the installed operating system) the virtual machines in the scale set asynchronously.
Parameters:
Returns:
restart
public void restart()
Restarts the virtual machines in the scale set.
restartAsync
public Completable restartAsync()
Restarts the virtual machines in the scale set asynchronously.
Returns:
restartAsync
public ServiceFuture
Restarts the virtual machines in the scale set asynchronously.
Parameters:
Returns:
sku
public VirtualMachineScaleSetSkuTypes sku()
Returns:
start
public void start()
Starts the virtual machines in the scale set.
startAsync
public Completable startAsync()
Starts the virtual machines in the scale set asynchronously.
Returns:
startAsync
public ServiceFuture
Starts the virtual machines in the scale set asynchronously.
Parameters:
Returns:
storageProfile
public VirtualMachineScaleSetStorageProfile storageProfile()
Returns:
upgradeModel
public UpgradeMode upgradeModel()
Returns:
vhdContainers
public List
Returns:
virtualMachines
public VirtualMachineScaleSetVMs virtualMachines()
Returns: