@azure/arm-computefleet package

Classes

AzureFleetClient

Interfaces

AdditionalUnattendContent

Specifies additional XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. Contents are defined by setting name, component name, and the pass in which the content is applied.

ApiEntityReference

The API entity reference.

ApiError

ApiError for Fleet

ApiErrorBase

API error base.

ApplicationProfile

Contains the list of gallery applications that should be made available to the VM/VMSS

AzureFleetClientOptionalParams

Optional parameters for the client.

BaseVirtualMachineProfile

Describes the base virtual machine profile for fleet

BootDiagnostics

Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. You can easily view the output of your console log. Azure also enables you to see a screenshot of the VM from the hypervisor.

CapacityReservationProfile

The parameters of a capacity reservation Profile.

ComputeProfile

Compute Profile to use for running user's workloads.

DiagnosticsProfile

Specifies the boot diagnostic settings state. Minimum api-version: 2015-06-15.

DiffDiskSettings

Describes the parameters of ephemeral disk settings that can be specified for operating system disk. Note: The ephemeral disk settings can only be specified for managed disk.

DiskEncryptionSetParameters

Describes the parameter of customer managed disk encryption set resource id that can be specified for disk. Note: The disk encryption set resource id can only be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more details.

EncryptionIdentity

Specifies the Managed Identity used by ADE to get access token for keyvault operations.

ErrorAdditionalInfo

The resource management error additional info.

ErrorDetail

The error detail.

ErrorResponse

Common error response for all Azure Resource Manager APIs to return error details for failed operations.

Fleet

An Compute Fleet resource

FleetProperties

Details of the Compute Fleet.

FleetUpdate

Fleet Update Model

FleetsCreateOrUpdateOptionalParams

Optional parameters.

FleetsDeleteOptionalParams

Optional parameters.

FleetsGetOptionalParams

Optional parameters.

FleetsListByResourceGroupOptionalParams

Optional parameters.

FleetsListBySubscriptionOptionalParams

Optional parameters.

FleetsListVirtualMachineScaleSetsOptionalParams

Optional parameters.

FleetsOperations

Interface representing a Fleets operations.

FleetsUpdateOptionalParams

Optional parameters.

ImageReference

Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. NOTE: Image reference publisher and offer can only be set when you create the scale set.

InnerError

Inner error details.

KeyVaultSecretReference

Describes a reference to Key Vault Secret

LinuxConfiguration

Specifies the Linux operating system settings on the virtual machine. For a list of supported Linux distributions, see Linux on Azure-Endorsed Distributions.

LinuxPatchSettings

Specifies settings related to VM Guest Patching on Linux.

LinuxVMGuestPatchAutomaticByPlatformSettings

Specifies additional settings to be applied when patch mode AutomaticByPlatform is selected in Linux patch settings.

ManagedServiceIdentity

Managed service identity (system assigned and/or user assigned identities)

ManagedServiceIdentityUpdate

The template for adding optional properties.

OSImageNotificationProfile

Specifies OS Image Scheduled Event related configurations.

Operation

Details of a REST API operation, returned from the Resource Provider Operations API

OperationDisplay

Localized display information for and operation.

OperationsListOptionalParams

Optional parameters.

OperationsOperations

Interface representing a Operations operations.

PageSettings

Options for the byPage method

PagedAsyncIterableIterator

An interface that allows async iterable iteration both to completion and by page.

PatchSettings

Specifies settings related to VM Guest Patching on Windows.

Plan

Plan for the resource.

ProxyAgentSettings

Specifies ProxyAgent settings while creating the virtual machine. Minimum api-version: 2023-09-01.

PublicIPAddressSku

Describes the public IP Sku. It can only be set with OrchestrationMode as Flexible.

RegularPriorityProfile

Configuration Options for Regular instances in Compute Fleet.

Resource

Common fields that are returned in the response for all Azure Resource Manager resources

ResourcePlanUpdate

The template for adding optional properties.

RestorePollerOptions
ScheduledEventsProfile

Specifies Scheduled Event related configurations.

SecurityPostureReference

Specifies the security posture to be used for all virtual machines in the scale set. Minimum api-version: 2023-03-01

