This pull request updates the Node.js version requirement across multiple files and tools in the repository. The changes ensure compatibility with Node.js version 22 and its corresponding type definitions. Resolves #37945. ***NO_CI***
@azure/arm-networkcloud client library samples for JavaScript (Beta)
These sample programs show how to use the JavaScript client libraries for @azure/arm-networkcloud in some common scenarios.
| File Name | Description |
|---|---|
| accessBridgesCreateOrUpdateSample.js | create a new access bridge or update the properties of the existing access bridge. x-ms-original-file: 2026-05-01-preview/AccessBridges_CreateOrUpdate.json |
| accessBridgesDeleteSample.js | delete the specified access bridge. x-ms-original-file: 2026-05-01-preview/AccessBridges_Delete.json |
| accessBridgesGetSample.js | get the properties of the provided access bridge. x-ms-original-file: 2026-05-01-preview/AccessBridges_Get.json |
| accessBridgesListByResourceGroupSample.js | get a list of access bridges in the provided resource group. x-ms-original-file: 2026-05-01-preview/AccessBridges_ListByResourceGroup.json |
| accessBridgesListBySubscriptionSample.js | get a list of access bridges in the provided subscription. x-ms-original-file: 2026-05-01-preview/AccessBridges_ListBySubscription.json |
| accessBridgesUpdateSample.js | update properties of the provided access bridge, or update tags associated with the access bridge. Properties and tag updates can be done independently. x-ms-original-file: 2026-05-01-preview/AccessBridges_Patch.json |
| agentPoolsCreateOrUpdateSample.js | create a new Kubernetes cluster agent pool or update the properties of the existing one. x-ms-original-file: 2026-05-01-preview/AgentPools_Create.json |
| agentPoolsDeleteSample.js | delete the provided Kubernetes cluster agent pool. x-ms-original-file: 2026-05-01-preview/AgentPools_Delete.json |
| agentPoolsGetSample.js | get properties of the provided Kubernetes cluster agent pool. x-ms-original-file: 2026-05-01-preview/AgentPools_Get.json |
| agentPoolsListByKubernetesClusterSample.js | get a list of agent pools for the provided Kubernetes cluster. x-ms-original-file: 2026-05-01-preview/AgentPools_ListByKubernetesCluster.json |
| agentPoolsUpdateSample.js | patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the Kubernetes cluster agent pool. Properties and tag updates can be done independently. x-ms-original-file: 2026-05-01-preview/AgentPools_Patch.json |
| bareMetalMachineKeySetsCreateOrUpdateSample.js | create a new bare metal machine key set or update the existing one for the provided cluster. x-ms-original-file: 2026-05-01-preview/BareMetalMachineKeySets_Create.json |
| bareMetalMachineKeySetsDeleteSample.js | delete the bare metal machine key set of the provided cluster. x-ms-original-file: 2026-05-01-preview/BareMetalMachineKeySets_Delete.json |
| bareMetalMachineKeySetsGetSample.js | get bare metal machine key set of the provided cluster. x-ms-original-file: 2026-05-01-preview/BareMetalMachineKeySets_Get.json |
| bareMetalMachineKeySetsListByClusterSample.js | get a list of bare metal machine key sets for the provided cluster. x-ms-original-file: 2026-05-01-preview/BareMetalMachineKeySets_ListByCluster.json |
| bareMetalMachineKeySetsUpdateSample.js | patch properties of bare metal machine key set for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. x-ms-original-file: 2026-05-01-preview/BareMetalMachineKeySets_Patch.json |
| bareMetalMachinesCordonSample.js | cordon the provided bare metal machine's Kubernetes node. x-ms-original-file: 2026-05-01-preview/BareMetalMachines_Cordon.json |
| bareMetalMachinesCreateOrUpdateSample.js | create a new bare metal machine or update the properties of the existing one. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. x-ms-original-file: 2026-05-01-preview/BareMetalMachines_Create.json |
| bareMetalMachinesDeleteSample.js | delete the provided bare metal machine. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. x-ms-original-file: 2026-05-01-preview/BareMetalMachines_Delete.json |
| bareMetalMachinesGetSample.js | get properties of the provided bare metal machine. x-ms-original-file: 2026-05-01-preview/BareMetalMachines_Get.json |
| bareMetalMachinesListByResourceGroupSample.js | get a list of bare metal machines in the provided resource group. x-ms-original-file: 2026-05-01-preview/BareMetalMachines_ListByResourceGroup.json |
| bareMetalMachinesListBySubscriptionSample.js | get a list of bare metal machines in the provided subscription. x-ms-original-file: 2026-05-01-preview/BareMetalMachines_ListBySubscription.json |
| bareMetalMachinesPowerOffSample.js | power off the provided bare metal machine. x-ms-original-file: 2026-05-01-preview/BareMetalMachines_PowerOff.json |
| bareMetalMachinesReimageSample.js | reimage the provided bare metal machine. x-ms-original-file: 2026-05-01-preview/BareMetalMachines_Reimage.json |
| bareMetalMachinesReplaceSample.js | replace the provided bare metal machine. x-ms-original-file: 2026-05-01-preview/BareMetalMachines_Replace.json |
| bareMetalMachinesRestartSample.js | restart the provided bare metal machine. x-ms-original-file: 2026-05-01-preview/BareMetalMachines_Restart.json |
| bareMetalMachinesRunCommandSample.js | run the command or the script on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. x-ms-original-file: 2026-05-01-preview/BareMetalMachines_RunCommand.json |
| bareMetalMachinesRunDataExtractsRestrictedSample.js | run one or more restricted data extractions on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. x-ms-original-file: 2026-05-01-preview/BareMetalMachines_RunDataExtractsRestricted.json |
| bareMetalMachinesRunDataExtractsSample.js | run one or more data extractions on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. x-ms-original-file: 2026-05-01-preview/BareMetalMachines_RunDataExtracts.json |
| bareMetalMachinesRunReadCommandsSample.js | run one or more read-only commands on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. x-ms-original-file: 2026-05-01-preview/BareMetalMachines_RunReadCommands_Hostname.json |
| bareMetalMachinesStartSample.js | start the provided bare metal machine. x-ms-original-file: 2026-05-01-preview/BareMetalMachines_Start.json |
| bareMetalMachinesUncordonSample.js | uncordon the provided bare metal machine's Kubernetes node. x-ms-original-file: 2026-05-01-preview/BareMetalMachines_Uncordon.json |
| bareMetalMachinesUpdateSample.js | patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. Properties and tag updates can be done independently. x-ms-original-file: 2026-05-01-preview/BareMetalMachines_Patch.json |
| bmcKeySetsCreateOrUpdateSample.js | create a new baseboard management controller key set or update the existing one for the provided cluster. x-ms-original-file: 2026-05-01-preview/BmcKeySets_Create.json |
| bmcKeySetsDeleteSample.js | delete the baseboard management controller key set of the provided cluster. x-ms-original-file: 2026-05-01-preview/BmcKeySets_Delete.json |
| bmcKeySetsGetSample.js | get baseboard management controller key set of the provided cluster. x-ms-original-file: 2026-05-01-preview/BmcKeySets_Get.json |
| bmcKeySetsListByClusterSample.js | get a list of baseboard management controller key sets for the provided cluster. x-ms-original-file: 2026-05-01-preview/BmcKeySets_ListByCluster.json |
| bmcKeySetsUpdateSample.js | patch properties of baseboard management controller key set for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. x-ms-original-file: 2026-05-01-preview/BmcKeySets_Patch.json |
| cloudServicesNetworksCreateOrUpdateSample.js | create a new cloud services network or update the properties of the existing cloud services network. x-ms-original-file: 2026-05-01-preview/CloudServicesNetworks_Create.json |
| cloudServicesNetworksDeleteSample.js | delete the provided cloud services network. x-ms-original-file: 2026-05-01-preview/CloudServicesNetworks_Delete.json |
| cloudServicesNetworksGetSample.js | get properties of the provided cloud services network. x-ms-original-file: 2026-05-01-preview/CloudServicesNetworks_Get.json |
| cloudServicesNetworksListByResourceGroupSample.js | get a list of cloud services networks in the provided resource group. x-ms-original-file: 2026-05-01-preview/CloudServicesNetworks_ListByResourceGroup.json |
| cloudServicesNetworksListBySubscriptionSample.js | get a list of cloud services networks in the provided subscription. x-ms-original-file: 2026-05-01-preview/CloudServicesNetworks_ListBySubscription.json |
| cloudServicesNetworksUpdateSample.js | update properties of the provided cloud services network, or update the tags associated with it. Properties and tag updates can be done independently. x-ms-original-file: 2026-05-01-preview/CloudServicesNetworks_Patch.json |
| clusterManagersCreateOrUpdateSample.js | create a new cluster manager or update properties of the cluster manager if it exists. x-ms-original-file: 2026-05-01-preview/ClusterManagers_Create.json |
| clusterManagersDeleteSample.js | delete the provided cluster manager. x-ms-original-file: 2026-05-01-preview/ClusterManagers_Delete.json |
| clusterManagersGetSample.js | get the properties of the provided cluster manager. x-ms-original-file: 2026-05-01-preview/ClusterManagers_Get.json |
| clusterManagersListByResourceGroupSample.js | get a list of cluster managers in the provided resource group. x-ms-original-file: 2026-05-01-preview/ClusterManagers_ListByResourceGroup.json |
| clusterManagersListBySubscriptionSample.js | get a list of cluster managers in the provided subscription. x-ms-original-file: 2026-05-01-preview/ClusterManagers_ListBySubscription.json |
| clusterManagersUpdateRelayPrivateEndpointConnectionSample.js | update the private endpoint connection for the Azure Relay namespace managed by the specified cluster manager. Use this operation to approve or reject a pending private endpoint connection request for the relay namespace managed by the cluster manager. x-ms-original-file: 2026-05-01-preview/ClusterManagers_UpdateRelayPrivateEndpointConnection_Approve.json |
| clusterManagersUpdateSample.js | patch properties of the provided cluster manager, or update the tags assigned to the cluster manager. Properties and tag updates can be done independently. x-ms-original-file: 2026-05-01-preview/ClusterManagers_Patch.json |
| clustersContinueUpdateVersionSample.js | trigger the continuation of an update for a cluster with a matching update strategy that has paused after completing a segment of the update. x-ms-original-file: 2026-05-01-preview/Clusters_ContinueUpdateVersion.json |
| clustersCreateOrUpdateSample.js | create a new cluster or update the properties of the cluster if it exists. x-ms-original-file: 2026-05-01-preview/Clusters_Create.json |
| clustersDeleteSample.js | delete the provided cluster. x-ms-original-file: 2026-05-01-preview/Clusters_Delete.json |
| clustersDeploySample.js | deploy the cluster using the rack configuration provided during creation. x-ms-original-file: 2026-05-01-preview/Clusters_Deploy.json |
| clustersGetSample.js | get properties of the provided cluster. x-ms-original-file: 2026-05-01-preview/Clusters_Get.json |
| clustersInspectSample.js | trigger an inspection of the cluster to perform validation and optional corrective actions based on the supplied additional actions and filters. x-ms-original-file: 2026-05-01-preview/Clusters_Inspect.json |
| clustersListByResourceGroupSample.js | get a list of clusters in the provided resource group. x-ms-original-file: 2026-05-01-preview/Clusters_ListByResourceGroup.json |
| clustersListBySubscriptionSample.js | get a list of clusters in the provided subscription. x-ms-original-file: 2026-05-01-preview/Clusters_ListBySubscription.json |
| clustersRotateCredentialSample.js | rotate the specified cluster credential. x-ms-original-file: 2026-05-01-preview/Clusters_RotateCredential.json |
| clustersScanRuntimeSample.js | triggers the execution of a runtime protection scan to detect and remediate detected issues, in accordance with the cluster configuration. x-ms-original-file: 2026-05-01-preview/Clusters_ScanRuntime.json |
| clustersUpdateSample.js | patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. x-ms-original-file: 2026-05-01-preview/Clusters_Patch_AggregatorOrSingleRackDefinition.json |
| clustersUpdateVersionSample.js | update the version of the provided cluster to one of the available supported versions. x-ms-original-file: 2026-05-01-preview/Clusters_UpdateVersion.json |
| consolesCreateOrUpdateSample.js | create a new virtual machine console or update the properties of the existing virtual machine console. x-ms-original-file: 2026-05-01-preview/Consoles_Create.json |
| consolesDeleteSample.js | delete the provided virtual machine console. x-ms-original-file: 2026-05-01-preview/Consoles_Delete.json |
| consolesGetSample.js | get properties of the provided virtual machine console. x-ms-original-file: 2026-05-01-preview/Consoles_Get.json |
| consolesListByVirtualMachineSample.js | get a list of consoles for the provided virtual machine. x-ms-original-file: 2026-05-01-preview/Consoles_ListByVirtualMachine.json |
| consolesUpdateSample.js | patch the properties of the provided virtual machine console, or update the tags associated with the virtual machine console. Properties and tag updates can be done independently. x-ms-original-file: 2026-05-01-preview/Consoles_Patch.json |
| kubernetesClusterFeaturesCreateOrUpdateSample.js | create a new Kubernetes cluster feature or update properties of the Kubernetes cluster feature if it exists. x-ms-original-file: 2026-05-01-preview/KubernetesClusterFeatures_Create.json |
| kubernetesClusterFeaturesDeleteSample.js | delete the provided Kubernetes cluster feature. x-ms-original-file: 2026-05-01-preview/KubernetesClusterFeatures_Delete.json |
| kubernetesClusterFeaturesGetSample.js | get properties of the provided the Kubernetes cluster feature. x-ms-original-file: 2026-05-01-preview/KubernetesClusterFeatures_Get.json |
| kubernetesClusterFeaturesListByKubernetesClusterSample.js | get a list of features for the provided Kubernetes cluster. x-ms-original-file: 2026-05-01-preview/KubernetesClusterFeatures_ListByKubernetesCluster.json |
| kubernetesClusterFeaturesUpdateSample.js | patch properties of the provided Kubernetes cluster feature. x-ms-original-file: 2026-05-01-preview/KubernetesClusterFeatures_Patch.json |
| kubernetesClustersCreateOrUpdateSample.js | create a new Kubernetes cluster or update the properties of the existing one. x-ms-original-file: 2026-05-01-preview/KubernetesClusters_Create.json |
| kubernetesClustersDeleteSample.js | delete the provided Kubernetes cluster. x-ms-original-file: 2026-05-01-preview/KubernetesClusters_Delete.json |
| kubernetesClustersGetSample.js | get properties of the provided the Kubernetes cluster. x-ms-original-file: 2026-05-01-preview/KubernetesClusters_Get.json |
| kubernetesClustersListByResourceGroupSample.js | get a list of Kubernetes clusters in the provided resource group. x-ms-original-file: 2026-05-01-preview/KubernetesClusters_ListByResourceGroup.json |
| kubernetesClustersListBySubscriptionSample.js | get a list of Kubernetes clusters in the provided subscription. x-ms-original-file: 2026-05-01-preview/KubernetesClusters_ListBySubscription.json |
| kubernetesClustersRestartNodeSample.js | restart a targeted node of a Kubernetes cluster. x-ms-original-file: 2026-05-01-preview/KubernetesClusters_RestartNode.json |
| kubernetesClustersUpdateSample.js | patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes cluster. Properties and tag updates can be done independently. x-ms-original-file: 2026-05-01-preview/KubernetesClusters_Patch.json |
| kubernetesVersionsCreateOrUpdateSample.js | create the Kubernetes version resource or update its tags. This resource is system managed and should only be created with the name "default". x-ms-original-file: 2026-05-01-preview/KubernetesVersions_Create.json |
| kubernetesVersionsDeleteSample.js | delete the specified Kubernetes version resource. x-ms-original-file: 2026-05-01-preview/KubernetesVersions_Delete.json |
| kubernetesVersionsGetSample.js | retrieve the Kubernetes version resource that describes the available Kubernetes versions for deployment. x-ms-original-file: 2026-05-01-preview/KubernetesVersions_Get.json |
| kubernetesVersionsListByResourceGroupSample.js | get a list of Kubernetes version resources in the provided resource group. x-ms-original-file: 2026-05-01-preview/KubernetesVersions_ListByResourceGroup.json |
| kubernetesVersionsListBySubscriptionSample.js | get a list of Kubernetes version resources in the provided subscription. x-ms-original-file: 2026-05-01-preview/KubernetesVersions_ListBySubscription.json |
| kubernetesVersionsUpdateSample.js | update tags associated with the Kubernetes version resource. No other properties are supported for update. x-ms-original-file: 2026-05-01-preview/KubernetesVersions_UpdateTags.json |
| l2NetworksCreateOrUpdateSample.js | create a new layer 2 (L2) network or update the properties of the existing network. x-ms-original-file: 2026-05-01-preview/L2Networks_Create.json |
| l2NetworksDeleteSample.js | delete the provided layer 2 (L2) network. x-ms-original-file: 2026-05-01-preview/L2Networks_Delete.json |
| l2NetworksGetSample.js | get properties of the provided layer 2 (L2) network. x-ms-original-file: 2026-05-01-preview/L2Networks_Get.json |
| l2NetworksListByResourceGroupSample.js | get a list of layer 2 (L2) networks in the provided resource group. x-ms-original-file: 2026-05-01-preview/L2Networks_ListByResourceGroup.json |
| l2NetworksListBySubscriptionSample.js | get a list of layer 2 (L2) networks in the provided subscription. x-ms-original-file: 2026-05-01-preview/L2Networks_ListBySubscription.json |
| l2NetworksUpdateSample.js | update tags associated with the provided layer 2 (L2) network. x-ms-original-file: 2026-05-01-preview/L2Networks_Patch.json |
| l3NetworksCreateOrUpdateSample.js | create a new layer 3 (L3) network or update the properties of the existing network. x-ms-original-file: 2026-05-01-preview/L3Networks_Create.json |
| l3NetworksDeleteSample.js | delete the provided layer 3 (L3) network. x-ms-original-file: 2026-05-01-preview/L3Networks_Delete.json |
| l3NetworksGetSample.js | get properties of the provided layer 3 (L3) network. x-ms-original-file: 2026-05-01-preview/L3Networks_Get.json |
| l3NetworksListByResourceGroupSample.js | get a list of layer 3 (L3) networks in the provided resource group. x-ms-original-file: 2026-05-01-preview/L3Networks_ListByResourceGroup.json |
| l3NetworksListBySubscriptionSample.js | get a list of layer 3 (L3) networks in the provided subscription. x-ms-original-file: 2026-05-01-preview/L3Networks_ListBySubscription.json |
| l3NetworksUpdateSample.js | update tags associated with the provided layer 3 (L3) network. x-ms-original-file: 2026-05-01-preview/L3Networks_Patch.json |
| metricsConfigurationsCreateOrUpdateSample.js | create new or update the existing metrics configuration of the provided cluster. x-ms-original-file: 2026-05-01-preview/ClusterMetricsConfigurations_Create.json |
| metricsConfigurationsDeleteSample.js | delete the metrics configuration of the provided cluster. x-ms-original-file: 2026-05-01-preview/ClusterMetricsConfigurations_Delete.json |
| metricsConfigurationsGetSample.js | get metrics configuration of the provided cluster. x-ms-original-file: 2026-05-01-preview/ClusterMetricsConfigurations_Get.json |
| metricsConfigurationsListByClusterSample.js | get a list of metrics configurations for the provided cluster. x-ms-original-file: 2026-05-01-preview/ClusterMetricsConfigurations_ListByCluster.json |
| metricsConfigurationsUpdateSample.js | patch properties of metrics configuration for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. x-ms-original-file: 2026-05-01-preview/ClusterMetricsConfigurations_Patch.json |
| operationsListSample.js | list the operations for the provider x-ms-original-file: 2026-05-01-preview/Operations_List.json |
| rackSkusGetSample.js | get the properties of the provided rack SKU. x-ms-original-file: 2026-05-01-preview/RackSkus_Get.json |
| rackSkusListBySubscriptionSample.js | get a list of rack SKUs in the provided subscription. x-ms-original-file: 2026-05-01-preview/RackSkus_ListBySubscription.json |
| racksCreateOrUpdateSample.js | create a new rack or update properties of the existing one. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. x-ms-original-file: 2026-05-01-preview/Racks_Create.json |
| racksDeleteSample.js | delete the provided rack. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. x-ms-original-file: 2026-05-01-preview/Racks_Delete.json |
| racksGetSample.js | get properties of the provided rack. x-ms-original-file: 2026-05-01-preview/Racks_Get.json |
| racksListByResourceGroupSample.js | get a list of racks in the provided resource group. x-ms-original-file: 2026-05-01-preview/Racks_ListByResourceGroup.json |
| racksListBySubscriptionSample.js | get a list of racks in the provided subscription. x-ms-original-file: 2026-05-01-preview/Racks_ListBySubscription.json |
| racksUpdateSample.js | patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates can be done independently. x-ms-original-file: 2026-05-01-preview/Racks_Patch.json |
| storageAppliancesCreateOrUpdateSample.js | create a new storage appliance or update the properties of the existing one. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. x-ms-original-file: 2026-05-01-preview/StorageAppliances_Create.json |
| storageAppliancesDeleteSample.js | delete the provided storage appliance. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. x-ms-original-file: 2026-05-01-preview/StorageAppliances_Delete.json |
| storageAppliancesDisableRemoteVendorManagementSample.js | disable remote vendor management of the provided storage appliance. x-ms-original-file: 2026-05-01-preview/StorageAppliances_DisableRemoteVendorManagement.json |
| storageAppliancesEnableRemoteVendorManagementSample.js | enable remote vendor management of the provided storage appliance. x-ms-original-file: 2026-05-01-preview/StorageAppliances_EnableRemoteVendorManagement.json |
| storageAppliancesGetSample.js | get properties of the provided storage appliance. x-ms-original-file: 2026-05-01-preview/StorageAppliances_Get.json |
| storageAppliancesListByResourceGroupSample.js | get a list of storage appliances in the provided resource group. x-ms-original-file: 2026-05-01-preview/StorageAppliances_ListByResourceGroup.json |
| storageAppliancesListBySubscriptionSample.js | get a list of storage appliances in the provided subscription. x-ms-original-file: 2026-05-01-preview/StorageAppliances_ListBySubscription.json |
| storageAppliancesRunReadCommandsSample.js | run one or more read-only commands on the provided storage appliance. x-ms-original-file: 2026-05-01-preview/StorageAppliances_RunReadCommands.json |
| storageAppliancesUpdateSample.js | update properties of the provided storage appliance, or update tags associated with the storage appliance Properties and tag updates can be done independently. x-ms-original-file: 2026-05-01-preview/StorageAppliances_Patch.json |
| trunkedNetworksCreateOrUpdateSample.js | create a new trunked network or update the properties of the existing trunked network. x-ms-original-file: 2026-05-01-preview/TrunkedNetworks_Create.json |
| trunkedNetworksDeleteSample.js | delete the provided trunked network. x-ms-original-file: 2026-05-01-preview/TrunkedNetworks_Delete.json |
| trunkedNetworksGetSample.js | get properties of the provided trunked network. x-ms-original-file: 2026-05-01-preview/TrunkedNetworks_Get.json |
| trunkedNetworksListByResourceGroupSample.js | get a list of trunked networks in the provided resource group. x-ms-original-file: 2026-05-01-preview/TrunkedNetworks_ListByResourceGroup.json |
| trunkedNetworksListBySubscriptionSample.js | get a list of trunked networks in the provided subscription. x-ms-original-file: 2026-05-01-preview/TrunkedNetworks_ListBySubscription.json |
| trunkedNetworksUpdateSample.js | update tags associated with the provided trunked network. x-ms-original-file: 2026-05-01-preview/TrunkedNetworks_Patch.json |
| virtualMachinesAssignRelaySample.js | assigns a relay to the specified Microsoft.HybridCompute machine associated with the provided virtual machine. x-ms-original-file: 2026-05-01-preview/VirtualMachines_AssignRelay.json |
| virtualMachinesCreateOrUpdateSample.js | create a new virtual machine or update the properties of the existing virtual machine. x-ms-original-file: 2026-05-01-preview/VirtualMachines_Create.json |
| virtualMachinesDeleteSample.js | delete the provided virtual machine. x-ms-original-file: 2026-05-01-preview/VirtualMachines_Delete.json |
| virtualMachinesGetSample.js | get properties of the provided virtual machine. x-ms-original-file: 2026-05-01-preview/VirtualMachines_Get.json |
| virtualMachinesListByResourceGroupSample.js | get a list of virtual machines in the provided resource group. x-ms-original-file: 2026-05-01-preview/VirtualMachines_ListByResourceGroup.json |
| virtualMachinesListBySubscriptionSample.js | get a list of virtual machines in the provided subscription. x-ms-original-file: 2026-05-01-preview/VirtualMachines_ListBySubscription.json |
| virtualMachinesPowerOffSample.js | power off the provided virtual machine. x-ms-original-file: 2026-05-01-preview/VirtualMachines_PowerOff.json |
| virtualMachinesReimageSample.js | reimage the provided virtual machine. x-ms-original-file: 2026-05-01-preview/VirtualMachines_Reimage.json |
| virtualMachinesRestartSample.js | restart the provided virtual machine. x-ms-original-file: 2026-05-01-preview/VirtualMachines_Restart.json |
| virtualMachinesStartSample.js | start the provided virtual machine. x-ms-original-file: 2026-05-01-preview/VirtualMachines_Start.json |
| virtualMachinesUpdateSample.js | patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. Properties and tag updates can be done independently. x-ms-original-file: 2026-05-01-preview/VirtualMachines_Patch.json |
| volumesCreateOrUpdateSample.js | create a new volume or update the properties of the existing one. x-ms-original-file: 2026-05-01-preview/Volumes_Create.json |
| volumesDeleteSample.js | delete the provided volume. x-ms-original-file: 2026-05-01-preview/Volumes_Delete.json |
| volumesGetSample.js | get properties of the provided volume. x-ms-original-file: 2026-05-01-preview/Volumes_Get.json |
| volumesListByResourceGroupSample.js | get a list of volumes in the provided resource group. x-ms-original-file: 2026-05-01-preview/Volumes_ListByResourceGroup.json |
| volumesListBySubscriptionSample.js | get a list of volumes in the provided subscription. x-ms-original-file: 2026-05-01-preview/Volumes_ListBySubscription.json |
| volumesUpdateSample.js | update tags associated with the provided volume. x-ms-original-file: 2026-05-01-preview/Volumes_Patch.json |
Prerequisites
The sample programs are compatible with LTS versions of Node.js.
You need an Azure subscription to run these sample programs.
Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function.
Adapting the samples to run in the browser may require some additional consideration. For details, please see the package README.
Setup
To run the samples using the published version of the package:
- Install the dependencies using
npm:
npm install
-
Edit the file
sample.env, adding the correct credentials to access the Azure service and run the samples. Then rename the file fromsample.envto just.env. The sample programs will read this file automatically. -
Run whichever samples you like (note that some samples may require additional setup, see the table above):
node accessBridgesCreateOrUpdateSample.js
Alternatively, run a single sample with the required environment variables set (setting up the .env file is not required if you do this), for example (cross-platform):
node accessBridgesCreateOrUpdateSample.js
Next Steps
Take a look at our API Documentation for more information about the APIs that are available in the clients.