All Superinterfaces:
GroupableResource <com.microsoft.azure.management.compute.implementation.ComputeManager,com.microsoft.azure.management.compute.implementation.VirtualMachineScaleSetInner>
, HasId
, HasInner <com.microsoft.azure.management.compute.implementation.VirtualMachineScaleSetInner>
, HasManager <com.microsoft.azure.management.compute.implementation.ComputeManager>
, HasName
, HasResourceGroup
, Indexable
, Refreshable <VirtualMachineScaleSet >
, Resource
, Updatable <VirtualMachineScaleSet.UpdateStages.WithPrimaryLoadBalancer >
An immutable client-side representation of an Azure virtual machine scale set.
Nested Class Summary
Nested Classes
static interface
The entirety of the managed disk based virtual machine scale set definition.
static interface
The entirety of the virtual machine scale set definition.
static interface
The virtual machine scale set stages shared between managed and unmanaged based
virtual machine scale set definitions.
static interface
Grouping of virtual machine scale set definition stages.
static interface
The entirety of the unmanaged disk based virtual machine scale set definition.
static interface
The entirety of the virtual machine scale set update.
static interface
Grouping of virtual machine scale set update stages.
Method Summary
All Methods Instance Methods Abstract Methods
Get specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual Machine Scale
Set.
int
void
Shuts down the virtual machines in the scale set and releases its compute resources.
rx.Completable
Shuts down the virtual machines in the scale set and releases its compute resources asynchronously.
com.microsoft.rest.ServiceFuture<Void >
Shuts down the virtual machines in the scale set and releases its compute resources asynchronously.
Gets a network interface associated with a virtual machine scale set instance.
boolean
boolean
boolean
boolean
boolean
boolean
Lists the network interface associated with a specific virtual machine instance in the scale set.
boolean
void
Powers off (stops) the virtual machines in the scale set.
rx.Completable
Powers off (stops) the virtual machines in the scale set asynchronously.
com.microsoft.rest.ServiceFuture<Void >
Powers off (stops) the virtual machines in the scale set asynchronously.
Get specifies information about the proximity placement group that the virtual machine scale set should be
assigned to.
void
Re-images (updates the version of the installed operating system) the virtual machines in the scale set.
rx.Completable
Re-images (updates the version of the installed operating system) the virtual machines in the scale set asynchronously.
com.microsoft.rest.ServiceFuture<Void >
Re-images (updates the version of the installed operating system) the virtual machines in the scale set asynchronously.
void
Restarts the virtual machines in the scale set.
rx.Completable
Restarts the virtual machines in the scale set asynchronously.
com.microsoft.rest.ServiceFuture<Void >
Restarts the virtual machines in the scale set asynchronously.
Run commands in a virtual machine instance in a scale set.
Run commands in a virtual machine instance in a scale set asynchronously.
Run PowerShell script in a virtual machine instance in a scale set.
Run PowerShell in a virtual machine instance in a scale set asynchronously.
Run shell script in a virtual machine instance in a scale set.
Run shell script in a virtual machine instance in a scale set asynchronously.
void
Starts the virtual machines in the scale set.
rx.Completable
Starts the virtual machines in the scale set asynchronously.
com.microsoft.rest.ServiceFuture<Void >
Starts the virtual machines in the scale set asynchronously.
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.HasId
id
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.model.HasInner
inner
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.HasManager
manager
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.HasName
name
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.model.Indexable
key
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.model.Updatable
update
Method Details
virtualMachines
Returns:
entry point to manage virtual machine instances in the scale set.
listAvailableSkus
Returns:
available SKUs for the virtual machine scale set, including the minimum and maximum virtual machine instances
allowed for a particular SKU
deallocate
void deallocate ()
Shuts down the virtual machines in the scale set and releases its compute resources.
deallocateAsync
rx.Completable deallocateAsync ()
Shuts down the virtual machines in the scale set and releases its compute resources asynchronously.
Returns:
a representation of the deferred computation of this call
deallocateAsync
com.microsoft.rest.ServiceFuture<Void > deallocateAsync (com.microsoft.rest.ServiceCallback<Void > callback)
Shuts down the virtual machines in the scale set and releases its compute resources asynchronously.
Parameters:
callback
- the callback to call on success or failure
Returns:
a handle to cancel the request
powerOff
void powerOff ()
Powers off (stops) the virtual machines in the scale set.
powerOffAsync
rx.Completable powerOffAsync ()
Powers off (stops) the virtual machines in the scale set asynchronously.
Returns:
a representation of the deferred computation of this call
powerOffAsync
com.microsoft.rest.ServiceFuture<Void > powerOffAsync (com.microsoft.rest.ServiceCallback<Void > callback)
Powers off (stops) the virtual machines in the scale set asynchronously.
Parameters:
callback
- the callback to call on success or failure
Returns:
a handle to cancel the request
restart
void restart ()
Restarts the virtual machines in the scale set.
restartAsync
rx.Completable restartAsync ()
Restarts the virtual machines in the scale set asynchronously.
Returns:
a representation of the deferred computation of this call
restartAsync
com.microsoft.rest.ServiceFuture<Void > restartAsync (com.microsoft.rest.ServiceCallback<Void > callback)
Restarts the virtual machines in the scale set asynchronously.
Parameters:
callback
- the callback to call on success or failure
Returns:
a handle to cancel the request
start
void start ()
Starts the virtual machines in the scale set.
startAsync
rx.Completable startAsync ()
Starts the virtual machines in the scale set asynchronously.
Returns:
a representation of the deferred computation of this call
startAsync
com.microsoft.rest.ServiceFuture<Void > startAsync (com.microsoft.rest.ServiceCallback<Void > callback)
Starts the virtual machines in the scale set asynchronously.
Parameters:
callback
- the callback to call on success or failure
Returns:
a handle to cancel the request
reimage
void reimage ()
Re-images (updates the version of the installed operating system) the virtual machines in the scale set.
reimageAsync
rx.Completable reimageAsync ()
Re-images (updates the version of the installed operating system) the virtual machines in the scale set asynchronously.
Returns:
a representation of the deferred computation of this call
reimageAsync
com.microsoft.rest.ServiceFuture<Void > reimageAsync (com.microsoft.rest.ServiceCallback<Void > callback)
Re-images (updates the version of the installed operating system) the virtual machines in the scale set asynchronously.
Parameters:
callback
- the callback to call on success or failure
Returns:
a handle to cancel the request
runPowerShellScriptInVMInstance
Run PowerShell script in a virtual machine instance in a scale set.
Parameters:
vmId
- the virtual machine instance id
scriptLines
- PowerShell script lines
scriptParameters
- script parameters
Returns:
result of PowerShell script execution
runPowerShellScriptInVMInstanceAsync
Run PowerShell in a virtual machine instance in a scale set asynchronously.
Parameters:
vmId
- the virtual machine instance id
scriptLines
- PowerShell script lines
scriptParameters
- script parameters
Returns:
handle to the asynchronous execution
runShellScriptInVMInstance
Run shell script in a virtual machine instance in a scale set.
Parameters:
vmId
- the virtual machine instance id
scriptLines
- shell script lines
scriptParameters
- script parameters
Returns:
result of shell script execution
runShellScriptInVMInstanceAsync
Run shell script in a virtual machine instance in a scale set asynchronously.
Parameters:
vmId
- the virtual machine instance id
scriptLines
- shell script lines
scriptParameters
- script parameters
Returns:
handle to the asynchronous execution
computerNamePrefix
Returns:
the name prefix of the virtual machines in the scale set
osType
Returns:
the operating system of the virtual machines in the scale set
osDiskCachingType
Returns:
the operating system disk caching type
osDiskName
Returns:
the name of the OS disk of virtual machines in the scale set
upgradeModel
Returns:
the upgrade model
overProvisionEnabled
boolean overProvisionEnabled ()
Returns:
true if over provision is enabled for the virtual machines, false otherwise
sku
Returns:
the SKU of the virtual machines in the scale set
capacity
int capacity ()
Returns:
the number of virtual machine instances in the scale set
getPrimaryNetwork
Returns:
the virtual network associated with the primary network interfaces of the virtual machines
in the scale set.
A primary internal load balancer associated with the primary network interfaces of the scale set
virtual machine will be also belong to this network
Throws:
IOException
- the IO exception
getPrimaryInternetFacingLoadBalancer
Returns:
the Internet-facing load balancer associated with the primary network interface of
the virtual machines in the scale set.
Throws:
IOException
- the IO exception
listPrimaryInternetFacingLoadBalancerBackends
Returns:
the Internet-facing load balancer's backends associated with the primary network interface
of the virtual machines in the scale set
Throws:
IOException
- the IO exception
listPrimaryInternetFacingLoadBalancerInboundNatPools
Returns:
the Internet-facing load balancer's inbound NAT pool associated with the primary network interface
of the virtual machines in the scale set
Throws:
IOException
- the IO exception
getPrimaryInternalLoadBalancer
Returns:
the internal load balancer associated with the primary network interface of
the virtual machines in the scale set
Throws:
IOException
- the IO exception
listPrimaryInternalLoadBalancerBackends
Returns:
the internal load balancer's backends associated with the primary network interface
of the virtual machines in the scale set
Throws:
IOException
- the IO exception
listPrimaryInternalLoadBalancerInboundNatPools
Returns:
the inbound NAT pools of the internal load balancer associated with the primary network interface
of the virtual machines in the scale set, if any.
Throws:
IOException
- the IO exception
primaryPublicIPAddressIds
Returns:
the list of IDs of the public IP addresses associated with the primary Internet-facing load balancer
of the scale set
Throws:
IOException
- the IO exception
vhdContainers
Returns:
the URL to storage containers that store the VHDs of the virtual machines in the scale set
storageProfile
Returns:
the storage profile
networkProfile
Returns:
the network profile
extensions
Returns:
the extensions attached to the virtual machines in the scale set
virtualMachinePriority
Returns:
the priority of virtual machines in the scale set.
billingProfile
Returns:
the billing related details of the low priority virtual machines in the scale set.
virtualMachineEvictionPolicy
Returns:
the eviction policy of the virtual machines in the scale set.
getNetworkInterfaceByInstanceId
Gets a network interface associated with a virtual machine scale set instance.
Parameters:
instanceId
- the virtual machine scale set vm instance ID
name
- the network interface name
Returns:
the network interface
listNetworkInterfaces
Returns:
the network interfaces associated with all virtual machine instances in a scale set
listNetworkInterfacesByInstanceId
Lists the network interface associated with a specific virtual machine instance in the scale set.
Parameters:
virtualMachineInstanceId
- the instance ID
Returns:
the network interfaces
isManagedDiskEnabled
boolean isManagedDiskEnabled ()
Returns:
true if managed disk is used for the virtual machine scale set's disks (os, data)
isManagedServiceIdentityEnabled
boolean isManagedServiceIdentityEnabled ()
Returns:
true if Managed Service Identity is enabled for the virtual machine scale set
systemAssignedManagedServiceIdentityTenantId
String systemAssignedManagedServiceIdentityTenantId ()
Returns:
the System Assigned (Local) Managed Service Identity specific Active Directory tenant ID
assigned to the virtual machine scale set.
systemAssignedManagedServiceIdentityPrincipalId
String systemAssignedManagedServiceIdentityPrincipalId ()
Returns:
the System Assigned (Local) Managed Service Identity specific Active Directory service principal ID
assigned to the virtual machine scale set.
managedServiceIdentityType
Returns:
the type of Managed Service Identity used for the virtual machine scale set.
userAssignedManagedServiceIdentityIds
Set <String > userAssignedManagedServiceIdentityIds ()
Returns:
the resource ids of User Assigned Managed Service Identities associated with the virtual machine scale set.
availabilityZones
Returns:
the availability zones assigned to virtual machine scale set.
isBootDiagnosticsEnabled
boolean isBootDiagnosticsEnabled ()
Returns:
true if boot diagnostics is enabled for the virtual machine scale set.
bootDiagnosticsStorageUri
String bootDiagnosticsStorageUri ()
Returns:
the storage blob endpoint uri if boot diagnostics is enabled for the virtual machine scale set.
managedOSDiskStorageAccountType
Returns:
the storage account type of the OS managed disk. A null value will be returned if the
virtual machine scale set is based on un-managed disk.
virtualMachinePublicIpConfig
Returns:
the public ip configuration of virtual machines in the scale set.
isIpForwardingEnabled
boolean isIpForwardingEnabled ()
Returns:
true if ip forwarding is enabled for the virtual machine scale set.
isAcceleratedNetworkingEnabled
boolean isAcceleratedNetworkingEnabled ()
Returns:
true if accelerated networking is enabled for the virtual machine scale set.
networkSecurityGroupId
String networkSecurityGroupId ()
Returns:
the network security group ARM id.
isSinglePlacementGroupEnabled
boolean isSinglePlacementGroupEnabled ()
Returns:
true if single placement group is enabled for the virtual machine scale set.
applicationGatewayBackendAddressPoolsIds
List <String > applicationGatewayBackendAddressPoolsIds ()
Returns:
the list of application gateway backend pool associated with the virtual machine scale set.
applicationSecurityGroupIds
Returns:
the list of application security groups associated with the virtual machine scale set.
doNotRunExtensionsOnOverprovisionedVMs
Boolean doNotRunExtensionsOnOverprovisionedVMs ()
Returns:
When Overprovision is enabled, extensions are launched only on the
requested number of VMs which are finally kept. This property will hence
ensure that the extensions do not run on the extra overprovisioned VMs.
proximityPlacementGroup
Get specifies information about the proximity placement group that the virtual machine scale set should be
assigned to.
Returns:
the proximityPlacementGroup.
additionalCapabilities
Get specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual Machine Scale
Set. For instance: whether the Virtual Machines have the capability to support attaching managed data disks with
UltraSSD_LRS storage account type.
Returns:
the additionalCapabilities value