SecurityProfile

Specifies the Security profile settings for the virtual machine or virtual machine scale set.

ServiceArtifactReference

Specifies the service artifact reference id used to set same image version for all virtual machines in the scale set when using 'latest' image version. Minimum api-version: 2022-11-01

SpotPriorityProfile

Configuration Options for Spot instances in Compute Fleet.

SshConfiguration

SSH configuration for Linux based VMs running on Azure

SshPublicKey

Contains information about SSH certificate public key and the path on the Linux VM where the public key is placed.

SubResource

Describes SubResource

SystemData

Metadata pertaining to creation and last modification of the resource.

TerminateNotificationProfile

Specifies Terminate Scheduled Event related configurations.

TrackedResource

The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'

UefiSettings

Specifies the security settings like secure boot and vTPM used while creating the virtual machine. Minimum api-version: 2020-12-01.

UserAssignedIdentity

User assigned identity properties

VMDiskSecurityProfile

Specifies the security profile settings for the managed disk. Note: It can only be set for Confidential VMs.

VMGalleryApplication

Specifies the required information to reference a compute gallery application version

VMSizeProperties

Specifies VM Size Property settings on the virtual machine.

VaultCertificate

Describes a single certificate reference in a Key Vault, and where the certificate should reside on the VM.

VaultSecretGroup

Describes a set of certificates which are all in the same Key Vault.

VirtualHardDisk

Describes the uri of a disk.

VirtualMachineScaleSet

An AzureFleet's virtualMachineScaleSet

VirtualMachineScaleSetDataDisk

Describes a virtual machine scale set data disk.

VirtualMachineScaleSetExtension

Describes a Virtual Machine Scale Set Extension.

VirtualMachineScaleSetExtensionProfile

Describes a virtual machine scale set extension profile.

VirtualMachineScaleSetExtensionProperties

Describes the properties of a Virtual Machine Scale Set Extension.

VirtualMachineScaleSetHardwareProfile

Specifies the hardware settings for the virtual machine scale set.

VirtualMachineScaleSetIPConfiguration

Describes a virtual machine scale set network profile's IP configuration.

VirtualMachineScaleSetIPConfigurationProperties

Describes a virtual machine scale set network profile's IP configuration properties.

VirtualMachineScaleSetIpTag

Contains the IP tag associated with the public IP address.

VirtualMachineScaleSetManagedDiskParameters

Describes the parameters of a ScaleSet managed disk.

VirtualMachineScaleSetNetworkConfiguration

Describes a virtual machine scale set network profile's network configurations.

VirtualMachineScaleSetNetworkConfigurationDnsSettings

Describes a virtual machines scale sets network configuration's DNS settings.

VirtualMachineScaleSetNetworkConfigurationProperties

Describes a virtual machine scale set network profile's IP configuration.

VirtualMachineScaleSetNetworkProfile

Describes a virtual machine scale set network profile.

VirtualMachineScaleSetOSDisk

Describes a virtual machine scale set operating system disk.

VirtualMachineScaleSetOSProfile

Describes a virtual machine scale set OS profile.

VirtualMachineScaleSetPublicIPAddressConfiguration

Describes a virtual machines scale set IP Configuration's PublicIPAddress configuration

VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings

Describes a virtual machines scale sets network configuration's DNS settings.

VirtualMachineScaleSetPublicIPAddressConfigurationProperties

Describes a virtual machines scale set IP Configuration's PublicIPAddress configuration

VirtualMachineScaleSetStorageProfile

Describes a virtual machine scale set storage profile.

VmSizeProfile

Specifications about a VM Size. This will also contain the corresponding rank and weight in future.

WinRMConfiguration

Describes Windows Remote Management configuration of the VM

WinRMListener

Describes Protocol and thumbprint of Windows Remote Management listener

WindowsConfiguration

Specifies Windows operating system settings on the virtual machine.

WindowsVMGuestPatchAutomaticByPlatformSettings

Specifies additional settings to be applied when patch mode AutomaticByPlatform is selected in Windows patch settings.

Type Aliases

ActionType

Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
KnownActionType can be used interchangeably with ActionType, this enum contains the known values that the service supports.

Known values supported by the service

Internal

CachingTypes

Specifies the caching requirements.
KnownCachingTypes can be used interchangeably with CachingTypes, this enum contains the known values that the service supports.

Known values supported by the service

None
ReadOnly
ReadWrite

ContinuablePage

An interface that describes a page of results.

CreatedByType

The kind of entity that created the resource.
KnownCreatedByType can be used interchangeably with CreatedByType, this enum contains the known values that the service supports.

Known values supported by the service

User
Application
ManagedIdentity
Key

DeleteOptions

Specify what happens to the network interface when the VM is deleted
KnownDeleteOptions can be used interchangeably with DeleteOptions, this enum contains the known values that the service supports.

Known values supported by the service

Delete
Detach

DiffDiskOptions

Specifies the ephemeral disk option for operating system disk.
KnownDiffDiskOptions can be used interchangeably with DiffDiskOptions, this enum contains the known values that the service supports.

Known values supported by the service

Local

DiffDiskPlacement

Specifies the ephemeral disk placement for operating system disk. This property can be used by user in the request to choose the location i.e, cache disk or resource disk space for Ephemeral OS disk provisioning. For more information on Ephemeral OS disk size requirements, please refer Ephemeral OS disk size requirements for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/ephemeral-os-disks#size-requirements and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/ephemeral-os-disks#size-requirements Minimum api-version for NvmeDisk: 2024-03-01.
KnownDiffDiskPlacement can be used interchangeably with DiffDiskPlacement, this enum contains the known values that the service supports.

Known values supported by the service

CacheDisk
ResourceDisk
NvmeDisk

DiskControllerTypes

Specifies the disk controller type configured for the VM and VirtualMachineScaleSet. This property is only supported for virtual machines whose operating system disk and VM sku supports Generation 2 (https://docs.microsoft.com/en-us/azure/virtual-machines/generation-2), please check the HyperVGenerations capability returned as part of VM sku capabilities in the response of Microsoft.Compute SKUs api for the region contains V2 (https://docs.microsoft.com/rest/api/compute/resourceskus/list). For more information about Disk Controller Types supported please refer to https://aka.ms/azure-diskcontrollertypes.
KnownDiskControllerTypes can be used interchangeably with DiskControllerTypes, this enum contains the known values that the service supports.

Known values supported by the service

SCSI
NVMe

DiskCreateOptionTypes

Specifies how the virtual machine should be created.
KnownDiskCreateOptionTypes can be used interchangeably with DiskCreateOptionTypes, this enum contains the known values that the service supports.

Known values supported by the service

FromImage
Empty
Attach
Copy
Restore

DiskDeleteOptionTypes

Specifies the behavior of the managed disk when the VM gets deleted, for example whether the managed disk is deleted or detached. Supported values are: Delete. If this value is used, the managed disk is deleted when VM gets deleted. Detach. If this value is used, the managed disk is retained after VM gets deleted. Minimum api-version: 2021-03-01.
KnownDiskDeleteOptionTypes can be used interchangeably with DiskDeleteOptionTypes, this enum contains the known values that the service supports.

Known values supported by the service

Delete
Detach

DomainNameLabelScopeTypes

The Domain name label scope.The concatenation of the hashed domain name label that generated according to the policy from domain name label scope and vm index will be the domain name labels of the PublicIPAddress resources that will be created
KnownDomainNameLabelScopeTypes can be used interchangeably with DomainNameLabelScopeTypes, this enum contains the known values that the service supports.

Known values supported by the service

TenantReuse
SubscriptionReuse
ResourceGroupReuse
NoReuse

EvictionPolicy

Different kind of eviction policies
KnownEvictionPolicy can be used interchangeably with EvictionPolicy, this enum contains the known values that the service supports.

Known values supported by the service

Delete
Deallocate

IPVersion

Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'.
KnownIPVersion can be used interchangeably with IPVersion, this enum contains the known values that the service supports.

Known values supported by the service

IPv4
IPv6

LinuxPatchAssessmentMode

Specifies the mode of VM Guest Patch Assessment for the IaaS virtual machine.

Possible values are:

ImageDefault - You control the timing of patch assessments on a virtual machine.

AutomaticByPlatform - The platform will trigger periodic patch assessments. The property provisionVMAgent must be true.
KnownLinuxPatchAssessmentMode can be used interchangeably with LinuxPatchAssessmentMode, this enum contains the known values that the service supports.

Known values supported by the service

ImageDefault
AutomaticByPlatform

LinuxVMGuestPatchAutomaticByPlatformRebootSetting

Specifies the reboot setting for all AutomaticByPlatform patch installation operations.
KnownLinuxVMGuestPatchAutomaticByPlatformRebootSetting can be used interchangeably with LinuxVMGuestPatchAutomaticByPlatformRebootSetting, this enum contains the known values that the service supports.

Known values supported by the service

Unknown
IfRequired
Never
Always

LinuxVMGuestPatchMode

Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.
KnownLinuxVMGuestPatchMode can be used interchangeably with LinuxVMGuestPatchMode, this enum contains the known values that the service supports.

Known values supported by the service

ImageDefault
AutomaticByPlatform

ManagedServiceIdentityType

Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
KnownManagedServiceIdentityType can be used interchangeably with ManagedServiceIdentityType, this enum contains the known values that the service supports.

Known values supported by the service

None
SystemAssigned
UserAssigned
SystemAssigned,UserAssigned

Mode

Specifies the mode that ProxyAgent will execute on if the feature is enabled. ProxyAgent will start to audit or monitor but not enforce access control over requests to host endpoints in Audit mode, while in Enforce mode it will enforce access control. The default value is Enforce mode.
KnownMode can be used interchangeably with Mode, this enum contains the known values that the service supports.

Known values supported by the service

Audit
Enforce

NetworkApiVersion

specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations for Virtual Machine Scale Set with orchestration mode 'Flexible'
KnownNetworkApiVersion can be used interchangeably with NetworkApiVersion, this enum contains the known values that the service supports.

Known values supported by the service

2020-11-01

NetworkInterfaceAuxiliaryMode

Specifies whether the Auxiliary mode is enabled for the Network Interface resource.
KnownNetworkInterfaceAuxiliaryMode can be used interchangeably with NetworkInterfaceAuxiliaryMode, this enum contains the known values that the service supports.

Known values supported by the service

None
AcceleratedConnections
Floating

NetworkInterfaceAuxiliarySku

Specifies whether the Auxiliary sku is enabled for the Network Interface resource.
KnownNetworkInterfaceAuxiliarySku can be used interchangeably with NetworkInterfaceAuxiliarySku, this enum contains the known values that the service supports.

Known values supported by the service

None
A1
A2
A4
A8

OperatingSystemTypes

This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. Possible values are: Windows, Linux.
KnownOperatingSystemTypes can be used interchangeably with OperatingSystemTypes, this enum contains the known values that the service supports.

Known values supported by the service

Windows
Linux

Origin

The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system"
KnownOrigin can be used interchangeably with Origin, this enum contains the known values that the service supports.

Known values supported by the service

user
system
user,system

ProtocolTypes

Specifies the protocol of WinRM listener. Possible values are: http, https.
KnownProtocolTypes can be used interchangeably with ProtocolTypes, this enum contains the known values that the service supports.

Known values supported by the service

Http
Https

ProvisioningState

Alias for ProvisioningState

PublicIPAddressSkuName

Specify public IP sku name.
KnownPublicIPAddressSkuName can be used interchangeably with PublicIPAddressSkuName, this enum contains the known values that the service supports.

Known values supported by the service

Basic
Standard

PublicIPAddressSkuTier

Specify public IP sku tier
KnownPublicIPAddressSkuTier can be used interchangeably with PublicIPAddressSkuTier, this enum contains the known values that the service supports.

Known values supported by the service

Regional
Global

RegularPriorityAllocationStrategy

Regular VM Allocation strategy types for Compute Fleet
KnownRegularPriorityAllocationStrategy can be used interchangeably with RegularPriorityAllocationStrategy, this enum contains the known values that the service supports.

Known values supported by the service

LowestPrice
Prioritized

ResourceProvisioningState

The provisioning state of a resource type.
KnownResourceProvisioningState can be used interchangeably with ResourceProvisioningState, this enum contains the known values that the service supports.

Known values supported by the service

Succeeded
Failed
Canceled

SecurityEncryptionTypes

Specifies the EncryptionType of the managed disk. Note: It can be set for only Confidential VMs.
KnownSecurityEncryptionTypes can be used interchangeably with SecurityEncryptionTypes, this enum contains the known values that the service supports.

Known values supported by the service

VMGuestStateOnly
DiskWithVMGuestState
NonPersistedTPM

SecurityTypes

Specifies the SecurityType of the virtual machine. It has to be set to any specified value to enable UefiSettings. The default behavior is: UefiSettings will not be enabled unless this property is set.
KnownSecurityTypes can be used interchangeably with SecurityTypes, this enum contains the known values that the service supports.

Known values supported by the service

TrustedLaunch
ConfidentialVM

SettingNames

Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon.
KnownSettingNames can be used interchangeably with SettingNames, this enum contains the known values that the service supports.

Known values supported by the service

AutoLogon
FirstLogonCommands

SpotAllocationStrategy

Spot allocation strategy types for Compute Fleet
KnownSpotAllocationStrategy can be used interchangeably with SpotAllocationStrategy, this enum contains the known values that the service supports.

Known values supported by the service

PriceCapacityOptimized
LowestPrice
CapacityOptimized

StorageAccountTypes

Specifies the storage account type for the managed disk. Managed OS disk storage account type can only be set when you create the scale set. NOTE: UltraSSD_LRS can only be used with data disks. It cannot be used with OS Disk. Standard_LRS uses Standard HDD. StandardSSD_LRS uses Standard SSD. Premium_LRS uses Premium SSD. UltraSSD_LRS uses Ultra disk. Premium_ZRS uses Premium SSD zone redundant storage. StandardSSD_ZRS uses Standard SSD zone redundant storage. For more information regarding disks supported for Windows Virtual Machines, refer to https://docs.microsoft.com/azure/virtual-machines/windows/disks-types and, for Linux Virtual Machines, refer to https://docs.microsoft.com/azure/virtual-machines/linux/disks-types
KnownStorageAccountTypes can be used interchangeably with StorageAccountTypes, this enum contains the known values that the service supports.

Known values supported by the service

Standard_LRS
Premium_LRS
StandardSSD_LRS
UltraSSD_LRS
Premium_ZRS
StandardSSD_ZRS
PremiumV2_LRS

Versions

Api versions

WindowsPatchAssessmentMode

Specifies the mode of VM Guest patch assessment for the IaaS virtual machine.
KnownWindowsPatchAssessmentMode can be used interchangeably with WindowsPatchAssessmentMode, this enum contains the known values that the service supports.

Known values supported by the service

ImageDefault
AutomaticByPlatform

WindowsVMGuestPatchAutomaticByPlatformRebootSetting

Specifies the reboot setting for all AutomaticByPlatform patch installation operations.
KnownWindowsVMGuestPatchAutomaticByPlatformRebootSetting can be used interchangeably with WindowsVMGuestPatchAutomaticByPlatformRebootSetting, this enum contains the known values that the service supports.

Known values supported by the service

Unknown
IfRequired
Never
Always

WindowsVMGuestPatchMode

Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.
KnownWindowsVMGuestPatchMode can be used interchangeably with WindowsVMGuestPatchMode, this enum contains the known values that the service supports.

Known values supported by the service

Manual
AutomaticByOS
AutomaticByPlatform

Enums

KnownActionType

Known values of ActionType that the service accepts.

KnownCachingTypes

Known values of CachingTypes that the service accepts.

KnownCreatedByType

Known values of CreatedByType that the service accepts.

KnownDeleteOptions

Known values of DeleteOptions that the service accepts.

KnownDiffDiskOptions

Known values of DiffDiskOptions that the service accepts.

KnownDiffDiskPlacement

Known values of DiffDiskPlacement that the service accepts.

KnownDiskControllerTypes

Known values of DiskControllerTypes that the service accepts.

KnownDiskCreateOptionTypes

Known values of DiskCreateOptionTypes that the service accepts.

KnownDiskDeleteOptionTypes

Known values of DiskDeleteOptionTypes that the service accepts.

KnownDomainNameLabelScopeTypes

Known values of DomainNameLabelScopeTypes that the service accepts.

KnownEvictionPolicy

Known values of EvictionPolicy that the service accepts.

KnownIPVersion

Known values of IPVersion that the service accepts.

KnownLinuxPatchAssessmentMode

Known values of LinuxPatchAssessmentMode that the service accepts.

KnownLinuxVMGuestPatchAutomaticByPlatformRebootSetting

Known values of LinuxVMGuestPatchAutomaticByPlatformRebootSetting that the service accepts.

KnownLinuxVMGuestPatchMode

Known values of LinuxVMGuestPatchMode that the service accepts.

KnownManagedServiceIdentityType

Known values of ManagedServiceIdentityType that the service accepts.

KnownMode

Known values of Mode that the service accepts.

KnownNetworkApiVersion

Known values of NetworkApiVersion that the service accepts.

KnownNetworkInterfaceAuxiliaryMode

Known values of NetworkInterfaceAuxiliaryMode that the service accepts.

KnownNetworkInterfaceAuxiliarySku

Known values of NetworkInterfaceAuxiliarySku that the service accepts.

KnownOperatingSystemTypes

Known values of OperatingSystemTypes that the service accepts.

KnownOrigin

Known values of Origin that the service accepts.

KnownProtocolTypes

Known values of ProtocolTypes that the service accepts.

KnownPublicIPAddressSkuName

Known values of PublicIPAddressSkuName that the service accepts.

KnownPublicIPAddressSkuTier

Known values of PublicIPAddressSkuTier that the service accepts.

KnownRegularPriorityAllocationStrategy

Known values of RegularPriorityAllocationStrategy that the service accepts.

KnownResourceProvisioningState

Known values of ResourceProvisioningState that the service accepts.

KnownSecurityEncryptionTypes

Known values of SecurityEncryptionTypes that the service accepts.

KnownSecurityTypes

Known values of SecurityTypes that the service accepts.

KnownSettingNames

Known values of SettingNames that the service accepts.

KnownSpotAllocationStrategy

Known values of SpotAllocationStrategy that the service accepts.

KnownStorageAccountTypes

Known values of StorageAccountTypes that the service accepts.

KnownWindowsPatchAssessmentMode

Known values of WindowsPatchAssessmentMode that the service accepts.

KnownWindowsVMGuestPatchAutomaticByPlatformRebootSetting

Known values of WindowsVMGuestPatchAutomaticByPlatformRebootSetting that the service accepts.

KnownWindowsVMGuestPatchMode

Known values of WindowsVMGuestPatchMode that the service accepts.

Functions

restorePoller<TResponse, TResult>(AzureFleetClient, string, (args: any[]) => PollerLike<OperationState<TResult>, TResult>, RestorePollerOptions<TResult, PathUncheckedResponse>)

Creates a poller from the serialized state of another poller. This can be useful when you want to create pollers on a different host or a poller needs to be constructed after the original one is not in scope.

Function Details

restorePoller<TResponse, TResult>(AzureFleetClient, string, (args: any[]) => PollerLike<OperationState<TResult>, TResult>, RestorePollerOptions<TResult, PathUncheckedResponse>)

Creates a poller from the serialized state of another poller. This can be useful when you want to create pollers on a different host or a poller needs to be constructed after the original one is not in scope.

function restorePoller<TResponse, TResult>(client: AzureFleetClient, serializedState: string, sourceOperation: (args: any[]) => PollerLike<OperationState<TResult>, TResult>, options?: RestorePollerOptions<TResult, PathUncheckedResponse>): PollerLike<OperationState<TResult>, TResult>

Parameters

serializedState

string

sourceOperation

(args: any[]) => PollerLike<OperationState<TResult>, TResult>

Returns

PollerLike<OperationState<TResult>, TResult>