From 2e29f8b7722d50a9bc9e90ee76ac38df65f5e3f0 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Sat, 6 May 2023 16:38:37 +0800 Subject: [PATCH 1/2] compute release --- common/config/rush/pnpm-lock.yaml | 12 +- sdk/compute/arm-compute/CHANGELOG.md | 62 +- sdk/compute/arm-compute/_meta.json | 8 +- sdk/compute/arm-compute/assets.json | 2 +- sdk/compute/arm-compute/package.json | 8 +- .../arm-compute/review/arm-compute.api.md | 404 ++-- .../availabilitySetsCreateOrUpdateSample.ts | 2 +- .../availabilitySetsDeleteSample.ts | 12 +- .../samples-dev/availabilitySetsGetSample.ts | 12 +- ...vailabilitySetsListAvailableSizesSample.ts | 12 +- ...vailabilitySetsListBySubscriptionSample.ts | 2 +- .../samples-dev/availabilitySetsListSample.ts | 12 +- .../availabilitySetsUpdateSample.ts | 12 +- ...tyReservationGroupsCreateOrUpdateSample.ts | 2 +- .../capacityReservationGroupsDeleteSample.ts | 12 +- .../capacityReservationGroupsGetSample.ts | 2 +- ...ervationGroupsListByResourceGroupSample.ts | 2 +- ...servationGroupsListBySubscriptionSample.ts | 2 +- .../capacityReservationGroupsUpdateSample.ts | 12 +- ...apacityReservationsCreateOrUpdateSample.ts | 2 +- .../capacityReservationsDeleteSample.ts | 12 +- .../capacityReservationsGetSample.ts | 2 +- ...onsListByCapacityReservationGroupSample.ts | 2 +- .../capacityReservationsUpdateSample.ts | 12 +- ...dedicatedHostGroupsCreateOrUpdateSample.ts | 4 +- .../dedicatedHostGroupsDeleteSample.ts | 12 +- .../dedicatedHostGroupsGetSample.ts | 4 +- ...atedHostGroupsListByResourceGroupSample.ts | 12 +- ...catedHostGroupsListBySubscriptionSample.ts | 12 +- .../dedicatedHostGroupsUpdateSample.ts | 12 +- .../dedicatedHostsCreateOrUpdateSample.ts | 2 +- .../samples-dev/dedicatedHostsDeleteSample.ts | 12 +- .../samples-dev/dedicatedHostsGetSample.ts | 12 +- .../dedicatedHostsListAvailableSizesSample.ts | 47 + .../dedicatedHostsListByHostGroupSample.ts | 12 +- .../dedicatedHostsRestartSample.ts | 2 +- .../samples-dev/dedicatedHostsUpdateSample.ts | 46 +- .../samples-dev/imagesCreateOrUpdateSample.ts | 20 +- .../samples-dev/imagesDeleteSample.ts | 12 +- .../samples-dev/imagesGetSample.ts | 2 +- .../imagesListByResourceGroupSample.ts | 2 +- .../samples-dev/imagesListSample.ts | 2 +- .../samples-dev/imagesUpdateSample.ts | 2 +- ...lyticsExportRequestRateByIntervalSample.ts | 2 +- ...gAnalyticsExportThrottledRequestsSample.ts | 2 +- .../samples-dev/operationsListSample.ts | 4 +- ...mityPlacementGroupsCreateOrUpdateSample.ts | 2 +- .../proximityPlacementGroupsDeleteSample.ts | 6 +- .../proximityPlacementGroupsGetSample.ts | 6 +- ...lacementGroupsListByResourceGroupSample.ts | 6 +- ...PlacementGroupsListBySubscriptionSample.ts | 6 +- .../proximityPlacementGroupsUpdateSample.ts | 6 +- ...orePointCollectionsCreateOrUpdateSample.ts | 4 +- .../restorePointCollectionsDeleteSample.ts | 12 +- .../restorePointCollectionsGetSample.ts | 4 +- .../restorePointCollectionsListAllSample.ts | 2 +- .../restorePointCollectionsListSample.ts | 2 +- .../restorePointCollectionsUpdateSample.ts | 12 +- .../samples-dev/restorePointsCreateSample.ts | 4 +- .../samples-dev/restorePointsDeleteSample.ts | 12 +- .../samples-dev/restorePointsGetSample.ts | 4 +- .../samples-dev/sshPublicKeysCreateSample.ts | 2 +- .../samples-dev/sshPublicKeysDeleteSample.ts | 12 +- .../sshPublicKeysGenerateKeyPairSample.ts | 2 +- .../samples-dev/sshPublicKeysGetSample.ts | 2 +- .../sshPublicKeysListByResourceGroupSample.ts | 12 +- .../sshPublicKeysListBySubscriptionSample.ts | 12 +- .../samples-dev/sshPublicKeysUpdateSample.ts | 12 +- .../samples-dev/usageListSample.ts | 4 +- .../virtualMachineExtensionImagesGetSample.ts | 12 +- ...alMachineExtensionImagesListTypesSample.ts | 12 +- ...achineExtensionImagesListVersionsSample.ts | 12 +- ...alMachineExtensionsCreateOrUpdateSample.ts | 16 +- .../virtualMachineExtensionsDeleteSample.ts | 12 +- .../virtualMachineExtensionsGetSample.ts | 16 +- .../virtualMachineExtensionsListSample.ts | 12 +- .../virtualMachineExtensionsUpdateSample.ts | 2 +- .../virtualMachineImagesEdgeZoneGetSample.ts | 4 +- ...alMachineImagesEdgeZoneListOffersSample.ts | 4 +- ...chineImagesEdgeZoneListPublishersSample.ts | 4 +- .../virtualMachineImagesEdgeZoneListSample.ts | 4 +- ...tualMachineImagesEdgeZoneListSkusSample.ts | 4 +- .../virtualMachineImagesGetSample.ts | 12 +- ...irtualMachineImagesListByEdgeZoneSample.ts | 4 +- .../virtualMachineImagesListOffersSample.ts | 12 +- ...irtualMachineImagesListPublishersSample.ts | 12 +- .../virtualMachineImagesListSample.ts | 12 +- .../virtualMachineImagesListSkusSample.ts | 12 +- ...lMachineRunCommandsCreateOrUpdateSample.ts | 17 +- .../virtualMachineRunCommandsDeleteSample.ts | 2 +- ...ineRunCommandsGetByVirtualMachineSample.ts | 2 +- .../virtualMachineRunCommandsGetSample.ts | 2 +- ...neRunCommandsListByVirtualMachineSample.ts | 2 +- .../virtualMachineRunCommandsListSample.ts | 2 +- .../virtualMachineRunCommandsUpdateSample.ts | 21 +- ...eScaleSetExtensionsCreateOrUpdateSample.ts | 12 +- ...alMachineScaleSetExtensionsDeleteSample.ts | 12 +- ...rtualMachineScaleSetExtensionsGetSample.ts | 12 +- ...tualMachineScaleSetExtensionsListSample.ts | 12 +- ...alMachineScaleSetExtensionsUpdateSample.ts | 12 +- ...hineScaleSetRollingUpgradesCancelSample.ts | 12 +- ...eScaleSetRollingUpgradesGetLatestSample.ts | 12 +- ...lingUpgradesStartExtensionUpgradeSample.ts | 2 +- ...eSetRollingUpgradesStartOSUpgradeSample.ts | 12 +- ...caleSetVMExtensionsCreateOrUpdateSample.ts | 2 +- ...MachineScaleSetVMExtensionsDeleteSample.ts | 2 +- ...ualMachineScaleSetVMExtensionsGetSample.ts | 2 +- ...alMachineScaleSetVMExtensionsListSample.ts | 2 +- ...MachineScaleSetVMExtensionsUpdateSample.ts | 2 +- ...aleSetVMRunCommandsCreateOrUpdateSample.ts | 21 +- ...achineScaleSetVMRunCommandsDeleteSample.ts | 2 +- ...alMachineScaleSetVMRunCommandsGetSample.ts | 2 +- ...lMachineScaleSetVMRunCommandsListSample.ts | 2 +- ...achineScaleSetVMRunCommandsUpdateSample.ts | 10 +- ...rtualMachineScaleSetVMSDeallocateSample.ts | 12 +- .../virtualMachineScaleSetVMSDeleteSample.ts | 2 +- ...MachineScaleSetVMSGetInstanceViewSample.ts | 2 +- .../virtualMachineScaleSetVMSGetSample.ts | 4 +- .../virtualMachineScaleSetVMSListSample.ts | 12 +- ...hineScaleSetVMSPerformMaintenanceSample.ts | 12 +- ...virtualMachineScaleSetVMSPowerOffSample.ts | 12 +- ...virtualMachineScaleSetVMSRedeploySample.ts | 12 +- ...rtualMachineScaleSetVMSReimageAllSample.ts | 12 +- .../virtualMachineScaleSetVMSReimageSample.ts | 12 +- .../virtualMachineScaleSetVMSRestartSample.ts | 12 +- ...SetVMSRetrieveBootDiagnosticsDataSample.ts | 2 +- ...rtualMachineScaleSetVMSRunCommandSample.ts | 2 +- ...achineScaleSetVMSSimulateEvictionSample.ts | 2 +- .../virtualMachineScaleSetVMSStartSample.ts | 12 +- .../virtualMachineScaleSetVMSUpdateSample.ts | 14 +- ...SetsConvertToSinglePlacementGroupSample.ts | 12 +- ...ualMachineScaleSetsCreateOrUpdateSample.ts | 150 +- ...virtualMachineScaleSetsDeallocateSample.ts | 14 +- ...alMachineScaleSetsDeleteInstancesSample.ts | 12 +- .../virtualMachineScaleSetsDeleteSample.ts | 2 +- ...iceFabricPlatformUpdateDomainWalkSample.ts | 12 +- ...alMachineScaleSetsGetInstanceViewSample.ts | 12 +- ...chineScaleSetsGetOSUpgradeHistorySample.ts | 12 +- .../virtualMachineScaleSetsGetSample.ts | 8 +- .../virtualMachineScaleSetsListAllSample.ts | 12 +- ...ualMachineScaleSetsListByLocationSample.ts | 2 +- .../virtualMachineScaleSetsListSample.ts | 12 +- .../virtualMachineScaleSetsListSkusSample.ts | 12 +- ...achineScaleSetsPerformMaintenanceSample.ts | 12 +- .../virtualMachineScaleSetsPowerOffSample.ts | 12 +- .../virtualMachineScaleSetsReapplySample.ts | 68 + .../virtualMachineScaleSetsRedeploySample.ts | 12 +- ...virtualMachineScaleSetsReimageAllSample.ts | 12 +- .../virtualMachineScaleSetsReimageSample.ts | 12 +- .../virtualMachineScaleSetsRestartSample.ts | 12 +- ...eSetsSetOrchestrationServiceStateSample.ts | 12 +- .../virtualMachineScaleSetsStartSample.ts | 12 +- ...alMachineScaleSetsUpdateInstancesSample.ts | 12 +- .../virtualMachineScaleSetsUpdateSample.ts | 14 +- .../virtualMachineSizesListSample.ts | 4 +- .../virtualMachinesAssessPatchesSample.ts | 2 +- .../virtualMachinesCaptureSample.ts | 12 +- ...tualMachinesConvertToManagedDisksSample.ts | 12 +- .../virtualMachinesCreateOrUpdateSample.ts | 96 +- .../virtualMachinesDeallocateSample.ts | 12 +- .../virtualMachinesDeleteSample.ts | 2 +- .../virtualMachinesGeneralizeSample.ts | 6 +- .../samples-dev/virtualMachinesGetSample.ts | 8 +- .../virtualMachinesInstallPatchesSample.ts | 2 +- .../virtualMachinesInstanceViewSample.ts | 4 +- .../virtualMachinesListAllSample.ts | 12 +- ...virtualMachinesListAvailableSizesSample.ts | 2 +- .../virtualMachinesListByLocationSample.ts | 2 +- .../samples-dev/virtualMachinesListSample.ts | 12 +- ...virtualMachinesPerformMaintenanceSample.ts | 12 +- .../virtualMachinesPowerOffSample.ts | 12 +- .../virtualMachinesReapplySample.ts | 2 +- .../virtualMachinesRedeploySample.ts | 12 +- .../virtualMachinesReimageSample.ts | 4 +- .../virtualMachinesRestartSample.ts | 12 +- ...chinesRetrieveBootDiagnosticsDataSample.ts | 2 +- .../virtualMachinesRunCommandSample.ts | 2 +- .../virtualMachinesSimulateEvictionSample.ts | 2 +- .../samples-dev/virtualMachinesStartSample.ts | 12 +- .../virtualMachinesUpdateSample.ts | 4 +- .../samples/{v20 => v21}/javascript/README.md | 906 ++++----- .../availabilitySetsCreateOrUpdateSample.js | 2 +- .../availabilitySetsDeleteSample.js | 12 +- .../javascript/availabilitySetsGetSample.js | 12 +- ...vailabilitySetsListAvailableSizesSample.js | 12 +- ...vailabilitySetsListBySubscriptionSample.js | 2 +- .../javascript/availabilitySetsListSample.js | 12 +- .../availabilitySetsUpdateSample.js | 12 +- ...tyReservationGroupsCreateOrUpdateSample.js | 2 +- .../capacityReservationGroupsDeleteSample.js | 12 +- .../capacityReservationGroupsGetSample.js | 2 +- ...ervationGroupsListByResourceGroupSample.js | 2 +- ...servationGroupsListBySubscriptionSample.js | 2 +- .../capacityReservationGroupsUpdateSample.js | 12 +- ...apacityReservationsCreateOrUpdateSample.js | 2 +- .../capacityReservationsDeleteSample.js | 12 +- .../capacityReservationsGetSample.js | 2 +- ...onsListByCapacityReservationGroupSample.js | 2 +- .../capacityReservationsUpdateSample.js | 12 +- ...erviceOperatingSystemsGetOSFamilySample.js | 0 ...rviceOperatingSystemsGetOSVersionSample.js | 0 ...iceOperatingSystemsListOSFamiliesSample.js | 0 ...iceOperatingSystemsListOSVersionsSample.js | 0 .../cloudServiceRoleInstancesDeleteSample.js | 0 ...rviceRoleInstancesGetInstanceViewSample.js | 0 ...RoleInstancesGetRemoteDesktopFileSample.js | 0 .../cloudServiceRoleInstancesGetSample.js | 0 .../cloudServiceRoleInstancesListSample.js | 0 .../cloudServiceRoleInstancesRebuildSample.js | 0 .../cloudServiceRoleInstancesReimageSample.js | 0 .../cloudServiceRoleInstancesRestartSample.js | 0 .../javascript/cloudServiceRolesGetSample.js | 0 .../javascript/cloudServiceRolesListSample.js | 0 .../cloudServicesCreateOrUpdateSample.js | 0 .../cloudServicesDeleteInstancesSample.js | 0 .../javascript/cloudServicesDeleteSample.js | 0 .../cloudServicesGetInstanceViewSample.js | 0 .../javascript/cloudServicesGetSample.js | 0 .../javascript/cloudServicesListAllSample.js | 0 .../javascript/cloudServicesListSample.js | 0 .../javascript/cloudServicesPowerOffSample.js | 0 .../javascript/cloudServicesRebuildSample.js | 0 .../javascript/cloudServicesReimageSample.js | 0 .../javascript/cloudServicesRestartSample.js | 0 .../javascript/cloudServicesStartSample.js | 0 ...rvicesUpdateDomainGetUpdateDomainSample.js | 0 ...icesUpdateDomainListUpdateDomainsSample.js | 0 ...vicesUpdateDomainWalkUpdateDomainSample.js | 0 .../javascript/cloudServicesUpdateSample.js | 0 .../javascript/communityGalleriesGetSample.js | 0 .../communityGalleryImageVersionsGetSample.js | 0 ...communityGalleryImageVersionsListSample.js | 0 .../communityGalleryImagesGetSample.js | 0 .../communityGalleryImagesListSample.js | 0 ...dedicatedHostGroupsCreateOrUpdateSample.js | 4 +- .../dedicatedHostGroupsDeleteSample.js | 12 +- .../dedicatedHostGroupsGetSample.js | 4 +- ...atedHostGroupsListByResourceGroupSample.js | 12 +- ...catedHostGroupsListBySubscriptionSample.js | 12 +- .../dedicatedHostGroupsUpdateSample.js | 12 +- .../dedicatedHostsCreateOrUpdateSample.js | 2 +- .../javascript/dedicatedHostsDeleteSample.js | 12 +- .../javascript/dedicatedHostsGetSample.js | 11 +- .../dedicatedHostsListAvailableSizesSample.js | 43 + .../dedicatedHostsListByHostGroupSample.js | 12 +- .../javascript/dedicatedHostsRestartSample.js | 2 +- .../javascript/dedicatedHostsUpdateSample.js | 44 +- .../diskAccessesCreateOrUpdateSample.js | 0 ...sDeleteAPrivateEndpointConnectionSample.js | 0 .../javascript/diskAccessesDeleteSample.js | 0 ...ssesGetAPrivateEndpointConnectionSample.js | 0 ...skAccessesGetPrivateLinkResourcesSample.js | 0 .../javascript/diskAccessesGetSample.js | 0 .../diskAccessesListByResourceGroupSample.js | 0 ...sesListPrivateEndpointConnectionsSample.js | 0 .../javascript/diskAccessesListSample.js | 0 ...sUpdateAPrivateEndpointConnectionSample.js | 0 .../javascript/diskAccessesUpdateSample.js | 0 .../diskEncryptionSetsCreateOrUpdateSample.js | 0 .../diskEncryptionSetsDeleteSample.js | 0 .../javascript/diskEncryptionSetsGetSample.js | 0 ...yptionSetsListAssociatedResourcesSample.js | 0 ...EncryptionSetsListByResourceGroupSample.js | 0 .../diskEncryptionSetsListSample.js | 0 .../diskEncryptionSetsUpdateSample.js | 0 .../javascript/diskRestorePointGetSample.js | 0 .../diskRestorePointGrantAccessSample.js | 0 ...iskRestorePointListByRestorePointSample.js | 0 .../diskRestorePointRevokeAccessSample.js | 0 .../javascript/disksCreateOrUpdateSample.js | 0 .../javascript/disksDeleteSample.js | 0 .../{v20 => v21}/javascript/disksGetSample.js | 0 .../javascript/disksGrantAccessSample.js | 0 .../disksListByResourceGroupSample.js | 0 .../javascript/disksListSample.js | 0 .../javascript/disksRevokeAccessSample.js | 0 .../javascript/disksUpdateSample.js | 0 .../galleriesCreateOrUpdateSample.js | 0 .../javascript/galleriesDeleteSample.js | 0 .../javascript/galleriesGetSample.js | 0 .../galleriesListByResourceGroupSample.js | 0 .../javascript/galleriesListSample.js | 0 .../javascript/galleriesUpdateSample.js | 0 ...ApplicationVersionsCreateOrUpdateSample.js | 0 .../galleryApplicationVersionsDeleteSample.js | 0 .../galleryApplicationVersionsGetSample.js | 0 ...nVersionsListByGalleryApplicationSample.js | 0 .../galleryApplicationVersionsUpdateSample.js | 0 ...galleryApplicationsCreateOrUpdateSample.js | 0 .../galleryApplicationsDeleteSample.js | 0 .../galleryApplicationsGetSample.js | 0 .../galleryApplicationsListByGallerySample.js | 0 .../galleryApplicationsUpdateSample.js | 0 ...alleryImageVersionsCreateOrUpdateSample.js | 0 .../galleryImageVersionsDeleteSample.js | 0 .../galleryImageVersionsGetSample.js | 0 ...ryImageVersionsListByGalleryImageSample.js | 0 .../galleryImageVersionsUpdateSample.js | 0 .../galleryImagesCreateOrUpdateSample.js | 0 .../javascript/galleryImagesDeleteSample.js | 0 .../javascript/galleryImagesGetSample.js | 0 .../galleryImagesListByGallerySample.js | 0 .../javascript/galleryImagesUpdateSample.js | 0 .../gallerySharingProfileUpdateSample.js | 0 .../javascript/imagesCreateOrUpdateSample.js | 20 +- .../javascript/imagesDeleteSample.js | 12 +- .../javascript/imagesGetSample.js | 2 +- .../imagesListByResourceGroupSample.js | 2 +- .../javascript/imagesListSample.js | 2 +- .../javascript/imagesUpdateSample.js | 2 +- ...lyticsExportRequestRateByIntervalSample.js | 2 +- ...gAnalyticsExportThrottledRequestsSample.js | 2 +- .../javascript/operationsListSample.js | 4 +- .../{v20 => v21}/javascript/package.json | 0 ...mityPlacementGroupsCreateOrUpdateSample.js | 2 +- .../proximityPlacementGroupsDeleteSample.js | 6 +- .../proximityPlacementGroupsGetSample.js | 6 +- ...lacementGroupsListByResourceGroupSample.js | 6 +- ...PlacementGroupsListBySubscriptionSample.js | 6 +- .../proximityPlacementGroupsUpdateSample.js | 6 +- .../javascript/resourceSkusListSample.js | 0 ...orePointCollectionsCreateOrUpdateSample.js | 4 +- .../restorePointCollectionsDeleteSample.js | 12 +- .../restorePointCollectionsGetSample.js | 4 +- .../restorePointCollectionsListAllSample.js | 2 +- .../restorePointCollectionsListSample.js | 2 +- .../restorePointCollectionsUpdateSample.js | 12 +- .../javascript/restorePointsCreateSample.js | 4 +- .../javascript/restorePointsDeleteSample.js | 12 +- .../javascript/restorePointsGetSample.js | 4 +- .../{v20 => v21}/javascript/sample.env | 0 .../javascript/sharedGalleriesGetSample.js | 0 .../javascript/sharedGalleriesListSample.js | 0 .../sharedGalleryImageVersionsGetSample.js | 0 .../sharedGalleryImageVersionsListSample.js | 0 .../sharedGalleryImagesGetSample.js | 0 .../sharedGalleryImagesListSample.js | 0 .../snapshotsCreateOrUpdateSample.js | 0 .../javascript/snapshotsDeleteSample.js | 0 .../javascript/snapshotsGetSample.js | 0 .../javascript/snapshotsGrantAccessSample.js | 0 .../snapshotsListByResourceGroupSample.js | 0 .../javascript/snapshotsListSample.js | 0 .../javascript/snapshotsRevokeAccessSample.js | 0 .../javascript/snapshotsUpdateSample.js | 0 .../javascript/sshPublicKeysCreateSample.js | 2 +- .../javascript/sshPublicKeysDeleteSample.js | 12 +- .../sshPublicKeysGenerateKeyPairSample.js | 2 +- .../javascript/sshPublicKeysGetSample.js | 2 +- .../sshPublicKeysListByResourceGroupSample.js | 12 +- .../sshPublicKeysListBySubscriptionSample.js | 12 +- .../javascript/sshPublicKeysUpdateSample.js | 12 +- .../javascript/usageListSample.js | 4 +- .../virtualMachineExtensionImagesGetSample.js | 12 +- ...alMachineExtensionImagesListTypesSample.js | 12 +- ...achineExtensionImagesListVersionsSample.js | 12 +- ...alMachineExtensionsCreateOrUpdateSample.js | 16 +- .../virtualMachineExtensionsDeleteSample.js | 12 +- .../virtualMachineExtensionsGetSample.js | 16 +- .../virtualMachineExtensionsListSample.js | 12 +- .../virtualMachineExtensionsUpdateSample.js | 2 +- .../virtualMachineImagesEdgeZoneGetSample.js | 4 +- ...alMachineImagesEdgeZoneListOffersSample.js | 4 +- ...chineImagesEdgeZoneListPublishersSample.js | 4 +- .../virtualMachineImagesEdgeZoneListSample.js | 4 +- ...tualMachineImagesEdgeZoneListSkusSample.js | 4 +- .../virtualMachineImagesGetSample.js | 12 +- ...irtualMachineImagesListByEdgeZoneSample.js | 4 +- .../virtualMachineImagesListOffersSample.js | 12 +- ...irtualMachineImagesListPublishersSample.js | 12 +- .../virtualMachineImagesListSample.js | 12 +- .../virtualMachineImagesListSkusSample.js | 12 +- ...lMachineRunCommandsCreateOrUpdateSample.js | 15 +- .../virtualMachineRunCommandsDeleteSample.js | 2 +- ...ineRunCommandsGetByVirtualMachineSample.js | 2 +- .../virtualMachineRunCommandsGetSample.js | 2 +- ...neRunCommandsListByVirtualMachineSample.js | 2 +- .../virtualMachineRunCommandsListSample.js | 2 +- .../virtualMachineRunCommandsUpdateSample.js | 20 +- ...eScaleSetExtensionsCreateOrUpdateSample.js | 12 +- ...alMachineScaleSetExtensionsDeleteSample.js | 12 +- ...rtualMachineScaleSetExtensionsGetSample.js | 12 +- ...tualMachineScaleSetExtensionsListSample.js | 12 +- ...alMachineScaleSetExtensionsUpdateSample.js | 12 +- ...hineScaleSetRollingUpgradesCancelSample.js | 12 +- ...eScaleSetRollingUpgradesGetLatestSample.js | 12 +- ...lingUpgradesStartExtensionUpgradeSample.js | 2 +- ...eSetRollingUpgradesStartOSUpgradeSample.js | 12 +- ...caleSetVMExtensionsCreateOrUpdateSample.js | 2 +- ...MachineScaleSetVMExtensionsDeleteSample.js | 2 +- ...ualMachineScaleSetVMExtensionsGetSample.js | 2 +- ...alMachineScaleSetVMExtensionsListSample.js | 2 +- ...MachineScaleSetVMExtensionsUpdateSample.js | 2 +- ...aleSetVMRunCommandsCreateOrUpdateSample.js | 17 +- ...achineScaleSetVMRunCommandsDeleteSample.js | 2 +- ...alMachineScaleSetVMRunCommandsGetSample.js | 2 +- ...lMachineScaleSetVMRunCommandsListSample.js | 2 +- ...achineScaleSetVMRunCommandsUpdateSample.js | 9 +- ...rtualMachineScaleSetVMSDeallocateSample.js | 12 +- .../virtualMachineScaleSetVMSDeleteSample.js | 2 +- ...MachineScaleSetVMSGetInstanceViewSample.js | 2 +- .../virtualMachineScaleSetVMSGetSample.js | 4 +- .../virtualMachineScaleSetVMSListSample.js | 12 +- ...hineScaleSetVMSPerformMaintenanceSample.js | 12 +- ...virtualMachineScaleSetVMSPowerOffSample.js | 12 +- ...virtualMachineScaleSetVMSRedeploySample.js | 12 +- ...rtualMachineScaleSetVMSReimageAllSample.js | 12 +- .../virtualMachineScaleSetVMSReimageSample.js | 12 +- .../virtualMachineScaleSetVMSRestartSample.js | 12 +- ...SetVMSRetrieveBootDiagnosticsDataSample.js | 2 +- ...rtualMachineScaleSetVMSRunCommandSample.js | 2 +- ...achineScaleSetVMSSimulateEvictionSample.js | 2 +- .../virtualMachineScaleSetVMSStartSample.js | 12 +- .../virtualMachineScaleSetVMSUpdateSample.js | 14 +- ...SetsConvertToSinglePlacementGroupSample.js | 12 +- ...ualMachineScaleSetsCreateOrUpdateSample.js | 146 +- ...virtualMachineScaleSetsDeallocateSample.js | 14 +- ...alMachineScaleSetsDeleteInstancesSample.js | 12 +- .../virtualMachineScaleSetsDeleteSample.js | 2 +- ...iceFabricPlatformUpdateDomainWalkSample.js | 12 +- ...alMachineScaleSetsGetInstanceViewSample.js | 12 +- ...chineScaleSetsGetOSUpgradeHistorySample.js | 12 +- .../virtualMachineScaleSetsGetSample.js | 8 +- .../virtualMachineScaleSetsListAllSample.js | 12 +- ...ualMachineScaleSetsListByLocationSample.js | 2 +- .../virtualMachineScaleSetsListSample.js | 12 +- .../virtualMachineScaleSetsListSkusSample.js | 12 +- ...achineScaleSetsPerformMaintenanceSample.js | 12 +- .../virtualMachineScaleSetsPowerOffSample.js | 12 +- .../virtualMachineScaleSetsReapplySample.js | 62 + .../virtualMachineScaleSetsRedeploySample.js | 12 +- ...virtualMachineScaleSetsReimageAllSample.js | 12 +- .../virtualMachineScaleSetsReimageSample.js | 12 +- .../virtualMachineScaleSetsRestartSample.js | 12 +- ...eSetsSetOrchestrationServiceStateSample.js | 12 +- .../virtualMachineScaleSetsStartSample.js | 12 +- ...alMachineScaleSetsUpdateInstancesSample.js | 12 +- .../virtualMachineScaleSetsUpdateSample.js | 14 +- .../virtualMachineSizesListSample.js | 4 +- .../virtualMachinesAssessPatchesSample.js | 2 +- .../virtualMachinesCaptureSample.js | 12 +- ...tualMachinesConvertToManagedDisksSample.js | 12 +- .../virtualMachinesCreateOrUpdateSample.js | 96 +- .../virtualMachinesDeallocateSample.js | 12 +- .../javascript/virtualMachinesDeleteSample.js | 2 +- .../virtualMachinesGeneralizeSample.js | 6 +- .../javascript/virtualMachinesGetSample.js | 8 +- .../virtualMachinesInstallPatchesSample.js | 2 +- .../virtualMachinesInstanceViewSample.js | 4 +- .../virtualMachinesListAllSample.js | 12 +- ...virtualMachinesListAvailableSizesSample.js | 2 +- .../virtualMachinesListByLocationSample.js | 2 +- .../javascript/virtualMachinesListSample.js | 12 +- ...virtualMachinesPerformMaintenanceSample.js | 12 +- .../virtualMachinesPowerOffSample.js | 12 +- .../virtualMachinesReapplySample.js | 2 +- .../virtualMachinesRedeploySample.js | 12 +- .../virtualMachinesReimageSample.js | 4 +- .../virtualMachinesRestartSample.js | 12 +- ...chinesRetrieveBootDiagnosticsDataSample.js | 2 +- .../virtualMachinesRunCommandSample.js | 2 +- .../virtualMachinesSimulateEvictionSample.js | 2 +- .../javascript/virtualMachinesStartSample.js | 12 +- .../javascript/virtualMachinesUpdateSample.js | 4 +- .../samples/{v20 => v21}/typescript/README.md | 906 ++++----- .../{v20 => v21}/typescript/package.json | 0 .../{v20 => v21}/typescript/sample.env | 0 .../availabilitySetsCreateOrUpdateSample.ts | 2 +- .../src/availabilitySetsDeleteSample.ts | 12 +- .../src/availabilitySetsGetSample.ts | 12 +- ...vailabilitySetsListAvailableSizesSample.ts | 12 +- ...vailabilitySetsListBySubscriptionSample.ts | 2 +- .../src/availabilitySetsListSample.ts | 12 +- .../src/availabilitySetsUpdateSample.ts | 12 +- ...tyReservationGroupsCreateOrUpdateSample.ts | 2 +- .../capacityReservationGroupsDeleteSample.ts | 12 +- .../src/capacityReservationGroupsGetSample.ts | 2 +- ...ervationGroupsListByResourceGroupSample.ts | 2 +- ...servationGroupsListBySubscriptionSample.ts | 2 +- .../capacityReservationGroupsUpdateSample.ts | 12 +- ...apacityReservationsCreateOrUpdateSample.ts | 2 +- .../src/capacityReservationsDeleteSample.ts | 12 +- .../src/capacityReservationsGetSample.ts | 2 +- ...onsListByCapacityReservationGroupSample.ts | 2 +- .../src/capacityReservationsUpdateSample.ts | 12 +- ...erviceOperatingSystemsGetOSFamilySample.ts | 0 ...rviceOperatingSystemsGetOSVersionSample.ts | 0 ...iceOperatingSystemsListOSFamiliesSample.ts | 0 ...iceOperatingSystemsListOSVersionsSample.ts | 0 .../cloudServiceRoleInstancesDeleteSample.ts | 0 ...rviceRoleInstancesGetInstanceViewSample.ts | 0 ...RoleInstancesGetRemoteDesktopFileSample.ts | 0 .../src/cloudServiceRoleInstancesGetSample.ts | 0 .../cloudServiceRoleInstancesListSample.ts | 0 .../cloudServiceRoleInstancesRebuildSample.ts | 0 .../cloudServiceRoleInstancesReimageSample.ts | 0 .../cloudServiceRoleInstancesRestartSample.ts | 0 .../src/cloudServiceRolesGetSample.ts | 0 .../src/cloudServiceRolesListSample.ts | 0 .../src/cloudServicesCreateOrUpdateSample.ts | 0 .../src/cloudServicesDeleteInstancesSample.ts | 0 .../src/cloudServicesDeleteSample.ts | 0 .../src/cloudServicesGetInstanceViewSample.ts | 0 .../typescript/src/cloudServicesGetSample.ts | 0 .../src/cloudServicesListAllSample.ts | 0 .../typescript/src/cloudServicesListSample.ts | 0 .../src/cloudServicesPowerOffSample.ts | 0 .../src/cloudServicesRebuildSample.ts | 0 .../src/cloudServicesReimageSample.ts | 0 .../src/cloudServicesRestartSample.ts | 0 .../src/cloudServicesStartSample.ts | 0 ...rvicesUpdateDomainGetUpdateDomainSample.ts | 0 ...icesUpdateDomainListUpdateDomainsSample.ts | 0 ...vicesUpdateDomainWalkUpdateDomainSample.ts | 0 .../src/cloudServicesUpdateSample.ts | 0 .../src/communityGalleriesGetSample.ts | 0 .../communityGalleryImageVersionsGetSample.ts | 0 ...communityGalleryImageVersionsListSample.ts | 0 .../src/communityGalleryImagesGetSample.ts | 0 .../src/communityGalleryImagesListSample.ts | 0 ...dedicatedHostGroupsCreateOrUpdateSample.ts | 4 +- .../src/dedicatedHostGroupsDeleteSample.ts | 12 +- .../src/dedicatedHostGroupsGetSample.ts | 4 +- ...atedHostGroupsListByResourceGroupSample.ts | 12 +- ...catedHostGroupsListBySubscriptionSample.ts | 12 +- .../src/dedicatedHostGroupsUpdateSample.ts | 12 +- .../src/dedicatedHostsCreateOrUpdateSample.ts | 2 +- .../src/dedicatedHostsDeleteSample.ts | 12 +- .../typescript/src/dedicatedHostsGetSample.ts | 12 +- .../dedicatedHostsListAvailableSizesSample.ts | 47 + .../dedicatedHostsListByHostGroupSample.ts | 12 +- .../src/dedicatedHostsRestartSample.ts | 2 +- .../src/dedicatedHostsUpdateSample.ts | 46 +- .../src/diskAccessesCreateOrUpdateSample.ts | 0 ...sDeleteAPrivateEndpointConnectionSample.ts | 0 .../src/diskAccessesDeleteSample.ts | 0 ...ssesGetAPrivateEndpointConnectionSample.ts | 0 ...skAccessesGetPrivateLinkResourcesSample.ts | 0 .../typescript/src/diskAccessesGetSample.ts | 0 .../diskAccessesListByResourceGroupSample.ts | 0 ...sesListPrivateEndpointConnectionsSample.ts | 0 .../typescript/src/diskAccessesListSample.ts | 0 ...sUpdateAPrivateEndpointConnectionSample.ts | 0 .../src/diskAccessesUpdateSample.ts | 0 .../diskEncryptionSetsCreateOrUpdateSample.ts | 0 .../src/diskEncryptionSetsDeleteSample.ts | 0 .../src/diskEncryptionSetsGetSample.ts | 0 ...yptionSetsListAssociatedResourcesSample.ts | 0 ...EncryptionSetsListByResourceGroupSample.ts | 0 .../src/diskEncryptionSetsListSample.ts | 0 .../src/diskEncryptionSetsUpdateSample.ts | 0 .../src/diskRestorePointGetSample.ts | 0 .../src/diskRestorePointGrantAccessSample.ts | 0 ...iskRestorePointListByRestorePointSample.ts | 0 .../src/diskRestorePointRevokeAccessSample.ts | 0 .../src/disksCreateOrUpdateSample.ts | 0 .../typescript/src/disksDeleteSample.ts | 0 .../typescript/src/disksGetSample.ts | 0 .../typescript/src/disksGrantAccessSample.ts | 0 .../src/disksListByResourceGroupSample.ts | 0 .../typescript/src/disksListSample.ts | 0 .../typescript/src/disksRevokeAccessSample.ts | 0 .../typescript/src/disksUpdateSample.ts | 0 .../src/galleriesCreateOrUpdateSample.ts | 0 .../typescript/src/galleriesDeleteSample.ts | 0 .../typescript/src/galleriesGetSample.ts | 0 .../src/galleriesListByResourceGroupSample.ts | 0 .../typescript/src/galleriesListSample.ts | 0 .../typescript/src/galleriesUpdateSample.ts | 0 ...ApplicationVersionsCreateOrUpdateSample.ts | 0 .../galleryApplicationVersionsDeleteSample.ts | 0 .../galleryApplicationVersionsGetSample.ts | 0 ...nVersionsListByGalleryApplicationSample.ts | 0 .../galleryApplicationVersionsUpdateSample.ts | 0 ...galleryApplicationsCreateOrUpdateSample.ts | 0 .../src/galleryApplicationsDeleteSample.ts | 0 .../src/galleryApplicationsGetSample.ts | 0 .../galleryApplicationsListByGallerySample.ts | 0 .../src/galleryApplicationsUpdateSample.ts | 0 ...alleryImageVersionsCreateOrUpdateSample.ts | 0 .../src/galleryImageVersionsDeleteSample.ts | 0 .../src/galleryImageVersionsGetSample.ts | 0 ...ryImageVersionsListByGalleryImageSample.ts | 0 .../src/galleryImageVersionsUpdateSample.ts | 0 .../src/galleryImagesCreateOrUpdateSample.ts | 0 .../src/galleryImagesDeleteSample.ts | 0 .../typescript/src/galleryImagesGetSample.ts | 0 .../src/galleryImagesListByGallerySample.ts | 0 .../src/galleryImagesUpdateSample.ts | 0 .../src/gallerySharingProfileUpdateSample.ts | 0 .../src/imagesCreateOrUpdateSample.ts | 20 +- .../typescript/src/imagesDeleteSample.ts | 12 +- .../typescript/src/imagesGetSample.ts | 2 +- .../src/imagesListByResourceGroupSample.ts | 2 +- .../typescript/src/imagesListSample.ts | 2 +- .../typescript/src/imagesUpdateSample.ts | 2 +- ...lyticsExportRequestRateByIntervalSample.ts | 2 +- ...gAnalyticsExportThrottledRequestsSample.ts | 2 +- .../typescript/src/operationsListSample.ts | 4 +- ...mityPlacementGroupsCreateOrUpdateSample.ts | 2 +- .../proximityPlacementGroupsDeleteSample.ts | 6 +- .../src/proximityPlacementGroupsGetSample.ts | 6 +- ...lacementGroupsListByResourceGroupSample.ts | 6 +- ...PlacementGroupsListBySubscriptionSample.ts | 6 +- .../proximityPlacementGroupsUpdateSample.ts | 6 +- .../typescript/src/resourceSkusListSample.ts | 0 ...orePointCollectionsCreateOrUpdateSample.ts | 4 +- .../restorePointCollectionsDeleteSample.ts | 12 +- .../src/restorePointCollectionsGetSample.ts | 4 +- .../restorePointCollectionsListAllSample.ts | 2 +- .../src/restorePointCollectionsListSample.ts | 2 +- .../restorePointCollectionsUpdateSample.ts | 12 +- .../src/restorePointsCreateSample.ts | 4 +- .../src/restorePointsDeleteSample.ts | 12 +- .../typescript/src/restorePointsGetSample.ts | 4 +- .../src/sharedGalleriesGetSample.ts | 0 .../src/sharedGalleriesListSample.ts | 0 .../sharedGalleryImageVersionsGetSample.ts | 0 .../sharedGalleryImageVersionsListSample.ts | 0 .../src/sharedGalleryImagesGetSample.ts | 0 .../src/sharedGalleryImagesListSample.ts | 0 .../src/snapshotsCreateOrUpdateSample.ts | 0 .../typescript/src/snapshotsDeleteSample.ts | 0 .../typescript/src/snapshotsGetSample.ts | 0 .../src/snapshotsGrantAccessSample.ts | 0 .../src/snapshotsListByResourceGroupSample.ts | 0 .../typescript/src/snapshotsListSample.ts | 0 .../src/snapshotsRevokeAccessSample.ts | 0 .../typescript/src/snapshotsUpdateSample.ts | 0 .../src/sshPublicKeysCreateSample.ts | 2 +- .../src/sshPublicKeysDeleteSample.ts | 12 +- .../src/sshPublicKeysGenerateKeyPairSample.ts | 2 +- .../typescript/src/sshPublicKeysGetSample.ts | 2 +- .../sshPublicKeysListByResourceGroupSample.ts | 12 +- .../sshPublicKeysListBySubscriptionSample.ts | 12 +- .../src/sshPublicKeysUpdateSample.ts | 12 +- .../typescript/src/usageListSample.ts | 4 +- .../virtualMachineExtensionImagesGetSample.ts | 12 +- ...alMachineExtensionImagesListTypesSample.ts | 12 +- ...achineExtensionImagesListVersionsSample.ts | 12 +- ...alMachineExtensionsCreateOrUpdateSample.ts | 16 +- .../virtualMachineExtensionsDeleteSample.ts | 12 +- .../src/virtualMachineExtensionsGetSample.ts | 16 +- .../src/virtualMachineExtensionsListSample.ts | 12 +- .../virtualMachineExtensionsUpdateSample.ts | 2 +- .../virtualMachineImagesEdgeZoneGetSample.ts | 4 +- ...alMachineImagesEdgeZoneListOffersSample.ts | 4 +- ...chineImagesEdgeZoneListPublishersSample.ts | 4 +- .../virtualMachineImagesEdgeZoneListSample.ts | 4 +- ...tualMachineImagesEdgeZoneListSkusSample.ts | 4 +- .../src/virtualMachineImagesGetSample.ts | 12 +- ...irtualMachineImagesListByEdgeZoneSample.ts | 4 +- .../virtualMachineImagesListOffersSample.ts | 12 +- ...irtualMachineImagesListPublishersSample.ts | 12 +- .../src/virtualMachineImagesListSample.ts | 12 +- .../src/virtualMachineImagesListSkusSample.ts | 12 +- ...lMachineRunCommandsCreateOrUpdateSample.ts | 17 +- .../virtualMachineRunCommandsDeleteSample.ts | 2 +- ...ineRunCommandsGetByVirtualMachineSample.ts | 2 +- .../src/virtualMachineRunCommandsGetSample.ts | 2 +- ...neRunCommandsListByVirtualMachineSample.ts | 2 +- .../virtualMachineRunCommandsListSample.ts | 2 +- .../virtualMachineRunCommandsUpdateSample.ts | 21 +- ...eScaleSetExtensionsCreateOrUpdateSample.ts | 12 +- ...alMachineScaleSetExtensionsDeleteSample.ts | 12 +- ...rtualMachineScaleSetExtensionsGetSample.ts | 12 +- ...tualMachineScaleSetExtensionsListSample.ts | 12 +- ...alMachineScaleSetExtensionsUpdateSample.ts | 12 +- ...hineScaleSetRollingUpgradesCancelSample.ts | 12 +- ...eScaleSetRollingUpgradesGetLatestSample.ts | 12 +- ...lingUpgradesStartExtensionUpgradeSample.ts | 2 +- ...eSetRollingUpgradesStartOSUpgradeSample.ts | 12 +- ...caleSetVMExtensionsCreateOrUpdateSample.ts | 2 +- ...MachineScaleSetVMExtensionsDeleteSample.ts | 2 +- ...ualMachineScaleSetVMExtensionsGetSample.ts | 2 +- ...alMachineScaleSetVMExtensionsListSample.ts | 2 +- ...MachineScaleSetVMExtensionsUpdateSample.ts | 2 +- ...aleSetVMRunCommandsCreateOrUpdateSample.ts | 21 +- ...achineScaleSetVMRunCommandsDeleteSample.ts | 2 +- ...alMachineScaleSetVMRunCommandsGetSample.ts | 2 +- ...lMachineScaleSetVMRunCommandsListSample.ts | 2 +- ...achineScaleSetVMRunCommandsUpdateSample.ts | 10 +- ...rtualMachineScaleSetVMSDeallocateSample.ts | 12 +- .../virtualMachineScaleSetVMSDeleteSample.ts | 2 +- ...MachineScaleSetVMSGetInstanceViewSample.ts | 2 +- .../src/virtualMachineScaleSetVMSGetSample.ts | 4 +- .../virtualMachineScaleSetVMSListSample.ts | 12 +- ...hineScaleSetVMSPerformMaintenanceSample.ts | 12 +- ...virtualMachineScaleSetVMSPowerOffSample.ts | 12 +- ...virtualMachineScaleSetVMSRedeploySample.ts | 12 +- ...rtualMachineScaleSetVMSReimageAllSample.ts | 12 +- .../virtualMachineScaleSetVMSReimageSample.ts | 12 +- .../virtualMachineScaleSetVMSRestartSample.ts | 12 +- ...SetVMSRetrieveBootDiagnosticsDataSample.ts | 2 +- ...rtualMachineScaleSetVMSRunCommandSample.ts | 2 +- ...achineScaleSetVMSSimulateEvictionSample.ts | 2 +- .../virtualMachineScaleSetVMSStartSample.ts | 12 +- .../virtualMachineScaleSetVMSUpdateSample.ts | 14 +- ...SetsConvertToSinglePlacementGroupSample.ts | 12 +- ...ualMachineScaleSetsCreateOrUpdateSample.ts | 150 +- ...virtualMachineScaleSetsDeallocateSample.ts | 14 +- ...alMachineScaleSetsDeleteInstancesSample.ts | 12 +- .../virtualMachineScaleSetsDeleteSample.ts | 2 +- ...iceFabricPlatformUpdateDomainWalkSample.ts | 12 +- ...alMachineScaleSetsGetInstanceViewSample.ts | 12 +- ...chineScaleSetsGetOSUpgradeHistorySample.ts | 12 +- .../src/virtualMachineScaleSetsGetSample.ts | 8 +- .../virtualMachineScaleSetsListAllSample.ts | 12 +- ...ualMachineScaleSetsListByLocationSample.ts | 2 +- .../src/virtualMachineScaleSetsListSample.ts | 12 +- .../virtualMachineScaleSetsListSkusSample.ts | 12 +- ...achineScaleSetsPerformMaintenanceSample.ts | 12 +- .../virtualMachineScaleSetsPowerOffSample.ts | 12 +- .../virtualMachineScaleSetsReapplySample.ts | 68 + .../virtualMachineScaleSetsRedeploySample.ts | 12 +- ...virtualMachineScaleSetsReimageAllSample.ts | 12 +- .../virtualMachineScaleSetsReimageSample.ts | 12 +- .../virtualMachineScaleSetsRestartSample.ts | 12 +- ...eSetsSetOrchestrationServiceStateSample.ts | 12 +- .../src/virtualMachineScaleSetsStartSample.ts | 12 +- ...alMachineScaleSetsUpdateInstancesSample.ts | 12 +- .../virtualMachineScaleSetsUpdateSample.ts | 14 +- .../src/virtualMachineSizesListSample.ts | 4 +- .../src/virtualMachinesAssessPatchesSample.ts | 2 +- .../src/virtualMachinesCaptureSample.ts | 12 +- ...tualMachinesConvertToManagedDisksSample.ts | 12 +- .../virtualMachinesCreateOrUpdateSample.ts | 96 +- .../src/virtualMachinesDeallocateSample.ts | 12 +- .../src/virtualMachinesDeleteSample.ts | 2 +- .../src/virtualMachinesGeneralizeSample.ts | 6 +- .../src/virtualMachinesGetSample.ts | 8 +- .../virtualMachinesInstallPatchesSample.ts | 2 +- .../src/virtualMachinesInstanceViewSample.ts | 4 +- .../src/virtualMachinesListAllSample.ts | 12 +- ...virtualMachinesListAvailableSizesSample.ts | 2 +- .../virtualMachinesListByLocationSample.ts | 2 +- .../src/virtualMachinesListSample.ts | 12 +- ...virtualMachinesPerformMaintenanceSample.ts | 12 +- .../src/virtualMachinesPowerOffSample.ts | 12 +- .../src/virtualMachinesReapplySample.ts | 2 +- .../src/virtualMachinesRedeploySample.ts | 12 +- .../src/virtualMachinesReimageSample.ts | 4 +- .../src/virtualMachinesRestartSample.ts | 12 +- ...chinesRetrieveBootDiagnosticsDataSample.ts | 2 +- .../src/virtualMachinesRunCommandSample.ts | 2 +- .../virtualMachinesSimulateEvictionSample.ts | 2 +- .../src/virtualMachinesStartSample.ts | 12 +- .../src/virtualMachinesUpdateSample.ts | 4 +- .../{v20 => v21}/typescript/tsconfig.json | 0 .../src/computeManagementClient.ts | 2 +- sdk/compute/arm-compute/src/lroImpl.ts | 54 +- sdk/compute/arm-compute/src/models/index.ts | 1099 ++++++----- sdk/compute/arm-compute/src/models/mappers.ts | 1719 ++++++++++------- .../arm-compute/src/models/parameters.ts | 72 +- .../operations/capacityReservationGroups.ts | 6 +- .../src/operations/capacityReservations.ts | 74 +- .../operations/cloudServiceRoleInstances.ts | 80 +- .../src/operations/cloudServices.ts | 180 +- .../operations/cloudServicesUpdateDomain.ts | 26 +- .../src/operations/dedicatedHosts.ts | 214 +- .../src/operations/diskAccesses.ts | 113 +- .../src/operations/diskEncryptionSets.ts | 82 +- .../operations/diskRestorePointOperations.ts | 53 +- .../arm-compute/src/operations/disks.ts | 115 +- .../arm-compute/src/operations/galleries.ts | 74 +- .../operations/galleryApplicationVersions.ts | 74 +- .../src/operations/galleryApplications.ts | 72 +- .../src/operations/galleryImageVersions.ts | 74 +- .../src/operations/galleryImages.ts | 72 +- .../src/operations/gallerySharingProfile.ts | 31 +- .../arm-compute/src/operations/images.ts | 70 +- .../src/operations/logAnalytics.ts | 58 +- .../src/operations/restorePointCollections.ts | 28 +- .../src/operations/restorePoints.ts | 51 +- .../arm-compute/src/operations/snapshots.ts | 117 +- .../operations/virtualMachineExtensions.ts | 72 +- .../operations/virtualMachineRunCommands.ts | 72 +- .../virtualMachineScaleSetExtensions.ts | 74 +- .../virtualMachineScaleSetRollingUpgrades.ts | 62 +- .../virtualMachineScaleSetVMExtensions.ts | 74 +- .../virtualMachineScaleSetVMRunCommands.ts | 74 +- .../operations/virtualMachineScaleSetVMs.ts | 230 ++- .../src/operations/virtualMachineScaleSets.ts | 379 ++-- .../src/operations/virtualMachines.ts | 351 ++-- .../capacityReservations.ts | 12 +- .../cloudServiceRoleInstances.ts | 10 +- .../src/operationsInterfaces/cloudServices.ts | 24 +- .../cloudServicesUpdateDomain.ts | 4 +- .../operationsInterfaces/dedicatedHosts.ts | 33 +- .../src/operationsInterfaces/diskAccesses.ts | 18 +- .../diskEncryptionSets.ts | 12 +- .../diskRestorePointOperations.ts | 8 +- .../src/operationsInterfaces/disks.ts | 16 +- .../src/operationsInterfaces/galleries.ts | 12 +- .../galleryApplicationVersions.ts | 12 +- .../galleryApplications.ts | 12 +- .../galleryImageVersions.ts | 12 +- .../src/operationsInterfaces/galleryImages.ts | 12 +- .../gallerySharingProfile.ts | 6 +- .../src/operationsInterfaces/images.ts | 10 +- .../src/operationsInterfaces/logAnalytics.ts | 10 +- .../restorePointCollections.ts | 4 +- .../src/operationsInterfaces/restorePoints.ts | 8 +- .../src/operationsInterfaces/snapshots.ts | 18 +- .../virtualMachineExtensions.ts | 12 +- .../virtualMachineRunCommands.ts | 12 +- .../virtualMachineScaleSetExtensions.ts | 14 +- .../virtualMachineScaleSetRollingUpgrades.ts | 8 +- .../virtualMachineScaleSetVMExtensions.ts | 14 +- .../virtualMachineScaleSetVMRunCommands.ts | 14 +- .../virtualMachineScaleSetVMs.ts | 28 +- .../virtualMachineScaleSets.ts | 57 +- .../operationsInterfaces/virtualMachines.ts | 54 +- 813 files changed, 8033 insertions(+), 5940 deletions(-) create mode 100644 sdk/compute/arm-compute/samples-dev/dedicatedHostsListAvailableSizesSample.ts create mode 100644 sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsReapplySample.ts rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/README.md (87%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/availabilitySetsCreateOrUpdateSample.js (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/availabilitySetsDeleteSample.js (80%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/availabilitySetsGetSample.js (81%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/availabilitySetsListAvailableSizesSample.js (82%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/availabilitySetsListBySubscriptionSample.js (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/availabilitySetsListSample.js (81%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/availabilitySetsUpdateSample.js (85%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/capacityReservationGroupsCreateOrUpdateSample.js (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/capacityReservationGroupsDeleteSample.js (89%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/capacityReservationGroupsGetSample.js (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/capacityReservationGroupsListByResourceGroupSample.js (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/capacityReservationGroupsListBySubscriptionSample.js (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/capacityReservationGroupsUpdateSample.js (87%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/capacityReservationsCreateOrUpdateSample.js (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/capacityReservationsDeleteSample.js (89%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/capacityReservationsGetSample.js (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/capacityReservationsListByCapacityReservationGroupSample.js (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/capacityReservationsUpdateSample.js (89%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/cloudServiceOperatingSystemsGetOSFamilySample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/cloudServiceOperatingSystemsGetOSVersionSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/cloudServiceOperatingSystemsListOSFamiliesSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/cloudServiceOperatingSystemsListOSVersionsSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/cloudServiceRoleInstancesDeleteSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/cloudServiceRoleInstancesGetInstanceViewSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/cloudServiceRoleInstancesGetRemoteDesktopFileSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/cloudServiceRoleInstancesGetSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/cloudServiceRoleInstancesListSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/cloudServiceRoleInstancesRebuildSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/cloudServiceRoleInstancesReimageSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/cloudServiceRoleInstancesRestartSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/cloudServiceRolesGetSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/cloudServiceRolesListSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/cloudServicesCreateOrUpdateSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/cloudServicesDeleteInstancesSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/cloudServicesDeleteSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/cloudServicesGetInstanceViewSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/cloudServicesGetSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/cloudServicesListAllSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/cloudServicesListSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/cloudServicesPowerOffSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/cloudServicesRebuildSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/cloudServicesReimageSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/cloudServicesRestartSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/cloudServicesStartSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/cloudServicesUpdateDomainGetUpdateDomainSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/cloudServicesUpdateDomainListUpdateDomainsSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/cloudServicesUpdateDomainWalkUpdateDomainSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/cloudServicesUpdateSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/communityGalleriesGetSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/communityGalleryImageVersionsGetSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/communityGalleryImageVersionsListSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/communityGalleryImagesGetSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/communityGalleryImagesListSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/dedicatedHostGroupsCreateOrUpdateSample.js (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/dedicatedHostGroupsDeleteSample.js (79%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/dedicatedHostGroupsGetSample.js (94%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/dedicatedHostGroupsListByResourceGroupSample.js (81%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/dedicatedHostGroupsListBySubscriptionSample.js (80%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/dedicatedHostGroupsUpdateSample.js (84%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/dedicatedHostsCreateOrUpdateSample.js (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/dedicatedHostsDeleteSample.js (81%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/dedicatedHostsGetSample.js (83%) create mode 100644 sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostsListAvailableSizesSample.js rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/dedicatedHostsListByHostGroupSample.js (83%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/dedicatedHostsRestartSample.js (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/dedicatedHostsUpdateSample.js (59%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/diskAccessesCreateOrUpdateSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/diskAccessesDeleteAPrivateEndpointConnectionSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/diskAccessesDeleteSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/diskAccessesGetAPrivateEndpointConnectionSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/diskAccessesGetPrivateLinkResourcesSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/diskAccessesGetSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/diskAccessesListByResourceGroupSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/diskAccessesListPrivateEndpointConnectionsSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/diskAccessesListSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/diskAccessesUpdateAPrivateEndpointConnectionSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/diskAccessesUpdateSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/diskEncryptionSetsCreateOrUpdateSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/diskEncryptionSetsDeleteSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/diskEncryptionSetsGetSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/diskEncryptionSetsListAssociatedResourcesSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/diskEncryptionSetsListByResourceGroupSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/diskEncryptionSetsListSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/diskEncryptionSetsUpdateSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/diskRestorePointGetSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/diskRestorePointGrantAccessSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/diskRestorePointListByRestorePointSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/diskRestorePointRevokeAccessSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/disksCreateOrUpdateSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/disksDeleteSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/disksGetSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/disksGrantAccessSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/disksListByResourceGroupSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/disksListSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/disksRevokeAccessSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/disksUpdateSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/galleriesCreateOrUpdateSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/galleriesDeleteSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/galleriesGetSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/galleriesListByResourceGroupSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/galleriesListSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/galleriesUpdateSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/galleryApplicationVersionsCreateOrUpdateSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/galleryApplicationVersionsDeleteSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/galleryApplicationVersionsGetSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/galleryApplicationVersionsListByGalleryApplicationSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/galleryApplicationVersionsUpdateSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/galleryApplicationsCreateOrUpdateSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/galleryApplicationsDeleteSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/galleryApplicationsGetSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/galleryApplicationsListByGallerySample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/galleryApplicationsUpdateSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/galleryImageVersionsCreateOrUpdateSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/galleryImageVersionsDeleteSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/galleryImageVersionsGetSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/galleryImageVersionsListByGalleryImageSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/galleryImageVersionsUpdateSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/galleryImagesCreateOrUpdateSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/galleryImagesDeleteSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/galleryImagesGetSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/galleryImagesListByGallerySample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/galleryImagesUpdateSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/gallerySharingProfileUpdateSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/imagesCreateOrUpdateSample.js (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/imagesDeleteSample.js (86%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/imagesGetSample.js (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/imagesListByResourceGroupSample.js (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/imagesListSample.js (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/imagesUpdateSample.js (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/logAnalyticsExportRequestRateByIntervalSample.js (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/logAnalyticsExportThrottledRequestsSample.js (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/operationsListSample.js (93%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/package.json (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/proximityPlacementGroupsCreateOrUpdateSample.js (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/proximityPlacementGroupsDeleteSample.js (89%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/proximityPlacementGroupsGetSample.js (89%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/proximityPlacementGroupsListByResourceGroupSample.js (89%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/proximityPlacementGroupsListBySubscriptionSample.js (88%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/proximityPlacementGroupsUpdateSample.js (90%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/resourceSkusListSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/restorePointCollectionsCreateOrUpdateSample.js (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/restorePointCollectionsDeleteSample.js (82%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/restorePointCollectionsGetSample.js (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/restorePointCollectionsListAllSample.js (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/restorePointCollectionsListSample.js (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/restorePointCollectionsUpdateSample.js (82%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/restorePointsCreateSample.js (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/restorePointsDeleteSample.js (83%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/restorePointsGetSample.js (94%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/sample.env (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/sharedGalleriesGetSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/sharedGalleriesListSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/sharedGalleryImageVersionsGetSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/sharedGalleryImageVersionsListSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/sharedGalleryImagesGetSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/sharedGalleryImagesListSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/snapshotsCreateOrUpdateSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/snapshotsDeleteSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/snapshotsGetSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/snapshotsGrantAccessSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/snapshotsListByResourceGroupSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/snapshotsListSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/snapshotsRevokeAccessSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/snapshotsUpdateSample.js (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/sshPublicKeysCreateSample.js (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/sshPublicKeysDeleteSample.js (81%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/sshPublicKeysGenerateKeyPairSample.js (93%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/sshPublicKeysGetSample.js (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/sshPublicKeysListByResourceGroupSample.js (82%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/sshPublicKeysListBySubscriptionSample.js (81%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/sshPublicKeysUpdateSample.js (82%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/usageListSample.js (94%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineExtensionImagesGetSample.js (79%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineExtensionImagesListTypesSample.js (76%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineExtensionImagesListVersionsSample.js (78%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineExtensionsCreateOrUpdateSample.js (83%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineExtensionsDeleteSample.js (80%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineExtensionsGetSample.js (78%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineExtensionsListSample.js (80%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineExtensionsUpdateSample.js (94%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineImagesEdgeZoneGetSample.js (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineImagesEdgeZoneListOffersSample.js (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineImagesEdgeZoneListPublishersSample.js (94%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineImagesEdgeZoneListSample.js (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineImagesEdgeZoneListSkusSample.js (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineImagesGetSample.js (81%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineImagesListByEdgeZoneSample.js (94%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineImagesListOffersSample.js (79%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineImagesListPublishersSample.js (77%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineImagesListSample.js (83%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineImagesListSkusSample.js (80%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineRunCommandsCreateOrUpdateSample.js (67%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineRunCommandsDeleteSample.js (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineRunCommandsGetByVirtualMachineSample.js (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineRunCommandsGetSample.js (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineRunCommandsListByVirtualMachineSample.js (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineRunCommandsListSample.js (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineRunCommandsUpdateSample.js (62%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetExtensionsCreateOrUpdateSample.js (81%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetExtensionsDeleteSample.js (79%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetExtensionsGetSample.js (79%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetExtensionsListSample.js (79%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetExtensionsUpdateSample.js (82%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetRollingUpgradesCancelSample.js (77%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetRollingUpgradesGetLatestSample.js (77%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSample.js (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetRollingUpgradesStartOSUpgradeSample.js (80%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetVMExtensionsCreateOrUpdateSample.js (92%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetVMExtensionsDeleteSample.js (91%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetVMExtensionsGetSample.js (91%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetVMExtensionsListSample.js (91%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetVMExtensionsUpdateSample.js (92%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetVMRunCommandsCreateOrUpdateSample.js (73%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetVMRunCommandsDeleteSample.js (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetVMRunCommandsGetSample.js (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetVMRunCommandsListSample.js (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetVMRunCommandsUpdateSample.js (84%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetVMSDeallocateSample.js (84%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetVMSDeleteSample.js (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetVMSGetInstanceViewSample.js (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetVMSGetSample.js (94%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetVMSListSample.js (82%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetVMSPerformMaintenanceSample.js (78%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetVMSPowerOffSample.js (84%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetVMSRedeploySample.js (81%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetVMSReimageAllSample.js (82%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetVMSReimageSample.js (82%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetVMSRestartSample.js (79%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.js (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetVMSRunCommandSample.js (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetVMSSimulateEvictionSample.js (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetVMSStartSample.js (80%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetVMSUpdateSample.js (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetsConvertToSinglePlacementGroupSample.js (78%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetsCreateOrUpdateSample.js (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetsDeallocateSample.js (83%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetsDeleteInstancesSample.js (80%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetsDeleteSample.js (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSample.js (75%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetsGetInstanceViewSample.js (77%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetsGetOSUpgradeHistorySample.js (78%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetsGetSample.js (94%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetsListAllSample.js (83%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetsListByLocationSample.js (90%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetsListSample.js (80%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetsListSkusSample.js (82%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetsPerformMaintenanceSample.js (84%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetsPowerOffSample.js (84%) create mode 100644 sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsReapplySample.js rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetsRedeploySample.js (82%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetsReimageAllSample.js (82%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetsReimageSample.js (84%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetsRestartSample.js (80%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetsSetOrchestrationServiceStateSample.js (77%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetsStartSample.js (81%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetsUpdateInstancesSample.js (81%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineScaleSetsUpdateSample.js (94%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachineSizesListSample.js (94%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachinesAssessPatchesSample.js (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachinesCaptureSample.js (84%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachinesConvertToManagedDisksSample.js (81%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachinesCreateOrUpdateSample.js (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachinesDeallocateSample.js (83%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachinesDeleteSample.js (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachinesGeneralizeSample.js (64%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachinesGetSample.js (94%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachinesInstallPatchesSample.js (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachinesInstanceViewSample.js (94%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachinesListAllSample.js (83%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachinesListAvailableSizesSample.js (92%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachinesListByLocationSample.js (91%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachinesListSample.js (85%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachinesPerformMaintenanceSample.js (79%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachinesPowerOffSample.js (84%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachinesReapplySample.js (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachinesRedeploySample.js (81%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachinesReimageSample.js (97%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachinesRestartSample.js (80%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachinesRetrieveBootDiagnosticsDataSample.js (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachinesRunCommandSample.js (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachinesSimulateEvictionSample.js (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachinesStartSample.js (81%) rename sdk/compute/arm-compute/samples/{v20 => v21}/javascript/virtualMachinesUpdateSample.js (97%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/README.md (87%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/package.json (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/sample.env (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/availabilitySetsCreateOrUpdateSample.ts (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/availabilitySetsDeleteSample.ts (81%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/availabilitySetsGetSample.ts (82%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/availabilitySetsListAvailableSizesSample.ts (82%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/availabilitySetsListBySubscriptionSample.ts (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/availabilitySetsListSample.ts (81%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/availabilitySetsUpdateSample.ts (85%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/capacityReservationGroupsCreateOrUpdateSample.ts (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/capacityReservationGroupsDeleteSample.ts (89%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/capacityReservationGroupsGetSample.ts (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/capacityReservationGroupsListByResourceGroupSample.ts (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/capacityReservationGroupsListBySubscriptionSample.ts (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/capacityReservationGroupsUpdateSample.ts (88%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/capacityReservationsCreateOrUpdateSample.ts (97%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/capacityReservationsDeleteSample.ts (89%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/capacityReservationsGetSample.ts (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/capacityReservationsListByCapacityReservationGroupSample.ts (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/capacityReservationsUpdateSample.ts (89%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/cloudServiceOperatingSystemsGetOSFamilySample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/cloudServiceOperatingSystemsGetOSVersionSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/cloudServiceOperatingSystemsListOSFamiliesSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/cloudServiceOperatingSystemsListOSVersionsSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/cloudServiceRoleInstancesDeleteSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/cloudServiceRoleInstancesGetInstanceViewSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/cloudServiceRoleInstancesGetRemoteDesktopFileSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/cloudServiceRoleInstancesGetSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/cloudServiceRoleInstancesListSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/cloudServiceRoleInstancesRebuildSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/cloudServiceRoleInstancesReimageSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/cloudServiceRoleInstancesRestartSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/cloudServiceRolesGetSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/cloudServiceRolesListSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/cloudServicesCreateOrUpdateSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/cloudServicesDeleteInstancesSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/cloudServicesDeleteSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/cloudServicesGetInstanceViewSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/cloudServicesGetSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/cloudServicesListAllSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/cloudServicesListSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/cloudServicesPowerOffSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/cloudServicesRebuildSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/cloudServicesReimageSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/cloudServicesRestartSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/cloudServicesStartSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/cloudServicesUpdateDomainGetUpdateDomainSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/cloudServicesUpdateDomainListUpdateDomainsSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/cloudServicesUpdateDomainWalkUpdateDomainSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/cloudServicesUpdateSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/communityGalleriesGetSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/communityGalleryImageVersionsGetSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/communityGalleryImageVersionsListSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/communityGalleryImagesGetSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/communityGalleryImagesListSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/dedicatedHostGroupsCreateOrUpdateSample.ts (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/dedicatedHostGroupsDeleteSample.ts (80%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/dedicatedHostGroupsGetSample.ts (94%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/dedicatedHostGroupsListByResourceGroupSample.ts (82%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/dedicatedHostGroupsListBySubscriptionSample.ts (80%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/dedicatedHostGroupsUpdateSample.ts (85%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/dedicatedHostsCreateOrUpdateSample.ts (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/dedicatedHostsDeleteSample.ts (82%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/dedicatedHostsGetSample.ts (81%) create mode 100644 sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsListAvailableSizesSample.ts rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/dedicatedHostsListByHostGroupSample.ts (84%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/dedicatedHostsRestartSample.ts (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/dedicatedHostsUpdateSample.ts (60%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/diskAccessesCreateOrUpdateSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/diskAccessesDeleteAPrivateEndpointConnectionSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/diskAccessesDeleteSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/diskAccessesGetAPrivateEndpointConnectionSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/diskAccessesGetPrivateLinkResourcesSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/diskAccessesGetSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/diskAccessesListByResourceGroupSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/diskAccessesListPrivateEndpointConnectionsSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/diskAccessesListSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/diskAccessesUpdateAPrivateEndpointConnectionSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/diskAccessesUpdateSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/diskEncryptionSetsCreateOrUpdateSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/diskEncryptionSetsDeleteSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/diskEncryptionSetsGetSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/diskEncryptionSetsListAssociatedResourcesSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/diskEncryptionSetsListByResourceGroupSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/diskEncryptionSetsListSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/diskEncryptionSetsUpdateSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/diskRestorePointGetSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/diskRestorePointGrantAccessSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/diskRestorePointListByRestorePointSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/diskRestorePointRevokeAccessSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/disksCreateOrUpdateSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/disksDeleteSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/disksGetSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/disksGrantAccessSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/disksListByResourceGroupSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/disksListSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/disksRevokeAccessSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/disksUpdateSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/galleriesCreateOrUpdateSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/galleriesDeleteSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/galleriesGetSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/galleriesListByResourceGroupSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/galleriesListSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/galleriesUpdateSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/galleryApplicationVersionsCreateOrUpdateSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/galleryApplicationVersionsDeleteSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/galleryApplicationVersionsGetSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/galleryApplicationVersionsListByGalleryApplicationSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/galleryApplicationVersionsUpdateSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/galleryApplicationsCreateOrUpdateSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/galleryApplicationsDeleteSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/galleryApplicationsGetSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/galleryApplicationsListByGallerySample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/galleryApplicationsUpdateSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/galleryImageVersionsCreateOrUpdateSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/galleryImageVersionsDeleteSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/galleryImageVersionsGetSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/galleryImageVersionsListByGalleryImageSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/galleryImageVersionsUpdateSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/galleryImagesCreateOrUpdateSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/galleryImagesDeleteSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/galleryImagesGetSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/galleryImagesListByGallerySample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/galleryImagesUpdateSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/gallerySharingProfileUpdateSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/imagesCreateOrUpdateSample.ts (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/imagesDeleteSample.ts (87%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/imagesGetSample.ts (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/imagesListByResourceGroupSample.ts (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/imagesListSample.ts (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/imagesUpdateSample.ts (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/logAnalyticsExportRequestRateByIntervalSample.ts (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/logAnalyticsExportThrottledRequestsSample.ts (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/operationsListSample.ts (93%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/proximityPlacementGroupsCreateOrUpdateSample.ts (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/proximityPlacementGroupsDeleteSample.ts (89%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/proximityPlacementGroupsGetSample.ts (89%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/proximityPlacementGroupsListByResourceGroupSample.ts (89%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/proximityPlacementGroupsListBySubscriptionSample.ts (89%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/proximityPlacementGroupsUpdateSample.ts (90%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/resourceSkusListSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/restorePointCollectionsCreateOrUpdateSample.ts (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/restorePointCollectionsDeleteSample.ts (83%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/restorePointCollectionsGetSample.ts (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/restorePointCollectionsListAllSample.ts (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/restorePointCollectionsListSample.ts (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/restorePointCollectionsUpdateSample.ts (83%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/restorePointsCreateSample.ts (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/restorePointsDeleteSample.ts (83%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/restorePointsGetSample.ts (94%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/sharedGalleriesGetSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/sharedGalleriesListSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/sharedGalleryImageVersionsGetSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/sharedGalleryImageVersionsListSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/sharedGalleryImagesGetSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/sharedGalleryImagesListSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/snapshotsCreateOrUpdateSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/snapshotsDeleteSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/snapshotsGetSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/snapshotsGrantAccessSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/snapshotsListByResourceGroupSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/snapshotsListSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/snapshotsRevokeAccessSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/snapshotsUpdateSample.ts (100%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/sshPublicKeysCreateSample.ts (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/sshPublicKeysDeleteSample.ts (81%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/sshPublicKeysGenerateKeyPairSample.ts (93%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/sshPublicKeysGetSample.ts (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/sshPublicKeysListByResourceGroupSample.ts (82%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/sshPublicKeysListBySubscriptionSample.ts (81%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/sshPublicKeysUpdateSample.ts (83%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/usageListSample.ts (94%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineExtensionImagesGetSample.ts (79%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineExtensionImagesListTypesSample.ts (76%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineExtensionImagesListVersionsSample.ts (79%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineExtensionsCreateOrUpdateSample.ts (83%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineExtensionsDeleteSample.ts (80%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineExtensionsGetSample.ts (79%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineExtensionsListSample.ts (81%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineExtensionsUpdateSample.ts (94%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineImagesEdgeZoneGetSample.ts (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineImagesEdgeZoneListOffersSample.ts (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineImagesEdgeZoneListPublishersSample.ts (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineImagesEdgeZoneListSample.ts (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineImagesEdgeZoneListSkusSample.ts (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineImagesGetSample.ts (81%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineImagesListByEdgeZoneSample.ts (94%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineImagesListOffersSample.ts (80%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineImagesListPublishersSample.ts (78%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineImagesListSample.ts (84%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineImagesListSkusSample.ts (81%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineRunCommandsCreateOrUpdateSample.ts (67%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineRunCommandsDeleteSample.ts (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineRunCommandsGetByVirtualMachineSample.ts (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineRunCommandsGetSample.ts (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineRunCommandsListByVirtualMachineSample.ts (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineRunCommandsListSample.ts (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineRunCommandsUpdateSample.ts (63%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetExtensionsCreateOrUpdateSample.ts (82%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetExtensionsDeleteSample.ts (79%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetExtensionsGetSample.ts (80%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetExtensionsListSample.ts (79%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetExtensionsUpdateSample.ts (83%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetRollingUpgradesCancelSample.ts (77%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetRollingUpgradesGetLatestSample.ts (77%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSample.ts (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetRollingUpgradesStartOSUpgradeSample.ts (80%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetVMExtensionsCreateOrUpdateSample.ts (93%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetVMExtensionsDeleteSample.ts (91%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetVMExtensionsGetSample.ts (91%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetVMExtensionsListSample.ts (91%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetVMExtensionsUpdateSample.ts (93%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetVMRunCommandsCreateOrUpdateSample.ts (72%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetVMRunCommandsDeleteSample.ts (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetVMRunCommandsGetSample.ts (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetVMRunCommandsListSample.ts (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetVMRunCommandsUpdateSample.ts (85%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetVMSDeallocateSample.ts (84%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetVMSDeleteSample.ts (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetVMSGetInstanceViewSample.ts (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetVMSGetSample.ts (94%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetVMSListSample.ts (83%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetVMSPerformMaintenanceSample.ts (78%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetVMSPowerOffSample.ts (84%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetVMSRedeploySample.ts (82%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetVMSReimageAllSample.ts (82%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetVMSReimageSample.ts (83%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetVMSRestartSample.ts (80%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.ts (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetVMSRunCommandSample.ts (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetVMSSimulateEvictionSample.ts (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetVMSStartSample.ts (80%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetVMSUpdateSample.ts (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetsConvertToSinglePlacementGroupSample.ts (79%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetsCreateOrUpdateSample.ts (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetsDeallocateSample.ts (84%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetsDeleteInstancesSample.ts (82%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetsDeleteSample.ts (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSample.ts (75%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetsGetInstanceViewSample.ts (78%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetsGetOSUpgradeHistorySample.ts (78%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetsGetSample.ts (94%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetsListAllSample.ts (83%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetsListByLocationSample.ts (90%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetsListSample.ts (80%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetsListSkusSample.ts (82%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetsPerformMaintenanceSample.ts (85%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetsPowerOffSample.ts (85%) create mode 100644 sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsReapplySample.ts rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetsRedeploySample.ts (83%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetsReimageAllSample.ts (83%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetsReimageSample.ts (85%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetsRestartSample.ts (82%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetsSetOrchestrationServiceStateSample.ts (78%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetsStartSample.ts (82%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetsUpdateInstancesSample.ts (82%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineScaleSetsUpdateSample.ts (94%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachineSizesListSample.ts (94%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachinesAssessPatchesSample.ts (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachinesCaptureSample.ts (85%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachinesConvertToManagedDisksSample.ts (81%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachinesCreateOrUpdateSample.ts (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachinesDeallocateSample.ts (84%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachinesDeleteSample.ts (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachinesGeneralizeSample.ts (64%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachinesGetSample.ts (94%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachinesInstallPatchesSample.ts (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachinesInstanceViewSample.ts (94%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachinesListAllSample.ts (84%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachinesListAvailableSizesSample.ts (93%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachinesListByLocationSample.ts (91%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachinesListSample.ts (85%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachinesPerformMaintenanceSample.ts (79%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachinesPowerOffSample.ts (85%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachinesReapplySample.ts (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachinesRedeploySample.ts (82%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachinesReimageSample.ts (97%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachinesRestartSample.ts (81%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachinesRetrieveBootDiagnosticsDataSample.ts (96%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachinesRunCommandSample.ts (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachinesSimulateEvictionSample.ts (95%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachinesStartSample.ts (81%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/src/virtualMachinesUpdateSample.ts (97%) rename sdk/compute/arm-compute/samples/{v20 => v21}/typescript/tsconfig.json (100%) diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 3071a32ae3ea..1bf3a10b1925 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -3874,7 +3874,7 @@ packages: dependencies: semver: 7.5.0 shelljs: 0.8.5 - typescript: 5.1.0-dev.20230502 + typescript: 5.1.0-dev.20230506 dev: false /ecdsa-sig-formatter/1.0.11: @@ -8554,8 +8554,8 @@ packages: hasBin: true dev: false - /typescript/5.1.0-dev.20230502: - resolution: {integrity: sha512-xhGigho37UgtjMkTWMKDtIBV6ElFjcMFdzwTPQ0knTCSJ8tq0ENGsQPeTe0E7Db7mgZYWULEZnzs8KZ8IlHHLQ==} + /typescript/5.1.0-dev.20230506: + resolution: {integrity: sha512-sxjBy7zph+G4ZbPnMpqhYcrV4OTX7FXNe8OuayCnRMkAQiLvdCdrCHXV1n2vU+9MLNoXjEdbiIRGEU3Vhee7ug==} engines: {node: '>=14.17'} hasBin: true dev: false @@ -10669,7 +10669,7 @@ packages: dev: false file:projects/arm-compute-1.tgz: - resolution: {integrity: sha512-zrrx9+8z5HrJsgov5cnZHrdmbo1dGaFESx8ZgvU3XtKaXPt91C7gODYbc12mZDiiQeur7l9jCwgm3VYa+nff+w==, tarball: file:projects/arm-compute-1.tgz} + resolution: {integrity: sha512-N0VNlJQwWORE33T9YBjkuj9ttrCgs0Y8r3YnL39X+cXeSj2OjproAGQiR+J8+0HKaL5JihgXpRHYDGIJSN3NJA==, tarball: file:projects/arm-compute-1.tgz} name: '@rush-temp/arm-compute-1' version: 0.0.0 dependencies: @@ -10685,7 +10685,7 @@ packages: chai: 4.3.7 cross-env: 7.0.3 dotenv: 16.0.3 - mkdirp: 1.0.4 + mkdirp: 2.1.6 mocha: 7.2.0 rimraf: 3.0.2 rollup: 2.79.1 @@ -15895,7 +15895,7 @@ packages: dev: false file:projects/communication-rooms.tgz: - resolution: {integrity: sha512-MWKqSMfk8nSMa06UaTb9zmyhqNzJHHdxqKvtjLUGw3ULCN+SopfAL4owdy0rfkvZ+2UEH3OBmxnbwJbuASIIWA==, tarball: file:projects/communication-rooms.tgz} + resolution: {integrity: sha512-1jxME+P4umHDyg1wNfAWpx4pTbspvARTojOKayxAUPp6cEj0FqFIxb/GAW62LQRE3RcHwH7oxPZQuEozv2Ocww==, tarball: file:projects/communication-rooms.tgz} name: '@rush-temp/communication-rooms' version: 0.0.0 dependencies: diff --git a/sdk/compute/arm-compute/CHANGELOG.md b/sdk/compute/arm-compute/CHANGELOG.md index 59f4dac04a27..9b8e35563b5f 100644 --- a/sdk/compute/arm-compute/CHANGELOG.md +++ b/sdk/compute/arm-compute/CHANGELOG.md @@ -1,15 +1,61 @@ # Release History + +## 21.0.0 (2023-05-06) + +**Features** -## 20.0.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed + - Added operation DedicatedHosts.listAvailableSizes + - Added operation VirtualMachineScaleSets.beginReapply + - Added operation VirtualMachineScaleSets.beginReapplyAndWait + - Added Interface DedicatedHostSizeListResult + - Added Interface DedicatedHostsListAvailableSizesOptionalParams + - Added Interface DiskRestorePointAttributes + - Added Interface RestorePointEncryption + - Added Interface RunCommandManagedIdentity + - Added Interface SecurityPostureReference + - Added Interface VirtualMachineScaleSetsReapplyHeaders + - Added Interface VirtualMachineScaleSetsReapplyOptionalParams + - Added Type Alias DedicatedHostsListAvailableSizesResponse + - Added Type Alias ExpandTypeForListVMs + - Added Type Alias ExpandTypesForListVMs + - Added Type Alias RestorePointEncryptionType + - Interface DedicatedHostUpdate has a new optional parameter sku + - Interface LinuxVMGuestPatchAutomaticByPlatformSettings has a new optional parameter bypassPlatformSafetyChecksOnUserSchedule + - Interface RestorePointSourceMetadata has a new optional parameter hyperVGeneration + - Interface RestorePointSourceVMDataDisk has a new optional parameter writeAcceleratorEnabled + - Interface RestorePointSourceVmosDisk has a new optional parameter writeAcceleratorEnabled + - Interface VirtualMachineExtension has a new optional parameter provisionAfterExtensions + - Interface VirtualMachineRunCommand has a new optional parameter errorBlobManagedIdentity + - Interface VirtualMachineRunCommand has a new optional parameter outputBlobManagedIdentity + - Interface VirtualMachineRunCommand has a new optional parameter treatFailureAsDeploymentFailure + - Interface VirtualMachineRunCommandScriptSource has a new optional parameter scriptUriManagedIdentity + - Interface VirtualMachineRunCommandUpdate has a new optional parameter errorBlobManagedIdentity + - Interface VirtualMachineRunCommandUpdate has a new optional parameter outputBlobManagedIdentity + - Interface VirtualMachineRunCommandUpdate has a new optional parameter treatFailureAsDeploymentFailure + - Interface VirtualMachineScaleSetsDeallocateOptionalParams has a new optional parameter hibernate + - Interface VirtualMachineScaleSetUpdate has a new optional parameter priorityMixPolicy + - Interface VirtualMachineScaleSetUpdate has a new optional parameter spotRestorePolicy + - Interface VirtualMachineScaleSetVMExtension has a new optional parameter location + - Interface VirtualMachineScaleSetVMExtension has a new optional parameter provisionAfterExtensions + - Interface VirtualMachineScaleSetVMInstanceView has a new optional parameter computerName + - Interface VirtualMachineScaleSetVMInstanceView has a new optional parameter hyperVGeneration + - Interface VirtualMachineScaleSetVMInstanceView has a new optional parameter osName + - Interface VirtualMachineScaleSetVMInstanceView has a new optional parameter osVersion + - Interface VirtualMachineScaleSetVMProfile has a new optional parameter securityPostureReference + - Interface VirtualMachinesListAllOptionalParams has a new optional parameter expand + - Interface VirtualMachinesListOptionalParams has a new optional parameter expand + - Interface WindowsVMGuestPatchAutomaticByPlatformSettings has a new optional parameter bypassPlatformSafetyChecksOnUserSchedule + - Added Enum KnownExpandTypeForListVMs + - Added Enum KnownExpandTypesForListVMs + - Added Enum KnownRestorePointEncryptionType + - Enum KnownStorageAccountType has a new value StandardSSDLRS -### Other Changes +**Breaking Changes** + - Type of parameter diskRestorePoint of interface RestorePointSourceVMDataDisk is changed from ApiEntityReference to DiskRestorePointAttributes + - Type of parameter diskRestorePoint of interface RestorePointSourceVmosDisk is changed from ApiEntityReference to DiskRestorePointAttributes + + ## 20.0.0 (2023-01-05) **Features** diff --git a/sdk/compute/arm-compute/_meta.json b/sdk/compute/arm-compute/_meta.json index 66dce6b4a0c2..0388b354bcbe 100644 --- a/sdk/compute/arm-compute/_meta.json +++ b/sdk/compute/arm-compute/_meta.json @@ -1,8 +1,8 @@ { - "commit": "3dae9445631a0e27d743c1355f8cb82391d1634f", + "commit": "3c639105c011765893db51cbb0dda056e34dc994", "readme": "specification/compute/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=F:\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\compute\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.5.20221215.1 --generate-sample=true", + "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\compute\\resource-manager\\readme.md --use=@autorest/typescript@6.0.1 --generate-sample=true", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.5.4", - "use": "@autorest/typescript@6.0.0-rc.5.20221215.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.6.2", + "use": "@autorest/typescript@6.0.1" } \ No newline at end of file diff --git a/sdk/compute/arm-compute/assets.json b/sdk/compute/arm-compute/assets.json index ae57afbc3f2e..aa273913079b 100644 --- a/sdk/compute/arm-compute/assets.json +++ b/sdk/compute/arm-compute/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/compute/arm-compute", - "Tag": "js/compute/arm-compute_04de3ba635" + "Tag": "js/compute/arm-compute_3b314d171a" } diff --git a/sdk/compute/arm-compute/package.json b/sdk/compute/arm-compute/package.json index eb2f2b710434..569a6c45dbff 100644 --- a/sdk/compute/arm-compute/package.json +++ b/sdk/compute/arm-compute/package.json @@ -3,15 +3,15 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for ComputeManagementClient.", - "version": "20.0.1", + "version": "21.0.0", "engines": { "node": ">=14.0.0" }, "dependencies": { - "@azure/core-lro": "^2.2.0", + "@azure/core-lro": "^2.5.0", "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", - "@azure/core-client": "^1.6.1", + "@azure/core-client": "^1.7.0", "@azure/core-auth": "^1.3.0", "@azure/core-rest-pipeline": "^1.8.0", "tslib": "^2.2.0" @@ -33,7 +33,7 @@ "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-multi-entry": "^6.0.0", "@rollup/plugin-node-resolve": "^13.1.3", - "mkdirp": "^1.0.4", + "mkdirp": "^2.1.2", "rollup": "^2.66.1", "rollup-plugin-sourcemaps": "^0.6.3", "typescript": "~5.0.0", diff --git a/sdk/compute/arm-compute/review/arm-compute.api.md b/sdk/compute/arm-compute/review/arm-compute.api.md index 050bd7723852..c85fcd387063 100644 --- a/sdk/compute/arm-compute/review/arm-compute.api.md +++ b/sdk/compute/arm-compute/review/arm-compute.api.md @@ -8,9 +8,9 @@ import * as coreAuth from '@azure/core-auth'; import * as coreClient from '@azure/core-client'; +import { OperationState } from '@azure/core-lro'; import { PagedAsyncIterableIterator } from '@azure/core-paging'; -import { PollerLike } from '@azure/core-lro'; -import { PollOperationState } from '@azure/core-lro'; +import { SimplePollerLike } from '@azure/core-lro'; // @public export type AccessLevel = string; @@ -367,11 +367,11 @@ export interface CapacityReservationProfile { // @public export interface CapacityReservations { - beginCreateOrUpdate(resourceGroupName: string, capacityReservationGroupName: string, capacityReservationName: string, parameters: CapacityReservation, options?: CapacityReservationsCreateOrUpdateOptionalParams): Promise, CapacityReservationsCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, capacityReservationGroupName: string, capacityReservationName: string, parameters: CapacityReservation, options?: CapacityReservationsCreateOrUpdateOptionalParams): Promise, CapacityReservationsCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, capacityReservationGroupName: string, capacityReservationName: string, parameters: CapacityReservation, options?: CapacityReservationsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, capacityReservationGroupName: string, capacityReservationName: string, options?: CapacityReservationsDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, capacityReservationGroupName: string, capacityReservationName: string, options?: CapacityReservationsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, capacityReservationGroupName: string, capacityReservationName: string, options?: CapacityReservationsDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, capacityReservationGroupName: string, capacityReservationName: string, parameters: CapacityReservationUpdate, options?: CapacityReservationsUpdateOptionalParams): Promise, CapacityReservationsUpdateResponse>>; + beginUpdate(resourceGroupName: string, capacityReservationGroupName: string, capacityReservationName: string, parameters: CapacityReservationUpdate, options?: CapacityReservationsUpdateOptionalParams): Promise, CapacityReservationsUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, capacityReservationGroupName: string, capacityReservationName: string, parameters: CapacityReservationUpdate, options?: CapacityReservationsUpdateOptionalParams): Promise; get(resourceGroupName: string, capacityReservationGroupName: string, capacityReservationName: string, options?: CapacityReservationsGetOptionalParams): Promise; listByCapacityReservationGroup(resourceGroupName: string, capacityReservationGroupName: string, options?: CapacityReservationsListByCapacityReservationGroupOptionalParams): PagedAsyncIterableIterator; @@ -583,13 +583,13 @@ export interface CloudServiceRole { // @public export interface CloudServiceRoleInstances { - beginDelete(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesDeleteOptionalParams): Promise, void>>; + beginDelete(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesDeleteOptionalParams): Promise; - beginRebuild(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesRebuildOptionalParams): Promise, void>>; + beginRebuild(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesRebuildOptionalParams): Promise, void>>; beginRebuildAndWait(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesRebuildOptionalParams): Promise; - beginReimage(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesReimageOptionalParams): Promise, void>>; + beginReimage(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesReimageOptionalParams): Promise, void>>; beginReimageAndWait(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesReimageOptionalParams): Promise; - beginRestart(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesRestartOptionalParams): Promise, void>>; + beginRestart(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesRestartOptionalParams): Promise, void>>; beginRestartAndWait(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesRestartOptionalParams): Promise; get(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesGetOptionalParams): Promise; getInstanceView(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesGetInstanceViewOptionalParams): Promise; @@ -719,23 +719,23 @@ export type CloudServiceRolesListResponse = CloudServiceRoleListResult; // @public export interface CloudServices { - beginCreateOrUpdate(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesCreateOrUpdateOptionalParams): Promise, CloudServicesCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesCreateOrUpdateOptionalParams): Promise, CloudServicesCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesDeleteOptionalParams): Promise; - beginDeleteInstances(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesDeleteInstancesOptionalParams): Promise, void>>; + beginDeleteInstances(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesDeleteInstancesOptionalParams): Promise, void>>; beginDeleteInstancesAndWait(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesDeleteInstancesOptionalParams): Promise; - beginPowerOff(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesPowerOffOptionalParams): Promise, void>>; + beginPowerOff(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesPowerOffOptionalParams): Promise, void>>; beginPowerOffAndWait(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesPowerOffOptionalParams): Promise; - beginRebuild(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesRebuildOptionalParams): Promise, void>>; + beginRebuild(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesRebuildOptionalParams): Promise, void>>; beginRebuildAndWait(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesRebuildOptionalParams): Promise; - beginReimage(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesReimageOptionalParams): Promise, void>>; + beginReimage(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesReimageOptionalParams): Promise, void>>; beginReimageAndWait(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesReimageOptionalParams): Promise; - beginRestart(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesRestartOptionalParams): Promise, void>>; + beginRestart(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesRestartOptionalParams): Promise, void>>; beginRestartAndWait(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesRestartOptionalParams): Promise; - beginStart(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesStartOptionalParams): Promise, void>>; + beginStart(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesStartOptionalParams): Promise, void>>; beginStartAndWait(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesStartOptionalParams): Promise; - beginUpdate(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesUpdateOptionalParams): Promise, CloudServicesUpdateResponse>>; + beginUpdate(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesUpdateOptionalParams): Promise, CloudServicesUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesUpdateOptionalParams): Promise; get(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesGetOptionalParams): Promise; getInstanceView(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesGetInstanceViewOptionalParams): Promise; @@ -846,7 +846,7 @@ export interface CloudServicesStartOptionalParams extends coreClient.OperationOp // @public export interface CloudServicesUpdateDomain { - beginWalkUpdateDomain(resourceGroupName: string, cloudServiceName: string, updateDomain: number, options?: CloudServicesUpdateDomainWalkUpdateDomainOptionalParams): Promise, void>>; + beginWalkUpdateDomain(resourceGroupName: string, cloudServiceName: string, updateDomain: number, options?: CloudServicesUpdateDomainWalkUpdateDomainOptionalParams): Promise, void>>; beginWalkUpdateDomainAndWait(resourceGroupName: string, cloudServiceName: string, updateDomain: number, options?: CloudServicesUpdateDomainWalkUpdateDomainOptionalParams): Promise; getUpdateDomain(resourceGroupName: string, cloudServiceName: string, updateDomain: number, options?: CloudServicesUpdateDomainGetUpdateDomainOptionalParams): Promise; listUpdateDomains(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesUpdateDomainListUpdateDomainsOptionalParams): PagedAsyncIterableIterator; @@ -1370,15 +1370,16 @@ export interface DedicatedHostListResult { // @public export interface DedicatedHosts { - beginCreateOrUpdate(resourceGroupName: string, hostGroupName: string, hostName: string, parameters: DedicatedHost, options?: DedicatedHostsCreateOrUpdateOptionalParams): Promise, DedicatedHostsCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, hostGroupName: string, hostName: string, parameters: DedicatedHost, options?: DedicatedHostsCreateOrUpdateOptionalParams): Promise, DedicatedHostsCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, hostGroupName: string, hostName: string, parameters: DedicatedHost, options?: DedicatedHostsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, hostGroupName: string, hostName: string, options?: DedicatedHostsDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, hostGroupName: string, hostName: string, options?: DedicatedHostsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, hostGroupName: string, hostName: string, options?: DedicatedHostsDeleteOptionalParams): Promise; - beginRestart(resourceGroupName: string, hostGroupName: string, hostName: string, options?: DedicatedHostsRestartOptionalParams): Promise, void>>; + beginRestart(resourceGroupName: string, hostGroupName: string, hostName: string, options?: DedicatedHostsRestartOptionalParams): Promise, void>>; beginRestartAndWait(resourceGroupName: string, hostGroupName: string, hostName: string, options?: DedicatedHostsRestartOptionalParams): Promise; - beginUpdate(resourceGroupName: string, hostGroupName: string, hostName: string, parameters: DedicatedHostUpdate, options?: DedicatedHostsUpdateOptionalParams): Promise, DedicatedHostsUpdateResponse>>; + beginUpdate(resourceGroupName: string, hostGroupName: string, hostName: string, parameters: DedicatedHostUpdate, options?: DedicatedHostsUpdateOptionalParams): Promise, DedicatedHostsUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, hostGroupName: string, hostName: string, parameters: DedicatedHostUpdate, options?: DedicatedHostsUpdateOptionalParams): Promise; get(resourceGroupName: string, hostGroupName: string, hostName: string, options?: DedicatedHostsGetOptionalParams): Promise; + listAvailableSizes(resourceGroupName: string, hostGroupName: string, hostName: string, options?: DedicatedHostsListAvailableSizesOptionalParams): PagedAsyncIterableIterator; listByHostGroup(resourceGroupName: string, hostGroupName: string, options?: DedicatedHostsListByHostGroupOptionalParams): PagedAsyncIterableIterator; } @@ -1405,6 +1406,18 @@ export interface DedicatedHostsGetOptionalParams extends coreClient.OperationOpt // @public export type DedicatedHostsGetResponse = DedicatedHost; +// @public +export interface DedicatedHostSizeListResult { + value?: string[]; +} + +// @public +export interface DedicatedHostsListAvailableSizesOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DedicatedHostsListAvailableSizesResponse = DedicatedHostSizeListResult; + // @public export interface DedicatedHostsListByHostGroupNextOptionalParams extends coreClient.OperationOptions { } @@ -1443,6 +1456,7 @@ export interface DedicatedHostUpdate extends UpdateResource { platformFaultDomain?: number; readonly provisioningState?: string; readonly provisioningTime?: Date; + sku?: Sku; readonly timeCreated?: Date; readonly virtualMachines?: SubResourceReadOnly[]; } @@ -1527,15 +1541,15 @@ export interface DiskAccess extends Resource { // @public export interface DiskAccesses { - beginCreateOrUpdate(resourceGroupName: string, diskAccessName: string, diskAccess: DiskAccess, options?: DiskAccessesCreateOrUpdateOptionalParams): Promise, DiskAccessesCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, diskAccessName: string, diskAccess: DiskAccess, options?: DiskAccessesCreateOrUpdateOptionalParams): Promise, DiskAccessesCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, diskAccessName: string, diskAccess: DiskAccess, options?: DiskAccessesCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, diskAccessName: string, options?: DiskAccessesDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, diskAccessName: string, options?: DiskAccessesDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, diskAccessName: string, options?: DiskAccessesDeleteOptionalParams): Promise; - beginDeleteAPrivateEndpointConnection(resourceGroupName: string, diskAccessName: string, privateEndpointConnectionName: string, options?: DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams): Promise, void>>; + beginDeleteAPrivateEndpointConnection(resourceGroupName: string, diskAccessName: string, privateEndpointConnectionName: string, options?: DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams): Promise, void>>; beginDeleteAPrivateEndpointConnectionAndWait(resourceGroupName: string, diskAccessName: string, privateEndpointConnectionName: string, options?: DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams): Promise; - beginUpdate(resourceGroupName: string, diskAccessName: string, diskAccess: DiskAccessUpdate, options?: DiskAccessesUpdateOptionalParams): Promise, DiskAccessesUpdateResponse>>; + beginUpdate(resourceGroupName: string, diskAccessName: string, diskAccess: DiskAccessUpdate, options?: DiskAccessesUpdateOptionalParams): Promise, DiskAccessesUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, diskAccessName: string, diskAccess: DiskAccessUpdate, options?: DiskAccessesUpdateOptionalParams): Promise; - beginUpdateAPrivateEndpointConnection(resourceGroupName: string, diskAccessName: string, privateEndpointConnectionName: string, privateEndpointConnection: PrivateEndpointConnection, options?: DiskAccessesUpdateAPrivateEndpointConnectionOptionalParams): Promise, DiskAccessesUpdateAPrivateEndpointConnectionResponse>>; + beginUpdateAPrivateEndpointConnection(resourceGroupName: string, diskAccessName: string, privateEndpointConnectionName: string, privateEndpointConnection: PrivateEndpointConnection, options?: DiskAccessesUpdateAPrivateEndpointConnectionOptionalParams): Promise, DiskAccessesUpdateAPrivateEndpointConnectionResponse>>; beginUpdateAPrivateEndpointConnectionAndWait(resourceGroupName: string, diskAccessName: string, privateEndpointConnectionName: string, privateEndpointConnection: PrivateEndpointConnection, options?: DiskAccessesUpdateAPrivateEndpointConnectionOptionalParams): Promise; get(resourceGroupName: string, diskAccessName: string, options?: DiskAccessesGetOptionalParams): Promise; getAPrivateEndpointConnection(resourceGroupName: string, diskAccessName: string, privateEndpointConnectionName: string, options?: DiskAccessesGetAPrivateEndpointConnectionOptionalParams): Promise; @@ -1703,11 +1717,11 @@ export interface DiskEncryptionSetParameters extends SubResource { // @public export interface DiskEncryptionSets { - beginCreateOrUpdate(resourceGroupName: string, diskEncryptionSetName: string, diskEncryptionSet: DiskEncryptionSet, options?: DiskEncryptionSetsCreateOrUpdateOptionalParams): Promise, DiskEncryptionSetsCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, diskEncryptionSetName: string, diskEncryptionSet: DiskEncryptionSet, options?: DiskEncryptionSetsCreateOrUpdateOptionalParams): Promise, DiskEncryptionSetsCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, diskEncryptionSetName: string, diskEncryptionSet: DiskEncryptionSet, options?: DiskEncryptionSetsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, diskEncryptionSetName: string, options?: DiskEncryptionSetsDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, diskEncryptionSetName: string, options?: DiskEncryptionSetsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, diskEncryptionSetName: string, options?: DiskEncryptionSetsDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, diskEncryptionSetName: string, diskEncryptionSet: DiskEncryptionSetUpdate, options?: DiskEncryptionSetsUpdateOptionalParams): Promise, DiskEncryptionSetsUpdateResponse>>; + beginUpdate(resourceGroupName: string, diskEncryptionSetName: string, diskEncryptionSet: DiskEncryptionSetUpdate, options?: DiskEncryptionSetsUpdateOptionalParams): Promise, DiskEncryptionSetsUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, diskEncryptionSetName: string, diskEncryptionSet: DiskEncryptionSetUpdate, options?: DiskEncryptionSetsUpdateOptionalParams): Promise; get(resourceGroupName: string, diskEncryptionSetName: string, options?: DiskEncryptionSetsGetOptionalParams): Promise; list(options?: DiskEncryptionSetsListOptionalParams): PagedAsyncIterableIterator; @@ -1849,6 +1863,12 @@ export interface DiskRestorePoint extends ProxyOnlyResource { readonly timeCreated?: Date; } +// @public +export interface DiskRestorePointAttributes extends SubResourceReadOnly { + encryption?: RestorePointEncryption; + sourceDiskRestorePoint?: ApiEntityReference; +} + // @public export interface DiskRestorePointGetOptionalParams extends coreClient.OperationOptions { } @@ -1893,9 +1913,9 @@ export type DiskRestorePointListByRestorePointResponse = DiskRestorePointList; // @public export interface DiskRestorePointOperations { - beginGrantAccess(resourceGroupName: string, restorePointCollectionName: string, vmRestorePointName: string, diskRestorePointName: string, grantAccessData: GrantAccessData, options?: DiskRestorePointGrantAccessOptionalParams): Promise, DiskRestorePointGrantAccessResponse>>; + beginGrantAccess(resourceGroupName: string, restorePointCollectionName: string, vmRestorePointName: string, diskRestorePointName: string, grantAccessData: GrantAccessData, options?: DiskRestorePointGrantAccessOptionalParams): Promise, DiskRestorePointGrantAccessResponse>>; beginGrantAccessAndWait(resourceGroupName: string, restorePointCollectionName: string, vmRestorePointName: string, diskRestorePointName: string, grantAccessData: GrantAccessData, options?: DiskRestorePointGrantAccessOptionalParams): Promise; - beginRevokeAccess(resourceGroupName: string, restorePointCollectionName: string, vmRestorePointName: string, diskRestorePointName: string, options?: DiskRestorePointRevokeAccessOptionalParams): Promise, void>>; + beginRevokeAccess(resourceGroupName: string, restorePointCollectionName: string, vmRestorePointName: string, diskRestorePointName: string, options?: DiskRestorePointRevokeAccessOptionalParams): Promise, void>>; beginRevokeAccessAndWait(resourceGroupName: string, restorePointCollectionName: string, vmRestorePointName: string, diskRestorePointName: string, options?: DiskRestorePointRevokeAccessOptionalParams): Promise; get(resourceGroupName: string, restorePointCollectionName: string, vmRestorePointName: string, diskRestorePointName: string, options?: DiskRestorePointGetOptionalParams): Promise; listByRestorePoint(resourceGroupName: string, restorePointCollectionName: string, vmRestorePointName: string, options?: DiskRestorePointListByRestorePointOptionalParams): PagedAsyncIterableIterator; @@ -1915,15 +1935,15 @@ export interface DiskRestorePointRevokeAccessOptionalParams extends coreClient.O // @public export interface Disks { - beginCreateOrUpdate(resourceGroupName: string, diskName: string, disk: Disk, options?: DisksCreateOrUpdateOptionalParams): Promise, DisksCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, diskName: string, disk: Disk, options?: DisksCreateOrUpdateOptionalParams): Promise, DisksCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, diskName: string, disk: Disk, options?: DisksCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, diskName: string, options?: DisksDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, diskName: string, options?: DisksDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, diskName: string, options?: DisksDeleteOptionalParams): Promise; - beginGrantAccess(resourceGroupName: string, diskName: string, grantAccessData: GrantAccessData, options?: DisksGrantAccessOptionalParams): Promise, DisksGrantAccessResponse>>; + beginGrantAccess(resourceGroupName: string, diskName: string, grantAccessData: GrantAccessData, options?: DisksGrantAccessOptionalParams): Promise, DisksGrantAccessResponse>>; beginGrantAccessAndWait(resourceGroupName: string, diskName: string, grantAccessData: GrantAccessData, options?: DisksGrantAccessOptionalParams): Promise; - beginRevokeAccess(resourceGroupName: string, diskName: string, options?: DisksRevokeAccessOptionalParams): Promise, void>>; + beginRevokeAccess(resourceGroupName: string, diskName: string, options?: DisksRevokeAccessOptionalParams): Promise, void>>; beginRevokeAccessAndWait(resourceGroupName: string, diskName: string, options?: DisksRevokeAccessOptionalParams): Promise; - beginUpdate(resourceGroupName: string, diskName: string, disk: DiskUpdate, options?: DisksUpdateOptionalParams): Promise, DisksUpdateResponse>>; + beginUpdate(resourceGroupName: string, diskName: string, disk: DiskUpdate, options?: DisksUpdateOptionalParams): Promise, DisksUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, diskName: string, disk: DiskUpdate, options?: DisksUpdateOptionalParams): Promise; get(resourceGroupName: string, diskName: string, options?: DisksGetOptionalParams): Promise; list(options?: DisksListOptionalParams): PagedAsyncIterableIterator; @@ -2094,12 +2114,18 @@ export type EncryptionType = string; // @public export type ExecutionState = string; +// @public +export type ExpandTypeForListVMs = string; + // @public export type ExpandTypesForGetCapacityReservationGroups = string; // @public export type ExpandTypesForGetVMScaleSets = string; +// @public +export type ExpandTypesForListVMs = string; + // @public export interface ExtendedLocation { name?: string; @@ -2120,11 +2146,11 @@ export interface Extension { // @public export interface Galleries { - beginCreateOrUpdate(resourceGroupName: string, galleryName: string, gallery: Gallery, options?: GalleriesCreateOrUpdateOptionalParams): Promise, GalleriesCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, galleryName: string, gallery: Gallery, options?: GalleriesCreateOrUpdateOptionalParams): Promise, GalleriesCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, galleryName: string, gallery: Gallery, options?: GalleriesCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, galleryName: string, options?: GalleriesDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, galleryName: string, options?: GalleriesDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, galleryName: string, options?: GalleriesDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, galleryName: string, gallery: GalleryUpdate, options?: GalleriesUpdateOptionalParams): Promise, GalleriesUpdateResponse>>; + beginUpdate(resourceGroupName: string, galleryName: string, gallery: GalleryUpdate, options?: GalleriesUpdateOptionalParams): Promise, GalleriesUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, galleryName: string, gallery: GalleryUpdate, options?: GalleriesUpdateOptionalParams): Promise; get(resourceGroupName: string, galleryName: string, options?: GalleriesGetOptionalParams): Promise; list(options?: GalleriesListOptionalParams): PagedAsyncIterableIterator; @@ -2241,11 +2267,11 @@ export interface GalleryApplicationList { // @public export interface GalleryApplications { - beginCreateOrUpdate(resourceGroupName: string, galleryName: string, galleryApplicationName: string, galleryApplication: GalleryApplication, options?: GalleryApplicationsCreateOrUpdateOptionalParams): Promise, GalleryApplicationsCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, galleryName: string, galleryApplicationName: string, galleryApplication: GalleryApplication, options?: GalleryApplicationsCreateOrUpdateOptionalParams): Promise, GalleryApplicationsCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, galleryName: string, galleryApplicationName: string, galleryApplication: GalleryApplication, options?: GalleryApplicationsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, galleryName: string, galleryApplicationName: string, options?: GalleryApplicationsDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, galleryName: string, galleryApplicationName: string, options?: GalleryApplicationsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, galleryName: string, galleryApplicationName: string, options?: GalleryApplicationsDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, galleryName: string, galleryApplicationName: string, galleryApplication: GalleryApplicationUpdate, options?: GalleryApplicationsUpdateOptionalParams): Promise, GalleryApplicationsUpdateResponse>>; + beginUpdate(resourceGroupName: string, galleryName: string, galleryApplicationName: string, galleryApplication: GalleryApplicationUpdate, options?: GalleryApplicationsUpdateOptionalParams): Promise, GalleryApplicationsUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, galleryName: string, galleryApplicationName: string, galleryApplication: GalleryApplicationUpdate, options?: GalleryApplicationsUpdateOptionalParams): Promise; get(resourceGroupName: string, galleryName: string, galleryApplicationName: string, options?: GalleryApplicationsGetOptionalParams): Promise; listByGallery(resourceGroupName: string, galleryName: string, options?: GalleryApplicationsListByGalleryOptionalParams): PagedAsyncIterableIterator; @@ -2336,11 +2362,11 @@ export interface GalleryApplicationVersionPublishingProfile extends GalleryArtif // @public export interface GalleryApplicationVersions { - beginCreateOrUpdate(resourceGroupName: string, galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: GalleryApplicationVersion, options?: GalleryApplicationVersionsCreateOrUpdateOptionalParams): Promise, GalleryApplicationVersionsCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: GalleryApplicationVersion, options?: GalleryApplicationVersionsCreateOrUpdateOptionalParams): Promise, GalleryApplicationVersionsCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: GalleryApplicationVersion, options?: GalleryApplicationVersionsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, options?: GalleryApplicationVersionsDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, options?: GalleryApplicationVersionsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, options?: GalleryApplicationVersionsDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: GalleryApplicationVersionUpdate, options?: GalleryApplicationVersionsUpdateOptionalParams): Promise, GalleryApplicationVersionsUpdateResponse>>; + beginUpdate(resourceGroupName: string, galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: GalleryApplicationVersionUpdate, options?: GalleryApplicationVersionsUpdateOptionalParams): Promise, GalleryApplicationVersionsUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: GalleryApplicationVersionUpdate, options?: GalleryApplicationVersionsUpdateOptionalParams): Promise; get(resourceGroupName: string, galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, options?: GalleryApplicationVersionsGetOptionalParams): Promise; listByGalleryApplication(resourceGroupName: string, galleryName: string, galleryApplicationName: string, options?: GalleryApplicationVersionsListByGalleryApplicationOptionalParams): PagedAsyncIterableIterator; @@ -2512,11 +2538,11 @@ export interface GalleryImageList { // @public export interface GalleryImages { - beginCreateOrUpdate(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImage: GalleryImage, options?: GalleryImagesCreateOrUpdateOptionalParams): Promise, GalleryImagesCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImage: GalleryImage, options?: GalleryImagesCreateOrUpdateOptionalParams): Promise, GalleryImagesCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImage: GalleryImage, options?: GalleryImagesCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, galleryName: string, galleryImageName: string, options?: GalleryImagesDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, galleryName: string, galleryImageName: string, options?: GalleryImagesDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, galleryName: string, galleryImageName: string, options?: GalleryImagesDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImage: GalleryImageUpdate, options?: GalleryImagesUpdateOptionalParams): Promise, GalleryImagesUpdateResponse>>; + beginUpdate(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImage: GalleryImageUpdate, options?: GalleryImagesUpdateOptionalParams): Promise, GalleryImagesUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImage: GalleryImageUpdate, options?: GalleryImagesUpdateOptionalParams): Promise; get(resourceGroupName: string, galleryName: string, galleryImageName: string, options?: GalleryImagesGetOptionalParams): Promise; listByGallery(resourceGroupName: string, galleryName: string, options?: GalleryImagesListByGalleryOptionalParams): PagedAsyncIterableIterator; @@ -2607,11 +2633,11 @@ export interface GalleryImageVersionPublishingProfile extends GalleryArtifactPub // @public export interface GalleryImageVersions { - beginCreateOrUpdate(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersion, options?: GalleryImageVersionsCreateOrUpdateOptionalParams): Promise, GalleryImageVersionsCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersion, options?: GalleryImageVersionsCreateOrUpdateOptionalParams): Promise, GalleryImageVersionsCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersion, options?: GalleryImageVersionsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImageVersionName: string, options?: GalleryImageVersionsDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImageVersionName: string, options?: GalleryImageVersionsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImageVersionName: string, options?: GalleryImageVersionsDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersionUpdate, options?: GalleryImageVersionsUpdateOptionalParams): Promise, GalleryImageVersionsUpdateResponse>>; + beginUpdate(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersionUpdate, options?: GalleryImageVersionsUpdateOptionalParams): Promise, GalleryImageVersionsUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersionUpdate, options?: GalleryImageVersionsUpdateOptionalParams): Promise; get(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImageVersionName: string, options?: GalleryImageVersionsGetOptionalParams): Promise; listByGalleryImage(resourceGroupName: string, galleryName: string, galleryImageName: string, options?: GalleryImageVersionsListByGalleryImageOptionalParams): PagedAsyncIterableIterator; @@ -2703,7 +2729,7 @@ export type GallerySharingPermissionTypes = string; // @public export interface GallerySharingProfile { - beginUpdate(resourceGroupName: string, galleryName: string, sharingUpdate: SharingUpdate, options?: GallerySharingProfileUpdateOptionalParams): Promise, GallerySharingProfileUpdateResponse>>; + beginUpdate(resourceGroupName: string, galleryName: string, sharingUpdate: SharingUpdate, options?: GallerySharingProfileUpdateOptionalParams): Promise, GallerySharingProfileUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, galleryName: string, sharingUpdate: SharingUpdate, options?: GallerySharingProfileUpdateOptionalParams): Promise; } @@ -2837,11 +2863,11 @@ export interface ImageReference extends SubResource { // @public export interface Images { - beginCreateOrUpdate(resourceGroupName: string, imageName: string, parameters: Image_2, options?: ImagesCreateOrUpdateOptionalParams): Promise, ImagesCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, imageName: string, parameters: Image_2, options?: ImagesCreateOrUpdateOptionalParams): Promise, ImagesCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, imageName: string, parameters: Image_2, options?: ImagesCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, imageName: string, options?: ImagesDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, imageName: string, options?: ImagesDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, imageName: string, options?: ImagesDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, imageName: string, parameters: ImageUpdate, options?: ImagesUpdateOptionalParams): Promise, ImagesUpdateResponse>>; + beginUpdate(resourceGroupName: string, imageName: string, parameters: ImageUpdate, options?: ImagesUpdateOptionalParams): Promise, ImagesUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, imageName: string, parameters: ImageUpdate, options?: ImagesUpdateOptionalParams): Promise; get(resourceGroupName: string, imageName: string, options?: ImagesGetOptionalParams): Promise; list(options?: ImagesListOptionalParams): PagedAsyncIterableIterator; @@ -3201,6 +3227,11 @@ export enum KnownExecutionState { Unknown = "Unknown" } +// @public +export enum KnownExpandTypeForListVMs { + InstanceView = "instanceView" +} + // @public export enum KnownExpandTypesForGetCapacityReservationGroups { VirtualMachineScaleSetVMsRef = "virtualMachineScaleSetVMs/$ref", @@ -3212,6 +3243,11 @@ export enum KnownExpandTypesForGetVMScaleSets { UserData = "userData" } +// @public +export enum KnownExpandTypesForListVMs { + InstanceView = "instanceView" +} + // @public export enum KnownExtendedLocationType { EdgeZone = "EdgeZone" @@ -3459,6 +3495,13 @@ export enum KnownRestorePointCollectionExpandOptions { RestorePoints = "restorePoints" } +// @public +export enum KnownRestorePointEncryptionType { + EncryptionAtRestWithCustomerKey = "EncryptionAtRestWithCustomerKey", + EncryptionAtRestWithPlatformAndCustomerKeys = "EncryptionAtRestWithPlatformAndCustomerKeys", + EncryptionAtRestWithPlatformKey = "EncryptionAtRestWithPlatformKey" +} + // @public export enum KnownRestorePointExpandOptions { InstanceView = "instanceView" @@ -3526,6 +3569,7 @@ export enum KnownSnapshotStorageAccountTypes { export enum KnownStorageAccountType { PremiumLRS = "Premium_LRS", StandardLRS = "Standard_LRS", + StandardSSDLRS = "StandardSSD_LRS", StandardZRS = "Standard_ZRS" } @@ -3854,6 +3898,7 @@ export type LinuxVMGuestPatchAutomaticByPlatformRebootSetting = string; // @public export interface LinuxVMGuestPatchAutomaticByPlatformSettings { + bypassPlatformSafetyChecksOnUserSchedule?: boolean; rebootSetting?: LinuxVMGuestPatchAutomaticByPlatformRebootSetting; } @@ -3893,9 +3938,9 @@ export interface LoadBalancerFrontendIpConfigurationProperties { // @public export interface LogAnalytics { - beginExportRequestRateByInterval(location: string, parameters: RequestRateByIntervalInput, options?: LogAnalyticsExportRequestRateByIntervalOptionalParams): Promise, LogAnalyticsExportRequestRateByIntervalResponse>>; + beginExportRequestRateByInterval(location: string, parameters: RequestRateByIntervalInput, options?: LogAnalyticsExportRequestRateByIntervalOptionalParams): Promise, LogAnalyticsExportRequestRateByIntervalResponse>>; beginExportRequestRateByIntervalAndWait(location: string, parameters: RequestRateByIntervalInput, options?: LogAnalyticsExportRequestRateByIntervalOptionalParams): Promise; - beginExportThrottledRequests(location: string, parameters: ThrottledRequestsInput, options?: LogAnalyticsExportThrottledRequestsOptionalParams): Promise, LogAnalyticsExportThrottledRequestsResponse>>; + beginExportThrottledRequests(location: string, parameters: ThrottledRequestsInput, options?: LogAnalyticsExportThrottledRequestsOptionalParams): Promise, LogAnalyticsExportThrottledRequestsResponse>>; beginExportThrottledRequestsAndWait(location: string, parameters: ThrottledRequestsInput, options?: LogAnalyticsExportThrottledRequestsOptionalParams): Promise; } @@ -4612,7 +4657,7 @@ export interface RestorePoint extends ProxyResource { excludeDisks?: ApiEntityReference[]; readonly instanceView?: RestorePointInstanceView; readonly provisioningState?: string; - readonly sourceMetadata?: RestorePointSourceMetadata; + sourceMetadata?: RestorePointSourceMetadata; sourceRestorePoint?: ApiEntityReference; timeCreated?: Date; } @@ -4636,7 +4681,7 @@ export interface RestorePointCollectionListResult { // @public export interface RestorePointCollections { - beginDelete(resourceGroupName: string, restorePointCollectionName: string, options?: RestorePointCollectionsDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, restorePointCollectionName: string, options?: RestorePointCollectionsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, restorePointCollectionName: string, options?: RestorePointCollectionsDeleteOptionalParams): Promise; createOrUpdate(resourceGroupName: string, restorePointCollectionName: string, parameters: RestorePointCollection, options?: RestorePointCollectionsCreateOrUpdateOptionalParams): Promise; get(resourceGroupName: string, restorePointCollectionName: string, options?: RestorePointCollectionsGetOptionalParams): Promise; @@ -4715,6 +4760,15 @@ export interface RestorePointCollectionUpdate extends UpdateResource { source?: RestorePointCollectionSourceProperties; } +// @public +export interface RestorePointEncryption { + diskEncryptionSet?: DiskEncryptionSetParameters; + type?: RestorePointEncryptionType; +} + +// @public +export type RestorePointEncryptionType = string; + // @public export type RestorePointExpandOptions = string; @@ -4726,9 +4780,9 @@ export interface RestorePointInstanceView { // @public export interface RestorePoints { - beginCreate(resourceGroupName: string, restorePointCollectionName: string, restorePointName: string, parameters: RestorePoint, options?: RestorePointsCreateOptionalParams): Promise, RestorePointsCreateResponse>>; + beginCreate(resourceGroupName: string, restorePointCollectionName: string, restorePointName: string, parameters: RestorePoint, options?: RestorePointsCreateOptionalParams): Promise, RestorePointsCreateResponse>>; beginCreateAndWait(resourceGroupName: string, restorePointCollectionName: string, restorePointName: string, parameters: RestorePoint, options?: RestorePointsCreateOptionalParams): Promise; - beginDelete(resourceGroupName: string, restorePointCollectionName: string, restorePointName: string, options?: RestorePointsDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, restorePointCollectionName: string, restorePointName: string, options?: RestorePointsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, restorePointCollectionName: string, restorePointName: string, options?: RestorePointsDeleteOptionalParams): Promise; get(resourceGroupName: string, restorePointCollectionName: string, restorePointName: string, options?: RestorePointsGetOptionalParams): Promise; } @@ -4758,36 +4812,39 @@ export type RestorePointsGetResponse = RestorePoint; // @public export interface RestorePointSourceMetadata { - diagnosticsProfile?: DiagnosticsProfile; - hardwareProfile?: HardwareProfile; - licenseType?: string; - location?: string; - osProfile?: OSProfile; - securityProfile?: SecurityProfile; + readonly diagnosticsProfile?: DiagnosticsProfile; + readonly hardwareProfile?: HardwareProfile; + readonly hyperVGeneration?: HyperVGenerationTypes; + readonly licenseType?: string; + readonly location?: string; + readonly osProfile?: OSProfile; + readonly securityProfile?: SecurityProfile; storageProfile?: RestorePointSourceVMStorageProfile; - userData?: string; - vmId?: string; + readonly userData?: string; + readonly vmId?: string; } // @public export interface RestorePointSourceVMDataDisk { - caching?: CachingTypes; - diskRestorePoint?: ApiEntityReference; - diskSizeGB?: number; - lun?: number; + readonly caching?: CachingTypes; + diskRestorePoint?: DiskRestorePointAttributes; + readonly diskSizeGB?: number; + readonly lun?: number; managedDisk?: ManagedDiskParameters; - name?: string; + readonly name?: string; + readonly writeAcceleratorEnabled?: boolean; } // @public export interface RestorePointSourceVmosDisk { - caching?: CachingTypes; - diskRestorePoint?: ApiEntityReference; - diskSizeGB?: number; - encryptionSettings?: DiskEncryptionSettings; + readonly caching?: CachingTypes; + diskRestorePoint?: DiskRestorePointAttributes; + readonly diskSizeGB?: number; + readonly encryptionSettings?: DiskEncryptionSettings; managedDisk?: ManagedDiskParameters; - name?: string; - osType?: OperatingSystemType; + readonly name?: string; + readonly osType?: OperatingSystemType; + readonly writeAcceleratorEnabled?: boolean; } // @public @@ -4928,6 +4985,12 @@ export interface RunCommandListResult { value: RunCommandDocumentBase[]; } +// @public +export interface RunCommandManagedIdentity { + clientId?: string; + objectId?: string; +} + // @public export interface RunCommandParameterDefinition { defaultValue?: string; @@ -4956,6 +5019,12 @@ export interface ScheduledEventsProfile { // @public export type SecurityEncryptionTypes = string; +// @public +export interface SecurityPostureReference { + excludeExtensions?: VirtualMachineExtension[]; + id?: string; +} + // @public export interface SecurityProfile { encryptionAtHost?: boolean; @@ -5218,15 +5287,15 @@ export interface SnapshotList { // @public export interface Snapshots { - beginCreateOrUpdate(resourceGroupName: string, snapshotName: string, snapshot: Snapshot, options?: SnapshotsCreateOrUpdateOptionalParams): Promise, SnapshotsCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, snapshotName: string, snapshot: Snapshot, options?: SnapshotsCreateOrUpdateOptionalParams): Promise, SnapshotsCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, snapshotName: string, snapshot: Snapshot, options?: SnapshotsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, snapshotName: string, options?: SnapshotsDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, snapshotName: string, options?: SnapshotsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, snapshotName: string, options?: SnapshotsDeleteOptionalParams): Promise; - beginGrantAccess(resourceGroupName: string, snapshotName: string, grantAccessData: GrantAccessData, options?: SnapshotsGrantAccessOptionalParams): Promise, SnapshotsGrantAccessResponse>>; + beginGrantAccess(resourceGroupName: string, snapshotName: string, grantAccessData: GrantAccessData, options?: SnapshotsGrantAccessOptionalParams): Promise, SnapshotsGrantAccessResponse>>; beginGrantAccessAndWait(resourceGroupName: string, snapshotName: string, grantAccessData: GrantAccessData, options?: SnapshotsGrantAccessOptionalParams): Promise; - beginRevokeAccess(resourceGroupName: string, snapshotName: string, options?: SnapshotsRevokeAccessOptionalParams): Promise, void>>; + beginRevokeAccess(resourceGroupName: string, snapshotName: string, options?: SnapshotsRevokeAccessOptionalParams): Promise, void>>; beginRevokeAccessAndWait(resourceGroupName: string, snapshotName: string, options?: SnapshotsRevokeAccessOptionalParams): Promise; - beginUpdate(resourceGroupName: string, snapshotName: string, snapshot: SnapshotUpdate, options?: SnapshotsUpdateOptionalParams): Promise, SnapshotsUpdateResponse>>; + beginUpdate(resourceGroupName: string, snapshotName: string, snapshot: SnapshotUpdate, options?: SnapshotsUpdateOptionalParams): Promise, SnapshotsUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, snapshotName: string, snapshot: SnapshotUpdate, options?: SnapshotsUpdateOptionalParams): Promise; get(resourceGroupName: string, snapshotName: string, options?: SnapshotsGetOptionalParams): Promise; list(options?: SnapshotsListOptionalParams): PagedAsyncIterableIterator; @@ -5755,6 +5824,7 @@ export interface VirtualMachineExtension extends ResourceWithOptionalLocation { instanceView?: VirtualMachineExtensionInstanceView; protectedSettings?: any; protectedSettingsFromKeyVault?: KeyVaultSecretReference; + provisionAfterExtensions?: string[]; readonly provisioningState?: string; publisher?: string; settings?: any; @@ -5823,11 +5893,11 @@ export interface VirtualMachineExtensionInstanceView { // @public export interface VirtualMachineExtensions { - beginCreateOrUpdate(resourceGroupName: string, vmName: string, vmExtensionName: string, extensionParameters: VirtualMachineExtension, options?: VirtualMachineExtensionsCreateOrUpdateOptionalParams): Promise, VirtualMachineExtensionsCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, vmName: string, vmExtensionName: string, extensionParameters: VirtualMachineExtension, options?: VirtualMachineExtensionsCreateOrUpdateOptionalParams): Promise, VirtualMachineExtensionsCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, vmName: string, vmExtensionName: string, extensionParameters: VirtualMachineExtension, options?: VirtualMachineExtensionsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, vmName: string, vmExtensionName: string, options?: VirtualMachineExtensionsDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, vmName: string, vmExtensionName: string, options?: VirtualMachineExtensionsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, vmName: string, vmExtensionName: string, options?: VirtualMachineExtensionsDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, vmName: string, vmExtensionName: string, extensionParameters: VirtualMachineExtensionUpdate, options?: VirtualMachineExtensionsUpdateOptionalParams): Promise, VirtualMachineExtensionsUpdateResponse>>; + beginUpdate(resourceGroupName: string, vmName: string, vmExtensionName: string, extensionParameters: VirtualMachineExtensionUpdate, options?: VirtualMachineExtensionsUpdateOptionalParams): Promise, VirtualMachineExtensionsUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, vmName: string, vmExtensionName: string, extensionParameters: VirtualMachineExtensionUpdate, options?: VirtualMachineExtensionsUpdateOptionalParams): Promise; get(resourceGroupName: string, vmName: string, vmExtensionName: string, options?: VirtualMachineExtensionsGetOptionalParams): Promise; list(resourceGroupName: string, vmName: string, options?: VirtualMachineExtensionsListOptionalParams): Promise; @@ -6169,8 +6239,10 @@ export interface VirtualMachineReimageParameters { // @public export interface VirtualMachineRunCommand extends Resource { asyncExecution?: boolean; + errorBlobManagedIdentity?: RunCommandManagedIdentity; errorBlobUri?: string; readonly instanceView?: VirtualMachineRunCommandInstanceView; + outputBlobManagedIdentity?: RunCommandManagedIdentity; outputBlobUri?: string; parameters?: RunCommandInputParameter[]; protectedParameters?: RunCommandInputParameter[]; @@ -6179,6 +6251,7 @@ export interface VirtualMachineRunCommand extends Resource { runAsUser?: string; source?: VirtualMachineRunCommandScriptSource; timeoutInSeconds?: number; + treatFailureAsDeploymentFailure?: boolean; } // @public @@ -6195,11 +6268,11 @@ export interface VirtualMachineRunCommandInstanceView { // @public export interface VirtualMachineRunCommands { - beginCreateOrUpdate(resourceGroupName: string, vmName: string, runCommandName: string, runCommand: VirtualMachineRunCommand, options?: VirtualMachineRunCommandsCreateOrUpdateOptionalParams): Promise, VirtualMachineRunCommandsCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, vmName: string, runCommandName: string, runCommand: VirtualMachineRunCommand, options?: VirtualMachineRunCommandsCreateOrUpdateOptionalParams): Promise, VirtualMachineRunCommandsCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, vmName: string, runCommandName: string, runCommand: VirtualMachineRunCommand, options?: VirtualMachineRunCommandsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, vmName: string, runCommandName: string, options?: VirtualMachineRunCommandsDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, vmName: string, runCommandName: string, options?: VirtualMachineRunCommandsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, vmName: string, runCommandName: string, options?: VirtualMachineRunCommandsDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, vmName: string, runCommandName: string, runCommand: VirtualMachineRunCommandUpdate, options?: VirtualMachineRunCommandsUpdateOptionalParams): Promise, VirtualMachineRunCommandsUpdateResponse>>; + beginUpdate(resourceGroupName: string, vmName: string, runCommandName: string, runCommand: VirtualMachineRunCommandUpdate, options?: VirtualMachineRunCommandsUpdateOptionalParams): Promise, VirtualMachineRunCommandsUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, vmName: string, runCommandName: string, runCommand: VirtualMachineRunCommandUpdate, options?: VirtualMachineRunCommandsUpdateOptionalParams): Promise; get(location: string, commandId: string, options?: VirtualMachineRunCommandsGetOptionalParams): Promise; getByVirtualMachine(resourceGroupName: string, vmName: string, runCommandName: string, options?: VirtualMachineRunCommandsGetByVirtualMachineOptionalParams): Promise; @@ -6221,6 +6294,7 @@ export interface VirtualMachineRunCommandScriptSource { commandId?: string; script?: string; scriptUri?: string; + scriptUriManagedIdentity?: RunCommandManagedIdentity; } // @public @@ -6291,8 +6365,10 @@ export type VirtualMachineRunCommandsUpdateResponse = VirtualMachineRunCommand; // @public export interface VirtualMachineRunCommandUpdate extends UpdateResource { asyncExecution?: boolean; + errorBlobManagedIdentity?: RunCommandManagedIdentity; errorBlobUri?: string; readonly instanceView?: VirtualMachineRunCommandInstanceView; + outputBlobManagedIdentity?: RunCommandManagedIdentity; outputBlobUri?: string; parameters?: RunCommandInputParameter[]; protectedParameters?: RunCommandInputParameter[]; @@ -6301,41 +6377,42 @@ export interface VirtualMachineRunCommandUpdate extends UpdateResource { runAsUser?: string; source?: VirtualMachineRunCommandScriptSource; timeoutInSeconds?: number; + treatFailureAsDeploymentFailure?: boolean; } // @public export interface VirtualMachines { - beginAssessPatches(resourceGroupName: string, vmName: string, options?: VirtualMachinesAssessPatchesOptionalParams): Promise, VirtualMachinesAssessPatchesResponse>>; + beginAssessPatches(resourceGroupName: string, vmName: string, options?: VirtualMachinesAssessPatchesOptionalParams): Promise, VirtualMachinesAssessPatchesResponse>>; beginAssessPatchesAndWait(resourceGroupName: string, vmName: string, options?: VirtualMachinesAssessPatchesOptionalParams): Promise; - beginCapture(resourceGroupName: string, vmName: string, parameters: VirtualMachineCaptureParameters, options?: VirtualMachinesCaptureOptionalParams): Promise, VirtualMachinesCaptureResponse>>; + beginCapture(resourceGroupName: string, vmName: string, parameters: VirtualMachineCaptureParameters, options?: VirtualMachinesCaptureOptionalParams): Promise, VirtualMachinesCaptureResponse>>; beginCaptureAndWait(resourceGroupName: string, vmName: string, parameters: VirtualMachineCaptureParameters, options?: VirtualMachinesCaptureOptionalParams): Promise; - beginConvertToManagedDisks(resourceGroupName: string, vmName: string, options?: VirtualMachinesConvertToManagedDisksOptionalParams): Promise, void>>; + beginConvertToManagedDisks(resourceGroupName: string, vmName: string, options?: VirtualMachinesConvertToManagedDisksOptionalParams): Promise, void>>; beginConvertToManagedDisksAndWait(resourceGroupName: string, vmName: string, options?: VirtualMachinesConvertToManagedDisksOptionalParams): Promise; - beginCreateOrUpdate(resourceGroupName: string, vmName: string, parameters: VirtualMachine, options?: VirtualMachinesCreateOrUpdateOptionalParams): Promise, VirtualMachinesCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, vmName: string, parameters: VirtualMachine, options?: VirtualMachinesCreateOrUpdateOptionalParams): Promise, VirtualMachinesCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, vmName: string, parameters: VirtualMachine, options?: VirtualMachinesCreateOrUpdateOptionalParams): Promise; - beginDeallocate(resourceGroupName: string, vmName: string, options?: VirtualMachinesDeallocateOptionalParams): Promise, void>>; + beginDeallocate(resourceGroupName: string, vmName: string, options?: VirtualMachinesDeallocateOptionalParams): Promise, void>>; beginDeallocateAndWait(resourceGroupName: string, vmName: string, options?: VirtualMachinesDeallocateOptionalParams): Promise; - beginDelete(resourceGroupName: string, vmName: string, options?: VirtualMachinesDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, vmName: string, options?: VirtualMachinesDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, vmName: string, options?: VirtualMachinesDeleteOptionalParams): Promise; - beginInstallPatches(resourceGroupName: string, vmName: string, installPatchesInput: VirtualMachineInstallPatchesParameters, options?: VirtualMachinesInstallPatchesOptionalParams): Promise, VirtualMachinesInstallPatchesResponse>>; + beginInstallPatches(resourceGroupName: string, vmName: string, installPatchesInput: VirtualMachineInstallPatchesParameters, options?: VirtualMachinesInstallPatchesOptionalParams): Promise, VirtualMachinesInstallPatchesResponse>>; beginInstallPatchesAndWait(resourceGroupName: string, vmName: string, installPatchesInput: VirtualMachineInstallPatchesParameters, options?: VirtualMachinesInstallPatchesOptionalParams): Promise; - beginPerformMaintenance(resourceGroupName: string, vmName: string, options?: VirtualMachinesPerformMaintenanceOptionalParams): Promise, void>>; + beginPerformMaintenance(resourceGroupName: string, vmName: string, options?: VirtualMachinesPerformMaintenanceOptionalParams): Promise, void>>; beginPerformMaintenanceAndWait(resourceGroupName: string, vmName: string, options?: VirtualMachinesPerformMaintenanceOptionalParams): Promise; - beginPowerOff(resourceGroupName: string, vmName: string, options?: VirtualMachinesPowerOffOptionalParams): Promise, void>>; + beginPowerOff(resourceGroupName: string, vmName: string, options?: VirtualMachinesPowerOffOptionalParams): Promise, void>>; beginPowerOffAndWait(resourceGroupName: string, vmName: string, options?: VirtualMachinesPowerOffOptionalParams): Promise; - beginReapply(resourceGroupName: string, vmName: string, options?: VirtualMachinesReapplyOptionalParams): Promise, void>>; + beginReapply(resourceGroupName: string, vmName: string, options?: VirtualMachinesReapplyOptionalParams): Promise, void>>; beginReapplyAndWait(resourceGroupName: string, vmName: string, options?: VirtualMachinesReapplyOptionalParams): Promise; - beginRedeploy(resourceGroupName: string, vmName: string, options?: VirtualMachinesRedeployOptionalParams): Promise, void>>; + beginRedeploy(resourceGroupName: string, vmName: string, options?: VirtualMachinesRedeployOptionalParams): Promise, void>>; beginRedeployAndWait(resourceGroupName: string, vmName: string, options?: VirtualMachinesRedeployOptionalParams): Promise; - beginReimage(resourceGroupName: string, vmName: string, options?: VirtualMachinesReimageOptionalParams): Promise, void>>; + beginReimage(resourceGroupName: string, vmName: string, options?: VirtualMachinesReimageOptionalParams): Promise, void>>; beginReimageAndWait(resourceGroupName: string, vmName: string, options?: VirtualMachinesReimageOptionalParams): Promise; - beginRestart(resourceGroupName: string, vmName: string, options?: VirtualMachinesRestartOptionalParams): Promise, void>>; + beginRestart(resourceGroupName: string, vmName: string, options?: VirtualMachinesRestartOptionalParams): Promise, void>>; beginRestartAndWait(resourceGroupName: string, vmName: string, options?: VirtualMachinesRestartOptionalParams): Promise; - beginRunCommand(resourceGroupName: string, vmName: string, parameters: RunCommandInput, options?: VirtualMachinesRunCommandOptionalParams): Promise, VirtualMachinesRunCommandResponse>>; + beginRunCommand(resourceGroupName: string, vmName: string, parameters: RunCommandInput, options?: VirtualMachinesRunCommandOptionalParams): Promise, VirtualMachinesRunCommandResponse>>; beginRunCommandAndWait(resourceGroupName: string, vmName: string, parameters: RunCommandInput, options?: VirtualMachinesRunCommandOptionalParams): Promise; - beginStart(resourceGroupName: string, vmName: string, options?: VirtualMachinesStartOptionalParams): Promise, void>>; + beginStart(resourceGroupName: string, vmName: string, options?: VirtualMachinesStartOptionalParams): Promise, void>>; beginStartAndWait(resourceGroupName: string, vmName: string, options?: VirtualMachinesStartOptionalParams): Promise; - beginUpdate(resourceGroupName: string, vmName: string, parameters: VirtualMachineUpdate, options?: VirtualMachinesUpdateOptionalParams): Promise, VirtualMachinesUpdateResponse>>; + beginUpdate(resourceGroupName: string, vmName: string, parameters: VirtualMachineUpdate, options?: VirtualMachinesUpdateOptionalParams): Promise, VirtualMachinesUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, vmName: string, parameters: VirtualMachineUpdate, options?: VirtualMachinesUpdateOptionalParams): Promise; generalize(resourceGroupName: string, vmName: string, options?: VirtualMachinesGeneralizeOptionalParams): Promise; get(resourceGroupName: string, vmName: string, options?: VirtualMachinesGetOptionalParams): Promise; @@ -6431,11 +6508,11 @@ export interface VirtualMachineScaleSetExtensionProfile { // @public export interface VirtualMachineScaleSetExtensions { - beginCreateOrUpdate(resourceGroupName: string, vmScaleSetName: string, vmssExtensionName: string, extensionParameters: VirtualMachineScaleSetExtension, options?: VirtualMachineScaleSetExtensionsCreateOrUpdateOptionalParams): Promise, VirtualMachineScaleSetExtensionsCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, vmScaleSetName: string, vmssExtensionName: string, extensionParameters: VirtualMachineScaleSetExtension, options?: VirtualMachineScaleSetExtensionsCreateOrUpdateOptionalParams): Promise, VirtualMachineScaleSetExtensionsCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, vmScaleSetName: string, vmssExtensionName: string, extensionParameters: VirtualMachineScaleSetExtension, options?: VirtualMachineScaleSetExtensionsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, vmScaleSetName: string, vmssExtensionName: string, options?: VirtualMachineScaleSetExtensionsDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, vmScaleSetName: string, vmssExtensionName: string, options?: VirtualMachineScaleSetExtensionsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, vmScaleSetName: string, vmssExtensionName: string, options?: VirtualMachineScaleSetExtensionsDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, vmScaleSetName: string, vmssExtensionName: string, extensionParameters: VirtualMachineScaleSetExtensionUpdate, options?: VirtualMachineScaleSetExtensionsUpdateOptionalParams): Promise, VirtualMachineScaleSetExtensionsUpdateResponse>>; + beginUpdate(resourceGroupName: string, vmScaleSetName: string, vmssExtensionName: string, extensionParameters: VirtualMachineScaleSetExtensionUpdate, options?: VirtualMachineScaleSetExtensionsUpdateOptionalParams): Promise, VirtualMachineScaleSetExtensionsUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, vmScaleSetName: string, vmssExtensionName: string, extensionParameters: VirtualMachineScaleSetExtensionUpdate, options?: VirtualMachineScaleSetExtensionsUpdateOptionalParams): Promise; get(resourceGroupName: string, vmScaleSetName: string, vmssExtensionName: string, options?: VirtualMachineScaleSetExtensionsGetOptionalParams): Promise; list(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetExtensionsListOptionalParams): PagedAsyncIterableIterator; @@ -6534,7 +6611,7 @@ export interface VirtualMachineScaleSetInstanceViewStatusesSummary { } // @public -export interface VirtualMachineScaleSetIPConfiguration extends SubResource { +export interface VirtualMachineScaleSetIPConfiguration { applicationGatewayBackendAddressPools?: SubResource[]; applicationSecurityGroups?: SubResource[]; loadBalancerBackendAddressPools?: SubResource[]; @@ -6584,7 +6661,7 @@ export interface VirtualMachineScaleSetManagedDiskParameters { } // @public -export interface VirtualMachineScaleSetNetworkConfiguration extends SubResource { +export interface VirtualMachineScaleSetNetworkConfiguration { deleteOption?: DeleteOptions; disableTcpStateTracking?: boolean; dnsSettings?: VirtualMachineScaleSetNetworkConfigurationDnsSettings; @@ -6661,11 +6738,11 @@ export interface VirtualMachineScaleSetReimageParameters extends VirtualMachineS // @public export interface VirtualMachineScaleSetRollingUpgrades { - beginCancel(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetRollingUpgradesCancelOptionalParams): Promise, void>>; + beginCancel(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetRollingUpgradesCancelOptionalParams): Promise, void>>; beginCancelAndWait(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetRollingUpgradesCancelOptionalParams): Promise; - beginStartExtensionUpgrade(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeOptionalParams): Promise, void>>; + beginStartExtensionUpgrade(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeOptionalParams): Promise, void>>; beginStartExtensionUpgradeAndWait(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeOptionalParams): Promise; - beginStartOSUpgrade(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetRollingUpgradesStartOSUpgradeOptionalParams): Promise, void>>; + beginStartOSUpgrade(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetRollingUpgradesStartOSUpgradeOptionalParams): Promise, void>>; beginStartOSUpgradeAndWait(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetRollingUpgradesStartOSUpgradeOptionalParams): Promise; getLatest(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetRollingUpgradesGetLatestOptionalParams): Promise; } @@ -6697,33 +6774,35 @@ export interface VirtualMachineScaleSetRollingUpgradesStartOSUpgradeOptionalPara // @public export interface VirtualMachineScaleSets { - beginCreateOrUpdate(resourceGroupName: string, vmScaleSetName: string, parameters: VirtualMachineScaleSet, options?: VirtualMachineScaleSetsCreateOrUpdateOptionalParams): Promise, VirtualMachineScaleSetsCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, vmScaleSetName: string, parameters: VirtualMachineScaleSet, options?: VirtualMachineScaleSetsCreateOrUpdateOptionalParams): Promise, VirtualMachineScaleSetsCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, vmScaleSetName: string, parameters: VirtualMachineScaleSet, options?: VirtualMachineScaleSetsCreateOrUpdateOptionalParams): Promise; - beginDeallocate(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsDeallocateOptionalParams): Promise, void>>; + beginDeallocate(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsDeallocateOptionalParams): Promise, void>>; beginDeallocateAndWait(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsDeallocateOptionalParams): Promise; - beginDelete(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsDeleteOptionalParams): Promise; - beginDeleteInstances(resourceGroupName: string, vmScaleSetName: string, vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs, options?: VirtualMachineScaleSetsDeleteInstancesOptionalParams): Promise, void>>; + beginDeleteInstances(resourceGroupName: string, vmScaleSetName: string, vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs, options?: VirtualMachineScaleSetsDeleteInstancesOptionalParams): Promise, void>>; beginDeleteInstancesAndWait(resourceGroupName: string, vmScaleSetName: string, vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs, options?: VirtualMachineScaleSetsDeleteInstancesOptionalParams): Promise; - beginPerformMaintenance(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsPerformMaintenanceOptionalParams): Promise, void>>; + beginPerformMaintenance(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsPerformMaintenanceOptionalParams): Promise, void>>; beginPerformMaintenanceAndWait(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsPerformMaintenanceOptionalParams): Promise; - beginPowerOff(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsPowerOffOptionalParams): Promise, void>>; + beginPowerOff(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsPowerOffOptionalParams): Promise, void>>; beginPowerOffAndWait(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsPowerOffOptionalParams): Promise; - beginRedeploy(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsRedeployOptionalParams): Promise, void>>; + beginReapply(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsReapplyOptionalParams): Promise, void>>; + beginReapplyAndWait(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsReapplyOptionalParams): Promise; + beginRedeploy(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsRedeployOptionalParams): Promise, void>>; beginRedeployAndWait(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsRedeployOptionalParams): Promise; - beginReimage(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsReimageOptionalParams): Promise, void>>; - beginReimageAll(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsReimageAllOptionalParams): Promise, void>>; + beginReimage(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsReimageOptionalParams): Promise, void>>; + beginReimageAll(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsReimageAllOptionalParams): Promise, void>>; beginReimageAllAndWait(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsReimageAllOptionalParams): Promise; beginReimageAndWait(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsReimageOptionalParams): Promise; - beginRestart(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsRestartOptionalParams): Promise, void>>; + beginRestart(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsRestartOptionalParams): Promise, void>>; beginRestartAndWait(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsRestartOptionalParams): Promise; - beginSetOrchestrationServiceState(resourceGroupName: string, vmScaleSetName: string, parameters: OrchestrationServiceStateInput, options?: VirtualMachineScaleSetsSetOrchestrationServiceStateOptionalParams): Promise, void>>; + beginSetOrchestrationServiceState(resourceGroupName: string, vmScaleSetName: string, parameters: OrchestrationServiceStateInput, options?: VirtualMachineScaleSetsSetOrchestrationServiceStateOptionalParams): Promise, void>>; beginSetOrchestrationServiceStateAndWait(resourceGroupName: string, vmScaleSetName: string, parameters: OrchestrationServiceStateInput, options?: VirtualMachineScaleSetsSetOrchestrationServiceStateOptionalParams): Promise; - beginStart(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsStartOptionalParams): Promise, void>>; + beginStart(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsStartOptionalParams): Promise, void>>; beginStartAndWait(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsStartOptionalParams): Promise; - beginUpdate(resourceGroupName: string, vmScaleSetName: string, parameters: VirtualMachineScaleSetUpdate, options?: VirtualMachineScaleSetsUpdateOptionalParams): Promise, VirtualMachineScaleSetsUpdateResponse>>; + beginUpdate(resourceGroupName: string, vmScaleSetName: string, parameters: VirtualMachineScaleSetUpdate, options?: VirtualMachineScaleSetsUpdateOptionalParams): Promise, VirtualMachineScaleSetsUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, vmScaleSetName: string, parameters: VirtualMachineScaleSetUpdate, options?: VirtualMachineScaleSetsUpdateOptionalParams): Promise; - beginUpdateInstances(resourceGroupName: string, vmScaleSetName: string, vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs, options?: VirtualMachineScaleSetsUpdateInstancesOptionalParams): Promise, void>>; + beginUpdateInstances(resourceGroupName: string, vmScaleSetName: string, vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs, options?: VirtualMachineScaleSetsUpdateInstancesOptionalParams): Promise, void>>; beginUpdateInstancesAndWait(resourceGroupName: string, vmScaleSetName: string, vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs, options?: VirtualMachineScaleSetsUpdateInstancesOptionalParams): Promise; convertToSinglePlacementGroup(resourceGroupName: string, vmScaleSetName: string, parameters: VMScaleSetConvertToSinglePlacementGroupInput, options?: VirtualMachineScaleSetsConvertToSinglePlacementGroupOptionalParams): Promise; forceRecoveryServiceFabricPlatformUpdateDomainWalk(resourceGroupName: string, vmScaleSetName: string, platformUpdateDomain: number, options?: VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkOptionalParams): Promise; @@ -6754,6 +6833,7 @@ export type VirtualMachineScaleSetsCreateOrUpdateResponse = VirtualMachineScaleS // @public export interface VirtualMachineScaleSetsDeallocateOptionalParams extends coreClient.OperationOptions { + hibernate?: boolean; resumeFrom?: string; updateIntervalInMs?: number; vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; @@ -6900,6 +6980,18 @@ export interface VirtualMachineScaleSetsPowerOffOptionalParams extends coreClien vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; } +// @public +export interface VirtualMachineScaleSetsReapplyHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface VirtualMachineScaleSetsReapplyOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + // @public export interface VirtualMachineScaleSetsRedeployOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -6973,16 +7065,18 @@ export interface VirtualMachineScaleSetUpdate extends UpdateResource { identity?: VirtualMachineScaleSetIdentity; overprovision?: boolean; plan?: Plan; + priorityMixPolicy?: PriorityMixPolicy; proximityPlacementGroup?: SubResource; scaleInPolicy?: ScaleInPolicy; singlePlacementGroup?: boolean; sku?: Sku; + spotRestorePolicy?: SpotRestorePolicy; upgradePolicy?: UpgradePolicy; virtualMachineProfile?: VirtualMachineScaleSetUpdateVMProfile; } // @public -export interface VirtualMachineScaleSetUpdateIPConfiguration extends SubResource { +export interface VirtualMachineScaleSetUpdateIPConfiguration { applicationGatewayBackendAddressPools?: SubResource[]; applicationSecurityGroups?: SubResource[]; loadBalancerBackendAddressPools?: SubResource[]; @@ -6995,7 +7089,7 @@ export interface VirtualMachineScaleSetUpdateIPConfiguration extends SubResource } // @public -export interface VirtualMachineScaleSetUpdateNetworkConfiguration extends SubResource { +export interface VirtualMachineScaleSetUpdateNetworkConfiguration { deleteOption?: DeleteOptions; disableTcpStateTracking?: boolean; dnsSettings?: VirtualMachineScaleSetNetworkConfigurationDnsSettings; @@ -7100,9 +7194,11 @@ export interface VirtualMachineScaleSetVMExtension extends SubResourceReadOnly { enableAutomaticUpgrade?: boolean; forceUpdateTag?: string; instanceView?: VirtualMachineExtensionInstanceView; + location?: string; readonly name?: string; protectedSettings?: any; protectedSettingsFromKeyVault?: KeyVaultSecretReference; + provisionAfterExtensions?: string[]; readonly provisioningState?: string; publisher?: string; settings?: any; @@ -7114,11 +7210,11 @@ export interface VirtualMachineScaleSetVMExtension extends SubResourceReadOnly { // @public export interface VirtualMachineScaleSetVMExtensions { - beginCreateOrUpdate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, extensionParameters: VirtualMachineScaleSetVMExtension, options?: VirtualMachineScaleSetVMExtensionsCreateOrUpdateOptionalParams): Promise, VirtualMachineScaleSetVMExtensionsCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, extensionParameters: VirtualMachineScaleSetVMExtension, options?: VirtualMachineScaleSetVMExtensionsCreateOrUpdateOptionalParams): Promise, VirtualMachineScaleSetVMExtensionsCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, extensionParameters: VirtualMachineScaleSetVMExtension, options?: VirtualMachineScaleSetVMExtensionsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, options?: VirtualMachineScaleSetVMExtensionsDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, options?: VirtualMachineScaleSetVMExtensionsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, options?: VirtualMachineScaleSetVMExtensionsDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, extensionParameters: VirtualMachineScaleSetVMExtensionUpdate, options?: VirtualMachineScaleSetVMExtensionsUpdateOptionalParams): Promise, VirtualMachineScaleSetVMExtensionsUpdateResponse>>; + beginUpdate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, extensionParameters: VirtualMachineScaleSetVMExtensionUpdate, options?: VirtualMachineScaleSetVMExtensionsUpdateOptionalParams): Promise, VirtualMachineScaleSetVMExtensionsUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, extensionParameters: VirtualMachineScaleSetVMExtensionUpdate, options?: VirtualMachineScaleSetVMExtensionsUpdateOptionalParams): Promise; get(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, options?: VirtualMachineScaleSetVMExtensionsGetOptionalParams): Promise; list(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMExtensionsListOptionalParams): Promise; @@ -7205,9 +7301,13 @@ export interface VirtualMachineScaleSetVMInstanceRequiredIDs { export interface VirtualMachineScaleSetVMInstanceView { readonly assignedHost?: string; bootDiagnostics?: BootDiagnosticsInstanceView; + computerName?: string; disks?: DiskInstanceView[]; extensions?: VirtualMachineExtensionInstanceView[]; + hyperVGeneration?: HyperVGeneration; maintenanceRedeployStatus?: MaintenanceRedeployStatus; + osName?: string; + osVersion?: string; placementGroupId?: string; platformFaultDomain?: number; platformUpdateDomain?: number; @@ -7242,6 +7342,7 @@ export interface VirtualMachineScaleSetVMProfile { osProfile?: VirtualMachineScaleSetOSProfile; priority?: VirtualMachinePriorityTypes; scheduledEventsProfile?: ScheduledEventsProfile; + securityPostureReference?: SecurityPostureReference; securityProfile?: SecurityProfile; serviceArtifactReference?: ServiceArtifactReference; storageProfile?: VirtualMachineScaleSetStorageProfile; @@ -7260,11 +7361,11 @@ export interface VirtualMachineScaleSetVMReimageParameters extends VirtualMachin // @public export interface VirtualMachineScaleSetVMRunCommands { - beginCreateOrUpdate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, runCommandName: string, runCommand: VirtualMachineRunCommand, options?: VirtualMachineScaleSetVMRunCommandsCreateOrUpdateOptionalParams): Promise, VirtualMachineScaleSetVMRunCommandsCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, runCommandName: string, runCommand: VirtualMachineRunCommand, options?: VirtualMachineScaleSetVMRunCommandsCreateOrUpdateOptionalParams): Promise, VirtualMachineScaleSetVMRunCommandsCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, vmScaleSetName: string, instanceId: string, runCommandName: string, runCommand: VirtualMachineRunCommand, options?: VirtualMachineScaleSetVMRunCommandsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, vmScaleSetName: string, instanceId: string, runCommandName: string, options?: VirtualMachineScaleSetVMRunCommandsDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, vmScaleSetName: string, instanceId: string, runCommandName: string, options?: VirtualMachineScaleSetVMRunCommandsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, vmScaleSetName: string, instanceId: string, runCommandName: string, options?: VirtualMachineScaleSetVMRunCommandsDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, runCommandName: string, runCommand: VirtualMachineRunCommandUpdate, options?: VirtualMachineScaleSetVMRunCommandsUpdateOptionalParams): Promise, VirtualMachineScaleSetVMRunCommandsUpdateResponse>>; + beginUpdate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, runCommandName: string, runCommand: VirtualMachineRunCommandUpdate, options?: VirtualMachineScaleSetVMRunCommandsUpdateOptionalParams): Promise, VirtualMachineScaleSetVMRunCommandsUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, vmScaleSetName: string, instanceId: string, runCommandName: string, runCommand: VirtualMachineRunCommandUpdate, options?: VirtualMachineScaleSetVMRunCommandsUpdateOptionalParams): Promise; get(resourceGroupName: string, vmScaleSetName: string, instanceId: string, runCommandName: string, options?: VirtualMachineScaleSetVMRunCommandsGetOptionalParams): Promise; list(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMRunCommandsListOptionalParams): PagedAsyncIterableIterator; @@ -7319,27 +7420,27 @@ export type VirtualMachineScaleSetVMRunCommandsUpdateResponse = VirtualMachineRu // @public export interface VirtualMachineScaleSetVMs { - beginDeallocate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsDeallocateOptionalParams): Promise, void>>; + beginDeallocate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsDeallocateOptionalParams): Promise, void>>; beginDeallocateAndWait(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsDeallocateOptionalParams): Promise; - beginDelete(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsDeleteOptionalParams): Promise; - beginPerformMaintenance(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsPerformMaintenanceOptionalParams): Promise, void>>; + beginPerformMaintenance(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsPerformMaintenanceOptionalParams): Promise, void>>; beginPerformMaintenanceAndWait(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsPerformMaintenanceOptionalParams): Promise; - beginPowerOff(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsPowerOffOptionalParams): Promise, void>>; + beginPowerOff(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsPowerOffOptionalParams): Promise, void>>; beginPowerOffAndWait(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsPowerOffOptionalParams): Promise; - beginRedeploy(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsRedeployOptionalParams): Promise, void>>; + beginRedeploy(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsRedeployOptionalParams): Promise, void>>; beginRedeployAndWait(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsRedeployOptionalParams): Promise; - beginReimage(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsReimageOptionalParams): Promise, void>>; - beginReimageAll(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsReimageAllOptionalParams): Promise, void>>; + beginReimage(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsReimageOptionalParams): Promise, void>>; + beginReimageAll(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsReimageAllOptionalParams): Promise, void>>; beginReimageAllAndWait(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsReimageAllOptionalParams): Promise; beginReimageAndWait(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsReimageOptionalParams): Promise; - beginRestart(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsRestartOptionalParams): Promise, void>>; + beginRestart(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsRestartOptionalParams): Promise, void>>; beginRestartAndWait(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsRestartOptionalParams): Promise; - beginRunCommand(resourceGroupName: string, vmScaleSetName: string, instanceId: string, parameters: RunCommandInput, options?: VirtualMachineScaleSetVMsRunCommandOptionalParams): Promise, VirtualMachineScaleSetVMsRunCommandResponse>>; + beginRunCommand(resourceGroupName: string, vmScaleSetName: string, instanceId: string, parameters: RunCommandInput, options?: VirtualMachineScaleSetVMsRunCommandOptionalParams): Promise, VirtualMachineScaleSetVMsRunCommandResponse>>; beginRunCommandAndWait(resourceGroupName: string, vmScaleSetName: string, instanceId: string, parameters: RunCommandInput, options?: VirtualMachineScaleSetVMsRunCommandOptionalParams): Promise; - beginStart(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsStartOptionalParams): Promise, void>>; + beginStart(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsStartOptionalParams): Promise, void>>; beginStartAndWait(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsStartOptionalParams): Promise; - beginUpdate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, parameters: VirtualMachineScaleSetVM, options?: VirtualMachineScaleSetVMsUpdateOptionalParams): Promise, VirtualMachineScaleSetVMsUpdateResponse>>; + beginUpdate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, parameters: VirtualMachineScaleSetVM, options?: VirtualMachineScaleSetVMsUpdateOptionalParams): Promise, VirtualMachineScaleSetVMsUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, vmScaleSetName: string, instanceId: string, parameters: VirtualMachineScaleSetVM, options?: VirtualMachineScaleSetVMsUpdateOptionalParams): Promise; get(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsGetOptionalParams): Promise; getInstanceView(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsGetInstanceViewOptionalParams): Promise; @@ -7572,6 +7673,7 @@ export type VirtualMachinesListAllNextResponse = VirtualMachineListResult; // @public export interface VirtualMachinesListAllOptionalParams extends coreClient.OperationOptions { + expand?: ExpandTypesForListVMs; filter?: string; statusOnly?: string; } @@ -7609,6 +7711,7 @@ export type VirtualMachinesListNextResponse = VirtualMachineListResult; // @public export interface VirtualMachinesListOptionalParams extends coreClient.OperationOptions { + expand?: ExpandTypeForListVMs; filter?: string; } @@ -7821,6 +7924,7 @@ export type WindowsVMGuestPatchAutomaticByPlatformRebootSetting = string; // @public export interface WindowsVMGuestPatchAutomaticByPlatformSettings { + bypassPlatformSafetyChecksOnUserSchedule?: boolean; rebootSetting?: WindowsVMGuestPatchAutomaticByPlatformRebootSetting; } diff --git a/sdk/compute/arm-compute/samples-dev/availabilitySetsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/availabilitySetsCreateOrUpdateSample.ts index 7656537bfcba..18d6c7eae306 100644 --- a/sdk/compute/arm-compute/samples-dev/availabilitySetsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/availabilitySetsCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create or update an availability set. * * @summary Create or update an availability set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySet_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_Create.json */ async function createAnAvailabilitySet() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/availabilitySetsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/availabilitySetsDeleteSample.ts index 007c90544007..b00b5666c1fa 100644 --- a/sdk/compute/arm-compute/samples-dev/availabilitySetsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/availabilitySetsDeleteSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Delete an availability set. * * @summary Delete an availability set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_Delete_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_Delete_MaximumSet_Gen.json */ -async function availabilitySetsDeleteMaximumSetGen() { +async function availabilitySetDeleteMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -39,9 +39,9 @@ async function availabilitySetsDeleteMaximumSetGen() { * This sample demonstrates how to Delete an availability set. * * @summary Delete an availability set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_Delete_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_Delete_MinimumSet_Gen.json */ -async function availabilitySetsDeleteMinimumSetGen() { +async function availabilitySetDeleteMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -57,8 +57,8 @@ async function availabilitySetsDeleteMinimumSetGen() { } async function main() { - availabilitySetsDeleteMaximumSetGen(); - availabilitySetsDeleteMinimumSetGen(); + availabilitySetDeleteMaximumSetGen(); + availabilitySetDeleteMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/availabilitySetsGetSample.ts b/sdk/compute/arm-compute/samples-dev/availabilitySetsGetSample.ts index 6b1ef11fe1da..7c5f261c5709 100644 --- a/sdk/compute/arm-compute/samples-dev/availabilitySetsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/availabilitySetsGetSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Retrieves information about an availability set. * * @summary Retrieves information about an availability set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_Get_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_Get_MaximumSet_Gen.json */ -async function availabilitySetsGetMaximumSetGen() { +async function availabilitySetGetMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -39,9 +39,9 @@ async function availabilitySetsGetMaximumSetGen() { * This sample demonstrates how to Retrieves information about an availability set. * * @summary Retrieves information about an availability set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_Get_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_Get_MinimumSet_Gen.json */ -async function availabilitySetsGetMinimumSetGen() { +async function availabilitySetGetMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -57,8 +57,8 @@ async function availabilitySetsGetMinimumSetGen() { } async function main() { - availabilitySetsGetMaximumSetGen(); - availabilitySetsGetMinimumSetGen(); + availabilitySetGetMaximumSetGen(); + availabilitySetGetMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/availabilitySetsListAvailableSizesSample.ts b/sdk/compute/arm-compute/samples-dev/availabilitySetsListAvailableSizesSample.ts index 902744ebc831..22d4f8aed680 100644 --- a/sdk/compute/arm-compute/samples-dev/availabilitySetsListAvailableSizesSample.ts +++ b/sdk/compute/arm-compute/samples-dev/availabilitySetsListAvailableSizesSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set. * * @summary Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_ListAvailableSizes_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_ListAvailableSizes_MaximumSet_Gen.json */ -async function availabilitySetsListAvailableSizesMaximumSetGen() { +async function availabilitySetListAvailableSizesMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -42,9 +42,9 @@ async function availabilitySetsListAvailableSizesMaximumSetGen() { * This sample demonstrates how to Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set. * * @summary Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_ListAvailableSizes_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_ListAvailableSizes_MinimumSet_Gen.json */ -async function availabilitySetsListAvailableSizesMinimumSetGen() { +async function availabilitySetListAvailableSizesMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -63,8 +63,8 @@ async function availabilitySetsListAvailableSizesMinimumSetGen() { } async function main() { - availabilitySetsListAvailableSizesMaximumSetGen(); - availabilitySetsListAvailableSizesMinimumSetGen(); + availabilitySetListAvailableSizesMaximumSetGen(); + availabilitySetListAvailableSizesMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/availabilitySetsListBySubscriptionSample.ts b/sdk/compute/arm-compute/samples-dev/availabilitySetsListBySubscriptionSample.ts index 1430dcff20d2..ba2a8eab1701 100644 --- a/sdk/compute/arm-compute/samples-dev/availabilitySetsListBySubscriptionSample.ts +++ b/sdk/compute/arm-compute/samples-dev/availabilitySetsListBySubscriptionSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Lists all availability sets in a subscription. * * @summary Lists all availability sets in a subscription. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySet_ListBySubscription.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_ListBySubscription.json */ async function listAvailabilitySetsInASubscription() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/availabilitySetsListSample.ts b/sdk/compute/arm-compute/samples-dev/availabilitySetsListSample.ts index 647975587be4..3ec78394018f 100644 --- a/sdk/compute/arm-compute/samples-dev/availabilitySetsListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/availabilitySetsListSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Lists all availability sets in a resource group. * * @summary Lists all availability sets in a resource group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_List_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_List_MaximumSet_Gen.json */ -async function availabilitySetsListMaximumSetGen() { +async function availabilitySetListMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -38,9 +38,9 @@ async function availabilitySetsListMaximumSetGen() { * This sample demonstrates how to Lists all availability sets in a resource group. * * @summary Lists all availability sets in a resource group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_List_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_List_MinimumSet_Gen.json */ -async function availabilitySetsListMinimumSetGen() { +async function availabilitySetListMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -55,8 +55,8 @@ async function availabilitySetsListMinimumSetGen() { } async function main() { - availabilitySetsListMaximumSetGen(); - availabilitySetsListMinimumSetGen(); + availabilitySetListMaximumSetGen(); + availabilitySetListMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/availabilitySetsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/availabilitySetsUpdateSample.ts index 76f13b4816fb..9f232e2b5f7c 100644 --- a/sdk/compute/arm-compute/samples-dev/availabilitySetsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/availabilitySetsUpdateSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to Update an availability set. * * @summary Update an availability set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_Update_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_Update_MaximumSet_Gen.json */ -async function availabilitySetsUpdateMaximumSetGen() { +async function availabilitySetUpdateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -59,9 +59,9 @@ async function availabilitySetsUpdateMaximumSetGen() { * This sample demonstrates how to Update an availability set. * * @summary Update an availability set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_Update_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_Update_MinimumSet_Gen.json */ -async function availabilitySetsUpdateMinimumSetGen() { +async function availabilitySetUpdateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -79,8 +79,8 @@ async function availabilitySetsUpdateMinimumSetGen() { } async function main() { - availabilitySetsUpdateMaximumSetGen(); - availabilitySetsUpdateMinimumSetGen(); + availabilitySetUpdateMaximumSetGen(); + availabilitySetUpdateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsCreateOrUpdateSample.ts index b4fae9d9369b..2661f77c3fed 100644 --- a/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to create or update a capacity reservation group. When updating a capacity reservation group, only tags may be modified. Please refer to https://aka.ms/CapacityReservation for more details. * * @summary The operation to create or update a capacity reservation group. When updating a capacity reservation group, only tags may be modified. Please refer to https://aka.ms/CapacityReservation for more details. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservationGroup_CreateOrUpdate.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservationGroup_CreateOrUpdate.json */ async function createOrUpdateACapacityReservationGroup() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsDeleteSample.ts index 47d84da1b736..9060398625dd 100644 --- a/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsDeleteSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to The operation to delete a capacity reservation group. This operation is allowed only if all the associated resources are disassociated from the reservation group and all capacity reservations under the reservation group have also been deleted. Please refer to https://aka.ms/CapacityReservation for more details. * * @summary The operation to delete a capacity reservation group. This operation is allowed only if all the associated resources are disassociated from the reservation group and all capacity reservations under the reservation group have also been deleted. Please refer to https://aka.ms/CapacityReservation for more details. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservationGroup_Delete_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservationGroup_Delete_MaximumSet_Gen.json */ -async function capacityReservationGroupsDeleteMaximumSetGen() { +async function capacityReservationGroupDeleteMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -39,9 +39,9 @@ async function capacityReservationGroupsDeleteMaximumSetGen() { * This sample demonstrates how to The operation to delete a capacity reservation group. This operation is allowed only if all the associated resources are disassociated from the reservation group and all capacity reservations under the reservation group have also been deleted. Please refer to https://aka.ms/CapacityReservation for more details. * * @summary The operation to delete a capacity reservation group. This operation is allowed only if all the associated resources are disassociated from the reservation group and all capacity reservations under the reservation group have also been deleted. Please refer to https://aka.ms/CapacityReservation for more details. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservationGroup_Delete_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservationGroup_Delete_MinimumSet_Gen.json */ -async function capacityReservationGroupsDeleteMinimumSetGen() { +async function capacityReservationGroupDeleteMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -57,8 +57,8 @@ async function capacityReservationGroupsDeleteMinimumSetGen() { } async function main() { - capacityReservationGroupsDeleteMaximumSetGen(); - capacityReservationGroupsDeleteMinimumSetGen(); + capacityReservationGroupDeleteMaximumSetGen(); + capacityReservationGroupDeleteMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsGetSample.ts b/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsGetSample.ts index 3567f76a4893..e152c306325d 100644 --- a/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsGetSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation that retrieves information about a capacity reservation group. * * @summary The operation that retrieves information about a capacity reservation group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservationGroup_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservationGroup_Get.json */ async function getACapacityReservationGroup() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsListByResourceGroupSample.ts index 1ab5b9324e77..84ce3cd8bfbf 100644 --- a/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsListByResourceGroupSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the capacity reservation groups in the specified resource group. Use the nextLink property in the response to get the next page of capacity reservation groups. * * @summary Lists all of the capacity reservation groups in the specified resource group. Use the nextLink property in the response to get the next page of capacity reservation groups. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservationGroup_ListByResourceGroup.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservationGroup_ListByResourceGroup.json */ async function listCapacityReservationGroupsInResourceGroup() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsListBySubscriptionSample.ts b/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsListBySubscriptionSample.ts index a1d6941506b4..1979eab2e373 100644 --- a/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsListBySubscriptionSample.ts +++ b/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsListBySubscriptionSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the capacity reservation groups in the subscription. Use the nextLink property in the response to get the next page of capacity reservation groups. * * @summary Lists all of the capacity reservation groups in the subscription. Use the nextLink property in the response to get the next page of capacity reservation groups. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservationGroup_ListBySubscription.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservationGroup_ListBySubscription.json */ async function listCapacityReservationGroupsInSubscription() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsUpdateSample.ts index 9a64d0c30d81..0053cf2c325c 100644 --- a/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsUpdateSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to The operation to update a capacity reservation group. When updating a capacity reservation group, only tags may be modified. * * @summary The operation to update a capacity reservation group. When updating a capacity reservation group, only tags may be modified. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservationGroup_Update_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservationGroup_Update_MaximumSet_Gen.json */ -async function capacityReservationGroupsUpdateMaximumSetGen() { +async function capacityReservationGroupUpdateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -47,9 +47,9 @@ async function capacityReservationGroupsUpdateMaximumSetGen() { * This sample demonstrates how to The operation to update a capacity reservation group. When updating a capacity reservation group, only tags may be modified. * * @summary The operation to update a capacity reservation group. When updating a capacity reservation group, only tags may be modified. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservationGroup_Update_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservationGroup_Update_MinimumSet_Gen.json */ -async function capacityReservationGroupsUpdateMinimumSetGen() { +async function capacityReservationGroupUpdateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -67,8 +67,8 @@ async function capacityReservationGroupsUpdateMinimumSetGen() { } async function main() { - capacityReservationGroupsUpdateMaximumSetGen(); - capacityReservationGroupsUpdateMinimumSetGen(); + capacityReservationGroupUpdateMaximumSetGen(); + capacityReservationGroupUpdateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/capacityReservationsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/capacityReservationsCreateOrUpdateSample.ts index 7565c3eb7a59..4f7ec4855021 100644 --- a/sdk/compute/arm-compute/samples-dev/capacityReservationsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/capacityReservationsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to create or update a capacity reservation. Please note some properties can be set only during capacity reservation creation. Please refer to https://aka.ms/CapacityReservation for more details. * * @summary The operation to create or update a capacity reservation. Please note some properties can be set only during capacity reservation creation. Please refer to https://aka.ms/CapacityReservation for more details. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservation_CreateOrUpdate.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservation_CreateOrUpdate.json */ async function createOrUpdateACapacityReservation() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/capacityReservationsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/capacityReservationsDeleteSample.ts index 3a9dd1b5e147..bf4b4fe444dc 100644 --- a/sdk/compute/arm-compute/samples-dev/capacityReservationsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/capacityReservationsDeleteSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to The operation to delete a capacity reservation. This operation is allowed only when all the associated resources are disassociated from the capacity reservation. Please refer to https://aka.ms/CapacityReservation for more details. * * @summary The operation to delete a capacity reservation. This operation is allowed only when all the associated resources are disassociated from the capacity reservation. Please refer to https://aka.ms/CapacityReservation for more details. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservation_Delete_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservation_Delete_MaximumSet_Gen.json */ -async function capacityReservationsDeleteMaximumSetGen() { +async function capacityReservationDeleteMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -41,9 +41,9 @@ async function capacityReservationsDeleteMaximumSetGen() { * This sample demonstrates how to The operation to delete a capacity reservation. This operation is allowed only when all the associated resources are disassociated from the capacity reservation. Please refer to https://aka.ms/CapacityReservation for more details. * * @summary The operation to delete a capacity reservation. This operation is allowed only when all the associated resources are disassociated from the capacity reservation. Please refer to https://aka.ms/CapacityReservation for more details. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservation_Delete_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservation_Delete_MinimumSet_Gen.json */ -async function capacityReservationsDeleteMinimumSetGen() { +async function capacityReservationDeleteMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -61,8 +61,8 @@ async function capacityReservationsDeleteMinimumSetGen() { } async function main() { - capacityReservationsDeleteMaximumSetGen(); - capacityReservationsDeleteMinimumSetGen(); + capacityReservationDeleteMaximumSetGen(); + capacityReservationDeleteMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/capacityReservationsGetSample.ts b/sdk/compute/arm-compute/samples-dev/capacityReservationsGetSample.ts index f17a474f19b2..6016ecfa8f32 100644 --- a/sdk/compute/arm-compute/samples-dev/capacityReservationsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/capacityReservationsGetSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation that retrieves information about the capacity reservation. * * @summary The operation that retrieves information about the capacity reservation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservation_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservation_Get.json */ async function getACapacityReservation() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/capacityReservationsListByCapacityReservationGroupSample.ts b/sdk/compute/arm-compute/samples-dev/capacityReservationsListByCapacityReservationGroupSample.ts index 8a07eb98986e..0f72eff77a48 100644 --- a/sdk/compute/arm-compute/samples-dev/capacityReservationsListByCapacityReservationGroupSample.ts +++ b/sdk/compute/arm-compute/samples-dev/capacityReservationsListByCapacityReservationGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the capacity reservations in the specified capacity reservation group. Use the nextLink property in the response to get the next page of capacity reservations. * * @summary Lists all of the capacity reservations in the specified capacity reservation group. Use the nextLink property in the response to get the next page of capacity reservations. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservation_ListByReservationGroup.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservation_ListByReservationGroup.json */ async function listCapacityReservationsInReservationGroup() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/capacityReservationsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/capacityReservationsUpdateSample.ts index c6b5a5fc2b9d..986fc222a51a 100644 --- a/sdk/compute/arm-compute/samples-dev/capacityReservationsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/capacityReservationsUpdateSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to The operation to update a capacity reservation. * * @summary The operation to update a capacity reservation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservation_Update_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservation_Update_MaximumSet_Gen.json */ -async function capacityReservationsUpdateMaximumSetGen() { +async function capacityReservationUpdateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -61,9 +61,9 @@ async function capacityReservationsUpdateMaximumSetGen() { * This sample demonstrates how to The operation to update a capacity reservation. * * @summary The operation to update a capacity reservation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservation_Update_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservation_Update_MinimumSet_Gen.json */ -async function capacityReservationsUpdateMinimumSetGen() { +async function capacityReservationUpdateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -83,8 +83,8 @@ async function capacityReservationsUpdateMinimumSetGen() { } async function main() { - capacityReservationsUpdateMaximumSetGen(); - capacityReservationsUpdateMinimumSetGen(); + capacityReservationUpdateMaximumSetGen(); + capacityReservationUpdateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsCreateOrUpdateSample.ts index 5421e722850f..f6284abe60ce 100644 --- a/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups please see [Dedicated Host Documentation] (https://go.microsoft.com/fwlink/?linkid=2082596) * * @summary Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups please see [Dedicated Host Documentation] (https://go.microsoft.com/fwlink/?linkid=2082596) - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroup_CreateOrUpdate_WithUltraSSD.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_CreateOrUpdate_WithUltraSSD.json */ async function createOrUpdateADedicatedHostGroupWithUltraSsdSupport() { const subscriptionId = @@ -51,7 +51,7 @@ async function createOrUpdateADedicatedHostGroupWithUltraSsdSupport() { * This sample demonstrates how to Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups please see [Dedicated Host Documentation] (https://go.microsoft.com/fwlink/?linkid=2082596) * * @summary Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups please see [Dedicated Host Documentation] (https://go.microsoft.com/fwlink/?linkid=2082596) - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroup_CreateOrUpdate.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_CreateOrUpdate.json */ async function createOrUpdateADedicatedHostGroup() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsDeleteSample.ts index 77162916569f..24592428b02b 100644 --- a/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsDeleteSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Delete a dedicated host group. * * @summary Delete a dedicated host group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroups_Delete_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_Delete_MaximumSet_Gen.json */ -async function dedicatedHostGroupsDeleteMaximumSetGen() { +async function dedicatedHostGroupDeleteMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -39,9 +39,9 @@ async function dedicatedHostGroupsDeleteMaximumSetGen() { * This sample demonstrates how to Delete a dedicated host group. * * @summary Delete a dedicated host group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroups_Delete_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_Delete_MinimumSet_Gen.json */ -async function dedicatedHostGroupsDeleteMinimumSetGen() { +async function dedicatedHostGroupDeleteMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -57,8 +57,8 @@ async function dedicatedHostGroupsDeleteMinimumSetGen() { } async function main() { - dedicatedHostGroupsDeleteMaximumSetGen(); - dedicatedHostGroupsDeleteMinimumSetGen(); + dedicatedHostGroupDeleteMaximumSetGen(); + dedicatedHostGroupDeleteMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsGetSample.ts b/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsGetSample.ts index 2997348f0b14..c7dec6ac7459 100644 --- a/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves information about a dedicated host group. * * @summary Retrieves information about a dedicated host group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroup_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_Get.json */ async function createADedicatedHostGroup() { const subscriptionId = @@ -39,7 +39,7 @@ async function createADedicatedHostGroup() { * This sample demonstrates how to Retrieves information about a dedicated host group. * * @summary Retrieves information about a dedicated host group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroup_Get_UltraSSDEnabledDedicatedHostGroup.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_Get_UltraSSDEnabledDedicatedHostGroup.json */ async function createAnUltraSsdEnabledDedicatedHostGroup() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsListByResourceGroupSample.ts index 86bc6c5a23b4..d2d43b3d9258 100644 --- a/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsListByResourceGroupSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Lists all of the dedicated host groups in the specified resource group. Use the nextLink property in the response to get the next page of dedicated host groups. * * @summary Lists all of the dedicated host groups in the specified resource group. Use the nextLink property in the response to get the next page of dedicated host groups. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroups_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_ListByResourceGroup_MaximumSet_Gen.json */ -async function dedicatedHostGroupsListByResourceGroupMaximumSetGen() { +async function dedicatedHostGroupListByResourceGroupMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -40,9 +40,9 @@ async function dedicatedHostGroupsListByResourceGroupMaximumSetGen() { * This sample demonstrates how to Lists all of the dedicated host groups in the specified resource group. Use the nextLink property in the response to get the next page of dedicated host groups. * * @summary Lists all of the dedicated host groups in the specified resource group. Use the nextLink property in the response to get the next page of dedicated host groups. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroups_ListByResourceGroup_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_ListByResourceGroup_MinimumSet_Gen.json */ -async function dedicatedHostGroupsListByResourceGroupMinimumSetGen() { +async function dedicatedHostGroupListByResourceGroupMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -59,8 +59,8 @@ async function dedicatedHostGroupsListByResourceGroupMinimumSetGen() { } async function main() { - dedicatedHostGroupsListByResourceGroupMaximumSetGen(); - dedicatedHostGroupsListByResourceGroupMinimumSetGen(); + dedicatedHostGroupListByResourceGroupMaximumSetGen(); + dedicatedHostGroupListByResourceGroupMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsListBySubscriptionSample.ts b/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsListBySubscriptionSample.ts index d95dc873fd19..534b07ceac32 100644 --- a/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsListBySubscriptionSample.ts +++ b/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsListBySubscriptionSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Lists all of the dedicated host groups in the subscription. Use the nextLink property in the response to get the next page of dedicated host groups. * * @summary Lists all of the dedicated host groups in the subscription. Use the nextLink property in the response to get the next page of dedicated host groups. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroups_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_ListBySubscription_MaximumSet_Gen.json */ -async function dedicatedHostGroupsListBySubscriptionMaximumSetGen() { +async function dedicatedHostGroupListBySubscriptionMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const credential = new DefaultAzureCredential(); @@ -36,9 +36,9 @@ async function dedicatedHostGroupsListBySubscriptionMaximumSetGen() { * This sample demonstrates how to Lists all of the dedicated host groups in the subscription. Use the nextLink property in the response to get the next page of dedicated host groups. * * @summary Lists all of the dedicated host groups in the subscription. Use the nextLink property in the response to get the next page of dedicated host groups. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroups_ListBySubscription_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_ListBySubscription_MinimumSet_Gen.json */ -async function dedicatedHostGroupsListBySubscriptionMinimumSetGen() { +async function dedicatedHostGroupListBySubscriptionMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const credential = new DefaultAzureCredential(); @@ -51,8 +51,8 @@ async function dedicatedHostGroupsListBySubscriptionMinimumSetGen() { } async function main() { - dedicatedHostGroupsListBySubscriptionMaximumSetGen(); - dedicatedHostGroupsListBySubscriptionMinimumSetGen(); + dedicatedHostGroupListBySubscriptionMaximumSetGen(); + dedicatedHostGroupListBySubscriptionMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsUpdateSample.ts index 9bea8e964c3e..b6aaf32f8007 100644 --- a/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsUpdateSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to Update an dedicated host group. * * @summary Update an dedicated host group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroups_Update_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_Update_MaximumSet_Gen.json */ -async function dedicatedHostGroupsUpdateMaximumSetGen() { +async function dedicatedHostGroupUpdateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -67,9 +67,9 @@ async function dedicatedHostGroupsUpdateMaximumSetGen() { * This sample demonstrates how to Update an dedicated host group. * * @summary Update an dedicated host group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroups_Update_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_Update_MinimumSet_Gen.json */ -async function dedicatedHostGroupsUpdateMinimumSetGen() { +async function dedicatedHostGroupUpdateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -87,8 +87,8 @@ async function dedicatedHostGroupsUpdateMinimumSetGen() { } async function main() { - dedicatedHostGroupsUpdateMaximumSetGen(); - dedicatedHostGroupsUpdateMinimumSetGen(); + dedicatedHostGroupUpdateMaximumSetGen(); + dedicatedHostGroupUpdateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/dedicatedHostsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/dedicatedHostsCreateOrUpdateSample.ts index a1ffe893e96d..0a96417f6a2e 100644 --- a/sdk/compute/arm-compute/samples-dev/dedicatedHostsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/dedicatedHostsCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a dedicated host . * * @summary Create or update a dedicated host . - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHost_CreateOrUpdate.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_CreateOrUpdate.json */ async function createOrUpdateADedicatedHost() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/dedicatedHostsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/dedicatedHostsDeleteSample.ts index fda4b96b0274..82434b1c3193 100644 --- a/sdk/compute/arm-compute/samples-dev/dedicatedHostsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/dedicatedHostsDeleteSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Delete a dedicated host. * * @summary Delete a dedicated host. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHosts_Delete_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_Delete_MaximumSet_Gen.json */ -async function dedicatedHostsDeleteMaximumSetGen() { +async function dedicatedHostDeleteMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -41,9 +41,9 @@ async function dedicatedHostsDeleteMaximumSetGen() { * This sample demonstrates how to Delete a dedicated host. * * @summary Delete a dedicated host. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHosts_Delete_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_Delete_MinimumSet_Gen.json */ -async function dedicatedHostsDeleteMinimumSetGen() { +async function dedicatedHostDeleteMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -61,8 +61,8 @@ async function dedicatedHostsDeleteMinimumSetGen() { } async function main() { - dedicatedHostsDeleteMaximumSetGen(); - dedicatedHostsDeleteMinimumSetGen(); + dedicatedHostDeleteMaximumSetGen(); + dedicatedHostDeleteMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/dedicatedHostsGetSample.ts b/sdk/compute/arm-compute/samples-dev/dedicatedHostsGetSample.ts index d07578bb4b9c..ba3fd8ce2e60 100644 --- a/sdk/compute/arm-compute/samples-dev/dedicatedHostsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/dedicatedHostsGetSample.ts @@ -8,7 +8,10 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { ComputeManagementClient } from "@azure/arm-compute"; +import { + DedicatedHostsGetOptionalParams, + ComputeManagementClient +} from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -18,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves information about a dedicated host. * * @summary Retrieves information about a dedicated host. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHost_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_Get.json */ async function getADedicatedHost() { const subscriptionId = @@ -27,12 +30,15 @@ async function getADedicatedHost() { process.env["COMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; const hostGroupName = "myDedicatedHostGroup"; const hostName = "myHost"; + const expand = "instanceView"; + const options: DedicatedHostsGetOptionalParams = { expand }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.dedicatedHosts.get( resourceGroupName, hostGroupName, - hostName + hostName, + options ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/dedicatedHostsListAvailableSizesSample.ts b/sdk/compute/arm-compute/samples-dev/dedicatedHostsListAvailableSizesSample.ts new file mode 100644 index 000000000000..9ed05d431610 --- /dev/null +++ b/sdk/compute/arm-compute/samples-dev/dedicatedHostsListAvailableSizesSample.ts @@ -0,0 +1,47 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ComputeManagementClient } from "@azure/arm-compute"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists all available dedicated host sizes to which the specified dedicated host can be resized. NOTE: The dedicated host sizes provided can be used to only scale up the existing dedicated host. + * + * @summary Lists all available dedicated host sizes to which the specified dedicated host can be resized. NOTE: The dedicated host sizes provided can be used to only scale up the existing dedicated host. + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_ListAvailableSizes.json + */ +async function getAvailableDedicatedHostSizes() { + const subscriptionId = + process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}"; + const resourceGroupName = + process.env["COMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; + const hostGroupName = "myDedicatedHostGroup"; + const hostName = "myHost"; + const credential = new DefaultAzureCredential(); + const client = new ComputeManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dedicatedHosts.listAvailableSizes( + resourceGroupName, + hostGroupName, + hostName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + getAvailableDedicatedHostSizes(); +} + +main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/dedicatedHostsListByHostGroupSample.ts b/sdk/compute/arm-compute/samples-dev/dedicatedHostsListByHostGroupSample.ts index 66f94826fc33..e673cf65d906 100644 --- a/sdk/compute/arm-compute/samples-dev/dedicatedHostsListByHostGroupSample.ts +++ b/sdk/compute/arm-compute/samples-dev/dedicatedHostsListByHostGroupSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink property in the response to get the next page of dedicated hosts. * * @summary Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink property in the response to get the next page of dedicated hosts. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHosts_ListByHostGroup_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_ListByHostGroup_MaximumSet_Gen.json */ -async function dedicatedHostsListByHostGroupMaximumSetGen() { +async function dedicatedHostListByHostGroupMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -42,9 +42,9 @@ async function dedicatedHostsListByHostGroupMaximumSetGen() { * This sample demonstrates how to Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink property in the response to get the next page of dedicated hosts. * * @summary Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink property in the response to get the next page of dedicated hosts. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHosts_ListByHostGroup_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_ListByHostGroup_MinimumSet_Gen.json */ -async function dedicatedHostsListByHostGroupMinimumSetGen() { +async function dedicatedHostListByHostGroupMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -63,8 +63,8 @@ async function dedicatedHostsListByHostGroupMinimumSetGen() { } async function main() { - dedicatedHostsListByHostGroupMaximumSetGen(); - dedicatedHostsListByHostGroupMinimumSetGen(); + dedicatedHostListByHostGroupMaximumSetGen(); + dedicatedHostListByHostGroupMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/dedicatedHostsRestartSample.ts b/sdk/compute/arm-compute/samples-dev/dedicatedHostsRestartSample.ts index d25225b82292..421207bed26d 100644 --- a/sdk/compute/arm-compute/samples-dev/dedicatedHostsRestartSample.ts +++ b/sdk/compute/arm-compute/samples-dev/dedicatedHostsRestartSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Restart the dedicated host. The operation will complete successfully once the dedicated host has restarted and is running. To determine the health of VMs deployed on the dedicated host after the restart check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/azure/service-health/resource-health-overview for more details. * * @summary Restart the dedicated host. The operation will complete successfully once the dedicated host has restarted and is running. To determine the health of VMs deployed on the dedicated host after the restart check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/azure/service-health/resource-health-overview for more details. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHost_Restart.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_Restart.json */ async function restartDedicatedHost() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/dedicatedHostsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/dedicatedHostsUpdateSample.ts index 043ad20f29a5..0c6c5c215305 100644 --- a/sdk/compute/arm-compute/samples-dev/dedicatedHostsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/dedicatedHostsUpdateSample.ts @@ -18,12 +18,12 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Update an dedicated host . + * This sample demonstrates how to Update a dedicated host . * - * @summary Update an dedicated host . - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHosts_Update_MaximumSet_Gen.json + * @summary Update a dedicated host . + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_Update_MaximumSet_Gen.json */ -async function dedicatedHostsUpdateMaximumSetGen() { +async function dedicatedHostUpdateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -62,12 +62,12 @@ async function dedicatedHostsUpdateMaximumSetGen() { } /** - * This sample demonstrates how to Update an dedicated host . + * This sample demonstrates how to Update a dedicated host . * - * @summary Update an dedicated host . - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHosts_Update_MinimumSet_Gen.json + * @summary Update a dedicated host . + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_Update_MinimumSet_Gen.json */ -async function dedicatedHostsUpdateMinimumSetGen() { +async function dedicatedHostUpdateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -86,9 +86,35 @@ async function dedicatedHostsUpdateMinimumSetGen() { console.log(result); } +/** + * This sample demonstrates how to Update a dedicated host . + * + * @summary Update a dedicated host . + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_Update_Resize.json + */ +async function dedicatedHostUpdateResize() { + const subscriptionId = + process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; + const resourceGroupName = + process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; + const hostGroupName = "aaaaaaaaa"; + const hostName = "aaaaaaaaaaaaaaaaaaaaa"; + const parameters: DedicatedHostUpdate = { sku: { name: "DSv3-Type1" } }; + const credential = new DefaultAzureCredential(); + const client = new ComputeManagementClient(credential, subscriptionId); + const result = await client.dedicatedHosts.beginUpdateAndWait( + resourceGroupName, + hostGroupName, + hostName, + parameters + ); + console.log(result); +} + async function main() { - dedicatedHostsUpdateMaximumSetGen(); - dedicatedHostsUpdateMinimumSetGen(); + dedicatedHostUpdateMaximumSetGen(); + dedicatedHostUpdateMinimumSetGen(); + dedicatedHostUpdateResize(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/imagesCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/imagesCreateOrUpdateSample.ts index 5a41e5ad1f06..6b7141ac0495 100644 --- a/sdk/compute/arm-compute/samples-dev/imagesCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/imagesCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create or update an image. * * @summary Create or update an image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_CreateFromABlobWithDiskEncryptionSet.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_CreateFromABlobWithDiskEncryptionSet.json */ async function createAVirtualMachineImageFromABlobWithDiskEncryptionSetResource() { const subscriptionId = @@ -55,7 +55,7 @@ async function createAVirtualMachineImageFromABlobWithDiskEncryptionSetResource( * This sample demonstrates how to Create or update an image. * * @summary Create or update an image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_CreateFromABlob.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_CreateFromABlob.json */ async function createAVirtualMachineImageFromABlob() { const subscriptionId = @@ -89,7 +89,7 @@ async function createAVirtualMachineImageFromABlob() { * This sample demonstrates how to Create or update an image. * * @summary Create or update an image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_CreateFromAManagedDiskWithDiskEncryptionSet.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_CreateFromAManagedDiskWithDiskEncryptionSet.json */ async function createAVirtualMachineImageFromAManagedDiskWithDiskEncryptionSetResource() { const subscriptionId = @@ -128,7 +128,7 @@ async function createAVirtualMachineImageFromAManagedDiskWithDiskEncryptionSetRe * This sample demonstrates how to Create or update an image. * * @summary Create or update an image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_CreateFromAManagedDisk.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_CreateFromAManagedDisk.json */ async function createAVirtualMachineImageFromAManagedDisk() { const subscriptionId = @@ -164,7 +164,7 @@ async function createAVirtualMachineImageFromAManagedDisk() { * This sample demonstrates how to Create or update an image. * * @summary Create or update an image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_CreateFromASnapshotWithDiskEncryptionSet.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_CreateFromASnapshotWithDiskEncryptionSet.json */ async function createAVirtualMachineImageFromASnapshotWithDiskEncryptionSetResource() { const subscriptionId = @@ -203,7 +203,7 @@ async function createAVirtualMachineImageFromASnapshotWithDiskEncryptionSetResou * This sample demonstrates how to Create or update an image. * * @summary Create or update an image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_CreateFromASnapshot.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_CreateFromASnapshot.json */ async function createAVirtualMachineImageFromASnapshot() { const subscriptionId = @@ -239,7 +239,7 @@ async function createAVirtualMachineImageFromASnapshot() { * This sample demonstrates how to Create or update an image. * * @summary Create or update an image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_CreateFromAVM.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_CreateFromAVM.json */ async function createAVirtualMachineImageFromAnExistingVirtualMachine() { const subscriptionId = @@ -268,7 +268,7 @@ async function createAVirtualMachineImageFromAnExistingVirtualMachine() { * This sample demonstrates how to Create or update an image. * * @summary Create or update an image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_Create_DataDiskFromABlobIncluded.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_Create_DataDiskFromABlobIncluded.json */ async function createAVirtualMachineImageThatIncludesADataDiskFromABlob() { const subscriptionId = @@ -309,7 +309,7 @@ async function createAVirtualMachineImageThatIncludesADataDiskFromABlob() { * This sample demonstrates how to Create or update an image. * * @summary Create or update an image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_Create_DataDiskFromAManagedDiskIncluded.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_Create_DataDiskFromAManagedDiskIncluded.json */ async function createAVirtualMachineImageThatIncludesADataDiskFromAManagedDisk() { const subscriptionId = @@ -354,7 +354,7 @@ async function createAVirtualMachineImageThatIncludesADataDiskFromAManagedDisk() * This sample demonstrates how to Create or update an image. * * @summary Create or update an image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_Create_DataDiskFromASnapshotIncluded.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_Create_DataDiskFromASnapshotIncluded.json */ async function createAVirtualMachineImageThatIncludesADataDiskFromASnapshot() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/imagesDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/imagesDeleteSample.ts index a709652bb177..1054a08c2d9e 100644 --- a/sdk/compute/arm-compute/samples-dev/imagesDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/imagesDeleteSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Deletes an Image. * * @summary Deletes an Image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Images_Delete_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Images_Delete_MaximumSet_Gen.json */ -async function imagesDeleteMaximumSetGen() { +async function imageDeleteMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -39,9 +39,9 @@ async function imagesDeleteMaximumSetGen() { * This sample demonstrates how to Deletes an Image. * * @summary Deletes an Image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Images_Delete_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Images_Delete_MinimumSet_Gen.json */ -async function imagesDeleteMinimumSetGen() { +async function imageDeleteMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -57,8 +57,8 @@ async function imagesDeleteMinimumSetGen() { } async function main() { - imagesDeleteMaximumSetGen(); - imagesDeleteMinimumSetGen(); + imageDeleteMaximumSetGen(); + imageDeleteMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/imagesGetSample.ts b/sdk/compute/arm-compute/samples-dev/imagesGetSample.ts index 0eeb7e9e0a63..7292e058c677 100644 --- a/sdk/compute/arm-compute/samples-dev/imagesGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/imagesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets an image. * * @summary Gets an image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_Get.json */ async function getInformationAboutAVirtualMachineImage() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/imagesListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples-dev/imagesListByResourceGroupSample.ts index 639c0e8318d5..2083494da63c 100644 --- a/sdk/compute/arm-compute/samples-dev/imagesListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute/samples-dev/imagesListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the list of images under a resource group. * * @summary Gets the list of images under a resource group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_ListByResourceGroup.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_ListByResourceGroup.json */ async function listAllVirtualMachineImagesInAResourceGroup() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/imagesListSample.ts b/sdk/compute/arm-compute/samples-dev/imagesListSample.ts index b92c2662fade..496173c53cf3 100644 --- a/sdk/compute/arm-compute/samples-dev/imagesListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/imagesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the list of Images in the subscription. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images. * * @summary Gets the list of Images in the subscription. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_ListBySubscription.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_ListBySubscription.json */ async function listAllVirtualMachineImagesInASubscription() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/imagesUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/imagesUpdateSample.ts index ed5b408de7e3..15e9f268e95e 100644 --- a/sdk/compute/arm-compute/samples-dev/imagesUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/imagesUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Update an image. * * @summary Update an image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_Update.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_Update.json */ async function updatesTagsOfAnImage() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/logAnalyticsExportRequestRateByIntervalSample.ts b/sdk/compute/arm-compute/samples-dev/logAnalyticsExportRequestRateByIntervalSample.ts index e3073683b33a..dbe224fb7f90 100644 --- a/sdk/compute/arm-compute/samples-dev/logAnalyticsExportRequestRateByIntervalSample.ts +++ b/sdk/compute/arm-compute/samples-dev/logAnalyticsExportRequestRateByIntervalSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Export logs that show Api requests made by this subscription in the given time window to show throttling activities. * * @summary Export logs that show Api requests made by this subscription in the given time window to show throttling activities. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/logAnalyticExamples/LogAnalytics_RequestRateByInterval.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/logAnalyticExamples/LogAnalytics_RequestRateByInterval.json */ async function exportLogsWhichContainAllApiRequestsMadeToComputeResourceProviderWithinTheGivenTimePeriodBrokenDownByIntervals() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/logAnalyticsExportThrottledRequestsSample.ts b/sdk/compute/arm-compute/samples-dev/logAnalyticsExportThrottledRequestsSample.ts index 03c7f476ddac..90b2b4353749 100644 --- a/sdk/compute/arm-compute/samples-dev/logAnalyticsExportThrottledRequestsSample.ts +++ b/sdk/compute/arm-compute/samples-dev/logAnalyticsExportThrottledRequestsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Export logs that show total throttled Api requests for this subscription in the given time window. * * @summary Export logs that show total throttled Api requests for this subscription in the given time window. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/logAnalyticExamples/LogAnalytics_ThrottledRequests.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/logAnalyticExamples/LogAnalytics_ThrottledRequests.json */ async function exportLogsWhichContainAllThrottledApiRequestsMadeToComputeResourceProviderWithinTheGivenTimePeriod() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/operationsListSample.ts b/sdk/compute/arm-compute/samples-dev/operationsListSample.ts index 355a8cc14a99..e88b129734b9 100644 --- a/sdk/compute/arm-compute/samples-dev/operationsListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/operationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of compute operations. * * @summary Gets a list of compute operations. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/computeRPCommonExamples/Operations_List_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/computeRPCommonExamples/Operations_List_MaximumSet_Gen.json */ async function operationsListMaximumSetGen() { const subscriptionId = @@ -37,7 +37,7 @@ async function operationsListMaximumSetGen() { * This sample demonstrates how to Gets a list of compute operations. * * @summary Gets a list of compute operations. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/computeRPCommonExamples/Operations_List_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/computeRPCommonExamples/Operations_List_MinimumSet_Gen.json */ async function operationsListMinimumSetGen() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsCreateOrUpdateSample.ts index 405dd56c8ce5..f1fd3bb78f36 100644 --- a/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a proximity placement group. * * @summary Create or update a proximity placement group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_CreateOrUpdate.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_CreateOrUpdate.json */ async function createOrUpdateAProximityPlacementGroup() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsDeleteSample.ts index 8d6988f29298..aad3c80a1a12 100644 --- a/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsDeleteSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Delete a proximity placement group. * * @summary Delete a proximity placement group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_Delete.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_Delete.json */ -async function createAProximityPlacementGroup() { +async function deleteAProximityPlacementGroup() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -36,7 +36,7 @@ async function createAProximityPlacementGroup() { } async function main() { - createAProximityPlacementGroup(); + deleteAProximityPlacementGroup(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsGetSample.ts b/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsGetSample.ts index 16a4f2dcc8a1..f64425a9fc5f 100644 --- a/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsGetSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Retrieves information about a proximity placement group . * * @summary Retrieves information about a proximity placement group . - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_Get.json */ -async function createAProximityPlacementGroup() { +async function getProximityPlacementGroups() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -36,7 +36,7 @@ async function createAProximityPlacementGroup() { } async function main() { - createAProximityPlacementGroup(); + getProximityPlacementGroups(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsListByResourceGroupSample.ts index fa5b0ff563d6..09c0f58db270 100644 --- a/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsListByResourceGroupSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Lists all proximity placement groups in a resource group. * * @summary Lists all proximity placement groups in a resource group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_ListByResourceGroup.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_ListByResourceGroup.json */ -async function createAProximityPlacementGroup() { +async function listProximityPlacementGroup() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -37,7 +37,7 @@ async function createAProximityPlacementGroup() { } async function main() { - createAProximityPlacementGroup(); + listProximityPlacementGroup(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsListBySubscriptionSample.ts b/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsListBySubscriptionSample.ts index 80d1a1ea3643..4c289e52c749 100644 --- a/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsListBySubscriptionSample.ts +++ b/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsListBySubscriptionSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Lists all proximity placement groups in a subscription. * * @summary Lists all proximity placement groups in a subscription. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_ListBySubscription.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_ListBySubscription.json */ -async function createAProximityPlacementGroup() { +async function listProximityPlacementGroups() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const credential = new DefaultAzureCredential(); @@ -33,7 +33,7 @@ async function createAProximityPlacementGroup() { } async function main() { - createAProximityPlacementGroup(); + listProximityPlacementGroups(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsUpdateSample.ts index c941530552e1..b8ea81fd685c 100644 --- a/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsUpdateSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to Update a proximity placement group. * * @summary Update a proximity placement group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_Patch.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_Patch.json */ -async function createAProximityPlacementGroup() { +async function updateAProximityPlacementGroup() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -43,7 +43,7 @@ async function createAProximityPlacementGroup() { } async function main() { - createAProximityPlacementGroup(); + updateAProximityPlacementGroup(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/restorePointCollectionsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/restorePointCollectionsCreateOrUpdateSample.ts index 224f2231ed45..106a570d7ee5 100644 --- a/sdk/compute/arm-compute/samples-dev/restorePointCollectionsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/restorePointCollectionsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to create or update the restore point collection. Please refer to https://aka.ms/RestorePoints for more details. When updating a restore point collection, only tags may be modified. * * @summary The operation to create or update the restore point collection. Please refer to https://aka.ms/RestorePoints for more details. When updating a restore point collection, only tags may be modified. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollection_CreateOrUpdate_ForCrossRegionCopy.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePointCollection_CreateOrUpdate_ForCrossRegionCopy.json */ async function createOrUpdateARestorePointCollectionForCrossRegionCopy() { const subscriptionId = @@ -51,7 +51,7 @@ async function createOrUpdateARestorePointCollectionForCrossRegionCopy() { * This sample demonstrates how to The operation to create or update the restore point collection. Please refer to https://aka.ms/RestorePoints for more details. When updating a restore point collection, only tags may be modified. * * @summary The operation to create or update the restore point collection. Please refer to https://aka.ms/RestorePoints for more details. When updating a restore point collection, only tags may be modified. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollection_CreateOrUpdate.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePointCollection_CreateOrUpdate.json */ async function createOrUpdateARestorePointCollection() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/restorePointCollectionsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/restorePointCollectionsDeleteSample.ts index 2722bdf3f1f6..387c815a21fd 100644 --- a/sdk/compute/arm-compute/samples-dev/restorePointCollectionsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/restorePointCollectionsDeleteSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to The operation to delete the restore point collection. This operation will also delete all the contained restore points. * * @summary The operation to delete the restore point collection. This operation will also delete all the contained restore points. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollections_Delete_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePointCollection_Delete_MaximumSet_Gen.json */ -async function restorePointCollectionsDeleteMaximumSetGen() { +async function restorePointCollectionDeleteMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -39,9 +39,9 @@ async function restorePointCollectionsDeleteMaximumSetGen() { * This sample demonstrates how to The operation to delete the restore point collection. This operation will also delete all the contained restore points. * * @summary The operation to delete the restore point collection. This operation will also delete all the contained restore points. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollections_Delete_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePointCollection_Delete_MinimumSet_Gen.json */ -async function restorePointCollectionsDeleteMinimumSetGen() { +async function restorePointCollectionDeleteMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -57,8 +57,8 @@ async function restorePointCollectionsDeleteMinimumSetGen() { } async function main() { - restorePointCollectionsDeleteMaximumSetGen(); - restorePointCollectionsDeleteMinimumSetGen(); + restorePointCollectionDeleteMaximumSetGen(); + restorePointCollectionDeleteMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/restorePointCollectionsGetSample.ts b/sdk/compute/arm-compute/samples-dev/restorePointCollectionsGetSample.ts index 69799fcabb1d..4fa6a318c082 100644 --- a/sdk/compute/arm-compute/samples-dev/restorePointCollectionsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/restorePointCollectionsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to get the restore point collection. * * @summary The operation to get the restore point collection. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollection_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePointCollection_Get.json */ async function getARestorePointCollectionButNotTheRestorePointsContainedInTheRestorePointCollection() { const subscriptionId = @@ -39,7 +39,7 @@ async function getARestorePointCollectionButNotTheRestorePointsContainedInTheRes * This sample demonstrates how to The operation to get the restore point collection. * * @summary The operation to get the restore point collection. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollection_Get_WithContainedRestorePoints.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePointCollection_Get_WithContainedRestorePoints.json */ async function getARestorePointCollectionIncludingTheRestorePointsContainedInTheRestorePointCollection() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/restorePointCollectionsListAllSample.ts b/sdk/compute/arm-compute/samples-dev/restorePointCollectionsListAllSample.ts index 77bf6fc01e78..3ef3cce02815 100644 --- a/sdk/compute/arm-compute/samples-dev/restorePointCollectionsListAllSample.ts +++ b/sdk/compute/arm-compute/samples-dev/restorePointCollectionsListAllSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the list of restore point collections in the subscription. Use nextLink property in the response to get the next page of restore point collections. Do this till nextLink is not null to fetch all the restore point collections. * * @summary Gets the list of restore point collections in the subscription. Use nextLink property in the response to get the next page of restore point collections. Do this till nextLink is not null to fetch all the restore point collections. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollection_ListBySubscription.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePointCollection_ListBySubscription.json */ async function getsTheListOfRestorePointCollectionsInASubscription() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/restorePointCollectionsListSample.ts b/sdk/compute/arm-compute/samples-dev/restorePointCollectionsListSample.ts index 3366862b7a0b..e24fec2783ee 100644 --- a/sdk/compute/arm-compute/samples-dev/restorePointCollectionsListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/restorePointCollectionsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the list of restore point collections in a resource group. * * @summary Gets the list of restore point collections in a resource group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollection_ListByResourceGroup.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePointCollection_ListByResourceGroup.json */ async function getsTheListOfRestorePointCollectionsInAResourceGroup() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/restorePointCollectionsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/restorePointCollectionsUpdateSample.ts index 3d7013b400b1..71a4e7971f2b 100644 --- a/sdk/compute/arm-compute/samples-dev/restorePointCollectionsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/restorePointCollectionsUpdateSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to The operation to update the restore point collection. * * @summary The operation to update the restore point collection. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollections_Update_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePointCollection_Update_MaximumSet_Gen.json */ -async function restorePointCollectionsUpdateMaximumSetGen() { +async function restorePointCollectionUpdateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -50,9 +50,9 @@ async function restorePointCollectionsUpdateMaximumSetGen() { * This sample demonstrates how to The operation to update the restore point collection. * * @summary The operation to update the restore point collection. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollections_Update_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePointCollection_Update_MinimumSet_Gen.json */ -async function restorePointCollectionsUpdateMinimumSetGen() { +async function restorePointCollectionUpdateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -70,8 +70,8 @@ async function restorePointCollectionsUpdateMinimumSetGen() { } async function main() { - restorePointCollectionsUpdateMaximumSetGen(); - restorePointCollectionsUpdateMinimumSetGen(); + restorePointCollectionUpdateMaximumSetGen(); + restorePointCollectionUpdateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/restorePointsCreateSample.ts b/sdk/compute/arm-compute/samples-dev/restorePointsCreateSample.ts index cfaed65a048a..be8562868220 100644 --- a/sdk/compute/arm-compute/samples-dev/restorePointsCreateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/restorePointsCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to create the restore point. Updating properties of an existing restore point is not allowed * * @summary The operation to create the restore point. Updating properties of an existing restore point is not allowed - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePoint_Copy_BetweenRegions.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePoint_Copy_BetweenRegions.json */ async function copyARestorePointToADifferentRegion() { const subscriptionId = @@ -48,7 +48,7 @@ async function copyARestorePointToADifferentRegion() { * This sample demonstrates how to The operation to create the restore point. Updating properties of an existing restore point is not allowed * * @summary The operation to create the restore point. Updating properties of an existing restore point is not allowed - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePoint_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePoint_Create.json */ async function createARestorePoint() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/restorePointsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/restorePointsDeleteSample.ts index dce16b22e09e..a552990eb26a 100644 --- a/sdk/compute/arm-compute/samples-dev/restorePointsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/restorePointsDeleteSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to The operation to delete the restore point. * * @summary The operation to delete the restore point. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePoints_Delete_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePoint_Delete_MaximumSet_Gen.json */ -async function restorePointsDeleteMaximumSetGen() { +async function restorePointDeleteMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -41,9 +41,9 @@ async function restorePointsDeleteMaximumSetGen() { * This sample demonstrates how to The operation to delete the restore point. * * @summary The operation to delete the restore point. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePoints_Delete_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePoint_Delete_MinimumSet_Gen.json */ -async function restorePointsDeleteMinimumSetGen() { +async function restorePointDeleteMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -61,8 +61,8 @@ async function restorePointsDeleteMinimumSetGen() { } async function main() { - restorePointsDeleteMaximumSetGen(); - restorePointsDeleteMinimumSetGen(); + restorePointDeleteMaximumSetGen(); + restorePointDeleteMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/restorePointsGetSample.ts b/sdk/compute/arm-compute/samples-dev/restorePointsGetSample.ts index 98537f6b808e..2a6566f77890 100644 --- a/sdk/compute/arm-compute/samples-dev/restorePointsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/restorePointsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to get the restore point. * * @summary The operation to get the restore point. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePoint_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePoint_Get.json */ async function getARestorePoint() { const subscriptionId = @@ -41,7 +41,7 @@ async function getARestorePoint() { * This sample demonstrates how to The operation to get the restore point. * * @summary The operation to get the restore point. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePoint_Get_WithInstanceView.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePoint_Get_WithInstanceView.json */ async function getRestorePointWithInstanceView() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/sshPublicKeysCreateSample.ts b/sdk/compute/arm-compute/samples-dev/sshPublicKeysCreateSample.ts index 8e8549e85e4e..f1d5e21f427c 100644 --- a/sdk/compute/arm-compute/samples-dev/sshPublicKeysCreateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/sshPublicKeysCreateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a new SSH public key resource. * * @summary Creates a new SSH public key resource. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKey_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_Create.json */ async function createANewSshPublicKeyResource() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/sshPublicKeysDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/sshPublicKeysDeleteSample.ts index e779f2508d32..760eddf5bf4d 100644 --- a/sdk/compute/arm-compute/samples-dev/sshPublicKeysDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/sshPublicKeysDeleteSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Delete an SSH public key. * * @summary Delete an SSH public key. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKeys_Delete_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_Delete_MaximumSet_Gen.json */ -async function sshPublicKeysDeleteMaximumSetGen() { +async function sshPublicKeyDeleteMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -39,9 +39,9 @@ async function sshPublicKeysDeleteMaximumSetGen() { * This sample demonstrates how to Delete an SSH public key. * * @summary Delete an SSH public key. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKeys_Delete_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_Delete_MinimumSet_Gen.json */ -async function sshPublicKeysDeleteMinimumSetGen() { +async function sshPublicKeyDeleteMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -57,8 +57,8 @@ async function sshPublicKeysDeleteMinimumSetGen() { } async function main() { - sshPublicKeysDeleteMaximumSetGen(); - sshPublicKeysDeleteMinimumSetGen(); + sshPublicKeyDeleteMaximumSetGen(); + sshPublicKeyDeleteMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/sshPublicKeysGenerateKeyPairSample.ts b/sdk/compute/arm-compute/samples-dev/sshPublicKeysGenerateKeyPairSample.ts index cd823187fd2e..6656c7dac31d 100644 --- a/sdk/compute/arm-compute/samples-dev/sshPublicKeysGenerateKeyPairSample.ts +++ b/sdk/compute/arm-compute/samples-dev/sshPublicKeysGenerateKeyPairSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Generates and returns a public/private key pair and populates the SSH public key resource with the public key. The length of the key will be 3072 bits. This operation can only be performed once per SSH public key resource. * * @summary Generates and returns a public/private key pair and populates the SSH public key resource with the public key. The length of the key will be 3072 bits. This operation can only be performed once per SSH public key resource. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKeys_GenerateKeyPair.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_GenerateKeyPair.json */ async function generateAnSshKeyPair() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/sshPublicKeysGetSample.ts b/sdk/compute/arm-compute/samples-dev/sshPublicKeysGetSample.ts index 9317549dca87..1ccb6803e437 100644 --- a/sdk/compute/arm-compute/samples-dev/sshPublicKeysGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/sshPublicKeysGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves information about an SSH public key. * * @summary Retrieves information about an SSH public key. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKey_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_Get.json */ async function getAnSshPublicKey() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/sshPublicKeysListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples-dev/sshPublicKeysListByResourceGroupSample.ts index 8353e0b2b422..6c44483c715e 100644 --- a/sdk/compute/arm-compute/samples-dev/sshPublicKeysListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute/samples-dev/sshPublicKeysListByResourceGroupSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Lists all of the SSH public keys in the specified resource group. Use the nextLink property in the response to get the next page of SSH public keys. * * @summary Lists all of the SSH public keys in the specified resource group. Use the nextLink property in the response to get the next page of SSH public keys. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKeys_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_ListByResourceGroup_MaximumSet_Gen.json */ -async function sshPublicKeysListByResourceGroupMaximumSetGen() { +async function sshPublicKeyListByResourceGroupMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -40,9 +40,9 @@ async function sshPublicKeysListByResourceGroupMaximumSetGen() { * This sample demonstrates how to Lists all of the SSH public keys in the specified resource group. Use the nextLink property in the response to get the next page of SSH public keys. * * @summary Lists all of the SSH public keys in the specified resource group. Use the nextLink property in the response to get the next page of SSH public keys. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKeys_ListByResourceGroup_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_ListByResourceGroup_MinimumSet_Gen.json */ -async function sshPublicKeysListByResourceGroupMinimumSetGen() { +async function sshPublicKeyListByResourceGroupMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -59,8 +59,8 @@ async function sshPublicKeysListByResourceGroupMinimumSetGen() { } async function main() { - sshPublicKeysListByResourceGroupMaximumSetGen(); - sshPublicKeysListByResourceGroupMinimumSetGen(); + sshPublicKeyListByResourceGroupMaximumSetGen(); + sshPublicKeyListByResourceGroupMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/sshPublicKeysListBySubscriptionSample.ts b/sdk/compute/arm-compute/samples-dev/sshPublicKeysListBySubscriptionSample.ts index da91c0aca05e..36bbc5f97d7b 100644 --- a/sdk/compute/arm-compute/samples-dev/sshPublicKeysListBySubscriptionSample.ts +++ b/sdk/compute/arm-compute/samples-dev/sshPublicKeysListBySubscriptionSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Lists all of the SSH public keys in the subscription. Use the nextLink property in the response to get the next page of SSH public keys. * * @summary Lists all of the SSH public keys in the subscription. Use the nextLink property in the response to get the next page of SSH public keys. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKeys_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_ListBySubscription_MaximumSet_Gen.json */ -async function sshPublicKeysListBySubscriptionMaximumSetGen() { +async function sshPublicKeyListBySubscriptionMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const credential = new DefaultAzureCredential(); @@ -36,9 +36,9 @@ async function sshPublicKeysListBySubscriptionMaximumSetGen() { * This sample demonstrates how to Lists all of the SSH public keys in the subscription. Use the nextLink property in the response to get the next page of SSH public keys. * * @summary Lists all of the SSH public keys in the subscription. Use the nextLink property in the response to get the next page of SSH public keys. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKeys_ListBySubscription_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_ListBySubscription_MinimumSet_Gen.json */ -async function sshPublicKeysListBySubscriptionMinimumSetGen() { +async function sshPublicKeyListBySubscriptionMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const credential = new DefaultAzureCredential(); @@ -51,8 +51,8 @@ async function sshPublicKeysListBySubscriptionMinimumSetGen() { } async function main() { - sshPublicKeysListBySubscriptionMaximumSetGen(); - sshPublicKeysListBySubscriptionMinimumSetGen(); + sshPublicKeyListBySubscriptionMaximumSetGen(); + sshPublicKeyListBySubscriptionMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/sshPublicKeysUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/sshPublicKeysUpdateSample.ts index 896e1ace4301..2b7a705bd804 100644 --- a/sdk/compute/arm-compute/samples-dev/sshPublicKeysUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/sshPublicKeysUpdateSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to Updates a new SSH public key resource. * * @summary Updates a new SSH public key resource. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKeys_Update_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_Update_MaximumSet_Gen.json */ -async function sshPublicKeysUpdateMaximumSetGen() { +async function sshPublicKeyUpdateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -47,9 +47,9 @@ async function sshPublicKeysUpdateMaximumSetGen() { * This sample demonstrates how to Updates a new SSH public key resource. * * @summary Updates a new SSH public key resource. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKeys_Update_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_Update_MinimumSet_Gen.json */ -async function sshPublicKeysUpdateMinimumSetGen() { +async function sshPublicKeyUpdateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -67,8 +67,8 @@ async function sshPublicKeysUpdateMinimumSetGen() { } async function main() { - sshPublicKeysUpdateMaximumSetGen(); - sshPublicKeysUpdateMinimumSetGen(); + sshPublicKeyUpdateMaximumSetGen(); + sshPublicKeyUpdateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/usageListSample.ts b/sdk/compute/arm-compute/samples-dev/usageListSample.ts index ea8fd6e133d0..cb079f7f35d8 100644 --- a/sdk/compute/arm-compute/samples-dev/usageListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/usageListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription. * * @summary Gets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/computeRPCommonExamples/Usage_List_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/computeRPCommonExamples/Usage_List_MaximumSet_Gen.json */ async function usageListMaximumSetGen() { const subscriptionId = @@ -37,7 +37,7 @@ async function usageListMaximumSetGen() { * This sample demonstrates how to Gets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription. * * @summary Gets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/computeRPCommonExamples/Usage_List_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/computeRPCommonExamples/Usage_List_MinimumSet_Gen.json */ async function usageListMinimumSetGen() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionImagesGetSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionImagesGetSample.ts index d0569802bcc3..d14cadf19389 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionImagesGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionImagesGetSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Gets a virtual machine extension image. * * @summary Gets a virtual machine extension image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_Get_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_Get_MaximumSet_Gen.json */ -async function virtualMachineExtensionImagesGetMaximumSetGen() { +async function virtualMachineExtensionImageGetMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaaaaaaaaaaa"; @@ -42,9 +42,9 @@ async function virtualMachineExtensionImagesGetMaximumSetGen() { * This sample demonstrates how to Gets a virtual machine extension image. * * @summary Gets a virtual machine extension image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_Get_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_Get_MinimumSet_Gen.json */ -async function virtualMachineExtensionImagesGetMinimumSetGen() { +async function virtualMachineExtensionImageGetMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaaaaaaaaaaaa"; @@ -63,8 +63,8 @@ async function virtualMachineExtensionImagesGetMinimumSetGen() { } async function main() { - virtualMachineExtensionImagesGetMaximumSetGen(); - virtualMachineExtensionImagesGetMinimumSetGen(); + virtualMachineExtensionImageGetMaximumSetGen(); + virtualMachineExtensionImageGetMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionImagesListTypesSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionImagesListTypesSample.ts index 4b37858f6553..578ffadc1374 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionImagesListTypesSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionImagesListTypesSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Gets a list of virtual machine extension image types. * * @summary Gets a list of virtual machine extension image types. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListTypes_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListTypes_MaximumSet_Gen.json */ -async function virtualMachineExtensionImagesListTypesMaximumSetGen() { +async function virtualMachineExtensionImageListTypesMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaaaaaaaaaaaaaaaaaaaaaaaa"; @@ -38,9 +38,9 @@ async function virtualMachineExtensionImagesListTypesMaximumSetGen() { * This sample demonstrates how to Gets a list of virtual machine extension image types. * * @summary Gets a list of virtual machine extension image types. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListTypes_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListTypes_MinimumSet_Gen.json */ -async function virtualMachineExtensionImagesListTypesMinimumSetGen() { +async function virtualMachineExtensionImageListTypesMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaa"; @@ -55,8 +55,8 @@ async function virtualMachineExtensionImagesListTypesMinimumSetGen() { } async function main() { - virtualMachineExtensionImagesListTypesMaximumSetGen(); - virtualMachineExtensionImagesListTypesMinimumSetGen(); + virtualMachineExtensionImageListTypesMaximumSetGen(); + virtualMachineExtensionImageListTypesMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionImagesListVersionsSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionImagesListVersionsSample.ts index 4217118369bb..6f0463fdf8a7 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionImagesListVersionsSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionImagesListVersionsSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to Gets a list of virtual machine extension image versions. * * @summary Gets a list of virtual machine extension image versions. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListVersions_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListVersions_MaximumSet_Gen.json */ -async function virtualMachineExtensionImagesListVersionsMaximumSetGen() { +async function virtualMachineExtensionImageListVersionsMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaaaaaaaaaaaaaaaaaaaaaaaa"; @@ -52,9 +52,9 @@ async function virtualMachineExtensionImagesListVersionsMaximumSetGen() { * This sample demonstrates how to Gets a list of virtual machine extension image versions. * * @summary Gets a list of virtual machine extension image versions. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListVersions_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListVersions_MinimumSet_Gen.json */ -async function virtualMachineExtensionImagesListVersionsMinimumSetGen() { +async function virtualMachineExtensionImageListVersionsMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaaaaaaa"; @@ -71,8 +71,8 @@ async function virtualMachineExtensionImagesListVersionsMinimumSetGen() { } async function main() { - virtualMachineExtensionImagesListVersionsMaximumSetGen(); - virtualMachineExtensionImagesListVersionsMinimumSetGen(); + virtualMachineExtensionImageListVersionsMaximumSetGen(); + virtualMachineExtensionImageListVersionsMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsCreateOrUpdateSample.ts index 292b2f998999..f67e12b845eb 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsCreateOrUpdateSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to The operation to create or update the extension. * * @summary The operation to create or update the extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachineExtension_CreateOrUpdate_MaximumSet_Gen.json */ -async function virtualMachineExtensionsCreateOrUpdateMaximumSetGen() { +async function virtualMachineExtensionCreateOrUpdateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -81,15 +81,15 @@ async function virtualMachineExtensionsCreateOrUpdateMaximumSetGen() { * This sample demonstrates how to The operation to create or update the extension. * * @summary The operation to create or update the extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_CreateOrUpdate_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachineExtension_CreateOrUpdate_MinimumSet_Gen.json */ -async function virtualMachineExtensionsCreateOrUpdateMinimumSetGen() { +async function virtualMachineExtensionCreateOrUpdateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; - const vmName = "aaaa"; - const vmExtensionName = "aaaaaaaaaaaaaaaaaaaaaaaa"; + const vmName = "myVM"; + const vmExtensionName = "myVMExtension"; const extensionParameters: VirtualMachineExtension = { location: "westus" }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -103,8 +103,8 @@ async function virtualMachineExtensionsCreateOrUpdateMinimumSetGen() { } async function main() { - virtualMachineExtensionsCreateOrUpdateMaximumSetGen(); - virtualMachineExtensionsCreateOrUpdateMinimumSetGen(); + virtualMachineExtensionCreateOrUpdateMaximumSetGen(); + virtualMachineExtensionCreateOrUpdateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsDeleteSample.ts index 9e8397b6b220..7ddb6274c0a6 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsDeleteSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to The operation to delete the extension. * * @summary The operation to delete the extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_Delete_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachineExtension_Delete_MaximumSet_Gen.json */ -async function virtualMachineExtensionsDeleteMaximumSetGen() { +async function virtualMachineExtensionDeleteMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -41,9 +41,9 @@ async function virtualMachineExtensionsDeleteMaximumSetGen() { * This sample demonstrates how to The operation to delete the extension. * * @summary The operation to delete the extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_Delete_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachineExtension_Delete_MinimumSet_Gen.json */ -async function virtualMachineExtensionsDeleteMinimumSetGen() { +async function virtualMachineExtensionDeleteMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -61,8 +61,8 @@ async function virtualMachineExtensionsDeleteMinimumSetGen() { } async function main() { - virtualMachineExtensionsDeleteMaximumSetGen(); - virtualMachineExtensionsDeleteMinimumSetGen(); + virtualMachineExtensionDeleteMaximumSetGen(); + virtualMachineExtensionDeleteMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsGetSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsGetSample.ts index ca2d51116ab7..a1e029ca98c4 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsGetSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to The operation to get the extension. * * @summary The operation to get the extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_Get_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachineExtension_Get_MaximumSet_Gen.json */ -async function virtualMachineExtensionsGetMaximumSetGen() { +async function virtualMachineExtensionGetMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -47,15 +47,15 @@ async function virtualMachineExtensionsGetMaximumSetGen() { * This sample demonstrates how to The operation to get the extension. * * @summary The operation to get the extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_Get_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachineExtension_Get_MinimumSet_Gen.json */ -async function virtualMachineExtensionsGetMinimumSetGen() { +async function virtualMachineExtensionGetMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; - const vmName = "a"; - const vmExtensionName = "aaaaaaaaaaaaaaaaaaaaaaaaaaaa"; + const vmName = "myVM"; + const vmExtensionName = "myVMExtension"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineExtensions.get( @@ -67,8 +67,8 @@ async function virtualMachineExtensionsGetMinimumSetGen() { } async function main() { - virtualMachineExtensionsGetMaximumSetGen(); - virtualMachineExtensionsGetMinimumSetGen(); + virtualMachineExtensionGetMaximumSetGen(); + virtualMachineExtensionGetMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsListSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsListSample.ts index ffe78dba2f42..0c12abde16e8 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsListSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to The operation to get all extensions of a Virtual Machine. * * @summary The operation to get all extensions of a Virtual Machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_List_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachineExtension_List_MaximumSet_Gen.json */ -async function virtualMachineExtensionsListMaximumSetGen() { +async function virtualMachineExtensionListMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -45,9 +45,9 @@ async function virtualMachineExtensionsListMaximumSetGen() { * This sample demonstrates how to The operation to get all extensions of a Virtual Machine. * * @summary The operation to get all extensions of a Virtual Machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_List_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachineExtension_List_MinimumSet_Gen.json */ -async function virtualMachineExtensionsListMinimumSetGen() { +async function virtualMachineExtensionListMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -63,8 +63,8 @@ async function virtualMachineExtensionsListMinimumSetGen() { } async function main() { - virtualMachineExtensionsListMaximumSetGen(); - virtualMachineExtensionsListMinimumSetGen(); + virtualMachineExtensionListMaximumSetGen(); + virtualMachineExtensionListMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsUpdateSample.ts index d76160fcdc08..be18fa05a8fc 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to update the extension. * * @summary The operation to update the extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_Update.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachineExtension_Update.json */ async function updateVMExtension() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneGetSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneGetSample.ts index d8e955e4de05..a72abb207428 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a virtual machine image in an edge zone. * * @summary Gets a virtual machine image in an edge zone. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_Get_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_Get_MaximumSet_Gen.json */ async function virtualMachineImagesEdgeZoneGetMaximumSetGen() { const subscriptionId = @@ -46,7 +46,7 @@ async function virtualMachineImagesEdgeZoneGetMaximumSetGen() { * This sample demonstrates how to Gets a virtual machine image in an edge zone. * * @summary Gets a virtual machine image in an edge zone. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_Get_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_Get_MinimumSet_Gen.json */ async function virtualMachineImagesEdgeZoneGetMinimumSetGen() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListOffersSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListOffersSample.ts index 7188a8362a85..0377b89ad5c9 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListOffersSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListOffersSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of virtual machine image offers for the specified location, edge zone and publisher. * * @summary Gets a list of virtual machine image offers for the specified location, edge zone and publisher. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListOffers_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListOffers_MaximumSet_Gen.json */ async function virtualMachineImagesEdgeZoneListOffersMaximumSetGen() { const subscriptionId = @@ -40,7 +40,7 @@ async function virtualMachineImagesEdgeZoneListOffersMaximumSetGen() { * This sample demonstrates how to Gets a list of virtual machine image offers for the specified location, edge zone and publisher. * * @summary Gets a list of virtual machine image offers for the specified location, edge zone and publisher. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListOffers_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListOffers_MinimumSet_Gen.json */ async function virtualMachineImagesEdgeZoneListOffersMinimumSetGen() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListPublishersSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListPublishersSample.ts index fe25fbaf9c51..f211eac807b0 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListPublishersSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListPublishersSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of virtual machine image publishers for the specified Azure location and edge zone. * * @summary Gets a list of virtual machine image publishers for the specified Azure location and edge zone. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListPublishers_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListPublishers_MaximumSet_Gen.json */ async function virtualMachineImagesEdgeZoneListPublishersMaximumSetGen() { const subscriptionId = @@ -38,7 +38,7 @@ async function virtualMachineImagesEdgeZoneListPublishersMaximumSetGen() { * This sample demonstrates how to Gets a list of virtual machine image publishers for the specified Azure location and edge zone. * * @summary Gets a list of virtual machine image publishers for the specified Azure location and edge zone. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListPublishers_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListPublishers_MinimumSet_Gen.json */ async function virtualMachineImagesEdgeZoneListPublishersMinimumSetGen() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListSample.ts index f65308684b48..c0d50f6cf45d 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of all virtual machine image versions for the specified location, edge zone, publisher, offer, and SKU. * * @summary Gets a list of all virtual machine image versions for the specified location, edge zone, publisher, offer, and SKU. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_List_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_List_MaximumSet_Gen.json */ async function virtualMachineImagesEdgeZoneListMaximumSetGen() { const subscriptionId = @@ -56,7 +56,7 @@ async function virtualMachineImagesEdgeZoneListMaximumSetGen() { * This sample demonstrates how to Gets a list of all virtual machine image versions for the specified location, edge zone, publisher, offer, and SKU. * * @summary Gets a list of all virtual machine image versions for the specified location, edge zone, publisher, offer, and SKU. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_List_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_List_MinimumSet_Gen.json */ async function virtualMachineImagesEdgeZoneListMinimumSetGen() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListSkusSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListSkusSample.ts index 1250b6da3c8d..a5439f227b85 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListSkusSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListSkusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of virtual machine image SKUs for the specified location, edge zone, publisher, and offer. * * @summary Gets a list of virtual machine image SKUs for the specified location, edge zone, publisher, and offer. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListSkus_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListSkus_MaximumSet_Gen.json */ async function virtualMachineImagesEdgeZoneListSkusMaximumSetGen() { const subscriptionId = @@ -42,7 +42,7 @@ async function virtualMachineImagesEdgeZoneListSkusMaximumSetGen() { * This sample demonstrates how to Gets a list of virtual machine image SKUs for the specified location, edge zone, publisher, and offer. * * @summary Gets a list of virtual machine image SKUs for the specified location, edge zone, publisher, and offer. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListSkus_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListSkus_MinimumSet_Gen.json */ async function virtualMachineImagesEdgeZoneListSkusMinimumSetGen() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesGetSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesGetSample.ts index f75c0fd3f171..551134847b08 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesGetSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Gets a virtual machine image. * * @summary Gets a virtual machine image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_Get_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImage_Get_MaximumSet_Gen.json */ -async function virtualMachineImagesGetMaximumSetGen() { +async function virtualMachineImageGetMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaaaa"; @@ -44,9 +44,9 @@ async function virtualMachineImagesGetMaximumSetGen() { * This sample demonstrates how to Gets a virtual machine image. * * @summary Gets a virtual machine image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_Get_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImage_Get_MinimumSet_Gen.json */ -async function virtualMachineImagesGetMinimumSetGen() { +async function virtualMachineImageGetMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaaaaaaaaaa"; @@ -67,8 +67,8 @@ async function virtualMachineImagesGetMinimumSetGen() { } async function main() { - virtualMachineImagesGetMaximumSetGen(); - virtualMachineImagesGetMinimumSetGen(); + virtualMachineImageGetMaximumSetGen(); + virtualMachineImageGetMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListByEdgeZoneSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListByEdgeZoneSample.ts index 06e235f69600..367d29e6dd1e 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListByEdgeZoneSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListByEdgeZoneSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of all virtual machine image versions for the specified edge zone * * @summary Gets a list of all virtual machine image versions for the specified edge zone - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListByEdgeZone_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListByEdgeZone_MaximumSet_Gen.json */ async function virtualMachineImagesEdgeZoneListByEdgeZoneMaximumSetGen() { const subscriptionId = @@ -39,7 +39,7 @@ async function virtualMachineImagesEdgeZoneListByEdgeZoneMaximumSetGen() { * This sample demonstrates how to Gets a list of all virtual machine image versions for the specified edge zone * * @summary Gets a list of all virtual machine image versions for the specified edge zone - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListByEdgeZone_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListByEdgeZone_MinimumSet_Gen.json */ async function virtualMachineImagesEdgeZoneListByEdgeZoneMinimumSetGen() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListOffersSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListOffersSample.ts index 3eacf4807429..1f91c3c83f7b 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListOffersSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListOffersSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Gets a list of virtual machine image offers for the specified location and publisher. * * @summary Gets a list of virtual machine image offers for the specified location and publisher. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_ListOffers_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImage_ListOffers_MaximumSet_Gen.json */ -async function virtualMachineImagesListOffersMaximumSetGen() { +async function virtualMachineImageListOffersMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaaaaa"; @@ -38,9 +38,9 @@ async function virtualMachineImagesListOffersMaximumSetGen() { * This sample demonstrates how to Gets a list of virtual machine image offers for the specified location and publisher. * * @summary Gets a list of virtual machine image offers for the specified location and publisher. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_ListOffers_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImage_ListOffers_MinimumSet_Gen.json */ -async function virtualMachineImagesListOffersMinimumSetGen() { +async function virtualMachineImageListOffersMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaaaaaaaaaaaaaaa"; @@ -55,8 +55,8 @@ async function virtualMachineImagesListOffersMinimumSetGen() { } async function main() { - virtualMachineImagesListOffersMaximumSetGen(); - virtualMachineImagesListOffersMinimumSetGen(); + virtualMachineImageListOffersMaximumSetGen(); + virtualMachineImageListOffersMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListPublishersSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListPublishersSample.ts index 86f4d154e052..d6eeb0e5773d 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListPublishersSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListPublishersSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Gets a list of virtual machine image publishers for the specified Azure location. * * @summary Gets a list of virtual machine image publishers for the specified Azure location. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_ListPublishers_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImage_ListPublishers_MaximumSet_Gen.json */ -async function virtualMachineImagesListPublishersMaximumSetGen() { +async function virtualMachineImageListPublishersMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaaa"; @@ -34,9 +34,9 @@ async function virtualMachineImagesListPublishersMaximumSetGen() { * This sample demonstrates how to Gets a list of virtual machine image publishers for the specified Azure location. * * @summary Gets a list of virtual machine image publishers for the specified Azure location. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_ListPublishers_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImage_ListPublishers_MinimumSet_Gen.json */ -async function virtualMachineImagesListPublishersMinimumSetGen() { +async function virtualMachineImageListPublishersMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaaaaaaaaaaaaaaaaaaaaaaaaa"; @@ -47,8 +47,8 @@ async function virtualMachineImagesListPublishersMinimumSetGen() { } async function main() { - virtualMachineImagesListPublishersMaximumSetGen(); - virtualMachineImagesListPublishersMinimumSetGen(); + virtualMachineImageListPublishersMaximumSetGen(); + virtualMachineImageListPublishersMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListSample.ts index cc957f767c5c..42109dd33bd6 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU. * * @summary Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_List_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImage_List_MaximumSet_Gen.json */ -async function virtualMachineImagesListMaximumSetGen() { +async function virtualMachineImageListMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaaaaaaaaaaaaa"; @@ -54,9 +54,9 @@ async function virtualMachineImagesListMaximumSetGen() { * This sample demonstrates how to Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU. * * @summary Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_List_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImage_List_MinimumSet_Gen.json */ -async function virtualMachineImagesListMinimumSetGen() { +async function virtualMachineImageListMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaaaaa"; @@ -75,8 +75,8 @@ async function virtualMachineImagesListMinimumSetGen() { } async function main() { - virtualMachineImagesListMaximumSetGen(); - virtualMachineImagesListMinimumSetGen(); + virtualMachineImageListMaximumSetGen(); + virtualMachineImageListMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListSkusSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListSkusSample.ts index 66951b0bb93d..6f9423d929e6 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListSkusSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListSkusSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Gets a list of virtual machine image SKUs for the specified location, publisher, and offer. * * @summary Gets a list of virtual machine image SKUs for the specified location, publisher, and offer. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_ListSkus_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImage_ListSkus_MaximumSet_Gen.json */ -async function virtualMachineImagesListSkusMaximumSetGen() { +async function virtualMachineImageListSkusMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaa"; @@ -40,9 +40,9 @@ async function virtualMachineImagesListSkusMaximumSetGen() { * This sample demonstrates how to Gets a list of virtual machine image SKUs for the specified location, publisher, and offer. * * @summary Gets a list of virtual machine image SKUs for the specified location, publisher, and offer. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_ListSkus_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImage_ListSkus_MinimumSet_Gen.json */ -async function virtualMachineImagesListSkusMinimumSetGen() { +async function virtualMachineImageListSkusMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaa"; @@ -59,8 +59,8 @@ async function virtualMachineImagesListSkusMinimumSetGen() { } async function main() { - virtualMachineImagesListSkusMaximumSetGen(); - virtualMachineImagesListSkusMinimumSetGen(); + virtualMachineImageListSkusMaximumSetGen(); + virtualMachineImageListSkusMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsCreateOrUpdateSample.ts index 1a247119d8ee..db097099f5a8 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to create or update the run command. * * @summary The operation to create or update the run command. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineRunCommand_CreateOrUpdate.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineRunCommand_CreateOrUpdate.json */ async function createOrUpdateARunCommand() { const subscriptionId = @@ -32,15 +32,26 @@ async function createOrUpdateARunCommand() { const runCommandName = "myRunCommand"; const runCommand: VirtualMachineRunCommand = { asyncExecution: false, + errorBlobUri: + "https://mystorageaccount.blob.core.windows.net/mycontainer/MyScriptError.txt?sp=racw&st=2022-10-07T19:40:21Z&se=2022-10-08T03:40:21Z&spr=https&sv=2021-06-08&sr=b&sig=Yh7B%2Fy83olbYBdfsfbUREvd7ol8Dq5EVP3lAO4Kj4xDcN8%3D", location: "West US", + outputBlobManagedIdentity: { + clientId: "22d35efb-0c99-4041-8c5b-6d24db33a69a" + }, + outputBlobUri: + "https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/MyScriptoutput.txt", parameters: [ { name: "param1", value: "value1" }, { name: "param2", value: "value2" } ], runAsPassword: "", runAsUser: "user1", - source: { script: "Write-Host Hello World!" }, - timeoutInSeconds: 3600 + source: { + scriptUri: + "https://mystorageaccount.blob.core.windows.net/scriptcontainer/MyScript.ps1?sp=r&st=2022-10-07T19:52:54Z&se=2022-10-08T03:52:54Z&spr=https&sv=2021-06-08&sr=b&sig=zfYFYCgea1PqVERZuwJiewrte5gjTnKGtVJngcw5oc828%3D" + }, + timeoutInSeconds: 3600, + treatFailureAsDeploymentFailure: false }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsDeleteSample.ts index 04c4e6d94e3a..80a5f8452b35 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to delete the run command. * * @summary The operation to delete the run command. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineRunCommand_Delete.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineRunCommand_Delete.json */ async function deleteARunCommand() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsGetByVirtualMachineSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsGetByVirtualMachineSample.ts index 6343482a101a..b20a51b38126 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsGetByVirtualMachineSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsGetByVirtualMachineSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to get the run command. * * @summary The operation to get the run command. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineRunCommand_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineRunCommand_Get.json */ async function getARunCommand() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsGetSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsGetSample.ts index 5b7e88e4524e..413d77fb958c 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets specific run command for a subscription in a location. * * @summary Gets specific run command for a subscription in a location. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/RunCommand_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/RunCommand_Get.json */ async function virtualMachineRunCommandGet() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsListByVirtualMachineSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsListByVirtualMachineSample.ts index 46b37eafff10..4d3470fe349a 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsListByVirtualMachineSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsListByVirtualMachineSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to get all run commands of a Virtual Machine. * * @summary The operation to get all run commands of a Virtual Machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineRunCommand_List.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineRunCommand_List.json */ async function listRunCommandsInAVirtualMachine() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsListSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsListSample.ts index a7ba2a78e7f1..89c36bf4aa89 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all available run commands for a subscription in a location. * * @summary Lists all available run commands for a subscription in a location. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/RunCommand_List.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/RunCommand_List.json */ async function virtualMachineRunCommandList() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsUpdateSample.ts index 71034e44cabf..898bf0eb23fe 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to update the run command. * * @summary The operation to update the run command. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineRunCommand_Update.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineRunCommand_Update.json */ async function updateARunCommand() { const subscriptionId = @@ -31,7 +31,24 @@ async function updateARunCommand() { const vmName = "myVM"; const runCommandName = "myRunCommand"; const runCommand: VirtualMachineRunCommandUpdate = { - source: { script: "Write-Host Script Source Updated!" } + asyncExecution: false, + errorBlobManagedIdentity: { + objectId: "4231e4d2-33e4-4e23-96b2-17888afa6072" + }, + errorBlobUri: + "https://mystorageaccount.blob.core.windows.net/mycontainer/MyScriptError.txt", + outputBlobUri: + "https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/MyScriptoutput.txt?sp=racw&st=2022-10-07T19:40:21Z&se=2022-10-08T03:40:21Z&spr=https&sv=2021-06-08&sr=b&sig=Yh7B%2Fy83olbYBdfsfbUREvd7ol8Dq5EVP3lAO4Kj4xDcN8%3D", + parameters: [ + { name: "param1", value: "value1" }, + { name: "param2", value: "value2" } + ], + runAsPassword: "", + runAsUser: "user1", + source: { + script: "Write-Host Hello World! ; Remove-Item C:\test\testFile.txt" + }, + timeoutInSeconds: 3600 }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsCreateOrUpdateSample.ts index 601d6d925e49..09c40a9ec081 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsCreateOrUpdateSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to The operation to create or update an extension. * * @summary The operation to create or update an extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_CreateOrUpdate_MaximumSet_Gen.json */ -async function virtualMachineScaleSetExtensionsCreateOrUpdateMaximumSetGen() { +async function virtualMachineScaleSetExtensionCreateOrUpdateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -58,9 +58,9 @@ async function virtualMachineScaleSetExtensionsCreateOrUpdateMaximumSetGen() { * This sample demonstrates how to The operation to create or update an extension. * * @summary The operation to create or update an extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_CreateOrUpdate_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_CreateOrUpdate_MinimumSet_Gen.json */ -async function virtualMachineScaleSetExtensionsCreateOrUpdateMinimumSetGen() { +async function virtualMachineScaleSetExtensionCreateOrUpdateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -80,8 +80,8 @@ async function virtualMachineScaleSetExtensionsCreateOrUpdateMinimumSetGen() { } async function main() { - virtualMachineScaleSetExtensionsCreateOrUpdateMaximumSetGen(); - virtualMachineScaleSetExtensionsCreateOrUpdateMinimumSetGen(); + virtualMachineScaleSetExtensionCreateOrUpdateMaximumSetGen(); + virtualMachineScaleSetExtensionCreateOrUpdateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsDeleteSample.ts index 276d978b0e8c..3a23478b310f 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsDeleteSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to The operation to delete the extension. * * @summary The operation to delete the extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_Delete_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Delete_MaximumSet_Gen.json */ -async function virtualMachineScaleSetExtensionsDeleteMaximumSetGen() { +async function virtualMachineScaleSetExtensionDeleteMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -41,9 +41,9 @@ async function virtualMachineScaleSetExtensionsDeleteMaximumSetGen() { * This sample demonstrates how to The operation to delete the extension. * * @summary The operation to delete the extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_Delete_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Delete_MinimumSet_Gen.json */ -async function virtualMachineScaleSetExtensionsDeleteMinimumSetGen() { +async function virtualMachineScaleSetExtensionDeleteMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -61,8 +61,8 @@ async function virtualMachineScaleSetExtensionsDeleteMinimumSetGen() { } async function main() { - virtualMachineScaleSetExtensionsDeleteMaximumSetGen(); - virtualMachineScaleSetExtensionsDeleteMinimumSetGen(); + virtualMachineScaleSetExtensionDeleteMaximumSetGen(); + virtualMachineScaleSetExtensionDeleteMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsGetSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsGetSample.ts index b35afbeeef02..b1b766afb629 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsGetSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to The operation to get the extension. * * @summary The operation to get the extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_Get_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Get_MaximumSet_Gen.json */ -async function virtualMachineScaleSetExtensionsGetMaximumSetGen() { +async function virtualMachineScaleSetExtensionGetMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -47,9 +47,9 @@ async function virtualMachineScaleSetExtensionsGetMaximumSetGen() { * This sample demonstrates how to The operation to get the extension. * * @summary The operation to get the extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_Get_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Get_MinimumSet_Gen.json */ -async function virtualMachineScaleSetExtensionsGetMinimumSetGen() { +async function virtualMachineScaleSetExtensionGetMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -67,8 +67,8 @@ async function virtualMachineScaleSetExtensionsGetMinimumSetGen() { } async function main() { - virtualMachineScaleSetExtensionsGetMaximumSetGen(); - virtualMachineScaleSetExtensionsGetMinimumSetGen(); + virtualMachineScaleSetExtensionGetMaximumSetGen(); + virtualMachineScaleSetExtensionGetMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsListSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsListSample.ts index 72588d924182..cb2809d60ba6 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsListSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Gets a list of all extensions in a VM scale set. * * @summary Gets a list of all extensions in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_List_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_List_MaximumSet_Gen.json */ -async function virtualMachineScaleSetExtensionsListMaximumSetGen() { +async function virtualMachineScaleSetExtensionListMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -42,9 +42,9 @@ async function virtualMachineScaleSetExtensionsListMaximumSetGen() { * This sample demonstrates how to Gets a list of all extensions in a VM scale set. * * @summary Gets a list of all extensions in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_List_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_List_MinimumSet_Gen.json */ -async function virtualMachineScaleSetExtensionsListMinimumSetGen() { +async function virtualMachineScaleSetExtensionListMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -63,8 +63,8 @@ async function virtualMachineScaleSetExtensionsListMinimumSetGen() { } async function main() { - virtualMachineScaleSetExtensionsListMaximumSetGen(); - virtualMachineScaleSetExtensionsListMinimumSetGen(); + virtualMachineScaleSetExtensionListMaximumSetGen(); + virtualMachineScaleSetExtensionListMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsUpdateSample.ts index 5c45e12c0398..d76111d205c2 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsUpdateSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to The operation to update an extension. * * @summary The operation to update an extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_Update_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Update_MaximumSet_Gen.json */ -async function virtualMachineScaleSetExtensionsUpdateMaximumSetGen() { +async function virtualMachineScaleSetExtensionUpdateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -57,9 +57,9 @@ async function virtualMachineScaleSetExtensionsUpdateMaximumSetGen() { * This sample demonstrates how to The operation to update an extension. * * @summary The operation to update an extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_Update_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Update_MinimumSet_Gen.json */ -async function virtualMachineScaleSetExtensionsUpdateMinimumSetGen() { +async function virtualMachineScaleSetExtensionUpdateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -79,8 +79,8 @@ async function virtualMachineScaleSetExtensionsUpdateMinimumSetGen() { } async function main() { - virtualMachineScaleSetExtensionsUpdateMaximumSetGen(); - virtualMachineScaleSetExtensionsUpdateMinimumSetGen(); + virtualMachineScaleSetExtensionUpdateMaximumSetGen(); + virtualMachineScaleSetExtensionUpdateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesCancelSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesCancelSample.ts index b578029be06b..be00b7309332 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesCancelSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesCancelSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Cancels the current virtual machine scale set rolling upgrade. * * @summary Cancels the current virtual machine scale set rolling upgrade. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrades_Cancel_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_Cancel_MaximumSet_Gen.json */ -async function virtualMachineScaleSetRollingUpgradesCancelMaximumSetGen() { +async function virtualMachineScaleSetRollingUpgradeCancelMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -39,9 +39,9 @@ async function virtualMachineScaleSetRollingUpgradesCancelMaximumSetGen() { * This sample demonstrates how to Cancels the current virtual machine scale set rolling upgrade. * * @summary Cancels the current virtual machine scale set rolling upgrade. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrades_Cancel_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_Cancel_MinimumSet_Gen.json */ -async function virtualMachineScaleSetRollingUpgradesCancelMinimumSetGen() { +async function virtualMachineScaleSetRollingUpgradeCancelMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -57,8 +57,8 @@ async function virtualMachineScaleSetRollingUpgradesCancelMinimumSetGen() { } async function main() { - virtualMachineScaleSetRollingUpgradesCancelMaximumSetGen(); - virtualMachineScaleSetRollingUpgradesCancelMinimumSetGen(); + virtualMachineScaleSetRollingUpgradeCancelMaximumSetGen(); + virtualMachineScaleSetRollingUpgradeCancelMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesGetLatestSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesGetLatestSample.ts index 72a4188fdf2e..aba2c4dda623 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesGetLatestSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesGetLatestSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Gets the status of the latest virtual machine scale set rolling upgrade. * * @summary Gets the status of the latest virtual machine scale set rolling upgrade. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrades_GetLatest_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_GetLatest_MaximumSet_Gen.json */ -async function virtualMachineScaleSetRollingUpgradesGetLatestMaximumSetGen() { +async function virtualMachineScaleSetRollingUpgradeGetLatestMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -39,9 +39,9 @@ async function virtualMachineScaleSetRollingUpgradesGetLatestMaximumSetGen() { * This sample demonstrates how to Gets the status of the latest virtual machine scale set rolling upgrade. * * @summary Gets the status of the latest virtual machine scale set rolling upgrade. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrades_GetLatest_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_GetLatest_MinimumSet_Gen.json */ -async function virtualMachineScaleSetRollingUpgradesGetLatestMinimumSetGen() { +async function virtualMachineScaleSetRollingUpgradeGetLatestMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -57,8 +57,8 @@ async function virtualMachineScaleSetRollingUpgradesGetLatestMinimumSetGen() { } async function main() { - virtualMachineScaleSetRollingUpgradesGetLatestMaximumSetGen(); - virtualMachineScaleSetRollingUpgradesGetLatestMinimumSetGen(); + virtualMachineScaleSetRollingUpgradeGetLatestMaximumSetGen(); + virtualMachineScaleSetRollingUpgradeGetLatestMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSample.ts index 9495e2823e48..24802385388e 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Starts a rolling upgrade to move all extensions for all virtual machine scale set instances to the latest available extension version. Instances which are already running the latest extension versions are not affected. * * @summary Starts a rolling upgrade to move all extensions for all virtual machine scale set instances to the latest available extension version. Instances which are already running the latest extension versions are not affected. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_RollingUpgrade.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_RollingUpgrade.json */ async function startAnExtensionRollingUpgrade() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesStartOSUpgradeSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesStartOSUpgradeSample.ts index 3442ea907f67..ec03a960fe86 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesStartOSUpgradeSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesStartOSUpgradeSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Starts a rolling upgrade to move all virtual machine scale set instances to the latest available Platform Image OS version. Instances which are already running the latest available OS version are not affected. * * @summary Starts a rolling upgrade to move all virtual machine scale set instances to the latest available Platform Image OS version. Instances which are already running the latest available OS version are not affected. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrades_StartOSUpgrade_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_StartOSUpgrade_MaximumSet_Gen.json */ -async function virtualMachineScaleSetRollingUpgradesStartOSUpgradeMaximumSetGen() { +async function virtualMachineScaleSetRollingUpgradeStartOSUpgradeMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -39,9 +39,9 @@ async function virtualMachineScaleSetRollingUpgradesStartOSUpgradeMaximumSetGen( * This sample demonstrates how to Starts a rolling upgrade to move all virtual machine scale set instances to the latest available Platform Image OS version. Instances which are already running the latest available OS version are not affected. * * @summary Starts a rolling upgrade to move all virtual machine scale set instances to the latest available Platform Image OS version. Instances which are already running the latest available OS version are not affected. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrades_StartOSUpgrade_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_StartOSUpgrade_MinimumSet_Gen.json */ -async function virtualMachineScaleSetRollingUpgradesStartOSUpgradeMinimumSetGen() { +async function virtualMachineScaleSetRollingUpgradeStartOSUpgradeMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -57,8 +57,8 @@ async function virtualMachineScaleSetRollingUpgradesStartOSUpgradeMinimumSetGen( } async function main() { - virtualMachineScaleSetRollingUpgradesStartOSUpgradeMaximumSetGen(); - virtualMachineScaleSetRollingUpgradesStartOSUpgradeMinimumSetGen(); + virtualMachineScaleSetRollingUpgradeStartOSUpgradeMaximumSetGen(); + virtualMachineScaleSetRollingUpgradeStartOSUpgradeMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsCreateOrUpdateSample.ts index de536462fc5e..a578f74a125f 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to create or update the VMSS VM extension. * * @summary The operation to create or update the VMSS VM extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtensions_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Create.json */ async function createVirtualMachineScaleSetVMExtension() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsDeleteSample.ts index 94292ac9c593..7e1b6cd23062 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to delete the VMSS VM extension. * * @summary The operation to delete the VMSS VM extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtensions_Delete.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Delete.json */ async function deleteVirtualMachineScaleSetVMExtension() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsGetSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsGetSample.ts index d4244e662fd4..5ee7d4c1ec5f 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to get the VMSS VM extension. * * @summary The operation to get the VMSS VM extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtensions_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Get.json */ async function getVirtualMachineScaleSetVMExtension() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsListSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsListSample.ts index 9e93d61362c0..207c5f4ba735 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to get all extensions of an instance in Virtual Machine Scaleset. * * @summary The operation to get all extensions of an instance in Virtual Machine Scaleset. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtensions_List.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_List.json */ async function listExtensionsInVmssInstance() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsUpdateSample.ts index dffa0e58eb14..528ba69de381 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to update the VMSS VM extension. * * @summary The operation to update the VMSS VM extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtensions_Update.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Update.json */ async function updateVirtualMachineScaleSetVMExtension() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsCreateOrUpdateSample.ts index 5ff15f3122cf..08e5c1e7c8b7 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to create or update the VMSS VM run command. * * @summary The operation to create or update the VMSS VM run command. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_CreateOrUpdate.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_CreateOrUpdate.json */ async function createVirtualMachineScaleSetVMRunCommand() { const subscriptionId = @@ -33,15 +33,30 @@ async function createVirtualMachineScaleSetVMRunCommand() { const runCommandName = "myRunCommand"; const runCommand: VirtualMachineRunCommand = { asyncExecution: false, + errorBlobManagedIdentity: {}, + errorBlobUri: + "https://mystorageaccount.blob.core.windows.net/mycontainer/MyScriptError.txt", location: "West US", + outputBlobManagedIdentity: { + clientId: "22d35efb-0c99-4041-8c5b-6d24db33a69a" + }, + outputBlobUri: + "https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/MyScriptoutput.txt", parameters: [ { name: "param1", value: "value1" }, { name: "param2", value: "value2" } ], runAsPassword: "", runAsUser: "user1", - source: { script: "Write-Host Hello World!" }, - timeoutInSeconds: 3600 + source: { + scriptUri: + "https://mystorageaccount.blob.core.windows.net/scriptcontainer/MyScript.ps1", + scriptUriManagedIdentity: { + objectId: "4231e4d2-33e4-4e23-96b2-17888afa6072" + } + }, + timeoutInSeconds: 3600, + treatFailureAsDeploymentFailure: true }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsDeleteSample.ts index ae4399edac18..f793ea60eab4 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to delete the VMSS VM run command. * * @summary The operation to delete the VMSS VM run command. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Delete.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Delete.json */ async function deleteVirtualMachineScaleSetVMRunCommand() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsGetSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsGetSample.ts index e1f82f9401b7..b76dc597821c 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to get the VMSS VM run command. * * @summary The operation to get the VMSS VM run command. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Get.json */ async function getVirtualMachineScaleSetVMRunCommands() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsListSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsListSample.ts index c08f613bf4d1..c34080b61021 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to get all run commands of an instance in Virtual Machine Scaleset. * * @summary The operation to get all run commands of an instance in Virtual Machine Scaleset. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_List.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_List.json */ async function listRunCommandsInVmssInstance() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsUpdateSample.ts index 9d5bd9fc5f63..4190e75df605 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to update the VMSS VM run command. * * @summary The operation to update the VMSS VM run command. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Update.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Update.json */ async function updateVirtualMachineScaleSetVMRunCommand() { const subscriptionId = @@ -32,7 +32,13 @@ async function updateVirtualMachineScaleSetVMRunCommand() { const instanceId = "0"; const runCommandName = "myRunCommand"; const runCommand: VirtualMachineRunCommandUpdate = { - source: { script: "Write-Host Script Source Updated!" } + source: { + scriptUri: + "https://mystorageaccount.blob.core.windows.net/scriptcontainer/MyScript.ps1", + scriptUriManagedIdentity: { + objectId: "4231e4d2-33e4-4e23-96b2-17888afa6072" + } + } }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSDeallocateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSDeallocateSample.ts index a1f4da145347..1507d548c760 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSDeallocateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSDeallocateSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the compute resources it uses. You are not billed for the compute resources of this virtual machine once it is deallocated. * * @summary Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the compute resources it uses. You are not billed for the compute resources of this virtual machine once it is deallocated. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Deallocate_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Deallocate_MaximumSet_Gen.json */ -async function virtualMachineScaleSetVMSDeallocateMaximumSetGen() { +async function virtualMachineScaleSetVMDeallocateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -41,9 +41,9 @@ async function virtualMachineScaleSetVMSDeallocateMaximumSetGen() { * This sample demonstrates how to Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the compute resources it uses. You are not billed for the compute resources of this virtual machine once it is deallocated. * * @summary Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the compute resources it uses. You are not billed for the compute resources of this virtual machine once it is deallocated. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Deallocate_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Deallocate_MinimumSet_Gen.json */ -async function virtualMachineScaleSetVMSDeallocateMinimumSetGen() { +async function virtualMachineScaleSetVMDeallocateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -61,8 +61,8 @@ async function virtualMachineScaleSetVMSDeallocateMinimumSetGen() { } async function main() { - virtualMachineScaleSetVMSDeallocateMaximumSetGen(); - virtualMachineScaleSetVMSDeallocateMinimumSetGen(); + virtualMachineScaleSetVMDeallocateMaximumSetGen(); + virtualMachineScaleSetVMDeallocateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSDeleteSample.ts index e41f21a24c5d..f01f49b105c6 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSDeleteSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a virtual machine from a VM scale set. * * @summary Deletes a virtual machine from a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Delete_Force.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Delete_Force.json */ async function forceDeleteAVirtualMachineFromAVMScaleSet() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSGetInstanceViewSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSGetInstanceViewSample.ts index ccae2cc89b04..d14c43e6884d 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSGetInstanceViewSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSGetInstanceViewSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the status of a virtual machine from a VM scale set. * * @summary Gets the status of a virtual machine from a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_InstanceViewAutoPlacedOnDedicatedHostGroup.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_InstanceViewAutoPlacedOnDedicatedHostGroup.json */ async function getInstanceViewOfAVirtualMachineFromAVMScaleSetPlacedOnADedicatedHostGroupThroughAutomaticPlacement() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSGetSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSGetSample.ts index b98966f144f8..28cb929c7c66 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a virtual machine from a VM scale set. * * @summary Gets a virtual machine from a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithUserData.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithUserData.json */ async function getVMScaleSetVMWithUserData() { const subscriptionId = @@ -41,7 +41,7 @@ async function getVMScaleSetVMWithUserData() { * This sample demonstrates how to Gets a virtual machine from a VM scale set. * * @summary Gets a virtual machine from a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithVMSizeProperties.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithVMSizeProperties.json */ async function getVMScaleSetVMWithVMSizeProperties() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSListSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSListSample.ts index d85611f40541..d90443d48dd0 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSListSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to Gets a list of all virtual machines in a VM scale sets. * * @summary Gets a list of all virtual machines in a VM scale sets. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_List_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_List_MaximumSet_Gen.json */ -async function virtualMachineScaleSetVMSListMaximumSetGen() { +async function virtualMachineScaleSetVMListMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -54,9 +54,9 @@ async function virtualMachineScaleSetVMSListMaximumSetGen() { * This sample demonstrates how to Gets a list of all virtual machines in a VM scale sets. * * @summary Gets a list of all virtual machines in a VM scale sets. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_List_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_List_MinimumSet_Gen.json */ -async function virtualMachineScaleSetVMSListMinimumSetGen() { +async function virtualMachineScaleSetVMListMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -75,8 +75,8 @@ async function virtualMachineScaleSetVMSListMinimumSetGen() { } async function main() { - virtualMachineScaleSetVMSListMaximumSetGen(); - virtualMachineScaleSetVMSListMinimumSetGen(); + virtualMachineScaleSetVMListMaximumSetGen(); + virtualMachineScaleSetVMListMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSPerformMaintenanceSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSPerformMaintenanceSample.ts index 2f6477132aea..d1ab7e3f9665 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSPerformMaintenanceSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSPerformMaintenanceSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Performs maintenance on a virtual machine in a VM scale set. * * @summary Performs maintenance on a virtual machine in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_PerformMaintenance_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PerformMaintenance_MaximumSet_Gen.json */ -async function virtualMachineScaleSetVMSPerformMaintenanceMaximumSetGen() { +async function virtualMachineScaleSetVMPerformMaintenanceMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -41,9 +41,9 @@ async function virtualMachineScaleSetVMSPerformMaintenanceMaximumSetGen() { * This sample demonstrates how to Performs maintenance on a virtual machine in a VM scale set. * * @summary Performs maintenance on a virtual machine in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_PerformMaintenance_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PerformMaintenance_MinimumSet_Gen.json */ -async function virtualMachineScaleSetVMSPerformMaintenanceMinimumSetGen() { +async function virtualMachineScaleSetVMPerformMaintenanceMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -61,8 +61,8 @@ async function virtualMachineScaleSetVMSPerformMaintenanceMinimumSetGen() { } async function main() { - virtualMachineScaleSetVMSPerformMaintenanceMaximumSetGen(); - virtualMachineScaleSetVMSPerformMaintenanceMinimumSetGen(); + virtualMachineScaleSetVMPerformMaintenanceMaximumSetGen(); + virtualMachineScaleSetVMPerformMaintenanceMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSPowerOffSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSPowerOffSample.ts index aabc3c93becf..869e864a01d2 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSPowerOffSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSPowerOffSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. * * @summary Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_PowerOff_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PowerOff_MaximumSet_Gen.json */ -async function virtualMachineScaleSetVMSPowerOffMaximumSetGen() { +async function virtualMachineScaleSetVMPowerOffMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -49,9 +49,9 @@ async function virtualMachineScaleSetVMSPowerOffMaximumSetGen() { * This sample demonstrates how to Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. * * @summary Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_PowerOff_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PowerOff_MinimumSet_Gen.json */ -async function virtualMachineScaleSetVMSPowerOffMinimumSetGen() { +async function virtualMachineScaleSetVMPowerOffMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -69,8 +69,8 @@ async function virtualMachineScaleSetVMSPowerOffMinimumSetGen() { } async function main() { - virtualMachineScaleSetVMSPowerOffMaximumSetGen(); - virtualMachineScaleSetVMSPowerOffMinimumSetGen(); + virtualMachineScaleSetVMPowerOffMaximumSetGen(); + virtualMachineScaleSetVMPowerOffMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRedeploySample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRedeploySample.ts index ca553fe3d291..70e3edc956f3 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRedeploySample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRedeploySample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on. * * @summary Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Redeploy_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Redeploy_MaximumSet_Gen.json */ -async function virtualMachineScaleSetVMSRedeployMaximumSetGen() { +async function virtualMachineScaleSetVMRedeployMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -41,9 +41,9 @@ async function virtualMachineScaleSetVMSRedeployMaximumSetGen() { * This sample demonstrates how to Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on. * * @summary Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Redeploy_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Redeploy_MinimumSet_Gen.json */ -async function virtualMachineScaleSetVMSRedeployMinimumSetGen() { +async function virtualMachineScaleSetVMRedeployMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -61,8 +61,8 @@ async function virtualMachineScaleSetVMSRedeployMinimumSetGen() { } async function main() { - virtualMachineScaleSetVMSRedeployMaximumSetGen(); - virtualMachineScaleSetVMSRedeployMinimumSetGen(); + virtualMachineScaleSetVMRedeployMaximumSetGen(); + virtualMachineScaleSetVMRedeployMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSReimageAllSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSReimageAllSample.ts index e7f8d8ee0782..b120a27c3e6f 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSReimageAllSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSReimageAllSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This operation is only supported for managed disks. * * @summary Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This operation is only supported for managed disks. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_ReimageAll_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_ReimageAll_MaximumSet_Gen.json */ -async function virtualMachineScaleSetVMSReimageAllMaximumSetGen() { +async function virtualMachineScaleSetVMReimageAllMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -41,9 +41,9 @@ async function virtualMachineScaleSetVMSReimageAllMaximumSetGen() { * This sample demonstrates how to Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This operation is only supported for managed disks. * * @summary Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This operation is only supported for managed disks. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_ReimageAll_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_ReimageAll_MinimumSet_Gen.json */ -async function virtualMachineScaleSetVMSReimageAllMinimumSetGen() { +async function virtualMachineScaleSetVMReimageAllMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -61,8 +61,8 @@ async function virtualMachineScaleSetVMSReimageAllMinimumSetGen() { } async function main() { - virtualMachineScaleSetVMSReimageAllMaximumSetGen(); - virtualMachineScaleSetVMSReimageAllMinimumSetGen(); + virtualMachineScaleSetVMReimageAllMaximumSetGen(); + virtualMachineScaleSetVMReimageAllMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSReimageSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSReimageSample.ts index e9359e68c4b4..0a33559b4fe5 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSReimageSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSReimageSample.ts @@ -22,9 +22,9 @@ dotenv.config(); * This sample demonstrates how to Reimages (upgrade the operating system) a specific virtual machine in a VM scale set. * * @summary Reimages (upgrade the operating system) a specific virtual machine in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Reimage_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Reimage_MaximumSet_Gen.json */ -async function virtualMachineScaleSetVMSReimageMaximumSetGen() { +async function virtualMachineScaleSetVMReimageMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -52,9 +52,9 @@ async function virtualMachineScaleSetVMSReimageMaximumSetGen() { * This sample demonstrates how to Reimages (upgrade the operating system) a specific virtual machine in a VM scale set. * * @summary Reimages (upgrade the operating system) a specific virtual machine in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Reimage_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Reimage_MinimumSet_Gen.json */ -async function virtualMachineScaleSetVMSReimageMinimumSetGen() { +async function virtualMachineScaleSetVMReimageMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -72,8 +72,8 @@ async function virtualMachineScaleSetVMSReimageMinimumSetGen() { } async function main() { - virtualMachineScaleSetVMSReimageMaximumSetGen(); - virtualMachineScaleSetVMSReimageMinimumSetGen(); + virtualMachineScaleSetVMReimageMaximumSetGen(); + virtualMachineScaleSetVMReimageMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRestartSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRestartSample.ts index cc71bc0f5620..5f707e87ff32 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRestartSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRestartSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Restarts a virtual machine in a VM scale set. * * @summary Restarts a virtual machine in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Restart_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Restart_MaximumSet_Gen.json */ -async function virtualMachineScaleSetVMSRestartMaximumSetGen() { +async function virtualMachineScaleSetVMRestartMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -41,9 +41,9 @@ async function virtualMachineScaleSetVMSRestartMaximumSetGen() { * This sample demonstrates how to Restarts a virtual machine in a VM scale set. * * @summary Restarts a virtual machine in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Restart_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Restart_MinimumSet_Gen.json */ -async function virtualMachineScaleSetVMSRestartMinimumSetGen() { +async function virtualMachineScaleSetVMRestartMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -61,8 +61,8 @@ async function virtualMachineScaleSetVMSRestartMinimumSetGen() { } async function main() { - virtualMachineScaleSetVMSRestartMaximumSetGen(); - virtualMachineScaleSetVMSRestartMinimumSetGen(); + virtualMachineScaleSetVMRestartMaximumSetGen(); + virtualMachineScaleSetVMRestartMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.ts index 6b25c70f2a41..b67b39562e63 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to retrieve SAS URIs of boot diagnostic logs for a virtual machine in a VM scale set. * * @summary The operation to retrieve SAS URIs of boot diagnostic logs for a virtual machine in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_RetrieveBootDiagnosticsData.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_RetrieveBootDiagnosticsData.json */ async function retrieveBootDiagnosticsDataOfAVirtualMachine() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRunCommandSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRunCommandSample.ts index 30605bc93dd7..4b7543025bb0 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRunCommandSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRunCommandSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Run command on a virtual machine in a VM scale set. * * @summary Run command on a virtual machine in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand.json */ async function virtualMachineScaleSetVMSRunCommand() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSSimulateEvictionSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSSimulateEvictionSample.ts index 4fd3ee6597be..fb3526f39fa9 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSSimulateEvictionSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSSimulateEvictionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to simulate the eviction of spot virtual machine in a VM scale set. * * @summary The operation to simulate the eviction of spot virtual machine in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_SimulateEviction.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_SimulateEviction.json */ async function simulateEvictionAVirtualMachine() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSStartSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSStartSample.ts index d57f2644fdda..79c75f16b036 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSStartSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSStartSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Starts a virtual machine in a VM scale set. * * @summary Starts a virtual machine in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Start_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Start_MaximumSet_Gen.json */ -async function virtualMachineScaleSetVMSStartMaximumSetGen() { +async function virtualMachineScaleSetVMStartMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -41,9 +41,9 @@ async function virtualMachineScaleSetVMSStartMaximumSetGen() { * This sample demonstrates how to Starts a virtual machine in a VM scale set. * * @summary Starts a virtual machine in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Start_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Start_MinimumSet_Gen.json */ -async function virtualMachineScaleSetVMSStartMinimumSetGen() { +async function virtualMachineScaleSetVMStartMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -61,8 +61,8 @@ async function virtualMachineScaleSetVMSStartMinimumSetGen() { } async function main() { - virtualMachineScaleSetVMSStartMaximumSetGen(); - virtualMachineScaleSetVMSStartMinimumSetGen(); + virtualMachineScaleSetVMStartMaximumSetGen(); + virtualMachineScaleSetVMStartMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSUpdateSample.ts index c19f4a27a339..1fdfc072339d 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSUpdateSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to Updates a virtual machine of a VM scale set. * * @summary Updates a virtual machine of a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Update_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Update_MaximumSet_Gen.json */ -async function virtualMachineScaleSetVMSUpdateMaximumSetGen() { +async function virtualMachineScaleSetVMUpdateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -257,7 +257,6 @@ async function virtualMachineScaleSetVMSUpdateMaximumSetGen() { enableAcceleratedNetworking: true, enableFpga: true, enableIPForwarding: true, - id: "aaaaaaaa", ipConfigurations: [ { name: "vmsstestnetconfig9693", @@ -273,7 +272,6 @@ async function virtualMachineScaleSetVMSUpdateMaximumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" } ], - id: "aaaaaaaaa", loadBalancerBackendAddressPools: [ { id: @@ -470,9 +468,9 @@ async function virtualMachineScaleSetVMSUpdateMaximumSetGen() { * This sample demonstrates how to Updates a virtual machine of a VM scale set. * * @summary Updates a virtual machine of a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Update_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Update_MinimumSet_Gen.json */ -async function virtualMachineScaleSetVMSUpdateMinimumSetGen() { +async function virtualMachineScaleSetVMUpdateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -492,8 +490,8 @@ async function virtualMachineScaleSetVMSUpdateMinimumSetGen() { } async function main() { - virtualMachineScaleSetVMSUpdateMaximumSetGen(); - virtualMachineScaleSetVMSUpdateMinimumSetGen(); + virtualMachineScaleSetVMUpdateMaximumSetGen(); + virtualMachineScaleSetVMUpdateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsConvertToSinglePlacementGroupSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsConvertToSinglePlacementGroupSample.ts index f325f4273f1e..1b55b090ac54 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsConvertToSinglePlacementGroupSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsConvertToSinglePlacementGroupSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to Converts SinglePlacementGroup property to false for a existing virtual machine scale set. * * @summary Converts SinglePlacementGroup property to false for a existing virtual machine scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ConvertToSinglePlacementGroup_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ConvertToSinglePlacementGroup_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsConvertToSinglePlacementGroupMaximumSetGen() { +async function virtualMachineScaleSetConvertToSinglePlacementGroupMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -46,9 +46,9 @@ async function virtualMachineScaleSetsConvertToSinglePlacementGroupMaximumSetGen * This sample demonstrates how to Converts SinglePlacementGroup property to false for a existing virtual machine scale set. * * @summary Converts SinglePlacementGroup property to false for a existing virtual machine scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ConvertToSinglePlacementGroup_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ConvertToSinglePlacementGroup_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsConvertToSinglePlacementGroupMinimumSetGen() { +async function virtualMachineScaleSetConvertToSinglePlacementGroupMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -66,8 +66,8 @@ async function virtualMachineScaleSetsConvertToSinglePlacementGroupMinimumSetGen } async function main() { - virtualMachineScaleSetsConvertToSinglePlacementGroupMaximumSetGen(); - virtualMachineScaleSetsConvertToSinglePlacementGroupMinimumSetGen(); + virtualMachineScaleSetConvertToSinglePlacementGroupMaximumSetGen(); + virtualMachineScaleSetConvertToSinglePlacementGroupMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsCreateOrUpdateSample.ts index c1c63640b667..e6c42d853e5b 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithExtensionsSuppressFailuresEnabled.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithExtensionsSuppressFailuresEnabled.json */ async function createAVmssWithAnExtensionThatHasSuppressFailuresEnabled() { const subscriptionId = @@ -107,7 +107,7 @@ async function createAVmssWithAnExtensionThatHasSuppressFailuresEnabled() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithProtectedSettingsFromKeyVault.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithProtectedSettingsFromKeyVault.json */ async function createAVmssWithAnExtensionWithProtectedSettingsFromKeyVault() { const subscriptionId = @@ -200,7 +200,7 @@ async function createAVmssWithAnExtensionWithProtectedSettingsFromKeyVault() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_CustomImageFromAnUnmanagedGeneralizedOsImage.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_CustomImageFromAnUnmanagedGeneralizedOsImage.json */ async function createACustomImageScaleSetFromAnUnmanagedGeneralizedOSImage() { const subscriptionId = @@ -264,7 +264,7 @@ async function createACustomImageScaleSetFromAnUnmanagedGeneralizedOSImage() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_PlatformImageWithUnmanagedOsDisks.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_PlatformImageWithUnmanagedOsDisks.json */ async function createAPlatformImageScaleSetWithUnmanagedOSDisks() { const subscriptionId = @@ -337,7 +337,7 @@ async function createAPlatformImageScaleSetWithUnmanagedOSDisks() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromACustomImage.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromACustomImage.json */ async function createAScaleSetFromACustomImage() { const subscriptionId = @@ -401,7 +401,7 @@ async function createAScaleSetFromACustomImage() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromAGeneralizedSharedImage.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromAGeneralizedSharedImage.json */ async function createAScaleSetFromAGeneralizedSharedImage() { const subscriptionId = @@ -465,7 +465,7 @@ async function createAScaleSetFromAGeneralizedSharedImage() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromASpecializedSharedImage.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromASpecializedSharedImage.json */ async function createAScaleSetFromASpecializedSharedImage() { const subscriptionId = @@ -524,7 +524,7 @@ async function createAScaleSetFromASpecializedSharedImage() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromWithDisableTcpStateTrackingNetworkInterface.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromWithDisableTcpStateTrackingNetworkInterface.json */ async function createAScaleSetWhereNicConfigHasDisableTcpStateTrackingProperty() { const subscriptionId = @@ -608,7 +608,7 @@ async function createAScaleSetWhereNicConfigHasDisableTcpStateTrackingProperty() * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithApplicationProfile.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithApplicationProfile.json */ async function createAScaleSetWithApplicationProfile() { const subscriptionId = @@ -692,7 +692,7 @@ async function createAScaleSetWithApplicationProfile() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithDiskControllerType.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithDiskControllerType.json */ async function createAScaleSetWithDiskControllerType() { const subscriptionId = @@ -763,7 +763,7 @@ async function createAScaleSetWithDiskControllerType() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithDiskEncryptionSetResource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithDiskEncryptionSetResource.json */ async function createAScaleSetWithDiskEncryptionSetResourceInOSDiskAndDataDisk() { const subscriptionId = @@ -848,7 +848,7 @@ async function createAScaleSetWithDiskEncryptionSetResourceInOSDiskAndDataDisk() * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromWithFpgaNetworkInterface.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromWithFpgaNetworkInterface.json */ async function createAScaleSetWithFpgaNetworkInterfaces() { const subscriptionId = @@ -930,7 +930,7 @@ async function createAScaleSetWithFpgaNetworkInterfaces() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithEncryptionAtHost.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithEncryptionAtHost.json */ async function createAScaleSetWithHostEncryptionUsingEncryptionAtHostProperty() { const subscriptionId = @@ -1002,7 +1002,7 @@ async function createAScaleSetWithHostEncryptionUsingEncryptionAtHostProperty() * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithOSImageScheduledEventEnabled.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithOSImageScheduledEventEnabled.json */ async function createAScaleSetWithOSImageScheduledEventsEnabled() { const subscriptionId = @@ -1071,7 +1071,80 @@ async function createAScaleSetWithOSImageScheduledEventsEnabled() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSecurityTypeConfidentialVM.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSecurityPostureReference.json + */ +async function createAScaleSetWithSecurityPostureReference() { + const subscriptionId = + process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; + const resourceGroupName = + process.env["COMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; + const vmScaleSetName = "{vmss-name}"; + const parameters: VirtualMachineScaleSet = { + location: "eastus2euap", + overprovision: true, + sku: { name: "Standard_A1", capacity: 3, tier: "Standard" }, + upgradePolicy: { + automaticOSUpgradePolicy: { enableAutomaticOSUpgrade: true }, + mode: "Automatic" + }, + virtualMachineProfile: { + networkProfile: { + networkInterfaceConfigurations: [ + { + name: "{vmss-name}", + enableIPForwarding: true, + ipConfigurations: [ + { + name: "{vmss-name}", + subnet: { + id: + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" + } + } + ], + primary: true + } + ] + }, + osProfile: { + adminPassword: "{your-password}", + adminUsername: "{your-username}", + computerNamePrefix: "{vmss-name}" + }, + securityPostureReference: { + id: + "/CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest" + }, + storageProfile: { + imageReference: { + offer: "WindowsServer", + publisher: "MicrosoftWindowsServer", + sku: "2022-Datacenter", + version: "latest" + }, + osDisk: { + name: "osDisk", + caching: "ReadWrite", + createOption: "FromImage" + } + } + } + }; + const credential = new DefaultAzureCredential(); + const client = new ComputeManagementClient(credential, subscriptionId); + const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters + ); + console.log(result); +} + +/** + * This sample demonstrates how to Create or update a VM scale set. + * + * @summary Create or update a VM scale set. + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSecurityTypeConfidentialVM.json */ async function createAScaleSetWithSecurityTypeAsConfidentialVM() { const subscriptionId = @@ -1144,7 +1217,7 @@ async function createAScaleSetWithSecurityTypeAsConfidentialVM() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithServiceArtifactReference.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithServiceArtifactReference.json */ async function createAScaleSetWithServiceArtifactReference() { const subscriptionId = @@ -1217,7 +1290,7 @@ async function createAScaleSetWithServiceArtifactReference() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithUefiSettings.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithUefiSettings.json */ async function createAScaleSetWithUefiSettingsOfSecureBootAndVTpm() { const subscriptionId = @@ -1287,7 +1360,7 @@ async function createAScaleSetWithUefiSettingsOfSecureBootAndVTpm() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAMarketplaceImagePlan.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAMarketplaceImagePlan.json */ async function createAScaleSetWithAMarketplaceImagePlan() { const subscriptionId = @@ -1358,7 +1431,7 @@ async function createAScaleSetWithAMarketplaceImagePlan() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAzureApplicationGateway.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAzureApplicationGateway.json */ async function createAScaleSetWithAnAzureApplicationGateway() { const subscriptionId = @@ -1430,7 +1503,7 @@ async function createAScaleSetWithAnAzureApplicationGateway() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAzureLoadBalancer.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAzureLoadBalancer.json */ async function createAScaleSetWithAnAzureLoadBalancer() { const subscriptionId = @@ -1512,7 +1585,7 @@ async function createAScaleSetWithAnAzureLoadBalancer() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAutomaticRepairs.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAutomaticRepairs.json */ async function createAScaleSetWithAutomaticRepairsEnabled() { const subscriptionId = @@ -1579,7 +1652,7 @@ async function createAScaleSetWithAutomaticRepairsEnabled() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithBootDiagnostics.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithBootDiagnostics.json */ async function createAScaleSetWithBootDiagnostics() { const subscriptionId = @@ -1652,7 +1725,7 @@ async function createAScaleSetWithBootDiagnostics() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithEmptyDataDisksOnEachVm.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithEmptyDataDisksOnEachVm.json */ async function createAScaleSetWithEmptyDataDisksOnEachVM() { const subscriptionId = @@ -1723,7 +1796,7 @@ async function createAScaleSetWithEmptyDataDisksOnEachVM() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_CreateA_WithDiffOsDiskUsingDiffDiskPlacement.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_CreateA_WithDiffOsDiskUsingDiffDiskPlacement.json */ async function createAScaleSetWithEphemeralOSDisksUsingPlacementProperty() { const subscriptionId = @@ -1795,7 +1868,7 @@ async function createAScaleSetWithEphemeralOSDisksUsingPlacementProperty() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithDiffOsDisk.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithDiffOsDisk.json */ async function createAScaleSetWithEphemeralOSDisks() { const subscriptionId = @@ -1867,7 +1940,7 @@ async function createAScaleSetWithEphemeralOSDisks() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithExtensionsTimeBudget.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithExtensionsTimeBudget.json */ async function createAScaleSetWithExtensionTimeBudget() { const subscriptionId = @@ -1953,7 +2026,7 @@ async function createAScaleSetWithExtensionTimeBudget() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithManagedBootDiagnostics.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithManagedBootDiagnostics.json */ async function createAScaleSetWithManagedBootDiagnostics() { const subscriptionId = @@ -2020,7 +2093,7 @@ async function createAScaleSetWithManagedBootDiagnostics() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPasswordAuthentication.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPasswordAuthentication.json */ async function createAScaleSetWithPasswordAuthentication() { const subscriptionId = @@ -2086,7 +2159,7 @@ async function createAScaleSetWithPasswordAuthentication() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPremiumStorage.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPremiumStorage.json */ async function createAScaleSetWithPremiumStorage() { const subscriptionId = @@ -2152,7 +2225,7 @@ async function createAScaleSetWithPremiumStorage() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPriorityMixPolicy.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPriorityMixPolicy.json */ async function createAScaleSetWithPriorityMixPolicy() { const subscriptionId = @@ -2225,7 +2298,7 @@ async function createAScaleSetWithPriorityMixPolicy() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithScaleInPolicy.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithScaleInPolicy.json */ async function createAScaleSetWithScaleInPolicy() { const subscriptionId = @@ -2292,7 +2365,7 @@ async function createAScaleSetWithScaleInPolicy() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSpotRestorePolicy.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSpotRestorePolicy.json */ async function createAScaleSetWithSpotRestorePolicy() { const subscriptionId = @@ -2362,7 +2435,7 @@ async function createAScaleSetWithSpotRestorePolicy() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSshAuthentication.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSshAuthentication.json */ async function createAScaleSetWithSshAuthentication() { const subscriptionId = @@ -2439,7 +2512,7 @@ async function createAScaleSetWithSshAuthentication() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithTerminateScheduledEventEnabled.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithTerminateScheduledEventEnabled.json */ async function createAScaleSetWithTerminateScheduledEventsEnabled() { const subscriptionId = @@ -2508,7 +2581,7 @@ async function createAScaleSetWithTerminateScheduledEventsEnabled() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithUserData.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithUserData.json */ async function createAScaleSetWithUserData() { const subscriptionId = @@ -2575,7 +2648,7 @@ async function createAScaleSetWithUserData() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithVMsInDifferentZones.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithVMsInDifferentZones.json */ async function createAScaleSetWithVirtualMachinesInDifferentZones() { const subscriptionId = @@ -2647,7 +2720,7 @@ async function createAScaleSetWithVirtualMachinesInDifferentZones() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithVMSizeProperties.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithVMSizeProperties.json */ async function createAScaleSetWithVMSizeProperties() { const subscriptionId = @@ -2717,7 +2790,7 @@ async function createAScaleSetWithVMSizeProperties() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithCapacityReservation.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithCapacityReservation.json */ async function createOrUpdateAScaleSetWithCapacityReservation() { const subscriptionId = @@ -2800,6 +2873,7 @@ async function main() { createAScaleSetWithFpgaNetworkInterfaces(); createAScaleSetWithHostEncryptionUsingEncryptionAtHostProperty(); createAScaleSetWithOSImageScheduledEventsEnabled(); + createAScaleSetWithSecurityPostureReference(); createAScaleSetWithSecurityTypeAsConfidentialVM(); createAScaleSetWithServiceArtifactReference(); createAScaleSetWithUefiSettingsOfSecureBootAndVTpm(); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsDeallocateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsDeallocateSample.ts index 17a148eb1ffd..d766bc398c7a 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsDeallocateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsDeallocateSample.ts @@ -22,18 +22,20 @@ dotenv.config(); * This sample demonstrates how to Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual machine scale set deallocates. * * @summary Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual machine scale set deallocates. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Deallocate_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Deallocate_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsDeallocateMaximumSetGen() { +async function virtualMachineScaleSetDeallocateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaaaaaa"; + const hibernate = true; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceIDs = { instanceIds: ["aaaaaaaaaaaaaaaaa"] }; const options: VirtualMachineScaleSetsDeallocateOptionalParams = { + hibernate, vmInstanceIDs }; const credential = new DefaultAzureCredential(); @@ -50,9 +52,9 @@ async function virtualMachineScaleSetsDeallocateMaximumSetGen() { * This sample demonstrates how to Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual machine scale set deallocates. * * @summary Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual machine scale set deallocates. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Deallocate_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Deallocate_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsDeallocateMinimumSetGen() { +async function virtualMachineScaleSetDeallocateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -68,8 +70,8 @@ async function virtualMachineScaleSetsDeallocateMinimumSetGen() { } async function main() { - virtualMachineScaleSetsDeallocateMaximumSetGen(); - virtualMachineScaleSetsDeallocateMinimumSetGen(); + virtualMachineScaleSetDeallocateMaximumSetGen(); + virtualMachineScaleSetDeallocateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsDeleteInstancesSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsDeleteInstancesSample.ts index bdb04ea040ae..5496520f6b0a 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsDeleteInstancesSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsDeleteInstancesSample.ts @@ -22,9 +22,9 @@ dotenv.config(); * This sample demonstrates how to Deletes virtual machines in a VM scale set. * * @summary Deletes virtual machines in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_DeleteInstances_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_DeleteInstances_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsDeleteInstancesMaximumSetGen() { +async function virtualMachineScaleSetDeleteInstancesMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -52,9 +52,9 @@ async function virtualMachineScaleSetsDeleteInstancesMaximumSetGen() { * This sample demonstrates how to Deletes virtual machines in a VM scale set. * * @summary Deletes virtual machines in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_DeleteInstances_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_DeleteInstances_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsDeleteInstancesMinimumSetGen() { +async function virtualMachineScaleSetDeleteInstancesMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -74,8 +74,8 @@ async function virtualMachineScaleSetsDeleteInstancesMinimumSetGen() { } async function main() { - virtualMachineScaleSetsDeleteInstancesMaximumSetGen(); - virtualMachineScaleSetsDeleteInstancesMinimumSetGen(); + virtualMachineScaleSetDeleteInstancesMaximumSetGen(); + virtualMachineScaleSetDeleteInstancesMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsDeleteSample.ts index 0034c0b9985b..d6d97f24c4b9 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsDeleteSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a VM scale set. * * @summary Deletes a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Delete_Force.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Delete_Force.json */ async function forceDeleteAVMScaleSet() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSample.ts index 8e544696f341..5662fbf21abc 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Manual platform update domain walk to update virtual machines in a service fabric virtual machine scale set. * * @summary Manual platform update domain walk to update virtual machines in a service fabric virtual machine scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ForceRecoveryServiceFabricPlatformUpdateDomainWalk_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ForceRecoveryServiceFabricPlatformUpdateDomainWalk_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkMaximumSetGen() { +async function virtualMachineScaleSetForceRecoveryServiceFabricPlatformUpdateDomainWalkMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -41,9 +41,9 @@ async function virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDo * This sample demonstrates how to Manual platform update domain walk to update virtual machines in a service fabric virtual machine scale set. * * @summary Manual platform update domain walk to update virtual machines in a service fabric virtual machine scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ForceRecoveryServiceFabricPlatformUpdateDomainWalk_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ForceRecoveryServiceFabricPlatformUpdateDomainWalk_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkMinimumSetGen() { +async function virtualMachineScaleSetForceRecoveryServiceFabricPlatformUpdateDomainWalkMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -61,8 +61,8 @@ async function virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDo } async function main() { - virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkMaximumSetGen(); - virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkMinimumSetGen(); + virtualMachineScaleSetForceRecoveryServiceFabricPlatformUpdateDomainWalkMaximumSetGen(); + virtualMachineScaleSetForceRecoveryServiceFabricPlatformUpdateDomainWalkMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsGetInstanceViewSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsGetInstanceViewSample.ts index 38d9ad906ad3..e929aa02b924 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsGetInstanceViewSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsGetInstanceViewSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Gets the status of a VM scale set instance. * * @summary Gets the status of a VM scale set instance. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_GetInstanceView_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetInstanceView_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsGetInstanceViewMaximumSetGen() { +async function virtualMachineScaleSetGetInstanceViewMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -39,9 +39,9 @@ async function virtualMachineScaleSetsGetInstanceViewMaximumSetGen() { * This sample demonstrates how to Gets the status of a VM scale set instance. * * @summary Gets the status of a VM scale set instance. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_GetInstanceView_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetInstanceView_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsGetInstanceViewMinimumSetGen() { +async function virtualMachineScaleSetGetInstanceViewMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -57,8 +57,8 @@ async function virtualMachineScaleSetsGetInstanceViewMinimumSetGen() { } async function main() { - virtualMachineScaleSetsGetInstanceViewMaximumSetGen(); - virtualMachineScaleSetsGetInstanceViewMinimumSetGen(); + virtualMachineScaleSetGetInstanceViewMaximumSetGen(); + virtualMachineScaleSetGetInstanceViewMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsGetOSUpgradeHistorySample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsGetOSUpgradeHistorySample.ts index 765dabb1685d..9c4e9455c14e 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsGetOSUpgradeHistorySample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsGetOSUpgradeHistorySample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Gets list of OS upgrades on a VM scale set instance. * * @summary Gets list of OS upgrades on a VM scale set instance. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_GetOSUpgradeHistory_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetOSUpgradeHistory_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsGetOSUpgradeHistoryMaximumSetGen() { +async function virtualMachineScaleSetGetOSUpgradeHistoryMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -42,9 +42,9 @@ async function virtualMachineScaleSetsGetOSUpgradeHistoryMaximumSetGen() { * This sample demonstrates how to Gets list of OS upgrades on a VM scale set instance. * * @summary Gets list of OS upgrades on a VM scale set instance. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_GetOSUpgradeHistory_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetOSUpgradeHistory_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsGetOSUpgradeHistoryMinimumSetGen() { +async function virtualMachineScaleSetGetOSUpgradeHistoryMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -63,8 +63,8 @@ async function virtualMachineScaleSetsGetOSUpgradeHistoryMinimumSetGen() { } async function main() { - virtualMachineScaleSetsGetOSUpgradeHistoryMaximumSetGen(); - virtualMachineScaleSetsGetOSUpgradeHistoryMinimumSetGen(); + virtualMachineScaleSetGetOSUpgradeHistoryMaximumSetGen(); + virtualMachineScaleSetGetOSUpgradeHistoryMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsGetSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsGetSample.ts index d58e9438bf96..3869c6a1c57d 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsGetSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Display information about a virtual machine scale set. * * @summary Display information about a virtual machine scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get_WithDiskControllerType.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get_WithDiskControllerType.json */ async function getVMScaleSetVMWithDiskControllerType() { const subscriptionId = @@ -45,7 +45,7 @@ async function getVMScaleSetVMWithDiskControllerType() { * This sample demonstrates how to Display information about a virtual machine scale set. * * @summary Display information about a virtual machine scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get.json */ async function getAVirtualMachineScaleSet() { const subscriptionId = @@ -66,7 +66,7 @@ async function getAVirtualMachineScaleSet() { * This sample demonstrates how to Display information about a virtual machine scale set. * * @summary Display information about a virtual machine scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get_AutoPlacedOnDedicatedHostGroup.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get_AutoPlacedOnDedicatedHostGroup.json */ async function getAVirtualMachineScaleSetPlacedOnADedicatedHostGroupThroughAutomaticPlacement() { const subscriptionId = @@ -87,7 +87,7 @@ async function getAVirtualMachineScaleSetPlacedOnADedicatedHostGroupThroughAutom * This sample demonstrates how to Display information about a virtual machine scale set. * * @summary Display information about a virtual machine scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get_WithUserData.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get_WithUserData.json */ async function getAVirtualMachineScaleSetWithUserData() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsListAllSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsListAllSample.ts index c99adce3305a..2a7d5e647756 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsListAllSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsListAllSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this till nextLink is null to fetch all the VM Scale Sets. * * @summary Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this till nextLink is null to fetch all the VM Scale Sets. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ListAll_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListAll_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsListAllMaximumSetGen() { +async function virtualMachineScaleSetListAllMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const credential = new DefaultAzureCredential(); @@ -36,9 +36,9 @@ async function virtualMachineScaleSetsListAllMaximumSetGen() { * This sample demonstrates how to Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this till nextLink is null to fetch all the VM Scale Sets. * * @summary Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this till nextLink is null to fetch all the VM Scale Sets. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ListAll_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListAll_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsListAllMinimumSetGen() { +async function virtualMachineScaleSetListAllMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const credential = new DefaultAzureCredential(); @@ -51,8 +51,8 @@ async function virtualMachineScaleSetsListAllMinimumSetGen() { } async function main() { - virtualMachineScaleSetsListAllMaximumSetGen(); - virtualMachineScaleSetsListAllMinimumSetGen(); + virtualMachineScaleSetListAllMaximumSetGen(); + virtualMachineScaleSetListAllMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsListByLocationSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsListByLocationSample.ts index 8825ea47a480..998d77ef759f 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsListByLocationSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsListByLocationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all the VM scale sets under the specified subscription for the specified location. * * @summary Gets all the VM scale sets under the specified subscription for the specified location. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ListBySubscription_ByLocation.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListBySubscription_ByLocation.json */ async function listsAllTheVMScaleSetsUnderTheSpecifiedSubscriptionForTheSpecifiedLocation() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsListSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsListSample.ts index 98449ebb61f1..07f421cb6599 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsListSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Gets a list of all VM scale sets under a resource group. * * @summary Gets a list of all VM scale sets under a resource group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_List_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_List_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsListMaximumSetGen() { +async function virtualMachineScaleSetListMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -40,9 +40,9 @@ async function virtualMachineScaleSetsListMaximumSetGen() { * This sample demonstrates how to Gets a list of all VM scale sets under a resource group. * * @summary Gets a list of all VM scale sets under a resource group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_List_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_List_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsListMinimumSetGen() { +async function virtualMachineScaleSetListMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -59,8 +59,8 @@ async function virtualMachineScaleSetsListMinimumSetGen() { } async function main() { - virtualMachineScaleSetsListMaximumSetGen(); - virtualMachineScaleSetsListMinimumSetGen(); + virtualMachineScaleSetListMaximumSetGen(); + virtualMachineScaleSetListMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsListSkusSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsListSkusSample.ts index 8fd0a88343c7..19211e35f6d9 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsListSkusSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsListSkusSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU. * * @summary Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ListSkus_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListSkus_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsListSkusMaximumSetGen() { +async function virtualMachineScaleSetListSkusMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -42,9 +42,9 @@ async function virtualMachineScaleSetsListSkusMaximumSetGen() { * This sample demonstrates how to Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU. * * @summary Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ListSkus_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListSkus_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsListSkusMinimumSetGen() { +async function virtualMachineScaleSetListSkusMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -63,8 +63,8 @@ async function virtualMachineScaleSetsListSkusMinimumSetGen() { } async function main() { - virtualMachineScaleSetsListSkusMaximumSetGen(); - virtualMachineScaleSetsListSkusMinimumSetGen(); + virtualMachineScaleSetListSkusMaximumSetGen(); + virtualMachineScaleSetListSkusMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsPerformMaintenanceSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsPerformMaintenanceSample.ts index e26c3e3ce5fd..4833a8e91718 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsPerformMaintenanceSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsPerformMaintenanceSample.ts @@ -22,9 +22,9 @@ dotenv.config(); * This sample demonstrates how to Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices for more details: https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications * * @summary Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices for more details: https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_PerformMaintenance_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PerformMaintenance_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsPerformMaintenanceMaximumSetGen() { +async function virtualMachineScaleSetPerformMaintenanceMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -50,9 +50,9 @@ async function virtualMachineScaleSetsPerformMaintenanceMaximumSetGen() { * This sample demonstrates how to Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices for more details: https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications * * @summary Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices for more details: https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_PerformMaintenance_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PerformMaintenance_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsPerformMaintenanceMinimumSetGen() { +async function virtualMachineScaleSetPerformMaintenanceMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -68,8 +68,8 @@ async function virtualMachineScaleSetsPerformMaintenanceMinimumSetGen() { } async function main() { - virtualMachineScaleSetsPerformMaintenanceMaximumSetGen(); - virtualMachineScaleSetsPerformMaintenanceMinimumSetGen(); + virtualMachineScaleSetPerformMaintenanceMaximumSetGen(); + virtualMachineScaleSetPerformMaintenanceMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsPowerOffSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsPowerOffSample.ts index 88a62baacb5d..da68c753e53b 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsPowerOffSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsPowerOffSample.ts @@ -22,9 +22,9 @@ dotenv.config(); * This sample demonstrates how to Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. * * @summary Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_PowerOff_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PowerOff_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsPowerOffMaximumSetGen() { +async function virtualMachineScaleSetPowerOffMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -52,9 +52,9 @@ async function virtualMachineScaleSetsPowerOffMaximumSetGen() { * This sample demonstrates how to Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. * * @summary Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_PowerOff_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PowerOff_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsPowerOffMinimumSetGen() { +async function virtualMachineScaleSetPowerOffMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -70,8 +70,8 @@ async function virtualMachineScaleSetsPowerOffMinimumSetGen() { } async function main() { - virtualMachineScaleSetsPowerOffMaximumSetGen(); - virtualMachineScaleSetsPowerOffMinimumSetGen(); + virtualMachineScaleSetPowerOffMaximumSetGen(); + virtualMachineScaleSetPowerOffMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsReapplySample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsReapplySample.ts new file mode 100644 index 000000000000..e2d564c6c210 --- /dev/null +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsReapplySample.ts @@ -0,0 +1,68 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ComputeManagementClient } from "@azure/arm-compute"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Reapplies the Virtual Machine Scale Set Virtual Machine Profile to the Virtual Machine Instances + * + * @summary Reapplies the Virtual Machine Scale Set Virtual Machine Profile to the Virtual Machine Instances + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Reapply_MaximumSet_Gen.json + */ +async function virtualMachineScaleSetsReapplyMaximumSetGen() { + const subscriptionId = + process.env["COMPUTE_SUBSCRIPTION_ID"] || + "b4f1213b-cacc-4816-8bfb-f30f90643de8"; + const resourceGroupName = + process.env["COMPUTE_RESOURCE_GROUP"] || + "VirtualMachineScaleSetReapplyTestRG"; + const vmScaleSetName = "VMSSReapply-Test-ScaleSet"; + const credential = new DefaultAzureCredential(); + const client = new ComputeManagementClient(credential, subscriptionId); + const result = await client.virtualMachineScaleSets.beginReapplyAndWait( + resourceGroupName, + vmScaleSetName + ); + console.log(result); +} + +/** + * This sample demonstrates how to Reapplies the Virtual Machine Scale Set Virtual Machine Profile to the Virtual Machine Instances + * + * @summary Reapplies the Virtual Machine Scale Set Virtual Machine Profile to the Virtual Machine Instances + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Reapply_MinimumSet_Gen.json + */ +async function virtualMachineScaleSetsReapplyMinimumSetGen() { + const subscriptionId = + process.env["COMPUTE_SUBSCRIPTION_ID"] || + "b4f1213b-cacc-4816-8bfb-f30f90643de8"; + const resourceGroupName = + process.env["COMPUTE_RESOURCE_GROUP"] || + "VirtualMachineScaleSetReapplyTestRG"; + const vmScaleSetName = "VMSSReapply-Test-ScaleSet"; + const credential = new DefaultAzureCredential(); + const client = new ComputeManagementClient(credential, subscriptionId); + const result = await client.virtualMachineScaleSets.beginReapplyAndWait( + resourceGroupName, + vmScaleSetName + ); + console.log(result); +} + +async function main() { + virtualMachineScaleSetsReapplyMaximumSetGen(); + virtualMachineScaleSetsReapplyMinimumSetGen(); +} + +main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsRedeploySample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsRedeploySample.ts index a08d15d912b9..ee6af01b7e81 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsRedeploySample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsRedeploySample.ts @@ -22,9 +22,9 @@ dotenv.config(); * This sample demonstrates how to Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and powers them back on. * * @summary Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and powers them back on. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Redeploy_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Redeploy_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsRedeployMaximumSetGen() { +async function virtualMachineScaleSetRedeployMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -50,9 +50,9 @@ async function virtualMachineScaleSetsRedeployMaximumSetGen() { * This sample demonstrates how to Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and powers them back on. * * @summary Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and powers them back on. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Redeploy_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Redeploy_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsRedeployMinimumSetGen() { +async function virtualMachineScaleSetRedeployMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -68,8 +68,8 @@ async function virtualMachineScaleSetsRedeployMinimumSetGen() { } async function main() { - virtualMachineScaleSetsRedeployMaximumSetGen(); - virtualMachineScaleSetsRedeployMinimumSetGen(); + virtualMachineScaleSetRedeployMaximumSetGen(); + virtualMachineScaleSetRedeployMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsReimageAllSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsReimageAllSample.ts index ab710f717a43..d66d8198a255 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsReimageAllSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsReimageAllSample.ts @@ -22,9 +22,9 @@ dotenv.config(); * This sample demonstrates how to Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation is only supported for managed disks. * * @summary Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation is only supported for managed disks. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ReimageAll_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ReimageAll_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsReimageAllMaximumSetGen() { +async function virtualMachineScaleSetReimageAllMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -50,9 +50,9 @@ async function virtualMachineScaleSetsReimageAllMaximumSetGen() { * This sample demonstrates how to Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation is only supported for managed disks. * * @summary Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation is only supported for managed disks. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ReimageAll_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ReimageAll_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsReimageAllMinimumSetGen() { +async function virtualMachineScaleSetReimageAllMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -68,8 +68,8 @@ async function virtualMachineScaleSetsReimageAllMinimumSetGen() { } async function main() { - virtualMachineScaleSetsReimageAllMaximumSetGen(); - virtualMachineScaleSetsReimageAllMinimumSetGen(); + virtualMachineScaleSetReimageAllMaximumSetGen(); + virtualMachineScaleSetReimageAllMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsReimageSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsReimageSample.ts index 50e250c37116..546373bc32ff 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsReimageSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsReimageSample.ts @@ -22,9 +22,9 @@ dotenv.config(); * This sample demonstrates how to Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. * * @summary Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Reimage_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Reimage_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsReimageMaximumSetGen() { +async function virtualMachineScaleSetReimageMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -51,9 +51,9 @@ async function virtualMachineScaleSetsReimageMaximumSetGen() { * This sample demonstrates how to Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. * * @summary Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Reimage_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Reimage_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsReimageMinimumSetGen() { +async function virtualMachineScaleSetReimageMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -69,8 +69,8 @@ async function virtualMachineScaleSetsReimageMinimumSetGen() { } async function main() { - virtualMachineScaleSetsReimageMaximumSetGen(); - virtualMachineScaleSetsReimageMinimumSetGen(); + virtualMachineScaleSetReimageMaximumSetGen(); + virtualMachineScaleSetReimageMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsRestartSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsRestartSample.ts index 6ae382b126e2..cda6cfdc05d4 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsRestartSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsRestartSample.ts @@ -22,9 +22,9 @@ dotenv.config(); * This sample demonstrates how to Restarts one or more virtual machines in a VM scale set. * * @summary Restarts one or more virtual machines in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Restart_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Restart_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsRestartMaximumSetGen() { +async function virtualMachineScaleSetRestartMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -50,9 +50,9 @@ async function virtualMachineScaleSetsRestartMaximumSetGen() { * This sample demonstrates how to Restarts one or more virtual machines in a VM scale set. * * @summary Restarts one or more virtual machines in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Restart_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Restart_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsRestartMinimumSetGen() { +async function virtualMachineScaleSetRestartMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -68,8 +68,8 @@ async function virtualMachineScaleSetsRestartMinimumSetGen() { } async function main() { - virtualMachineScaleSetsRestartMaximumSetGen(); - virtualMachineScaleSetsRestartMinimumSetGen(); + virtualMachineScaleSetRestartMaximumSetGen(); + virtualMachineScaleSetRestartMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsSetOrchestrationServiceStateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsSetOrchestrationServiceStateSample.ts index 3d3dba14bef4..c9c4fe5265f3 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsSetOrchestrationServiceStateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsSetOrchestrationServiceStateSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to Changes ServiceState property for a given service * * @summary Changes ServiceState property for a given service - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_SetOrchestrationServiceState_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_SetOrchestrationServiceState_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsSetOrchestrationServiceStateMaximumSetGen() { +async function virtualMachineScaleSetOrchestrationServiceStateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -47,9 +47,9 @@ async function virtualMachineScaleSetsSetOrchestrationServiceStateMaximumSetGen( * This sample demonstrates how to Changes ServiceState property for a given service * * @summary Changes ServiceState property for a given service - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_SetOrchestrationServiceState_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_SetOrchestrationServiceState_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsSetOrchestrationServiceStateMinimumSetGen() { +async function virtualMachineScaleSetOrchestrationServiceStateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -70,8 +70,8 @@ async function virtualMachineScaleSetsSetOrchestrationServiceStateMinimumSetGen( } async function main() { - virtualMachineScaleSetsSetOrchestrationServiceStateMaximumSetGen(); - virtualMachineScaleSetsSetOrchestrationServiceStateMinimumSetGen(); + virtualMachineScaleSetOrchestrationServiceStateMaximumSetGen(); + virtualMachineScaleSetOrchestrationServiceStateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsStartSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsStartSample.ts index f54d0075b348..6db8891df8d3 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsStartSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsStartSample.ts @@ -22,9 +22,9 @@ dotenv.config(); * This sample demonstrates how to Starts one or more virtual machines in a VM scale set. * * @summary Starts one or more virtual machines in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Start_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Start_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsStartMaximumSetGen() { +async function virtualMachineScaleSetStartMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -48,9 +48,9 @@ async function virtualMachineScaleSetsStartMaximumSetGen() { * This sample demonstrates how to Starts one or more virtual machines in a VM scale set. * * @summary Starts one or more virtual machines in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Start_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Start_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsStartMinimumSetGen() { +async function virtualMachineScaleSetStartMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -66,8 +66,8 @@ async function virtualMachineScaleSetsStartMinimumSetGen() { } async function main() { - virtualMachineScaleSetsStartMaximumSetGen(); - virtualMachineScaleSetsStartMinimumSetGen(); + virtualMachineScaleSetStartMaximumSetGen(); + virtualMachineScaleSetStartMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsUpdateInstancesSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsUpdateInstancesSample.ts index 8fd13d399f13..aa7a3eebc5fc 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsUpdateInstancesSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsUpdateInstancesSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to Upgrades one or more virtual machines to the latest SKU set in the VM scale set model. * * @summary Upgrades one or more virtual machines to the latest SKU set in the VM scale set model. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_UpdateInstances_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_UpdateInstances_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsUpdateInstancesMaximumSetGen() { +async function virtualMachineScaleSetUpdateInstancesMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -46,9 +46,9 @@ async function virtualMachineScaleSetsUpdateInstancesMaximumSetGen() { * This sample demonstrates how to Upgrades one or more virtual machines to the latest SKU set in the VM scale set model. * * @summary Upgrades one or more virtual machines to the latest SKU set in the VM scale set model. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_UpdateInstances_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_UpdateInstances_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsUpdateInstancesMinimumSetGen() { +async function virtualMachineScaleSetUpdateInstancesMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -68,8 +68,8 @@ async function virtualMachineScaleSetsUpdateInstancesMinimumSetGen() { } async function main() { - virtualMachineScaleSetsUpdateInstancesMaximumSetGen(); - virtualMachineScaleSetsUpdateInstancesMinimumSetGen(); + virtualMachineScaleSetUpdateInstancesMaximumSetGen(); + virtualMachineScaleSetUpdateInstancesMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsUpdateSample.ts index b9f48e00d2d6..9f9b504a6e7c 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsUpdateSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to Update a VM scale set. * * @summary Update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Update_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Update_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsUpdateMaximumSetGen() { +async function virtualMachineScaleSetUpdateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -111,7 +111,6 @@ async function virtualMachineScaleSetsUpdateMaximumSetGen() { enableAcceleratedNetworking: true, enableFpga: true, enableIPForwarding: true, - id: "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", ipConfigurations: [ { name: "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa", @@ -127,7 +126,6 @@ async function virtualMachineScaleSetsUpdateMaximumSetGen() { "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" } ], - id: "aaaaaaaaaaaaaaaa", loadBalancerBackendAddressPools: [ { id: @@ -288,9 +286,9 @@ async function virtualMachineScaleSetsUpdateMaximumSetGen() { * This sample demonstrates how to Update a VM scale set. * * @summary Update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Update_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Update_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsUpdateMinimumSetGen() { +async function virtualMachineScaleSetUpdateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -308,8 +306,8 @@ async function virtualMachineScaleSetsUpdateMinimumSetGen() { } async function main() { - virtualMachineScaleSetsUpdateMaximumSetGen(); - virtualMachineScaleSetsUpdateMinimumSetGen(); + virtualMachineScaleSetUpdateMaximumSetGen(); + virtualMachineScaleSetUpdateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineSizesListSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineSizesListSample.ts index 6825cc9342ca..d4e1a94aab8f 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineSizesListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineSizesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to This API is deprecated. Use [Resources Skus](https://docs.microsoft.com/rest/api/compute/resourceskus/list) * * @summary This API is deprecated. Use [Resources Skus](https://docs.microsoft.com/rest/api/compute/resourceskus/list) - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/computeRPCommonExamples/VirtualMachineSizes_List_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/computeRPCommonExamples/VirtualMachineSizes_List_MaximumSet_Gen.json */ async function virtualMachineSizesListMaximumSetGen() { const subscriptionId = @@ -37,7 +37,7 @@ async function virtualMachineSizesListMaximumSetGen() { * This sample demonstrates how to This API is deprecated. Use [Resources Skus](https://docs.microsoft.com/rest/api/compute/resourceskus/list) * * @summary This API is deprecated. Use [Resources Skus](https://docs.microsoft.com/rest/api/compute/resourceskus/list) - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/computeRPCommonExamples/VirtualMachineSizes_List_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/computeRPCommonExamples/VirtualMachineSizes_List_MinimumSet_Gen.json */ async function virtualMachineSizesListMinimumSetGen() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesAssessPatchesSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesAssessPatchesSample.ts index f3ca4277cb64..eb18d30fbd0a 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesAssessPatchesSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesAssessPatchesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Assess patches on the VM. * * @summary Assess patches on the VM. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_AssessPatches.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_AssessPatches.json */ async function assessPatchStateOfAVirtualMachine() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesCaptureSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesCaptureSample.ts index 8f70829bed30..2ce98eb1c5ff 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesCaptureSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesCaptureSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs. * * @summary Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Capture_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Capture_MaximumSet_Gen.json */ -async function virtualMachinesCaptureMaximumSetGen() { +async function virtualMachineCaptureMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -48,9 +48,9 @@ async function virtualMachinesCaptureMaximumSetGen() { * This sample demonstrates how to Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs. * * @summary Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Capture_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Capture_MinimumSet_Gen.json */ -async function virtualMachinesCaptureMinimumSetGen() { +async function virtualMachineCaptureMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -72,8 +72,8 @@ async function virtualMachinesCaptureMinimumSetGen() { } async function main() { - virtualMachinesCaptureMaximumSetGen(); - virtualMachinesCaptureMinimumSetGen(); + virtualMachineCaptureMaximumSetGen(); + virtualMachineCaptureMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesConvertToManagedDisksSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesConvertToManagedDisksSample.ts index 2c55942ddee4..171d697a51e9 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesConvertToManagedDisksSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesConvertToManagedDisksSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop-deallocated before invoking this operation. * * @summary Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop-deallocated before invoking this operation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_ConvertToManagedDisks_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_ConvertToManagedDisks_MaximumSet_Gen.json */ -async function virtualMachinesConvertToManagedDisksMaximumSetGen() { +async function virtualMachineConvertToManagedDisksMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -39,9 +39,9 @@ async function virtualMachinesConvertToManagedDisksMaximumSetGen() { * This sample demonstrates how to Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop-deallocated before invoking this operation. * * @summary Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop-deallocated before invoking this operation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_ConvertToManagedDisks_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_ConvertToManagedDisks_MinimumSet_Gen.json */ -async function virtualMachinesConvertToManagedDisksMinimumSetGen() { +async function virtualMachineConvertToManagedDisksMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -57,8 +57,8 @@ async function virtualMachinesConvertToManagedDisksMinimumSetGen() { } async function main() { - virtualMachinesConvertToManagedDisksMaximumSetGen(); - virtualMachinesConvertToManagedDisksMinimumSetGen(); + virtualMachineConvertToManagedDisksMaximumSetGen(); + virtualMachineConvertToManagedDisksMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesCreateOrUpdateSample.ts index 3b59fd611a5e..26d309fc0bc4 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithPatchSettingAssessmentModeOfImageDefault.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithPatchSettingAssessmentModeOfImageDefault.json */ async function createALinuxVMWithAPatchSettingAssessmentModeOfImageDefault() { const subscriptionId = @@ -76,7 +76,7 @@ async function createALinuxVMWithAPatchSettingAssessmentModeOfImageDefault() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithAutomaticByPlatformSettings.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithAutomaticByPlatformSettings.json */ async function createALinuxVMWithAPatchSettingPatchModeOfAutomaticByPlatformAndAutomaticByPlatformSettings() { const subscriptionId = @@ -103,7 +103,10 @@ async function createALinuxVMWithAPatchSettingPatchModeOfAutomaticByPlatformAndA linuxConfiguration: { patchSettings: { assessmentMode: "AutomaticByPlatform", - automaticByPlatformSettings: { rebootSetting: "Never" }, + automaticByPlatformSettings: { + bypassPlatformSafetyChecksOnUserSchedule: true, + rebootSetting: "Never" + }, patchMode: "AutomaticByPlatform" }, provisionVMAgent: true @@ -138,7 +141,7 @@ async function createALinuxVMWithAPatchSettingPatchModeOfAutomaticByPlatformAndA * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithPatchSettingModeOfImageDefault.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithPatchSettingModeOfImageDefault.json */ async function createALinuxVMWithAPatchSettingPatchModeOfImageDefault() { const subscriptionId = @@ -196,7 +199,7 @@ async function createALinuxVMWithAPatchSettingPatchModeOfImageDefault() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithPatchSettingModesOfAutomaticByPlatform.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithPatchSettingModesOfAutomaticByPlatform.json */ async function createALinuxVMWithAPatchSettingsPatchModeAndAssessmentModeSetToAutomaticByPlatform() { const subscriptionId = @@ -257,7 +260,7 @@ async function createALinuxVMWithAPatchSettingsPatchModeAndAssessmentModeSetToAu * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_FromACommunityGalleryImage.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_FromACommunityGalleryImage.json */ async function createAVMFromACommunityGalleryImage() { const subscriptionId = @@ -309,7 +312,7 @@ async function createAVMFromACommunityGalleryImage() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_FromASharedGalleryImage.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_FromASharedGalleryImage.json */ async function createAVMFromASharedGalleryImage() { const subscriptionId = @@ -361,7 +364,7 @@ async function createAVMFromASharedGalleryImage() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithDiskControllerType.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithDiskControllerType.json */ async function createAVMWithDiskControllerType() { const subscriptionId = @@ -424,7 +427,7 @@ async function createAVMWithDiskControllerType() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithHibernationEnabled.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithHibernationEnabled.json */ async function createAVMWithHibernationEnabled() { const subscriptionId = @@ -486,7 +489,7 @@ async function createAVMWithHibernationEnabled() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithUefiSettings.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithUefiSettings.json */ async function createAVMWithUefiSettingsOfSecureBootAndVTpm() { const subscriptionId = @@ -544,7 +547,7 @@ async function createAVMWithUefiSettingsOfSecureBootAndVTpm() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithUserData.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithUserData.json */ async function createAVMWithUserData() { const subscriptionId = @@ -606,7 +609,7 @@ async function createAVMWithUserData() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_CreateWithVMSizeProperties.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithVMSizeProperties.json */ async function createAVMWithVMSizeProperties() { const subscriptionId = @@ -671,7 +674,7 @@ async function createAVMWithVMSizeProperties() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithNetworkInterfaceConfiguration.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithNetworkInterfaceConfiguration.json */ async function createAVMWithNetworkInterfaceConfiguration() { const subscriptionId = @@ -738,7 +741,7 @@ async function createAVMWithNetworkInterfaceConfiguration() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithSecurityTypeConfidentialVMWithCustomerManagedKeys.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithSecurityTypeConfidentialVMWithCustomerManagedKeys.json */ async function createAVMWithSecurityTypeConfidentialVMWithCustomerManagedKeys() { const subscriptionId = @@ -805,7 +808,7 @@ async function createAVMWithSecurityTypeConfidentialVMWithCustomerManagedKeys() * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithSecurityTypeConfidentialVM.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithSecurityTypeConfidentialVM.json */ async function createAVMWithSecurityTypeConfidentialVMWithPlatformManagedKeys() { const subscriptionId = @@ -866,7 +869,7 @@ async function createAVMWithSecurityTypeConfidentialVMWithPlatformManagedKeys() * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingAssessmentModeOfImageDefault.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingAssessmentModeOfImageDefault.json */ async function createAWindowsVMWithAPatchSettingAssessmentModeOfImageDefault() { const subscriptionId = @@ -925,7 +928,7 @@ async function createAWindowsVMWithAPatchSettingAssessmentModeOfImageDefault() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModeOfAutomaticByOS.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModeOfAutomaticByOS.json */ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByOS() { const subscriptionId = @@ -984,7 +987,7 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByOS() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithAutomaticByPlatformSettings.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithAutomaticByPlatformSettings.json */ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByPlatformAndAutomaticByPlatformSettings() { const subscriptionId = @@ -1012,7 +1015,10 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByPlatformAn enableAutomaticUpdates: true, patchSettings: { assessmentMode: "AutomaticByPlatform", - automaticByPlatformSettings: { rebootSetting: "Never" }, + automaticByPlatformSettings: { + bypassPlatformSafetyChecksOnUserSchedule: false, + rebootSetting: "Never" + }, patchMode: "AutomaticByPlatform" }, provisionVMAgent: true @@ -1047,7 +1053,7 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByPlatformAn * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModeOfAutomaticByPlatformAndEnableHotPatchingTrue.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModeOfAutomaticByPlatformAndEnableHotPatchingTrue.json */ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByPlatformAndEnableHotpatchingSetToTrue() { const subscriptionId = @@ -1109,7 +1115,7 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByPlatformAn * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModeOfManual.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModeOfManual.json */ async function createAWindowsVMWithAPatchSettingPatchModeOfManual() { const subscriptionId = @@ -1168,7 +1174,7 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfManual() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModesOfAutomaticByPlatform.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModesOfAutomaticByPlatform.json */ async function createAWindowsVMWithPatchSettingsPatchModeAndAssessmentModeSetToAutomaticByPlatform() { const subscriptionId = @@ -1230,7 +1236,7 @@ async function createAWindowsVMWithPatchSettingsPatchModeAndAssessmentModeSetToA * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_CustomImageVmFromAnUnmanagedGeneralizedOsImage.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_CustomImageVmFromAnUnmanagedGeneralizedOsImage.json */ async function createACustomImageVMFromAnUnmanagedGeneralizedOSImage() { const subscriptionId = @@ -1286,7 +1292,7 @@ async function createACustomImageVMFromAnUnmanagedGeneralizedOSImage() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_PlatformImageVmWithUnmanagedOsAndDataDisks.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_PlatformImageVmWithUnmanagedOsAndDataDisks.json */ async function createAPlatformImageVMWithUnmanagedOSAndDataDisks() { const subscriptionId = @@ -1363,7 +1369,7 @@ async function createAPlatformImageVMWithUnmanagedOSAndDataDisks() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_FromACustomImage.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_FromACustomImage.json */ async function createAVMFromACustomImage() { const subscriptionId = @@ -1415,7 +1421,7 @@ async function createAVMFromACustomImage() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_FromAGeneralizedSharedImage.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_FromAGeneralizedSharedImage.json */ async function createAVMFromAGeneralizedSharedImage() { const subscriptionId = @@ -1467,7 +1473,7 @@ async function createAVMFromAGeneralizedSharedImage() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_FromASpecializedSharedImage.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_FromASpecializedSharedImage.json */ async function createAVMFromASpecializedSharedImage() { const subscriptionId = @@ -1514,7 +1520,7 @@ async function createAVMFromASpecializedSharedImage() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_InAVmssWithCustomerAssignedPlatformFaultDomain.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_InAVmssWithCustomerAssignedPlatformFaultDomain.json */ async function createAVMInAVirtualMachineScaleSetWithCustomerAssignedPlatformFaultDomain() { const subscriptionId = @@ -1573,7 +1579,7 @@ async function createAVMInAVirtualMachineScaleSetWithCustomerAssignedPlatformFau * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_InAnAvailabilitySet.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_InAnAvailabilitySet.json */ async function createAVMInAnAvailabilitySet() { const subscriptionId = @@ -1631,7 +1637,7 @@ async function createAVMInAnAvailabilitySet() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithApplicationProfile.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithApplicationProfile.json */ async function createAVMWithApplicationProfile() { const subscriptionId = @@ -1703,7 +1709,7 @@ async function createAVMWithApplicationProfile() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithDiskEncryptionSetResource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithDiskEncryptionSetResource.json */ async function createAVMWithDiskEncryptionSetResourceIdInTheOSDiskAndDataDisk() { const subscriptionId = @@ -1791,7 +1797,7 @@ async function createAVMWithDiskEncryptionSetResourceIdInTheOSDiskAndDataDisk() * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithEncryptionAtHost.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithEncryptionAtHost.json */ async function createAVMWithHostEncryptionUsingEncryptionAtHostProperty() { const subscriptionId = @@ -1851,7 +1857,7 @@ async function createAVMWithHostEncryptionUsingEncryptionAtHostProperty() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithScheduledEventsProfile.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithScheduledEventsProfile.json */ async function createAVMWithScheduledEventsProfile() { const subscriptionId = @@ -1916,7 +1922,7 @@ async function createAVMWithScheduledEventsProfile() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithAMarketplaceImagePlan.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithAMarketplaceImagePlan.json */ async function createAVMWithAMarketplaceImagePlan() { const subscriptionId = @@ -1975,7 +1981,7 @@ async function createAVMWithAMarketplaceImagePlan() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithExtensionsTimeBudget.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithExtensionsTimeBudget.json */ async function createAVMWithAnExtensionsTimeBudget() { const subscriptionId = @@ -2037,7 +2043,7 @@ async function createAVMWithAnExtensionsTimeBudget() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithBootDiagnostics.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithBootDiagnostics.json */ async function createAVMWithBootDiagnostics() { const subscriptionId = @@ -2098,7 +2104,7 @@ async function createAVMWithBootDiagnostics() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithEmptyDataDisks.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithEmptyDataDisks.json */ async function createAVMWithEmptyDataDisks() { const subscriptionId = @@ -2156,7 +2162,7 @@ async function createAVMWithEmptyDataDisks() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDiskUsingDiffDiskPlacementAsCacheDisk.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDiskUsingDiffDiskPlacementAsCacheDisk.json */ async function createAVMWithEphemeralOSDiskProvisioningInCacheDiskUsingPlacementProperty() { const subscriptionId = @@ -2216,7 +2222,7 @@ async function createAVMWithEphemeralOSDiskProvisioningInCacheDiskUsingPlacement * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDiskUsingDiffDiskPlacementAsResourceDisk.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDiskUsingDiffDiskPlacementAsResourceDisk.json */ async function createAVMWithEphemeralOSDiskProvisioningInResourceDiskUsingPlacementProperty() { const subscriptionId = @@ -2276,7 +2282,7 @@ async function createAVMWithEphemeralOSDiskProvisioningInResourceDiskUsingPlacem * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDisk.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDisk.json */ async function createAVMWithEphemeralOSDisk() { const subscriptionId = @@ -2336,7 +2342,7 @@ async function createAVMWithEphemeralOSDisk() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithManagedBootDiagnostics.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithManagedBootDiagnostics.json */ async function createAVMWithManagedBootDiagnostics() { const subscriptionId = @@ -2391,7 +2397,7 @@ async function createAVMWithManagedBootDiagnostics() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithPasswordAuthentication.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithPasswordAuthentication.json */ async function createAVMWithPasswordAuthentication() { const subscriptionId = @@ -2445,7 +2451,7 @@ async function createAVMWithPasswordAuthentication() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithPremiumStorage.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithPremiumStorage.json */ async function createAVMWithPremiumStorage() { const subscriptionId = @@ -2499,7 +2505,7 @@ async function createAVMWithPremiumStorage() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithSshAuthentication.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithSshAuthentication.json */ async function createAVMWithSshAuthentication() { const subscriptionId = @@ -2564,7 +2570,7 @@ async function createAVMWithSshAuthentication() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithCapacityReservation.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithCapacityReservation.json */ async function createOrUpdateAVMWithCapacityReservation() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesDeallocateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesDeallocateSample.ts index 9d53261bcd02..df62f033a391 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesDeallocateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesDeallocateSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses. * * @summary Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Deallocate_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Deallocate_MaximumSet_Gen.json */ -async function virtualMachinesDeallocateMaximumSetGen() { +async function virtualMachineDeallocateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -45,9 +45,9 @@ async function virtualMachinesDeallocateMaximumSetGen() { * This sample demonstrates how to Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses. * * @summary Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Deallocate_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Deallocate_MinimumSet_Gen.json */ -async function virtualMachinesDeallocateMinimumSetGen() { +async function virtualMachineDeallocateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -63,8 +63,8 @@ async function virtualMachinesDeallocateMinimumSetGen() { } async function main() { - virtualMachinesDeallocateMaximumSetGen(); - virtualMachinesDeallocateMinimumSetGen(); + virtualMachineDeallocateMaximumSetGen(); + virtualMachineDeallocateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesDeleteSample.ts index 06e19f097630..8e0eede6da48 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesDeleteSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to delete a virtual machine. * * @summary The operation to delete a virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Delete_Force.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Delete_Force.json */ async function forceDeleteAVM() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesGeneralizeSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesGeneralizeSample.ts index 639e77fbee25..ca3e5b400f53 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesGeneralizeSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesGeneralizeSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual machine before performing this operation.
For Windows, please refer to [Create a managed image of a generalized VM in Azure](https://docs.microsoft.com/azure/virtual-machines/windows/capture-image-resource).
For Linux, please refer to [How to create an image of a virtual machine or VHD](https://docs.microsoft.com/azure/virtual-machines/linux/capture-image). + * This sample demonstrates how to Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual machine before performing this operation. For Windows, please refer to [Create a managed image of a generalized VM in Azure](https://docs.microsoft.com/azure/virtual-machines/windows/capture-image-resource). For Linux, please refer to [How to create an image of a virtual machine or VHD](https://docs.microsoft.com/azure/virtual-machines/linux/capture-image). * - * @summary Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual machine before performing this operation.
For Windows, please refer to [Create a managed image of a generalized VM in Azure](https://docs.microsoft.com/azure/virtual-machines/windows/capture-image-resource).
For Linux, please refer to [How to create an image of a virtual machine or VHD](https://docs.microsoft.com/azure/virtual-machines/linux/capture-image). - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Generalize.json + * @summary Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual machine before performing this operation. For Windows, please refer to [Create a managed image of a generalized VM in Azure](https://docs.microsoft.com/azure/virtual-machines/windows/capture-image-resource). For Linux, please refer to [How to create an image of a virtual machine or VHD](https://docs.microsoft.com/azure/virtual-machines/linux/capture-image). + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Generalize.json */ async function generalizeAVirtualMachine() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesGetSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesGetSample.ts index e8ec66e341f8..6d8041f04986 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesGetSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves information about the model view or the instance view of a virtual machine. * * @summary Retrieves information about the model view or the instance view of a virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Get.json */ async function getAVirtualMachine() { const subscriptionId = @@ -45,7 +45,7 @@ async function getAVirtualMachine() { * This sample demonstrates how to Retrieves information about the model view or the instance view of a virtual machine. * * @summary Retrieves information about the model view or the instance view of a virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Get_AutoPlacedOnDedicatedHostGroup.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Get_AutoPlacedOnDedicatedHostGroup.json */ async function getAVirtualMachinePlacedOnADedicatedHostGroupThroughAutomaticPlacement() { const subscriptionId = @@ -63,7 +63,7 @@ async function getAVirtualMachinePlacedOnADedicatedHostGroupThroughAutomaticPlac * This sample demonstrates how to Retrieves information about the model view or the instance view of a virtual machine. * * @summary Retrieves information about the model view or the instance view of a virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Get_WithDiskControllerType.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Get_WithDiskControllerType.json */ async function getAVirtualMachineWithDiskControllerTypeProperties() { const subscriptionId = @@ -87,7 +87,7 @@ async function getAVirtualMachineWithDiskControllerTypeProperties() { * This sample demonstrates how to Retrieves information about the model view or the instance view of a virtual machine. * * @summary Retrieves information about the model view or the instance view of a virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Get_WithVMSizeProperties.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Get_WithVMSizeProperties.json */ async function getAVirtualMachineWithVMSizeProperties() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesInstallPatchesSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesInstallPatchesSample.ts index 517e055c6ef1..e465ebd5d287 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesInstallPatchesSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesInstallPatchesSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Installs patches on the VM. * * @summary Installs patches on the VM. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_InstallPatches.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_InstallPatches.json */ async function installPatchStateOfAVirtualMachine() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesInstanceViewSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesInstanceViewSample.ts index 7c6e6ab09640..0d692d3eb582 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesInstanceViewSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesInstanceViewSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves information about the run-time state of a virtual machine. * * @summary Retrieves information about the run-time state of a virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Get_InstanceView.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Get_InstanceView.json */ async function getVirtualMachineInstanceView() { const subscriptionId = @@ -39,7 +39,7 @@ async function getVirtualMachineInstanceView() { * This sample demonstrates how to Retrieves information about the run-time state of a virtual machine. * * @summary Retrieves information about the run-time state of a virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Get_InstanceViewAutoPlacedOnDedicatedHostGroup.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Get_InstanceViewAutoPlacedOnDedicatedHostGroup.json */ async function getInstanceViewOfAVirtualMachinePlacedOnADedicatedHostGroupThroughAutomaticPlacement() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesListAllSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesListAllSample.ts index 9b57dc2ad887..30a2991b57dd 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesListAllSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesListAllSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines. * * @summary Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_ListAll_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_ListAll_MaximumSet_Gen.json */ -async function virtualMachinesListAllMaximumSetGen() { +async function virtualMachineListAllMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const statusOnly = "aaaaaa"; @@ -42,9 +42,9 @@ async function virtualMachinesListAllMaximumSetGen() { * This sample demonstrates how to Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines. * * @summary Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_ListAll_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_ListAll_MinimumSet_Gen.json */ -async function virtualMachinesListAllMinimumSetGen() { +async function virtualMachineListAllMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const credential = new DefaultAzureCredential(); @@ -57,8 +57,8 @@ async function virtualMachinesListAllMinimumSetGen() { } async function main() { - virtualMachinesListAllMaximumSetGen(); - virtualMachinesListAllMinimumSetGen(); + virtualMachineListAllMaximumSetGen(); + virtualMachineListAllMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesListAvailableSizesSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesListAvailableSizesSample.ts index 58f072b7cd28..99a44b08b780 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesListAvailableSizesSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesListAvailableSizesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all available virtual machine sizes to which the specified virtual machine can be resized. * * @summary Lists all available virtual machine sizes to which the specified virtual machine can be resized. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_ListAvailableVmSizes.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_ListAvailableVmSizes.json */ async function listsAllAvailableVirtualMachineSizesToWhichTheSpecifiedVirtualMachineCanBeResized() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesListByLocationSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesListByLocationSample.ts index 36e3a6a8e168..0ca277dcc2ee 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesListByLocationSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesListByLocationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all the virtual machines under the specified subscription for the specified location. * * @summary Gets all the virtual machines under the specified subscription for the specified location. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_ListBySubscription_ByLocation.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_ListBySubscription_ByLocation.json */ async function listsAllTheVirtualMachinesUnderTheSpecifiedSubscriptionForTheSpecifiedLocation() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesListSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesListSample.ts index 75f8c66505b4..51c1bea6d992 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesListSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines. * * @summary Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_List_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_List_MaximumSet_Gen.json */ -async function virtualMachinesListMaximumSetGen() { +async function virtualMachineListMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -46,9 +46,9 @@ async function virtualMachinesListMaximumSetGen() { * This sample demonstrates how to Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines. * * @summary Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_List_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_List_MinimumSet_Gen.json */ -async function virtualMachinesListMinimumSetGen() { +async function virtualMachineListMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -63,8 +63,8 @@ async function virtualMachinesListMinimumSetGen() { } async function main() { - virtualMachinesListMaximumSetGen(); - virtualMachinesListMinimumSetGen(); + virtualMachineListMaximumSetGen(); + virtualMachineListMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesPerformMaintenanceSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesPerformMaintenanceSample.ts index 8c6985d5a6c2..1d30c5a0d283 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesPerformMaintenanceSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesPerformMaintenanceSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to The operation to perform maintenance on a virtual machine. * * @summary The operation to perform maintenance on a virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_PerformMaintenance_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_PerformMaintenance_MaximumSet_Gen.json */ -async function virtualMachinesPerformMaintenanceMaximumSetGen() { +async function virtualMachinePerformMaintenanceMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -39,9 +39,9 @@ async function virtualMachinesPerformMaintenanceMaximumSetGen() { * This sample demonstrates how to The operation to perform maintenance on a virtual machine. * * @summary The operation to perform maintenance on a virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_PerformMaintenance_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_PerformMaintenance_MinimumSet_Gen.json */ -async function virtualMachinesPerformMaintenanceMinimumSetGen() { +async function virtualMachinePerformMaintenanceMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -57,8 +57,8 @@ async function virtualMachinesPerformMaintenanceMinimumSetGen() { } async function main() { - virtualMachinesPerformMaintenanceMaximumSetGen(); - virtualMachinesPerformMaintenanceMinimumSetGen(); + virtualMachinePerformMaintenanceMaximumSetGen(); + virtualMachinePerformMaintenanceMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesPowerOffSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesPowerOffSample.ts index 0c0849976eaf..64c01d16bfc0 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesPowerOffSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesPowerOffSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine. * * @summary The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_PowerOff_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_PowerOff_MaximumSet_Gen.json */ -async function virtualMachinesPowerOffMaximumSetGen() { +async function virtualMachinePowerOffMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -45,9 +45,9 @@ async function virtualMachinesPowerOffMaximumSetGen() { * This sample demonstrates how to The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine. * * @summary The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_PowerOff_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_PowerOff_MinimumSet_Gen.json */ -async function virtualMachinesPowerOffMinimumSetGen() { +async function virtualMachinePowerOffMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -63,8 +63,8 @@ async function virtualMachinesPowerOffMinimumSetGen() { } async function main() { - virtualMachinesPowerOffMaximumSetGen(); - virtualMachinesPowerOffMinimumSetGen(); + virtualMachinePowerOffMaximumSetGen(); + virtualMachinePowerOffMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesReapplySample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesReapplySample.ts index 44e23bcbd7c0..0f8cade87d6d 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesReapplySample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesReapplySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to reapply a virtual machine's state. * * @summary The operation to reapply a virtual machine's state. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Reapply.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Reapply.json */ async function reapplyTheStateOfAVirtualMachine() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesRedeploySample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesRedeploySample.ts index 6146f846dfd3..219d29a5958e 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesRedeploySample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesRedeploySample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Shuts down the virtual machine, moves it to a new node, and powers it back on. * * @summary Shuts down the virtual machine, moves it to a new node, and powers it back on. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Redeploy_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Redeploy_MaximumSet_Gen.json */ -async function virtualMachinesRedeployMaximumSetGen() { +async function virtualMachineRedeployMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -39,9 +39,9 @@ async function virtualMachinesRedeployMaximumSetGen() { * This sample demonstrates how to Shuts down the virtual machine, moves it to a new node, and powers it back on. * * @summary Shuts down the virtual machine, moves it to a new node, and powers it back on. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Redeploy_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Redeploy_MinimumSet_Gen.json */ -async function virtualMachinesRedeployMinimumSetGen() { +async function virtualMachineRedeployMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -57,8 +57,8 @@ async function virtualMachinesRedeployMinimumSetGen() { } async function main() { - virtualMachinesRedeployMaximumSetGen(); - virtualMachinesRedeployMinimumSetGen(); + virtualMachineRedeployMaximumSetGen(); + virtualMachineRedeployMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesReimageSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesReimageSample.ts index da0fd08de818..19043f1fdeb9 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesReimageSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesReimageSample.ts @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. NOTE: The retaining of old OS disk depends on the value of deleteOption of OS disk. If deleteOption is detach, the old OS disk will be preserved after reimage. If deleteOption is delete, the old OS disk will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage. * * @summary Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. NOTE: The retaining of old OS disk depends on the value of deleteOption of OS disk. If deleteOption is detach, the old OS disk will be preserved after reimage. If deleteOption is delete, the old OS disk will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Reimage_NonEphemeralVMs.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Reimage_NonEphemeralVMs.json */ async function reimageANonEphemeralVirtualMachine() { const subscriptionId = @@ -53,7 +53,7 @@ async function reimageANonEphemeralVirtualMachine() { * This sample demonstrates how to Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. NOTE: The retaining of old OS disk depends on the value of deleteOption of OS disk. If deleteOption is detach, the old OS disk will be preserved after reimage. If deleteOption is delete, the old OS disk will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage. * * @summary Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. NOTE: The retaining of old OS disk depends on the value of deleteOption of OS disk. If deleteOption is detach, the old OS disk will be preserved after reimage. If deleteOption is delete, the old OS disk will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Reimage.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Reimage.json */ async function reimageAVirtualMachine() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesRestartSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesRestartSample.ts index c4d833345503..cbae525b69cd 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesRestartSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesRestartSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to The operation to restart a virtual machine. * * @summary The operation to restart a virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Restart_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Restart_MaximumSet_Gen.json */ -async function virtualMachinesRestartMaximumSetGen() { +async function virtualMachineRestartMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -39,9 +39,9 @@ async function virtualMachinesRestartMaximumSetGen() { * This sample demonstrates how to The operation to restart a virtual machine. * * @summary The operation to restart a virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Restart_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Restart_MinimumSet_Gen.json */ -async function virtualMachinesRestartMinimumSetGen() { +async function virtualMachineRestartMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -57,8 +57,8 @@ async function virtualMachinesRestartMinimumSetGen() { } async function main() { - virtualMachinesRestartMaximumSetGen(); - virtualMachinesRestartMinimumSetGen(); + virtualMachineRestartMaximumSetGen(); + virtualMachineRestartMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesRetrieveBootDiagnosticsDataSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesRetrieveBootDiagnosticsDataSample.ts index ef8d1e28e6f1..32bf673080a7 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesRetrieveBootDiagnosticsDataSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesRetrieveBootDiagnosticsDataSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to retrieve SAS URIs for a virtual machine's boot diagnostic logs. * * @summary The operation to retrieve SAS URIs for a virtual machine's boot diagnostic logs. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_RetrieveBootDiagnosticsData.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_RetrieveBootDiagnosticsData.json */ async function retrieveBootDiagnosticsDataOfAVirtualMachine() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesRunCommandSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesRunCommandSample.ts index 50a1f4079a63..ab577d880fe3 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesRunCommandSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesRunCommandSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Run command on the VM. * * @summary Run command on the VM. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineRunCommand.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineRunCommand.json */ async function virtualMachineRunCommand() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesSimulateEvictionSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesSimulateEvictionSample.ts index a3200f53af30..c1a496602181 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesSimulateEvictionSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesSimulateEvictionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to simulate the eviction of spot virtual machine. * * @summary The operation to simulate the eviction of spot virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_SimulateEviction.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_SimulateEviction.json */ async function simulateEvictionAVirtualMachine() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesStartSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesStartSample.ts index 8475ef38f199..5f52ff199eef 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesStartSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesStartSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to The operation to start a virtual machine. * * @summary The operation to start a virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Start_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Start_MaximumSet_Gen.json */ -async function virtualMachinesStartMaximumSetGen() { +async function virtualMachineStartMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -39,9 +39,9 @@ async function virtualMachinesStartMaximumSetGen() { * This sample demonstrates how to The operation to start a virtual machine. * * @summary The operation to start a virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Start_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Start_MinimumSet_Gen.json */ -async function virtualMachinesStartMinimumSetGen() { +async function virtualMachineStartMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -57,8 +57,8 @@ async function virtualMachinesStartMinimumSetGen() { } async function main() { - virtualMachinesStartMaximumSetGen(); - virtualMachinesStartMinimumSetGen(); + virtualMachineStartMaximumSetGen(); + virtualMachineStartMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesUpdateSample.ts index 69400567e419..1e91c48a85b8 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to update a virtual machine. * * @summary The operation to update a virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Update_DetachDataDiskUsingToBeDetachedProperty.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Update_DetachDataDiskUsingToBeDetachedProperty.json */ async function updateAVMByDetachingDataDisk() { const subscriptionId = @@ -78,7 +78,7 @@ async function updateAVMByDetachingDataDisk() { * This sample demonstrates how to The operation to update a virtual machine. * * @summary The operation to update a virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Update_ForceDetachDataDisk.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Update_ForceDetachDataDisk.json */ async function updateAVMByForceDetachingDataDisk() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/javascript/README.md b/sdk/compute/arm-compute/samples/v21/javascript/README.md similarity index 87% rename from sdk/compute/arm-compute/samples/v20/javascript/README.md rename to sdk/compute/arm-compute/samples/v21/javascript/README.md index 7b0b72cb58fa..2c013c05fec2 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/README.md +++ b/sdk/compute/arm-compute/samples/v21/javascript/README.md @@ -4,24 +4,24 @@ These sample programs show how to use the JavaScript client libraries for in som | **File Name** | **Description** | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [availabilitySetsCreateOrUpdateSample.js][availabilitysetscreateorupdatesample] | Create or update an availability set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySet_Create.json | -| [availabilitySetsDeleteSample.js][availabilitysetsdeletesample] | Delete an availability set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_Delete_MaximumSet_Gen.json | -| [availabilitySetsGetSample.js][availabilitysetsgetsample] | Retrieves information about an availability set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_Get_MaximumSet_Gen.json | -| [availabilitySetsListAvailableSizesSample.js][availabilitysetslistavailablesizessample] | Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_ListAvailableSizes_MaximumSet_Gen.json | -| [availabilitySetsListBySubscriptionSample.js][availabilitysetslistbysubscriptionsample] | Lists all availability sets in a subscription. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySet_ListBySubscription.json | -| [availabilitySetsListSample.js][availabilitysetslistsample] | Lists all availability sets in a resource group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_List_MaximumSet_Gen.json | -| [availabilitySetsUpdateSample.js][availabilitysetsupdatesample] | Update an availability set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_Update_MaximumSet_Gen.json | -| [capacityReservationGroupsCreateOrUpdateSample.js][capacityreservationgroupscreateorupdatesample] | The operation to create or update a capacity reservation group. When updating a capacity reservation group, only tags may be modified. Please refer to https://aka.ms/CapacityReservation for more details. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservationGroup_CreateOrUpdate.json | -| [capacityReservationGroupsDeleteSample.js][capacityreservationgroupsdeletesample] | The operation to delete a capacity reservation group. This operation is allowed only if all the associated resources are disassociated from the reservation group and all capacity reservations under the reservation group have also been deleted. Please refer to https://aka.ms/CapacityReservation for more details. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservationGroup_Delete_MaximumSet_Gen.json | -| [capacityReservationGroupsGetSample.js][capacityreservationgroupsgetsample] | The operation that retrieves information about a capacity reservation group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservationGroup_Get.json | -| [capacityReservationGroupsListByResourceGroupSample.js][capacityreservationgroupslistbyresourcegroupsample] | Lists all of the capacity reservation groups in the specified resource group. Use the nextLink property in the response to get the next page of capacity reservation groups. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservationGroup_ListByResourceGroup.json | -| [capacityReservationGroupsListBySubscriptionSample.js][capacityreservationgroupslistbysubscriptionsample] | Lists all of the capacity reservation groups in the subscription. Use the nextLink property in the response to get the next page of capacity reservation groups. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservationGroup_ListBySubscription.json | -| [capacityReservationGroupsUpdateSample.js][capacityreservationgroupsupdatesample] | The operation to update a capacity reservation group. When updating a capacity reservation group, only tags may be modified. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservationGroup_Update_MaximumSet_Gen.json | -| [capacityReservationsCreateOrUpdateSample.js][capacityreservationscreateorupdatesample] | The operation to create or update a capacity reservation. Please note some properties can be set only during capacity reservation creation. Please refer to https://aka.ms/CapacityReservation for more details. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservation_CreateOrUpdate.json | -| [capacityReservationsDeleteSample.js][capacityreservationsdeletesample] | The operation to delete a capacity reservation. This operation is allowed only when all the associated resources are disassociated from the capacity reservation. Please refer to https://aka.ms/CapacityReservation for more details. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservation_Delete_MaximumSet_Gen.json | -| [capacityReservationsGetSample.js][capacityreservationsgetsample] | The operation that retrieves information about the capacity reservation. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservation_Get.json | -| [capacityReservationsListByCapacityReservationGroupSample.js][capacityreservationslistbycapacityreservationgroupsample] | Lists all of the capacity reservations in the specified capacity reservation group. Use the nextLink property in the response to get the next page of capacity reservations. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservation_ListByReservationGroup.json | -| [capacityReservationsUpdateSample.js][capacityreservationsupdatesample] | The operation to update a capacity reservation. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservation_Update_MaximumSet_Gen.json | +| [availabilitySetsCreateOrUpdateSample.js][availabilitysetscreateorupdatesample] | Create or update an availability set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_Create.json | +| [availabilitySetsDeleteSample.js][availabilitysetsdeletesample] | Delete an availability set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_Delete_MaximumSet_Gen.json | +| [availabilitySetsGetSample.js][availabilitysetsgetsample] | Retrieves information about an availability set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_Get_MaximumSet_Gen.json | +| [availabilitySetsListAvailableSizesSample.js][availabilitysetslistavailablesizessample] | Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_ListAvailableSizes_MaximumSet_Gen.json | +| [availabilitySetsListBySubscriptionSample.js][availabilitysetslistbysubscriptionsample] | Lists all availability sets in a subscription. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_ListBySubscription.json | +| [availabilitySetsListSample.js][availabilitysetslistsample] | Lists all availability sets in a resource group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_List_MaximumSet_Gen.json | +| [availabilitySetsUpdateSample.js][availabilitysetsupdatesample] | Update an availability set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_Update_MaximumSet_Gen.json | +| [capacityReservationGroupsCreateOrUpdateSample.js][capacityreservationgroupscreateorupdatesample] | The operation to create or update a capacity reservation group. When updating a capacity reservation group, only tags may be modified. Please refer to https://aka.ms/CapacityReservation for more details. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservationGroup_CreateOrUpdate.json | +| [capacityReservationGroupsDeleteSample.js][capacityreservationgroupsdeletesample] | The operation to delete a capacity reservation group. This operation is allowed only if all the associated resources are disassociated from the reservation group and all capacity reservations under the reservation group have also been deleted. Please refer to https://aka.ms/CapacityReservation for more details. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservationGroup_Delete_MaximumSet_Gen.json | +| [capacityReservationGroupsGetSample.js][capacityreservationgroupsgetsample] | The operation that retrieves information about a capacity reservation group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservationGroup_Get.json | +| [capacityReservationGroupsListByResourceGroupSample.js][capacityreservationgroupslistbyresourcegroupsample] | Lists all of the capacity reservation groups in the specified resource group. Use the nextLink property in the response to get the next page of capacity reservation groups. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservationGroup_ListByResourceGroup.json | +| [capacityReservationGroupsListBySubscriptionSample.js][capacityreservationgroupslistbysubscriptionsample] | Lists all of the capacity reservation groups in the subscription. Use the nextLink property in the response to get the next page of capacity reservation groups. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservationGroup_ListBySubscription.json | +| [capacityReservationGroupsUpdateSample.js][capacityreservationgroupsupdatesample] | The operation to update a capacity reservation group. When updating a capacity reservation group, only tags may be modified. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservationGroup_Update_MaximumSet_Gen.json | +| [capacityReservationsCreateOrUpdateSample.js][capacityreservationscreateorupdatesample] | The operation to create or update a capacity reservation. Please note some properties can be set only during capacity reservation creation. Please refer to https://aka.ms/CapacityReservation for more details. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservation_CreateOrUpdate.json | +| [capacityReservationsDeleteSample.js][capacityreservationsdeletesample] | The operation to delete a capacity reservation. This operation is allowed only when all the associated resources are disassociated from the capacity reservation. Please refer to https://aka.ms/CapacityReservation for more details. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservation_Delete_MaximumSet_Gen.json | +| [capacityReservationsGetSample.js][capacityreservationsgetsample] | The operation that retrieves information about the capacity reservation. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservation_Get.json | +| [capacityReservationsListByCapacityReservationGroupSample.js][capacityreservationslistbycapacityreservationgroupsample] | Lists all of the capacity reservations in the specified capacity reservation group. Use the nextLink property in the response to get the next page of capacity reservations. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservation_ListByReservationGroup.json | +| [capacityReservationsUpdateSample.js][capacityreservationsupdatesample] | The operation to update a capacity reservation. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservation_Update_MaximumSet_Gen.json | | [cloudServiceOperatingSystemsGetOSFamilySample.js][cloudserviceoperatingsystemsgetosfamilysample] | Gets properties of a guest operating system family that can be specified in the XML service configuration (.cscfg) for a cloud service. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/CloudserviceRP/stable/2022-09-04/examples/CloudServiceOSFamily_Get.json | | [cloudServiceOperatingSystemsGetOSVersionSample.js][cloudserviceoperatingsystemsgetosversionsample] | Gets properties of a guest operating system version that can be specified in the XML service configuration (.cscfg) for a cloud service. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/CloudserviceRP/stable/2022-09-04/examples/CloudServiceOSVersion_Get.json | | [cloudServiceOperatingSystemsListOSFamiliesSample.js][cloudserviceoperatingsystemslistosfamiliessample] | Gets a list of all guest operating system families available to be specified in the XML service configuration (.cscfg) for a cloud service. Use nextLink property in the response to get the next page of OS Families. Do this till nextLink is null to fetch all the OS Families. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/CloudserviceRP/stable/2022-09-04/examples/CloudServiceOSFamilies_List.json | @@ -57,18 +57,19 @@ These sample programs show how to use the JavaScript client libraries for in som | [communityGalleryImageVersionsListSample.js][communitygalleryimageversionslistsample] | List community gallery image versions inside an image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-03-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_List.json | | [communityGalleryImagesGetSample.js][communitygalleryimagesgetsample] | Get a community gallery image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-03-03/examples/communityGalleryExamples/CommunityGalleryImage_Get.json | | [communityGalleryImagesListSample.js][communitygalleryimageslistsample] | List community gallery images inside a gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-03-03/examples/communityGalleryExamples/CommunityGalleryImage_List.json | -| [dedicatedHostGroupsCreateOrUpdateSample.js][dedicatedhostgroupscreateorupdatesample] | Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups please see [Dedicated Host Documentation] (https://go.microsoft.com/fwlink/?linkid=2082596) x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroup_CreateOrUpdate_WithUltraSSD.json | -| [dedicatedHostGroupsDeleteSample.js][dedicatedhostgroupsdeletesample] | Delete a dedicated host group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroups_Delete_MaximumSet_Gen.json | -| [dedicatedHostGroupsGetSample.js][dedicatedhostgroupsgetsample] | Retrieves information about a dedicated host group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroup_Get.json | -| [dedicatedHostGroupsListByResourceGroupSample.js][dedicatedhostgroupslistbyresourcegroupsample] | Lists all of the dedicated host groups in the specified resource group. Use the nextLink property in the response to get the next page of dedicated host groups. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroups_ListByResourceGroup_MaximumSet_Gen.json | -| [dedicatedHostGroupsListBySubscriptionSample.js][dedicatedhostgroupslistbysubscriptionsample] | Lists all of the dedicated host groups in the subscription. Use the nextLink property in the response to get the next page of dedicated host groups. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroups_ListBySubscription_MaximumSet_Gen.json | -| [dedicatedHostGroupsUpdateSample.js][dedicatedhostgroupsupdatesample] | Update an dedicated host group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroups_Update_MaximumSet_Gen.json | -| [dedicatedHostsCreateOrUpdateSample.js][dedicatedhostscreateorupdatesample] | Create or update a dedicated host . x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHost_CreateOrUpdate.json | -| [dedicatedHostsDeleteSample.js][dedicatedhostsdeletesample] | Delete a dedicated host. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHosts_Delete_MaximumSet_Gen.json | -| [dedicatedHostsGetSample.js][dedicatedhostsgetsample] | Retrieves information about a dedicated host. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHost_Get.json | -| [dedicatedHostsListByHostGroupSample.js][dedicatedhostslistbyhostgroupsample] | Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink property in the response to get the next page of dedicated hosts. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHosts_ListByHostGroup_MaximumSet_Gen.json | -| [dedicatedHostsRestartSample.js][dedicatedhostsrestartsample] | Restart the dedicated host. The operation will complete successfully once the dedicated host has restarted and is running. To determine the health of VMs deployed on the dedicated host after the restart check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/azure/service-health/resource-health-overview for more details. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHost_Restart.json | -| [dedicatedHostsUpdateSample.js][dedicatedhostsupdatesample] | Update an dedicated host . x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHosts_Update_MaximumSet_Gen.json | +| [dedicatedHostGroupsCreateOrUpdateSample.js][dedicatedhostgroupscreateorupdatesample] | Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups please see [Dedicated Host Documentation] (https://go.microsoft.com/fwlink/?linkid=2082596) x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_CreateOrUpdate_WithUltraSSD.json | +| [dedicatedHostGroupsDeleteSample.js][dedicatedhostgroupsdeletesample] | Delete a dedicated host group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_Delete_MaximumSet_Gen.json | +| [dedicatedHostGroupsGetSample.js][dedicatedhostgroupsgetsample] | Retrieves information about a dedicated host group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_Get.json | +| [dedicatedHostGroupsListByResourceGroupSample.js][dedicatedhostgroupslistbyresourcegroupsample] | Lists all of the dedicated host groups in the specified resource group. Use the nextLink property in the response to get the next page of dedicated host groups. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_ListByResourceGroup_MaximumSet_Gen.json | +| [dedicatedHostGroupsListBySubscriptionSample.js][dedicatedhostgroupslistbysubscriptionsample] | Lists all of the dedicated host groups in the subscription. Use the nextLink property in the response to get the next page of dedicated host groups. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_ListBySubscription_MaximumSet_Gen.json | +| [dedicatedHostGroupsUpdateSample.js][dedicatedhostgroupsupdatesample] | Update an dedicated host group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_Update_MaximumSet_Gen.json | +| [dedicatedHostsCreateOrUpdateSample.js][dedicatedhostscreateorupdatesample] | Create or update a dedicated host . x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_CreateOrUpdate.json | +| [dedicatedHostsDeleteSample.js][dedicatedhostsdeletesample] | Delete a dedicated host. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_Delete_MaximumSet_Gen.json | +| [dedicatedHostsGetSample.js][dedicatedhostsgetsample] | Retrieves information about a dedicated host. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_Get.json | +| [dedicatedHostsListAvailableSizesSample.js][dedicatedhostslistavailablesizessample] | Lists all available dedicated host sizes to which the specified dedicated host can be resized. NOTE: The dedicated host sizes provided can be used to only scale up the existing dedicated host. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_ListAvailableSizes.json | +| [dedicatedHostsListByHostGroupSample.js][dedicatedhostslistbyhostgroupsample] | Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink property in the response to get the next page of dedicated hosts. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_ListByHostGroup_MaximumSet_Gen.json | +| [dedicatedHostsRestartSample.js][dedicatedhostsrestartsample] | Restart the dedicated host. The operation will complete successfully once the dedicated host has restarted and is running. To determine the health of VMs deployed on the dedicated host after the restart check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/azure/service-health/resource-health-overview for more details. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_Restart.json | +| [dedicatedHostsUpdateSample.js][dedicatedhostsupdatesample] | Update a dedicated host . x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_Update_MaximumSet_Gen.json | | [diskAccessesCreateOrUpdateSample.js][diskaccessescreateorupdatesample] | Creates or updates a disk access resource x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/DiskRP/stable/2022-07-02/examples/diskAccessExamples/DiskAccess_Create.json | | [diskAccessesDeleteAPrivateEndpointConnectionSample.js][diskaccessesdeleteaprivateendpointconnectionsample] | Deletes a private endpoint connection under a disk access resource. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/DiskRP/stable/2022-07-02/examples/diskAccessExamples/DiskAccessPrivateEndpointConnection_Delete.json | | [diskAccessesDeleteSample.js][diskaccessesdeletesample] | Deletes a disk access resource. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/DiskRP/stable/2022-07-02/examples/diskAccessExamples/DiskAccess_Delete.json | @@ -126,31 +127,31 @@ These sample programs show how to use the JavaScript client libraries for in som | [galleryImagesListByGallerySample.js][galleryimageslistbygallerysample] | List gallery image definitions in a gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImage_ListByGallery.json | | [galleryImagesUpdateSample.js][galleryimagesupdatesample] | Update a gallery image definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImage_Update.json | | [gallerySharingProfileUpdateSample.js][gallerysharingprofileupdatesample] | Update sharing profile of a gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-03-03/examples/galleryExamples/Gallery_AddToSharingProfile.json | -| [imagesCreateOrUpdateSample.js][imagescreateorupdatesample] | Create or update an image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_CreateFromABlobWithDiskEncryptionSet.json | -| [imagesDeleteSample.js][imagesdeletesample] | Deletes an Image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Images_Delete_MaximumSet_Gen.json | -| [imagesGetSample.js][imagesgetsample] | Gets an image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_Get.json | -| [imagesListByResourceGroupSample.js][imageslistbyresourcegroupsample] | Gets the list of images under a resource group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_ListByResourceGroup.json | -| [imagesListSample.js][imageslistsample] | Gets the list of Images in the subscription. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_ListBySubscription.json | -| [imagesUpdateSample.js][imagesupdatesample] | Update an image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_Update.json | -| [logAnalyticsExportRequestRateByIntervalSample.js][loganalyticsexportrequestratebyintervalsample] | Export logs that show Api requests made by this subscription in the given time window to show throttling activities. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/logAnalyticExamples/LogAnalytics_RequestRateByInterval.json | -| [logAnalyticsExportThrottledRequestsSample.js][loganalyticsexportthrottledrequestssample] | Export logs that show total throttled Api requests for this subscription in the given time window. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/logAnalyticExamples/LogAnalytics_ThrottledRequests.json | -| [operationsListSample.js][operationslistsample] | Gets a list of compute operations. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/computeRPCommonExamples/Operations_List_MaximumSet_Gen.json | -| [proximityPlacementGroupsCreateOrUpdateSample.js][proximityplacementgroupscreateorupdatesample] | Create or update a proximity placement group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_CreateOrUpdate.json | -| [proximityPlacementGroupsDeleteSample.js][proximityplacementgroupsdeletesample] | Delete a proximity placement group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_Delete.json | -| [proximityPlacementGroupsGetSample.js][proximityplacementgroupsgetsample] | Retrieves information about a proximity placement group . x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_Get.json | -| [proximityPlacementGroupsListByResourceGroupSample.js][proximityplacementgroupslistbyresourcegroupsample] | Lists all proximity placement groups in a resource group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_ListByResourceGroup.json | -| [proximityPlacementGroupsListBySubscriptionSample.js][proximityplacementgroupslistbysubscriptionsample] | Lists all proximity placement groups in a subscription. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_ListBySubscription.json | -| [proximityPlacementGroupsUpdateSample.js][proximityplacementgroupsupdatesample] | Update a proximity placement group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_Patch.json | +| [imagesCreateOrUpdateSample.js][imagescreateorupdatesample] | Create or update an image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_CreateFromABlobWithDiskEncryptionSet.json | +| [imagesDeleteSample.js][imagesdeletesample] | Deletes an Image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Images_Delete_MaximumSet_Gen.json | +| [imagesGetSample.js][imagesgetsample] | Gets an image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_Get.json | +| [imagesListByResourceGroupSample.js][imageslistbyresourcegroupsample] | Gets the list of images under a resource group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_ListByResourceGroup.json | +| [imagesListSample.js][imageslistsample] | Gets the list of Images in the subscription. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_ListBySubscription.json | +| [imagesUpdateSample.js][imagesupdatesample] | Update an image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_Update.json | +| [logAnalyticsExportRequestRateByIntervalSample.js][loganalyticsexportrequestratebyintervalsample] | Export logs that show Api requests made by this subscription in the given time window to show throttling activities. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/logAnalyticExamples/LogAnalytics_RequestRateByInterval.json | +| [logAnalyticsExportThrottledRequestsSample.js][loganalyticsexportthrottledrequestssample] | Export logs that show total throttled Api requests for this subscription in the given time window. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/logAnalyticExamples/LogAnalytics_ThrottledRequests.json | +| [operationsListSample.js][operationslistsample] | Gets a list of compute operations. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/computeRPCommonExamples/Operations_List_MaximumSet_Gen.json | +| [proximityPlacementGroupsCreateOrUpdateSample.js][proximityplacementgroupscreateorupdatesample] | Create or update a proximity placement group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_CreateOrUpdate.json | +| [proximityPlacementGroupsDeleteSample.js][proximityplacementgroupsdeletesample] | Delete a proximity placement group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_Delete.json | +| [proximityPlacementGroupsGetSample.js][proximityplacementgroupsgetsample] | Retrieves information about a proximity placement group . x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_Get.json | +| [proximityPlacementGroupsListByResourceGroupSample.js][proximityplacementgroupslistbyresourcegroupsample] | Lists all proximity placement groups in a resource group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_ListByResourceGroup.json | +| [proximityPlacementGroupsListBySubscriptionSample.js][proximityplacementgroupslistbysubscriptionsample] | Lists all proximity placement groups in a subscription. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_ListBySubscription.json | +| [proximityPlacementGroupsUpdateSample.js][proximityplacementgroupsupdatesample] | Update a proximity placement group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_Patch.json | | [resourceSkusListSample.js][resourceskuslistsample] | Gets the list of Microsoft.Compute SKUs available for your Subscription. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/Skus/stable/2021-07-01/examples/skus/ListAvailableResourceSkus.json | -| [restorePointCollectionsCreateOrUpdateSample.js][restorepointcollectionscreateorupdatesample] | The operation to create or update the restore point collection. Please refer to https://aka.ms/RestorePoints for more details. When updating a restore point collection, only tags may be modified. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollection_CreateOrUpdate_ForCrossRegionCopy.json | -| [restorePointCollectionsDeleteSample.js][restorepointcollectionsdeletesample] | The operation to delete the restore point collection. This operation will also delete all the contained restore points. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollections_Delete_MaximumSet_Gen.json | -| [restorePointCollectionsGetSample.js][restorepointcollectionsgetsample] | The operation to get the restore point collection. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollection_Get.json | -| [restorePointCollectionsListAllSample.js][restorepointcollectionslistallsample] | Gets the list of restore point collections in the subscription. Use nextLink property in the response to get the next page of restore point collections. Do this till nextLink is not null to fetch all the restore point collections. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollection_ListBySubscription.json | -| [restorePointCollectionsListSample.js][restorepointcollectionslistsample] | Gets the list of restore point collections in a resource group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollection_ListByResourceGroup.json | -| [restorePointCollectionsUpdateSample.js][restorepointcollectionsupdatesample] | The operation to update the restore point collection. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollections_Update_MaximumSet_Gen.json | -| [restorePointsCreateSample.js][restorepointscreatesample] | The operation to create the restore point. Updating properties of an existing restore point is not allowed x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePoint_Copy_BetweenRegions.json | -| [restorePointsDeleteSample.js][restorepointsdeletesample] | The operation to delete the restore point. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePoints_Delete_MaximumSet_Gen.json | -| [restorePointsGetSample.js][restorepointsgetsample] | The operation to get the restore point. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePoint_Get.json | +| [restorePointCollectionsCreateOrUpdateSample.js][restorepointcollectionscreateorupdatesample] | The operation to create or update the restore point collection. Please refer to https://aka.ms/RestorePoints for more details. When updating a restore point collection, only tags may be modified. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePointCollection_CreateOrUpdate_ForCrossRegionCopy.json | +| [restorePointCollectionsDeleteSample.js][restorepointcollectionsdeletesample] | The operation to delete the restore point collection. This operation will also delete all the contained restore points. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePointCollection_Delete_MaximumSet_Gen.json | +| [restorePointCollectionsGetSample.js][restorepointcollectionsgetsample] | The operation to get the restore point collection. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePointCollection_Get.json | +| [restorePointCollectionsListAllSample.js][restorepointcollectionslistallsample] | Gets the list of restore point collections in the subscription. Use nextLink property in the response to get the next page of restore point collections. Do this till nextLink is not null to fetch all the restore point collections. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePointCollection_ListBySubscription.json | +| [restorePointCollectionsListSample.js][restorepointcollectionslistsample] | Gets the list of restore point collections in a resource group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePointCollection_ListByResourceGroup.json | +| [restorePointCollectionsUpdateSample.js][restorepointcollectionsupdatesample] | The operation to update the restore point collection. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePointCollection_Update_MaximumSet_Gen.json | +| [restorePointsCreateSample.js][restorepointscreatesample] | The operation to create the restore point. Updating properties of an existing restore point is not allowed x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePoint_Copy_BetweenRegions.json | +| [restorePointsDeleteSample.js][restorepointsdeletesample] | The operation to delete the restore point. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePoint_Delete_MaximumSet_Gen.json | +| [restorePointsGetSample.js][restorepointsgetsample] | The operation to get the restore point. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePoint_Get.json | | [sharedGalleriesGetSample.js][sharedgalleriesgetsample] | Get a shared gallery by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-03-03/examples/sharedGalleryExamples/SharedGallery_Get.json | | [sharedGalleriesListSample.js][sharedgallerieslistsample] | List shared galleries by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-03-03/examples/sharedGalleryExamples/SharedGallery_List.json | | [sharedGalleryImageVersionsGetSample.js][sharedgalleryimageversionsgetsample] | Get a shared gallery image version by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-03-03/examples/sharedGalleryExamples/SharedGalleryImageVersion_Get.json | @@ -165,124 +166,125 @@ These sample programs show how to use the JavaScript client libraries for in som | [snapshotsListSample.js][snapshotslistsample] | Lists snapshots under a subscription. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/DiskRP/stable/2022-07-02/examples/snapshotExamples/Snapshot_ListBySubscription.json | | [snapshotsRevokeAccessSample.js][snapshotsrevokeaccesssample] | Revokes access to a snapshot. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/DiskRP/stable/2022-07-02/examples/snapshotExamples/Snapshot_EndGetAccess.json | | [snapshotsUpdateSample.js][snapshotsupdatesample] | Updates (patches) a snapshot. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/DiskRP/stable/2022-07-02/examples/snapshotExamples/Snapshot_Update_WithAcceleratedNetwork.json | -| [sshPublicKeysCreateSample.js][sshpublickeyscreatesample] | Creates a new SSH public key resource. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKey_Create.json | -| [sshPublicKeysDeleteSample.js][sshpublickeysdeletesample] | Delete an SSH public key. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKeys_Delete_MaximumSet_Gen.json | -| [sshPublicKeysGenerateKeyPairSample.js][sshpublickeysgeneratekeypairsample] | Generates and returns a public/private key pair and populates the SSH public key resource with the public key. The length of the key will be 3072 bits. This operation can only be performed once per SSH public key resource. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKeys_GenerateKeyPair.json | -| [sshPublicKeysGetSample.js][sshpublickeysgetsample] | Retrieves information about an SSH public key. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKey_Get.json | -| [sshPublicKeysListByResourceGroupSample.js][sshpublickeyslistbyresourcegroupsample] | Lists all of the SSH public keys in the specified resource group. Use the nextLink property in the response to get the next page of SSH public keys. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKeys_ListByResourceGroup_MaximumSet_Gen.json | -| [sshPublicKeysListBySubscriptionSample.js][sshpublickeyslistbysubscriptionsample] | Lists all of the SSH public keys in the subscription. Use the nextLink property in the response to get the next page of SSH public keys. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKeys_ListBySubscription_MaximumSet_Gen.json | -| [sshPublicKeysUpdateSample.js][sshpublickeysupdatesample] | Updates a new SSH public key resource. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKeys_Update_MaximumSet_Gen.json | -| [usageListSample.js][usagelistsample] | Gets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/computeRPCommonExamples/Usage_List_MaximumSet_Gen.json | -| [virtualMachineExtensionImagesGetSample.js][virtualmachineextensionimagesgetsample] | Gets a virtual machine extension image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_Get_MaximumSet_Gen.json | -| [virtualMachineExtensionImagesListTypesSample.js][virtualmachineextensionimageslisttypessample] | Gets a list of virtual machine extension image types. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListTypes_MaximumSet_Gen.json | -| [virtualMachineExtensionImagesListVersionsSample.js][virtualmachineextensionimageslistversionssample] | Gets a list of virtual machine extension image versions. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListVersions_MaximumSet_Gen.json | -| [virtualMachineExtensionsCreateOrUpdateSample.js][virtualmachineextensionscreateorupdatesample] | The operation to create or update the extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_CreateOrUpdate_MaximumSet_Gen.json | -| [virtualMachineExtensionsDeleteSample.js][virtualmachineextensionsdeletesample] | The operation to delete the extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_Delete_MaximumSet_Gen.json | -| [virtualMachineExtensionsGetSample.js][virtualmachineextensionsgetsample] | The operation to get the extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_Get_MaximumSet_Gen.json | -| [virtualMachineExtensionsListSample.js][virtualmachineextensionslistsample] | The operation to get all extensions of a Virtual Machine. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_List_MaximumSet_Gen.json | -| [virtualMachineExtensionsUpdateSample.js][virtualmachineextensionsupdatesample] | The operation to update the extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_Update.json | -| [virtualMachineImagesEdgeZoneGetSample.js][virtualmachineimagesedgezonegetsample] | Gets a virtual machine image in an edge zone. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_Get_MaximumSet_Gen.json | -| [virtualMachineImagesEdgeZoneListOffersSample.js][virtualmachineimagesedgezonelistofferssample] | Gets a list of virtual machine image offers for the specified location, edge zone and publisher. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListOffers_MaximumSet_Gen.json | -| [virtualMachineImagesEdgeZoneListPublishersSample.js][virtualmachineimagesedgezonelistpublisherssample] | Gets a list of virtual machine image publishers for the specified Azure location and edge zone. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListPublishers_MaximumSet_Gen.json | -| [virtualMachineImagesEdgeZoneListSample.js][virtualmachineimagesedgezonelistsample] | Gets a list of all virtual machine image versions for the specified location, edge zone, publisher, offer, and SKU. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_List_MaximumSet_Gen.json | -| [virtualMachineImagesEdgeZoneListSkusSample.js][virtualmachineimagesedgezonelistskussample] | Gets a list of virtual machine image SKUs for the specified location, edge zone, publisher, and offer. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListSkus_MaximumSet_Gen.json | -| [virtualMachineImagesGetSample.js][virtualmachineimagesgetsample] | Gets a virtual machine image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_Get_MaximumSet_Gen.json | -| [virtualMachineImagesListByEdgeZoneSample.js][virtualmachineimageslistbyedgezonesample] | Gets a list of all virtual machine image versions for the specified edge zone x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListByEdgeZone_MaximumSet_Gen.json | -| [virtualMachineImagesListOffersSample.js][virtualmachineimageslistofferssample] | Gets a list of virtual machine image offers for the specified location and publisher. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_ListOffers_MaximumSet_Gen.json | -| [virtualMachineImagesListPublishersSample.js][virtualmachineimageslistpublisherssample] | Gets a list of virtual machine image publishers for the specified Azure location. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_ListPublishers_MaximumSet_Gen.json | -| [virtualMachineImagesListSample.js][virtualmachineimageslistsample] | Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_List_MaximumSet_Gen.json | -| [virtualMachineImagesListSkusSample.js][virtualmachineimageslistskussample] | Gets a list of virtual machine image SKUs for the specified location, publisher, and offer. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_ListSkus_MaximumSet_Gen.json | -| [virtualMachineRunCommandsCreateOrUpdateSample.js][virtualmachineruncommandscreateorupdatesample] | The operation to create or update the run command. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineRunCommand_CreateOrUpdate.json | -| [virtualMachineRunCommandsDeleteSample.js][virtualmachineruncommandsdeletesample] | The operation to delete the run command. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineRunCommand_Delete.json | -| [virtualMachineRunCommandsGetByVirtualMachineSample.js][virtualmachineruncommandsgetbyvirtualmachinesample] | The operation to get the run command. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineRunCommand_Get.json | -| [virtualMachineRunCommandsGetSample.js][virtualmachineruncommandsgetsample] | Gets specific run command for a subscription in a location. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/RunCommand_Get.json | -| [virtualMachineRunCommandsListByVirtualMachineSample.js][virtualmachineruncommandslistbyvirtualmachinesample] | The operation to get all run commands of a Virtual Machine. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineRunCommand_List.json | -| [virtualMachineRunCommandsListSample.js][virtualmachineruncommandslistsample] | Lists all available run commands for a subscription in a location. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/RunCommand_List.json | -| [virtualMachineRunCommandsUpdateSample.js][virtualmachineruncommandsupdatesample] | The operation to update the run command. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineRunCommand_Update.json | -| [virtualMachineScaleSetExtensionsCreateOrUpdateSample.js][virtualmachinescalesetextensionscreateorupdatesample] | The operation to create or update an extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_CreateOrUpdate_MaximumSet_Gen.json | -| [virtualMachineScaleSetExtensionsDeleteSample.js][virtualmachinescalesetextensionsdeletesample] | The operation to delete the extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_Delete_MaximumSet_Gen.json | -| [virtualMachineScaleSetExtensionsGetSample.js][virtualmachinescalesetextensionsgetsample] | The operation to get the extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_Get_MaximumSet_Gen.json | -| [virtualMachineScaleSetExtensionsListSample.js][virtualmachinescalesetextensionslistsample] | Gets a list of all extensions in a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_List_MaximumSet_Gen.json | -| [virtualMachineScaleSetExtensionsUpdateSample.js][virtualmachinescalesetextensionsupdatesample] | The operation to update an extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_Update_MaximumSet_Gen.json | -| [virtualMachineScaleSetRollingUpgradesCancelSample.js][virtualmachinescalesetrollingupgradescancelsample] | Cancels the current virtual machine scale set rolling upgrade. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrades_Cancel_MaximumSet_Gen.json | -| [virtualMachineScaleSetRollingUpgradesGetLatestSample.js][virtualmachinescalesetrollingupgradesgetlatestsample] | Gets the status of the latest virtual machine scale set rolling upgrade. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrades_GetLatest_MaximumSet_Gen.json | -| [virtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSample.js][virtualmachinescalesetrollingupgradesstartextensionupgradesample] | Starts a rolling upgrade to move all extensions for all virtual machine scale set instances to the latest available extension version. Instances which are already running the latest extension versions are not affected. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_RollingUpgrade.json | -| [virtualMachineScaleSetRollingUpgradesStartOSUpgradeSample.js][virtualmachinescalesetrollingupgradesstartosupgradesample] | Starts a rolling upgrade to move all virtual machine scale set instances to the latest available Platform Image OS version. Instances which are already running the latest available OS version are not affected. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrades_StartOSUpgrade_MaximumSet_Gen.json | -| [virtualMachineScaleSetVMExtensionsCreateOrUpdateSample.js][virtualmachinescalesetvmextensionscreateorupdatesample] | The operation to create or update the VMSS VM extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtensions_Create.json | -| [virtualMachineScaleSetVMExtensionsDeleteSample.js][virtualmachinescalesetvmextensionsdeletesample] | The operation to delete the VMSS VM extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtensions_Delete.json | -| [virtualMachineScaleSetVMExtensionsGetSample.js][virtualmachinescalesetvmextensionsgetsample] | The operation to get the VMSS VM extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtensions_Get.json | -| [virtualMachineScaleSetVMExtensionsListSample.js][virtualmachinescalesetvmextensionslistsample] | The operation to get all extensions of an instance in Virtual Machine Scaleset. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtensions_List.json | -| [virtualMachineScaleSetVMExtensionsUpdateSample.js][virtualmachinescalesetvmextensionsupdatesample] | The operation to update the VMSS VM extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtensions_Update.json | -| [virtualMachineScaleSetVMRunCommandsCreateOrUpdateSample.js][virtualmachinescalesetvmruncommandscreateorupdatesample] | The operation to create or update the VMSS VM run command. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_CreateOrUpdate.json | -| [virtualMachineScaleSetVMRunCommandsDeleteSample.js][virtualmachinescalesetvmruncommandsdeletesample] | The operation to delete the VMSS VM run command. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Delete.json | -| [virtualMachineScaleSetVMRunCommandsGetSample.js][virtualmachinescalesetvmruncommandsgetsample] | The operation to get the VMSS VM run command. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Get.json | -| [virtualMachineScaleSetVMRunCommandsListSample.js][virtualmachinescalesetvmruncommandslistsample] | The operation to get all run commands of an instance in Virtual Machine Scaleset. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_List.json | -| [virtualMachineScaleSetVMRunCommandsUpdateSample.js][virtualmachinescalesetvmruncommandsupdatesample] | The operation to update the VMSS VM run command. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Update.json | -| [virtualMachineScaleSetVMSDeallocateSample.js][virtualmachinescalesetvmsdeallocatesample] | Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the compute resources it uses. You are not billed for the compute resources of this virtual machine once it is deallocated. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Deallocate_MaximumSet_Gen.json | -| [virtualMachineScaleSetVMSDeleteSample.js][virtualmachinescalesetvmsdeletesample] | Deletes a virtual machine from a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Delete_Force.json | -| [virtualMachineScaleSetVMSGetInstanceViewSample.js][virtualmachinescalesetvmsgetinstanceviewsample] | Gets the status of a virtual machine from a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_InstanceViewAutoPlacedOnDedicatedHostGroup.json | -| [virtualMachineScaleSetVMSGetSample.js][virtualmachinescalesetvmsgetsample] | Gets a virtual machine from a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithUserData.json | -| [virtualMachineScaleSetVMSListSample.js][virtualmachinescalesetvmslistsample] | Gets a list of all virtual machines in a VM scale sets. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_List_MaximumSet_Gen.json | -| [virtualMachineScaleSetVMSPerformMaintenanceSample.js][virtualmachinescalesetvmsperformmaintenancesample] | Performs maintenance on a virtual machine in a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_PerformMaintenance_MaximumSet_Gen.json | -| [virtualMachineScaleSetVMSPowerOffSample.js][virtualmachinescalesetvmspoweroffsample] | Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_PowerOff_MaximumSet_Gen.json | -| [virtualMachineScaleSetVMSRedeploySample.js][virtualmachinescalesetvmsredeploysample] | Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Redeploy_MaximumSet_Gen.json | -| [virtualMachineScaleSetVMSReimageAllSample.js][virtualmachinescalesetvmsreimageallsample] | Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This operation is only supported for managed disks. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_ReimageAll_MaximumSet_Gen.json | -| [virtualMachineScaleSetVMSReimageSample.js][virtualmachinescalesetvmsreimagesample] | Reimages (upgrade the operating system) a specific virtual machine in a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Reimage_MaximumSet_Gen.json | -| [virtualMachineScaleSetVMSRestartSample.js][virtualmachinescalesetvmsrestartsample] | Restarts a virtual machine in a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Restart_MaximumSet_Gen.json | -| [virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.js][virtualmachinescalesetvmsretrievebootdiagnosticsdatasample] | The operation to retrieve SAS URIs of boot diagnostic logs for a virtual machine in a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_RetrieveBootDiagnosticsData.json | -| [virtualMachineScaleSetVMSRunCommandSample.js][virtualmachinescalesetvmsruncommandsample] | Run command on a virtual machine in a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand.json | -| [virtualMachineScaleSetVMSSimulateEvictionSample.js][virtualmachinescalesetvmssimulateevictionsample] | The operation to simulate the eviction of spot virtual machine in a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_SimulateEviction.json | -| [virtualMachineScaleSetVMSStartSample.js][virtualmachinescalesetvmsstartsample] | Starts a virtual machine in a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Start_MaximumSet_Gen.json | -| [virtualMachineScaleSetVMSUpdateSample.js][virtualmachinescalesetvmsupdatesample] | Updates a virtual machine of a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Update_MaximumSet_Gen.json | -| [virtualMachineScaleSetsConvertToSinglePlacementGroupSample.js][virtualmachinescalesetsconverttosingleplacementgroupsample] | Converts SinglePlacementGroup property to false for a existing virtual machine scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ConvertToSinglePlacementGroup_MaximumSet_Gen.json | -| [virtualMachineScaleSetsCreateOrUpdateSample.js][virtualmachinescalesetscreateorupdatesample] | Create or update a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithExtensionsSuppressFailuresEnabled.json | -| [virtualMachineScaleSetsDeallocateSample.js][virtualmachinescalesetsdeallocatesample] | Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual machine scale set deallocates. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Deallocate_MaximumSet_Gen.json | -| [virtualMachineScaleSetsDeleteInstancesSample.js][virtualmachinescalesetsdeleteinstancessample] | Deletes virtual machines in a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_DeleteInstances_MaximumSet_Gen.json | -| [virtualMachineScaleSetsDeleteSample.js][virtualmachinescalesetsdeletesample] | Deletes a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Delete_Force.json | -| [virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSample.js][virtualmachinescalesetsforcerecoveryservicefabricplatformupdatedomainwalksample] | Manual platform update domain walk to update virtual machines in a service fabric virtual machine scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ForceRecoveryServiceFabricPlatformUpdateDomainWalk_MaximumSet_Gen.json | -| [virtualMachineScaleSetsGetInstanceViewSample.js][virtualmachinescalesetsgetinstanceviewsample] | Gets the status of a VM scale set instance. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_GetInstanceView_MaximumSet_Gen.json | -| [virtualMachineScaleSetsGetOSUpgradeHistorySample.js][virtualmachinescalesetsgetosupgradehistorysample] | Gets list of OS upgrades on a VM scale set instance. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_GetOSUpgradeHistory_MaximumSet_Gen.json | -| [virtualMachineScaleSetsGetSample.js][virtualmachinescalesetsgetsample] | Display information about a virtual machine scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get_WithDiskControllerType.json | -| [virtualMachineScaleSetsListAllSample.js][virtualmachinescalesetslistallsample] | Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this till nextLink is null to fetch all the VM Scale Sets. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ListAll_MaximumSet_Gen.json | -| [virtualMachineScaleSetsListByLocationSample.js][virtualmachinescalesetslistbylocationsample] | Gets all the VM scale sets under the specified subscription for the specified location. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ListBySubscription_ByLocation.json | -| [virtualMachineScaleSetsListSample.js][virtualmachinescalesetslistsample] | Gets a list of all VM scale sets under a resource group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_List_MaximumSet_Gen.json | -| [virtualMachineScaleSetsListSkusSample.js][virtualmachinescalesetslistskussample] | Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ListSkus_MaximumSet_Gen.json | -| [virtualMachineScaleSetsPerformMaintenanceSample.js][virtualmachinescalesetsperformmaintenancesample] | Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices for more details: https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_PerformMaintenance_MaximumSet_Gen.json | -| [virtualMachineScaleSetsPowerOffSample.js][virtualmachinescalesetspoweroffsample] | Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_PowerOff_MaximumSet_Gen.json | -| [virtualMachineScaleSetsRedeploySample.js][virtualmachinescalesetsredeploysample] | Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and powers them back on. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Redeploy_MaximumSet_Gen.json | -| [virtualMachineScaleSetsReimageAllSample.js][virtualmachinescalesetsreimageallsample] | Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation is only supported for managed disks. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ReimageAll_MaximumSet_Gen.json | -| [virtualMachineScaleSetsReimageSample.js][virtualmachinescalesetsreimagesample] | Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Reimage_MaximumSet_Gen.json | -| [virtualMachineScaleSetsRestartSample.js][virtualmachinescalesetsrestartsample] | Restarts one or more virtual machines in a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Restart_MaximumSet_Gen.json | -| [virtualMachineScaleSetsSetOrchestrationServiceStateSample.js][virtualmachinescalesetssetorchestrationservicestatesample] | Changes ServiceState property for a given service x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_SetOrchestrationServiceState_MaximumSet_Gen.json | -| [virtualMachineScaleSetsStartSample.js][virtualmachinescalesetsstartsample] | Starts one or more virtual machines in a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Start_MaximumSet_Gen.json | -| [virtualMachineScaleSetsUpdateInstancesSample.js][virtualmachinescalesetsupdateinstancessample] | Upgrades one or more virtual machines to the latest SKU set in the VM scale set model. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_UpdateInstances_MaximumSet_Gen.json | -| [virtualMachineScaleSetsUpdateSample.js][virtualmachinescalesetsupdatesample] | Update a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Update_MaximumSet_Gen.json | -| [virtualMachineSizesListSample.js][virtualmachinesizeslistsample] | This API is deprecated. Use [Resources Skus](https://docs.microsoft.com/rest/api/compute/resourceskus/list) x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/computeRPCommonExamples/VirtualMachineSizes_List_MaximumSet_Gen.json | -| [virtualMachinesAssessPatchesSample.js][virtualmachinesassesspatchessample] | Assess patches on the VM. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_AssessPatches.json | -| [virtualMachinesCaptureSample.js][virtualmachinescapturesample] | Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Capture_MaximumSet_Gen.json | -| [virtualMachinesConvertToManagedDisksSample.js][virtualmachinesconverttomanageddiskssample] | Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop-deallocated before invoking this operation. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_ConvertToManagedDisks_MaximumSet_Gen.json | -| [virtualMachinesCreateOrUpdateSample.js][virtualmachinescreateorupdatesample] | The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithPatchSettingAssessmentModeOfImageDefault.json | -| [virtualMachinesDeallocateSample.js][virtualmachinesdeallocatesample] | Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Deallocate_MaximumSet_Gen.json | -| [virtualMachinesDeleteSample.js][virtualmachinesdeletesample] | The operation to delete a virtual machine. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Delete_Force.json | -| [virtualMachinesGeneralizeSample.js][virtualmachinesgeneralizesample] | Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual machine before performing this operation.
For Windows, please refer to [Create a managed image of a generalized VM in Azure](https://docs.microsoft.com/azure/virtual-machines/windows/capture-image-resource).
For Linux, please refer to [How to create an image of a virtual machine or VHD](https://docs.microsoft.com/azure/virtual-machines/linux/capture-image). x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Generalize.json | -| [virtualMachinesGetSample.js][virtualmachinesgetsample] | Retrieves information about the model view or the instance view of a virtual machine. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Get.json | -| [virtualMachinesInstallPatchesSample.js][virtualmachinesinstallpatchessample] | Installs patches on the VM. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_InstallPatches.json | -| [virtualMachinesInstanceViewSample.js][virtualmachinesinstanceviewsample] | Retrieves information about the run-time state of a virtual machine. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Get_InstanceView.json | -| [virtualMachinesListAllSample.js][virtualmachineslistallsample] | Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_ListAll_MaximumSet_Gen.json | -| [virtualMachinesListAvailableSizesSample.js][virtualmachineslistavailablesizessample] | Lists all available virtual machine sizes to which the specified virtual machine can be resized. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_ListAvailableVmSizes.json | -| [virtualMachinesListByLocationSample.js][virtualmachineslistbylocationsample] | Gets all the virtual machines under the specified subscription for the specified location. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_ListBySubscription_ByLocation.json | -| [virtualMachinesListSample.js][virtualmachineslistsample] | Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_List_MaximumSet_Gen.json | -| [virtualMachinesPerformMaintenanceSample.js][virtualmachinesperformmaintenancesample] | The operation to perform maintenance on a virtual machine. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_PerformMaintenance_MaximumSet_Gen.json | -| [virtualMachinesPowerOffSample.js][virtualmachinespoweroffsample] | The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_PowerOff_MaximumSet_Gen.json | -| [virtualMachinesReapplySample.js][virtualmachinesreapplysample] | The operation to reapply a virtual machine's state. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Reapply.json | -| [virtualMachinesRedeploySample.js][virtualmachinesredeploysample] | Shuts down the virtual machine, moves it to a new node, and powers it back on. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Redeploy_MaximumSet_Gen.json | -| [virtualMachinesReimageSample.js][virtualmachinesreimagesample] | Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. NOTE: The retaining of old OS disk depends on the value of deleteOption of OS disk. If deleteOption is detach, the old OS disk will be preserved after reimage. If deleteOption is delete, the old OS disk will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Reimage_NonEphemeralVMs.json | -| [virtualMachinesRestartSample.js][virtualmachinesrestartsample] | The operation to restart a virtual machine. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Restart_MaximumSet_Gen.json | -| [virtualMachinesRetrieveBootDiagnosticsDataSample.js][virtualmachinesretrievebootdiagnosticsdatasample] | The operation to retrieve SAS URIs for a virtual machine's boot diagnostic logs. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_RetrieveBootDiagnosticsData.json | -| [virtualMachinesRunCommandSample.js][virtualmachinesruncommandsample] | Run command on the VM. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineRunCommand.json | -| [virtualMachinesSimulateEvictionSample.js][virtualmachinessimulateevictionsample] | The operation to simulate the eviction of spot virtual machine. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_SimulateEviction.json | -| [virtualMachinesStartSample.js][virtualmachinesstartsample] | The operation to start a virtual machine. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Start_MaximumSet_Gen.json | -| [virtualMachinesUpdateSample.js][virtualmachinesupdatesample] | The operation to update a virtual machine. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Update_DetachDataDiskUsingToBeDetachedProperty.json | +| [sshPublicKeysCreateSample.js][sshpublickeyscreatesample] | Creates a new SSH public key resource. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_Create.json | +| [sshPublicKeysDeleteSample.js][sshpublickeysdeletesample] | Delete an SSH public key. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_Delete_MaximumSet_Gen.json | +| [sshPublicKeysGenerateKeyPairSample.js][sshpublickeysgeneratekeypairsample] | Generates and returns a public/private key pair and populates the SSH public key resource with the public key. The length of the key will be 3072 bits. This operation can only be performed once per SSH public key resource. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_GenerateKeyPair.json | +| [sshPublicKeysGetSample.js][sshpublickeysgetsample] | Retrieves information about an SSH public key. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_Get.json | +| [sshPublicKeysListByResourceGroupSample.js][sshpublickeyslistbyresourcegroupsample] | Lists all of the SSH public keys in the specified resource group. Use the nextLink property in the response to get the next page of SSH public keys. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_ListByResourceGroup_MaximumSet_Gen.json | +| [sshPublicKeysListBySubscriptionSample.js][sshpublickeyslistbysubscriptionsample] | Lists all of the SSH public keys in the subscription. Use the nextLink property in the response to get the next page of SSH public keys. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_ListBySubscription_MaximumSet_Gen.json | +| [sshPublicKeysUpdateSample.js][sshpublickeysupdatesample] | Updates a new SSH public key resource. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_Update_MaximumSet_Gen.json | +| [usageListSample.js][usagelistsample] | Gets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/computeRPCommonExamples/Usage_List_MaximumSet_Gen.json | +| [virtualMachineExtensionImagesGetSample.js][virtualmachineextensionimagesgetsample] | Gets a virtual machine extension image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_Get_MaximumSet_Gen.json | +| [virtualMachineExtensionImagesListTypesSample.js][virtualmachineextensionimageslisttypessample] | Gets a list of virtual machine extension image types. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListTypes_MaximumSet_Gen.json | +| [virtualMachineExtensionImagesListVersionsSample.js][virtualmachineextensionimageslistversionssample] | Gets a list of virtual machine extension image versions. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListVersions_MaximumSet_Gen.json | +| [virtualMachineExtensionsCreateOrUpdateSample.js][virtualmachineextensionscreateorupdatesample] | The operation to create or update the extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachineExtension_CreateOrUpdate_MaximumSet_Gen.json | +| [virtualMachineExtensionsDeleteSample.js][virtualmachineextensionsdeletesample] | The operation to delete the extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachineExtension_Delete_MaximumSet_Gen.json | +| [virtualMachineExtensionsGetSample.js][virtualmachineextensionsgetsample] | The operation to get the extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachineExtension_Get_MaximumSet_Gen.json | +| [virtualMachineExtensionsListSample.js][virtualmachineextensionslistsample] | The operation to get all extensions of a Virtual Machine. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachineExtension_List_MaximumSet_Gen.json | +| [virtualMachineExtensionsUpdateSample.js][virtualmachineextensionsupdatesample] | The operation to update the extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachineExtension_Update.json | +| [virtualMachineImagesEdgeZoneGetSample.js][virtualmachineimagesedgezonegetsample] | Gets a virtual machine image in an edge zone. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_Get_MaximumSet_Gen.json | +| [virtualMachineImagesEdgeZoneListOffersSample.js][virtualmachineimagesedgezonelistofferssample] | Gets a list of virtual machine image offers for the specified location, edge zone and publisher. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListOffers_MaximumSet_Gen.json | +| [virtualMachineImagesEdgeZoneListPublishersSample.js][virtualmachineimagesedgezonelistpublisherssample] | Gets a list of virtual machine image publishers for the specified Azure location and edge zone. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListPublishers_MaximumSet_Gen.json | +| [virtualMachineImagesEdgeZoneListSample.js][virtualmachineimagesedgezonelistsample] | Gets a list of all virtual machine image versions for the specified location, edge zone, publisher, offer, and SKU. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_List_MaximumSet_Gen.json | +| [virtualMachineImagesEdgeZoneListSkusSample.js][virtualmachineimagesedgezonelistskussample] | Gets a list of virtual machine image SKUs for the specified location, edge zone, publisher, and offer. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListSkus_MaximumSet_Gen.json | +| [virtualMachineImagesGetSample.js][virtualmachineimagesgetsample] | Gets a virtual machine image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImage_Get_MaximumSet_Gen.json | +| [virtualMachineImagesListByEdgeZoneSample.js][virtualmachineimageslistbyedgezonesample] | Gets a list of all virtual machine image versions for the specified edge zone x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListByEdgeZone_MaximumSet_Gen.json | +| [virtualMachineImagesListOffersSample.js][virtualmachineimageslistofferssample] | Gets a list of virtual machine image offers for the specified location and publisher. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImage_ListOffers_MaximumSet_Gen.json | +| [virtualMachineImagesListPublishersSample.js][virtualmachineimageslistpublisherssample] | Gets a list of virtual machine image publishers for the specified Azure location. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImage_ListPublishers_MaximumSet_Gen.json | +| [virtualMachineImagesListSample.js][virtualmachineimageslistsample] | Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImage_List_MaximumSet_Gen.json | +| [virtualMachineImagesListSkusSample.js][virtualmachineimageslistskussample] | Gets a list of virtual machine image SKUs for the specified location, publisher, and offer. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImage_ListSkus_MaximumSet_Gen.json | +| [virtualMachineRunCommandsCreateOrUpdateSample.js][virtualmachineruncommandscreateorupdatesample] | The operation to create or update the run command. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineRunCommand_CreateOrUpdate.json | +| [virtualMachineRunCommandsDeleteSample.js][virtualmachineruncommandsdeletesample] | The operation to delete the run command. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineRunCommand_Delete.json | +| [virtualMachineRunCommandsGetByVirtualMachineSample.js][virtualmachineruncommandsgetbyvirtualmachinesample] | The operation to get the run command. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineRunCommand_Get.json | +| [virtualMachineRunCommandsGetSample.js][virtualmachineruncommandsgetsample] | Gets specific run command for a subscription in a location. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/RunCommand_Get.json | +| [virtualMachineRunCommandsListByVirtualMachineSample.js][virtualmachineruncommandslistbyvirtualmachinesample] | The operation to get all run commands of a Virtual Machine. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineRunCommand_List.json | +| [virtualMachineRunCommandsListSample.js][virtualmachineruncommandslistsample] | Lists all available run commands for a subscription in a location. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/RunCommand_List.json | +| [virtualMachineRunCommandsUpdateSample.js][virtualmachineruncommandsupdatesample] | The operation to update the run command. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineRunCommand_Update.json | +| [virtualMachineScaleSetExtensionsCreateOrUpdateSample.js][virtualmachinescalesetextensionscreateorupdatesample] | The operation to create or update an extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_CreateOrUpdate_MaximumSet_Gen.json | +| [virtualMachineScaleSetExtensionsDeleteSample.js][virtualmachinescalesetextensionsdeletesample] | The operation to delete the extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Delete_MaximumSet_Gen.json | +| [virtualMachineScaleSetExtensionsGetSample.js][virtualmachinescalesetextensionsgetsample] | The operation to get the extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Get_MaximumSet_Gen.json | +| [virtualMachineScaleSetExtensionsListSample.js][virtualmachinescalesetextensionslistsample] | Gets a list of all extensions in a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_List_MaximumSet_Gen.json | +| [virtualMachineScaleSetExtensionsUpdateSample.js][virtualmachinescalesetextensionsupdatesample] | The operation to update an extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Update_MaximumSet_Gen.json | +| [virtualMachineScaleSetRollingUpgradesCancelSample.js][virtualmachinescalesetrollingupgradescancelsample] | Cancels the current virtual machine scale set rolling upgrade. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_Cancel_MaximumSet_Gen.json | +| [virtualMachineScaleSetRollingUpgradesGetLatestSample.js][virtualmachinescalesetrollingupgradesgetlatestsample] | Gets the status of the latest virtual machine scale set rolling upgrade. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_GetLatest_MaximumSet_Gen.json | +| [virtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSample.js][virtualmachinescalesetrollingupgradesstartextensionupgradesample] | Starts a rolling upgrade to move all extensions for all virtual machine scale set instances to the latest available extension version. Instances which are already running the latest extension versions are not affected. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_RollingUpgrade.json | +| [virtualMachineScaleSetRollingUpgradesStartOSUpgradeSample.js][virtualmachinescalesetrollingupgradesstartosupgradesample] | Starts a rolling upgrade to move all virtual machine scale set instances to the latest available Platform Image OS version. Instances which are already running the latest available OS version are not affected. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_StartOSUpgrade_MaximumSet_Gen.json | +| [virtualMachineScaleSetVMExtensionsCreateOrUpdateSample.js][virtualmachinescalesetvmextensionscreateorupdatesample] | The operation to create or update the VMSS VM extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Create.json | +| [virtualMachineScaleSetVMExtensionsDeleteSample.js][virtualmachinescalesetvmextensionsdeletesample] | The operation to delete the VMSS VM extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Delete.json | +| [virtualMachineScaleSetVMExtensionsGetSample.js][virtualmachinescalesetvmextensionsgetsample] | The operation to get the VMSS VM extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Get.json | +| [virtualMachineScaleSetVMExtensionsListSample.js][virtualmachinescalesetvmextensionslistsample] | The operation to get all extensions of an instance in Virtual Machine Scaleset. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_List.json | +| [virtualMachineScaleSetVMExtensionsUpdateSample.js][virtualmachinescalesetvmextensionsupdatesample] | The operation to update the VMSS VM extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Update.json | +| [virtualMachineScaleSetVMRunCommandsCreateOrUpdateSample.js][virtualmachinescalesetvmruncommandscreateorupdatesample] | The operation to create or update the VMSS VM run command. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_CreateOrUpdate.json | +| [virtualMachineScaleSetVMRunCommandsDeleteSample.js][virtualmachinescalesetvmruncommandsdeletesample] | The operation to delete the VMSS VM run command. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Delete.json | +| [virtualMachineScaleSetVMRunCommandsGetSample.js][virtualmachinescalesetvmruncommandsgetsample] | The operation to get the VMSS VM run command. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Get.json | +| [virtualMachineScaleSetVMRunCommandsListSample.js][virtualmachinescalesetvmruncommandslistsample] | The operation to get all run commands of an instance in Virtual Machine Scaleset. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_List.json | +| [virtualMachineScaleSetVMRunCommandsUpdateSample.js][virtualmachinescalesetvmruncommandsupdatesample] | The operation to update the VMSS VM run command. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Update.json | +| [virtualMachineScaleSetVMSDeallocateSample.js][virtualmachinescalesetvmsdeallocatesample] | Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the compute resources it uses. You are not billed for the compute resources of this virtual machine once it is deallocated. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Deallocate_MaximumSet_Gen.json | +| [virtualMachineScaleSetVMSDeleteSample.js][virtualmachinescalesetvmsdeletesample] | Deletes a virtual machine from a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Delete_Force.json | +| [virtualMachineScaleSetVMSGetInstanceViewSample.js][virtualmachinescalesetvmsgetinstanceviewsample] | Gets the status of a virtual machine from a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_InstanceViewAutoPlacedOnDedicatedHostGroup.json | +| [virtualMachineScaleSetVMSGetSample.js][virtualmachinescalesetvmsgetsample] | Gets a virtual machine from a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithUserData.json | +| [virtualMachineScaleSetVMSListSample.js][virtualmachinescalesetvmslistsample] | Gets a list of all virtual machines in a VM scale sets. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_List_MaximumSet_Gen.json | +| [virtualMachineScaleSetVMSPerformMaintenanceSample.js][virtualmachinescalesetvmsperformmaintenancesample] | Performs maintenance on a virtual machine in a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PerformMaintenance_MaximumSet_Gen.json | +| [virtualMachineScaleSetVMSPowerOffSample.js][virtualmachinescalesetvmspoweroffsample] | Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PowerOff_MaximumSet_Gen.json | +| [virtualMachineScaleSetVMSRedeploySample.js][virtualmachinescalesetvmsredeploysample] | Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Redeploy_MaximumSet_Gen.json | +| [virtualMachineScaleSetVMSReimageAllSample.js][virtualmachinescalesetvmsreimageallsample] | Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This operation is only supported for managed disks. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_ReimageAll_MaximumSet_Gen.json | +| [virtualMachineScaleSetVMSReimageSample.js][virtualmachinescalesetvmsreimagesample] | Reimages (upgrade the operating system) a specific virtual machine in a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Reimage_MaximumSet_Gen.json | +| [virtualMachineScaleSetVMSRestartSample.js][virtualmachinescalesetvmsrestartsample] | Restarts a virtual machine in a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Restart_MaximumSet_Gen.json | +| [virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.js][virtualmachinescalesetvmsretrievebootdiagnosticsdatasample] | The operation to retrieve SAS URIs of boot diagnostic logs for a virtual machine in a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_RetrieveBootDiagnosticsData.json | +| [virtualMachineScaleSetVMSRunCommandSample.js][virtualmachinescalesetvmsruncommandsample] | Run command on a virtual machine in a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand.json | +| [virtualMachineScaleSetVMSSimulateEvictionSample.js][virtualmachinescalesetvmssimulateevictionsample] | The operation to simulate the eviction of spot virtual machine in a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_SimulateEviction.json | +| [virtualMachineScaleSetVMSStartSample.js][virtualmachinescalesetvmsstartsample] | Starts a virtual machine in a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Start_MaximumSet_Gen.json | +| [virtualMachineScaleSetVMSUpdateSample.js][virtualmachinescalesetvmsupdatesample] | Updates a virtual machine of a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Update_MaximumSet_Gen.json | +| [virtualMachineScaleSetsConvertToSinglePlacementGroupSample.js][virtualmachinescalesetsconverttosingleplacementgroupsample] | Converts SinglePlacementGroup property to false for a existing virtual machine scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ConvertToSinglePlacementGroup_MaximumSet_Gen.json | +| [virtualMachineScaleSetsCreateOrUpdateSample.js][virtualmachinescalesetscreateorupdatesample] | Create or update a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithExtensionsSuppressFailuresEnabled.json | +| [virtualMachineScaleSetsDeallocateSample.js][virtualmachinescalesetsdeallocatesample] | Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual machine scale set deallocates. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Deallocate_MaximumSet_Gen.json | +| [virtualMachineScaleSetsDeleteInstancesSample.js][virtualmachinescalesetsdeleteinstancessample] | Deletes virtual machines in a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_DeleteInstances_MaximumSet_Gen.json | +| [virtualMachineScaleSetsDeleteSample.js][virtualmachinescalesetsdeletesample] | Deletes a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Delete_Force.json | +| [virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSample.js][virtualmachinescalesetsforcerecoveryservicefabricplatformupdatedomainwalksample] | Manual platform update domain walk to update virtual machines in a service fabric virtual machine scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ForceRecoveryServiceFabricPlatformUpdateDomainWalk_MaximumSet_Gen.json | +| [virtualMachineScaleSetsGetInstanceViewSample.js][virtualmachinescalesetsgetinstanceviewsample] | Gets the status of a VM scale set instance. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetInstanceView_MaximumSet_Gen.json | +| [virtualMachineScaleSetsGetOSUpgradeHistorySample.js][virtualmachinescalesetsgetosupgradehistorysample] | Gets list of OS upgrades on a VM scale set instance. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetOSUpgradeHistory_MaximumSet_Gen.json | +| [virtualMachineScaleSetsGetSample.js][virtualmachinescalesetsgetsample] | Display information about a virtual machine scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get_WithDiskControllerType.json | +| [virtualMachineScaleSetsListAllSample.js][virtualmachinescalesetslistallsample] | Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this till nextLink is null to fetch all the VM Scale Sets. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListAll_MaximumSet_Gen.json | +| [virtualMachineScaleSetsListByLocationSample.js][virtualmachinescalesetslistbylocationsample] | Gets all the VM scale sets under the specified subscription for the specified location. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListBySubscription_ByLocation.json | +| [virtualMachineScaleSetsListSample.js][virtualmachinescalesetslistsample] | Gets a list of all VM scale sets under a resource group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_List_MaximumSet_Gen.json | +| [virtualMachineScaleSetsListSkusSample.js][virtualmachinescalesetslistskussample] | Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListSkus_MaximumSet_Gen.json | +| [virtualMachineScaleSetsPerformMaintenanceSample.js][virtualmachinescalesetsperformmaintenancesample] | Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices for more details: https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PerformMaintenance_MaximumSet_Gen.json | +| [virtualMachineScaleSetsPowerOffSample.js][virtualmachinescalesetspoweroffsample] | Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PowerOff_MaximumSet_Gen.json | +| [virtualMachineScaleSetsReapplySample.js][virtualmachinescalesetsreapplysample] | Reapplies the Virtual Machine Scale Set Virtual Machine Profile to the Virtual Machine Instances x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Reapply_MaximumSet_Gen.json | +| [virtualMachineScaleSetsRedeploySample.js][virtualmachinescalesetsredeploysample] | Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and powers them back on. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Redeploy_MaximumSet_Gen.json | +| [virtualMachineScaleSetsReimageAllSample.js][virtualmachinescalesetsreimageallsample] | Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation is only supported for managed disks. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ReimageAll_MaximumSet_Gen.json | +| [virtualMachineScaleSetsReimageSample.js][virtualmachinescalesetsreimagesample] | Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Reimage_MaximumSet_Gen.json | +| [virtualMachineScaleSetsRestartSample.js][virtualmachinescalesetsrestartsample] | Restarts one or more virtual machines in a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Restart_MaximumSet_Gen.json | +| [virtualMachineScaleSetsSetOrchestrationServiceStateSample.js][virtualmachinescalesetssetorchestrationservicestatesample] | Changes ServiceState property for a given service x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_SetOrchestrationServiceState_MaximumSet_Gen.json | +| [virtualMachineScaleSetsStartSample.js][virtualmachinescalesetsstartsample] | Starts one or more virtual machines in a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Start_MaximumSet_Gen.json | +| [virtualMachineScaleSetsUpdateInstancesSample.js][virtualmachinescalesetsupdateinstancessample] | Upgrades one or more virtual machines to the latest SKU set in the VM scale set model. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_UpdateInstances_MaximumSet_Gen.json | +| [virtualMachineScaleSetsUpdateSample.js][virtualmachinescalesetsupdatesample] | Update a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Update_MaximumSet_Gen.json | +| [virtualMachineSizesListSample.js][virtualmachinesizeslistsample] | This API is deprecated. Use [Resources Skus](https://docs.microsoft.com/rest/api/compute/resourceskus/list) x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/computeRPCommonExamples/VirtualMachineSizes_List_MaximumSet_Gen.json | +| [virtualMachinesAssessPatchesSample.js][virtualmachinesassesspatchessample] | Assess patches on the VM. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_AssessPatches.json | +| [virtualMachinesCaptureSample.js][virtualmachinescapturesample] | Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Capture_MaximumSet_Gen.json | +| [virtualMachinesConvertToManagedDisksSample.js][virtualmachinesconverttomanageddiskssample] | Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop-deallocated before invoking this operation. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_ConvertToManagedDisks_MaximumSet_Gen.json | +| [virtualMachinesCreateOrUpdateSample.js][virtualmachinescreateorupdatesample] | The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithPatchSettingAssessmentModeOfImageDefault.json | +| [virtualMachinesDeallocateSample.js][virtualmachinesdeallocatesample] | Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Deallocate_MaximumSet_Gen.json | +| [virtualMachinesDeleteSample.js][virtualmachinesdeletesample] | The operation to delete a virtual machine. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Delete_Force.json | +| [virtualMachinesGeneralizeSample.js][virtualmachinesgeneralizesample] | Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual machine before performing this operation. For Windows, please refer to [Create a managed image of a generalized VM in Azure](https://docs.microsoft.com/azure/virtual-machines/windows/capture-image-resource). For Linux, please refer to [How to create an image of a virtual machine or VHD](https://docs.microsoft.com/azure/virtual-machines/linux/capture-image). x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Generalize.json | +| [virtualMachinesGetSample.js][virtualmachinesgetsample] | Retrieves information about the model view or the instance view of a virtual machine. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Get.json | +| [virtualMachinesInstallPatchesSample.js][virtualmachinesinstallpatchessample] | Installs patches on the VM. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_InstallPatches.json | +| [virtualMachinesInstanceViewSample.js][virtualmachinesinstanceviewsample] | Retrieves information about the run-time state of a virtual machine. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Get_InstanceView.json | +| [virtualMachinesListAllSample.js][virtualmachineslistallsample] | Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_ListAll_MaximumSet_Gen.json | +| [virtualMachinesListAvailableSizesSample.js][virtualmachineslistavailablesizessample] | Lists all available virtual machine sizes to which the specified virtual machine can be resized. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_ListAvailableVmSizes.json | +| [virtualMachinesListByLocationSample.js][virtualmachineslistbylocationsample] | Gets all the virtual machines under the specified subscription for the specified location. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_ListBySubscription_ByLocation.json | +| [virtualMachinesListSample.js][virtualmachineslistsample] | Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_List_MaximumSet_Gen.json | +| [virtualMachinesPerformMaintenanceSample.js][virtualmachinesperformmaintenancesample] | The operation to perform maintenance on a virtual machine. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_PerformMaintenance_MaximumSet_Gen.json | +| [virtualMachinesPowerOffSample.js][virtualmachinespoweroffsample] | The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_PowerOff_MaximumSet_Gen.json | +| [virtualMachinesReapplySample.js][virtualmachinesreapplysample] | The operation to reapply a virtual machine's state. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Reapply.json | +| [virtualMachinesRedeploySample.js][virtualmachinesredeploysample] | Shuts down the virtual machine, moves it to a new node, and powers it back on. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Redeploy_MaximumSet_Gen.json | +| [virtualMachinesReimageSample.js][virtualmachinesreimagesample] | Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. NOTE: The retaining of old OS disk depends on the value of deleteOption of OS disk. If deleteOption is detach, the old OS disk will be preserved after reimage. If deleteOption is delete, the old OS disk will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Reimage_NonEphemeralVMs.json | +| [virtualMachinesRestartSample.js][virtualmachinesrestartsample] | The operation to restart a virtual machine. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Restart_MaximumSet_Gen.json | +| [virtualMachinesRetrieveBootDiagnosticsDataSample.js][virtualmachinesretrievebootdiagnosticsdatasample] | The operation to retrieve SAS URIs for a virtual machine's boot diagnostic logs. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_RetrieveBootDiagnosticsData.json | +| [virtualMachinesRunCommandSample.js][virtualmachinesruncommandsample] | Run command on the VM. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineRunCommand.json | +| [virtualMachinesSimulateEvictionSample.js][virtualmachinessimulateevictionsample] | The operation to simulate the eviction of spot virtual machine. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_SimulateEviction.json | +| [virtualMachinesStartSample.js][virtualmachinesstartsample] | The operation to start a virtual machine. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Start_MaximumSet_Gen.json | +| [virtualMachinesUpdateSample.js][virtualmachinesupdatesample] | The operation to update a virtual machine. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Update_DetachDataDiskUsingToBeDetachedProperty.json | ## Prerequisites @@ -322,285 +324,287 @@ npx cross-env COMPUTE_SUBSCRIPTION_ID="" COMPUTE_RESOUR Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. -[availabilitysetscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/availabilitySetsCreateOrUpdateSample.js -[availabilitysetsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/availabilitySetsDeleteSample.js -[availabilitysetsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/availabilitySetsGetSample.js -[availabilitysetslistavailablesizessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/availabilitySetsListAvailableSizesSample.js -[availabilitysetslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/availabilitySetsListBySubscriptionSample.js -[availabilitysetslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/availabilitySetsListSample.js -[availabilitysetsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/availabilitySetsUpdateSample.js -[capacityreservationgroupscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/capacityReservationGroupsCreateOrUpdateSample.js -[capacityreservationgroupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/capacityReservationGroupsDeleteSample.js -[capacityreservationgroupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/capacityReservationGroupsGetSample.js -[capacityreservationgroupslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/capacityReservationGroupsListByResourceGroupSample.js -[capacityreservationgroupslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/capacityReservationGroupsListBySubscriptionSample.js -[capacityreservationgroupsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/capacityReservationGroupsUpdateSample.js -[capacityreservationscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/capacityReservationsCreateOrUpdateSample.js -[capacityreservationsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/capacityReservationsDeleteSample.js -[capacityreservationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/capacityReservationsGetSample.js -[capacityreservationslistbycapacityreservationgroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/capacityReservationsListByCapacityReservationGroupSample.js -[capacityreservationsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/capacityReservationsUpdateSample.js -[cloudserviceoperatingsystemsgetosfamilysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/cloudServiceOperatingSystemsGetOSFamilySample.js -[cloudserviceoperatingsystemsgetosversionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/cloudServiceOperatingSystemsGetOSVersionSample.js -[cloudserviceoperatingsystemslistosfamiliessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/cloudServiceOperatingSystemsListOSFamiliesSample.js -[cloudserviceoperatingsystemslistosversionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/cloudServiceOperatingSystemsListOSVersionsSample.js -[cloudserviceroleinstancesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/cloudServiceRoleInstancesDeleteSample.js -[cloudserviceroleinstancesgetinstanceviewsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/cloudServiceRoleInstancesGetInstanceViewSample.js -[cloudserviceroleinstancesgetremotedesktopfilesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/cloudServiceRoleInstancesGetRemoteDesktopFileSample.js -[cloudserviceroleinstancesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/cloudServiceRoleInstancesGetSample.js -[cloudserviceroleinstanceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/cloudServiceRoleInstancesListSample.js -[cloudserviceroleinstancesrebuildsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/cloudServiceRoleInstancesRebuildSample.js -[cloudserviceroleinstancesreimagesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/cloudServiceRoleInstancesReimageSample.js -[cloudserviceroleinstancesrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/cloudServiceRoleInstancesRestartSample.js -[cloudservicerolesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/cloudServiceRolesGetSample.js -[cloudserviceroleslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/cloudServiceRolesListSample.js -[cloudservicescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/cloudServicesCreateOrUpdateSample.js -[cloudservicesdeleteinstancessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/cloudServicesDeleteInstancesSample.js -[cloudservicesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/cloudServicesDeleteSample.js -[cloudservicesgetinstanceviewsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/cloudServicesGetInstanceViewSample.js -[cloudservicesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/cloudServicesGetSample.js -[cloudserviceslistallsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/cloudServicesListAllSample.js -[cloudserviceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/cloudServicesListSample.js -[cloudservicespoweroffsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/cloudServicesPowerOffSample.js -[cloudservicesrebuildsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/cloudServicesRebuildSample.js -[cloudservicesreimagesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/cloudServicesReimageSample.js -[cloudservicesrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/cloudServicesRestartSample.js -[cloudservicesstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/cloudServicesStartSample.js -[cloudservicesupdatedomaingetupdatedomainsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/cloudServicesUpdateDomainGetUpdateDomainSample.js -[cloudservicesupdatedomainlistupdatedomainssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/cloudServicesUpdateDomainListUpdateDomainsSample.js -[cloudservicesupdatedomainwalkupdatedomainsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/cloudServicesUpdateDomainWalkUpdateDomainSample.js -[cloudservicesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/cloudServicesUpdateSample.js -[communitygalleriesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/communityGalleriesGetSample.js -[communitygalleryimageversionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/communityGalleryImageVersionsGetSample.js -[communitygalleryimageversionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/communityGalleryImageVersionsListSample.js -[communitygalleryimagesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/communityGalleryImagesGetSample.js -[communitygalleryimageslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/communityGalleryImagesListSample.js -[dedicatedhostgroupscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostGroupsCreateOrUpdateSample.js -[dedicatedhostgroupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostGroupsDeleteSample.js -[dedicatedhostgroupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostGroupsGetSample.js -[dedicatedhostgroupslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostGroupsListByResourceGroupSample.js -[dedicatedhostgroupslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostGroupsListBySubscriptionSample.js -[dedicatedhostgroupsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostGroupsUpdateSample.js -[dedicatedhostscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostsCreateOrUpdateSample.js -[dedicatedhostsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostsDeleteSample.js -[dedicatedhostsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostsGetSample.js -[dedicatedhostslistbyhostgroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostsListByHostGroupSample.js -[dedicatedhostsrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostsRestartSample.js -[dedicatedhostsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostsUpdateSample.js -[diskaccessescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/diskAccessesCreateOrUpdateSample.js -[diskaccessesdeleteaprivateendpointconnectionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/diskAccessesDeleteAPrivateEndpointConnectionSample.js -[diskaccessesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/diskAccessesDeleteSample.js -[diskaccessesgetaprivateendpointconnectionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/diskAccessesGetAPrivateEndpointConnectionSample.js -[diskaccessesgetprivatelinkresourcessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/diskAccessesGetPrivateLinkResourcesSample.js -[diskaccessesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/diskAccessesGetSample.js -[diskaccesseslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/diskAccessesListByResourceGroupSample.js -[diskaccesseslistprivateendpointconnectionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/diskAccessesListPrivateEndpointConnectionsSample.js -[diskaccesseslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/diskAccessesListSample.js -[diskaccessesupdateaprivateendpointconnectionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/diskAccessesUpdateAPrivateEndpointConnectionSample.js -[diskaccessesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/diskAccessesUpdateSample.js -[diskencryptionsetscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/diskEncryptionSetsCreateOrUpdateSample.js -[diskencryptionsetsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/diskEncryptionSetsDeleteSample.js -[diskencryptionsetsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/diskEncryptionSetsGetSample.js -[diskencryptionsetslistassociatedresourcessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/diskEncryptionSetsListAssociatedResourcesSample.js -[diskencryptionsetslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/diskEncryptionSetsListByResourceGroupSample.js -[diskencryptionsetslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/diskEncryptionSetsListSample.js -[diskencryptionsetsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/diskEncryptionSetsUpdateSample.js -[diskrestorepointgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/diskRestorePointGetSample.js -[diskrestorepointgrantaccesssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/diskRestorePointGrantAccessSample.js -[diskrestorepointlistbyrestorepointsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/diskRestorePointListByRestorePointSample.js -[diskrestorepointrevokeaccesssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/diskRestorePointRevokeAccessSample.js -[diskscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/disksCreateOrUpdateSample.js -[disksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/disksDeleteSample.js -[disksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/disksGetSample.js -[disksgrantaccesssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/disksGrantAccessSample.js -[diskslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/disksListByResourceGroupSample.js -[diskslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/disksListSample.js -[disksrevokeaccesssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/disksRevokeAccessSample.js -[disksupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/disksUpdateSample.js -[galleriescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/galleriesCreateOrUpdateSample.js -[galleriesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/galleriesDeleteSample.js -[galleriesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/galleriesGetSample.js -[gallerieslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/galleriesListByResourceGroupSample.js -[gallerieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/galleriesListSample.js -[galleriesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/galleriesUpdateSample.js -[galleryapplicationversionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/galleryApplicationVersionsCreateOrUpdateSample.js -[galleryapplicationversionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/galleryApplicationVersionsDeleteSample.js -[galleryapplicationversionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/galleryApplicationVersionsGetSample.js -[galleryapplicationversionslistbygalleryapplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/galleryApplicationVersionsListByGalleryApplicationSample.js -[galleryapplicationversionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/galleryApplicationVersionsUpdateSample.js -[galleryapplicationscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/galleryApplicationsCreateOrUpdateSample.js -[galleryapplicationsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/galleryApplicationsDeleteSample.js -[galleryapplicationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/galleryApplicationsGetSample.js -[galleryapplicationslistbygallerysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/galleryApplicationsListByGallerySample.js -[galleryapplicationsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/galleryApplicationsUpdateSample.js -[galleryimageversionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/galleryImageVersionsCreateOrUpdateSample.js -[galleryimageversionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/galleryImageVersionsDeleteSample.js -[galleryimageversionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/galleryImageVersionsGetSample.js -[galleryimageversionslistbygalleryimagesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/galleryImageVersionsListByGalleryImageSample.js -[galleryimageversionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/galleryImageVersionsUpdateSample.js -[galleryimagescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/galleryImagesCreateOrUpdateSample.js -[galleryimagesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/galleryImagesDeleteSample.js -[galleryimagesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/galleryImagesGetSample.js -[galleryimageslistbygallerysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/galleryImagesListByGallerySample.js -[galleryimagesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/galleryImagesUpdateSample.js -[gallerysharingprofileupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/gallerySharingProfileUpdateSample.js -[imagescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/imagesCreateOrUpdateSample.js -[imagesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/imagesDeleteSample.js -[imagesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/imagesGetSample.js -[imageslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/imagesListByResourceGroupSample.js -[imageslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/imagesListSample.js -[imagesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/imagesUpdateSample.js -[loganalyticsexportrequestratebyintervalsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/logAnalyticsExportRequestRateByIntervalSample.js -[loganalyticsexportthrottledrequestssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/logAnalyticsExportThrottledRequestsSample.js -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/operationsListSample.js -[proximityplacementgroupscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/proximityPlacementGroupsCreateOrUpdateSample.js -[proximityplacementgroupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/proximityPlacementGroupsDeleteSample.js -[proximityplacementgroupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/proximityPlacementGroupsGetSample.js -[proximityplacementgroupslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/proximityPlacementGroupsListByResourceGroupSample.js -[proximityplacementgroupslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/proximityPlacementGroupsListBySubscriptionSample.js -[proximityplacementgroupsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/proximityPlacementGroupsUpdateSample.js -[resourceskuslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/resourceSkusListSample.js -[restorepointcollectionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/restorePointCollectionsCreateOrUpdateSample.js -[restorepointcollectionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/restorePointCollectionsDeleteSample.js -[restorepointcollectionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/restorePointCollectionsGetSample.js -[restorepointcollectionslistallsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/restorePointCollectionsListAllSample.js -[restorepointcollectionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/restorePointCollectionsListSample.js -[restorepointcollectionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/restorePointCollectionsUpdateSample.js -[restorepointscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/restorePointsCreateSample.js -[restorepointsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/restorePointsDeleteSample.js -[restorepointsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/restorePointsGetSample.js -[sharedgalleriesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/sharedGalleriesGetSample.js -[sharedgallerieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/sharedGalleriesListSample.js -[sharedgalleryimageversionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/sharedGalleryImageVersionsGetSample.js -[sharedgalleryimageversionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/sharedGalleryImageVersionsListSample.js -[sharedgalleryimagesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/sharedGalleryImagesGetSample.js -[sharedgalleryimageslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/sharedGalleryImagesListSample.js -[snapshotscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/snapshotsCreateOrUpdateSample.js -[snapshotsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/snapshotsDeleteSample.js -[snapshotsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/snapshotsGetSample.js -[snapshotsgrantaccesssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/snapshotsGrantAccessSample.js -[snapshotslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/snapshotsListByResourceGroupSample.js -[snapshotslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/snapshotsListSample.js -[snapshotsrevokeaccesssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/snapshotsRevokeAccessSample.js -[snapshotsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/snapshotsUpdateSample.js -[sshpublickeyscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/sshPublicKeysCreateSample.js -[sshpublickeysdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/sshPublicKeysDeleteSample.js -[sshpublickeysgeneratekeypairsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/sshPublicKeysGenerateKeyPairSample.js -[sshpublickeysgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/sshPublicKeysGetSample.js -[sshpublickeyslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/sshPublicKeysListByResourceGroupSample.js -[sshpublickeyslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/sshPublicKeysListBySubscriptionSample.js -[sshpublickeysupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/sshPublicKeysUpdateSample.js -[usagelistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/usageListSample.js -[virtualmachineextensionimagesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineExtensionImagesGetSample.js -[virtualmachineextensionimageslisttypessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineExtensionImagesListTypesSample.js -[virtualmachineextensionimageslistversionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineExtensionImagesListVersionsSample.js -[virtualmachineextensionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineExtensionsCreateOrUpdateSample.js -[virtualmachineextensionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineExtensionsDeleteSample.js -[virtualmachineextensionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineExtensionsGetSample.js -[virtualmachineextensionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineExtensionsListSample.js -[virtualmachineextensionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineExtensionsUpdateSample.js -[virtualmachineimagesedgezonegetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineImagesEdgeZoneGetSample.js -[virtualmachineimagesedgezonelistofferssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineImagesEdgeZoneListOffersSample.js -[virtualmachineimagesedgezonelistpublisherssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineImagesEdgeZoneListPublishersSample.js -[virtualmachineimagesedgezonelistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineImagesEdgeZoneListSample.js -[virtualmachineimagesedgezonelistskussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineImagesEdgeZoneListSkusSample.js -[virtualmachineimagesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineImagesGetSample.js -[virtualmachineimageslistbyedgezonesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineImagesListByEdgeZoneSample.js -[virtualmachineimageslistofferssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineImagesListOffersSample.js -[virtualmachineimageslistpublisherssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineImagesListPublishersSample.js -[virtualmachineimageslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineImagesListSample.js -[virtualmachineimageslistskussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineImagesListSkusSample.js -[virtualmachineruncommandscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineRunCommandsCreateOrUpdateSample.js -[virtualmachineruncommandsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineRunCommandsDeleteSample.js -[virtualmachineruncommandsgetbyvirtualmachinesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineRunCommandsGetByVirtualMachineSample.js -[virtualmachineruncommandsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineRunCommandsGetSample.js -[virtualmachineruncommandslistbyvirtualmachinesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineRunCommandsListByVirtualMachineSample.js -[virtualmachineruncommandslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineRunCommandsListSample.js -[virtualmachineruncommandsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineRunCommandsUpdateSample.js -[virtualmachinescalesetextensionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetExtensionsCreateOrUpdateSample.js -[virtualmachinescalesetextensionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetExtensionsDeleteSample.js -[virtualmachinescalesetextensionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetExtensionsGetSample.js -[virtualmachinescalesetextensionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetExtensionsListSample.js -[virtualmachinescalesetextensionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetExtensionsUpdateSample.js -[virtualmachinescalesetrollingupgradescancelsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetRollingUpgradesCancelSample.js -[virtualmachinescalesetrollingupgradesgetlatestsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetRollingUpgradesGetLatestSample.js -[virtualmachinescalesetrollingupgradesstartextensionupgradesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSample.js -[virtualmachinescalesetrollingupgradesstartosupgradesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetRollingUpgradesStartOSUpgradeSample.js -[virtualmachinescalesetvmextensionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMExtensionsCreateOrUpdateSample.js -[virtualmachinescalesetvmextensionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMExtensionsDeleteSample.js -[virtualmachinescalesetvmextensionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMExtensionsGetSample.js -[virtualmachinescalesetvmextensionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMExtensionsListSample.js -[virtualmachinescalesetvmextensionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMExtensionsUpdateSample.js -[virtualmachinescalesetvmruncommandscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMRunCommandsCreateOrUpdateSample.js -[virtualmachinescalesetvmruncommandsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMRunCommandsDeleteSample.js -[virtualmachinescalesetvmruncommandsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMRunCommandsGetSample.js -[virtualmachinescalesetvmruncommandslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMRunCommandsListSample.js -[virtualmachinescalesetvmruncommandsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMRunCommandsUpdateSample.js -[virtualmachinescalesetvmsdeallocatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSDeallocateSample.js -[virtualmachinescalesetvmsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSDeleteSample.js -[virtualmachinescalesetvmsgetinstanceviewsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSGetInstanceViewSample.js -[virtualmachinescalesetvmsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSGetSample.js -[virtualmachinescalesetvmslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSListSample.js -[virtualmachinescalesetvmsperformmaintenancesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSPerformMaintenanceSample.js -[virtualmachinescalesetvmspoweroffsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSPowerOffSample.js -[virtualmachinescalesetvmsredeploysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSRedeploySample.js -[virtualmachinescalesetvmsreimageallsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSReimageAllSample.js -[virtualmachinescalesetvmsreimagesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSReimageSample.js -[virtualmachinescalesetvmsrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSRestartSample.js -[virtualmachinescalesetvmsretrievebootdiagnosticsdatasample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.js -[virtualmachinescalesetvmsruncommandsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSRunCommandSample.js -[virtualmachinescalesetvmssimulateevictionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSSimulateEvictionSample.js -[virtualmachinescalesetvmsstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSStartSample.js -[virtualmachinescalesetvmsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSUpdateSample.js -[virtualmachinescalesetsconverttosingleplacementgroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsConvertToSinglePlacementGroupSample.js -[virtualmachinescalesetscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsCreateOrUpdateSample.js -[virtualmachinescalesetsdeallocatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsDeallocateSample.js -[virtualmachinescalesetsdeleteinstancessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsDeleteInstancesSample.js -[virtualmachinescalesetsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsDeleteSample.js -[virtualmachinescalesetsforcerecoveryservicefabricplatformupdatedomainwalksample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSample.js -[virtualmachinescalesetsgetinstanceviewsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsGetInstanceViewSample.js -[virtualmachinescalesetsgetosupgradehistorysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsGetOSUpgradeHistorySample.js -[virtualmachinescalesetsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsGetSample.js -[virtualmachinescalesetslistallsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsListAllSample.js -[virtualmachinescalesetslistbylocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsListByLocationSample.js -[virtualmachinescalesetslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsListSample.js -[virtualmachinescalesetslistskussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsListSkusSample.js -[virtualmachinescalesetsperformmaintenancesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsPerformMaintenanceSample.js -[virtualmachinescalesetspoweroffsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsPowerOffSample.js -[virtualmachinescalesetsredeploysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsRedeploySample.js -[virtualmachinescalesetsreimageallsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsReimageAllSample.js -[virtualmachinescalesetsreimagesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsReimageSample.js -[virtualmachinescalesetsrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsRestartSample.js -[virtualmachinescalesetssetorchestrationservicestatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsSetOrchestrationServiceStateSample.js -[virtualmachinescalesetsstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsStartSample.js -[virtualmachinescalesetsupdateinstancessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsUpdateInstancesSample.js -[virtualmachinescalesetsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsUpdateSample.js -[virtualmachinesizeslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineSizesListSample.js -[virtualmachinesassesspatchessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesAssessPatchesSample.js -[virtualmachinescapturesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesCaptureSample.js -[virtualmachinesconverttomanageddiskssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesConvertToManagedDisksSample.js -[virtualmachinescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesCreateOrUpdateSample.js -[virtualmachinesdeallocatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesDeallocateSample.js -[virtualmachinesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesDeleteSample.js -[virtualmachinesgeneralizesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesGeneralizeSample.js -[virtualmachinesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesGetSample.js -[virtualmachinesinstallpatchessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesInstallPatchesSample.js -[virtualmachinesinstanceviewsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesInstanceViewSample.js -[virtualmachineslistallsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesListAllSample.js -[virtualmachineslistavailablesizessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesListAvailableSizesSample.js -[virtualmachineslistbylocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesListByLocationSample.js -[virtualmachineslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesListSample.js -[virtualmachinesperformmaintenancesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesPerformMaintenanceSample.js -[virtualmachinespoweroffsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesPowerOffSample.js -[virtualmachinesreapplysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesReapplySample.js -[virtualmachinesredeploysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesRedeploySample.js -[virtualmachinesreimagesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesReimageSample.js -[virtualmachinesrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesRestartSample.js -[virtualmachinesretrievebootdiagnosticsdatasample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesRetrieveBootDiagnosticsDataSample.js -[virtualmachinesruncommandsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesRunCommandSample.js -[virtualmachinessimulateevictionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesSimulateEvictionSample.js -[virtualmachinesstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesStartSample.js -[virtualmachinesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesUpdateSample.js +[availabilitysetscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/availabilitySetsCreateOrUpdateSample.js +[availabilitysetsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/availabilitySetsDeleteSample.js +[availabilitysetsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/availabilitySetsGetSample.js +[availabilitysetslistavailablesizessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/availabilitySetsListAvailableSizesSample.js +[availabilitysetslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/availabilitySetsListBySubscriptionSample.js +[availabilitysetslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/availabilitySetsListSample.js +[availabilitysetsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/availabilitySetsUpdateSample.js +[capacityreservationgroupscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/capacityReservationGroupsCreateOrUpdateSample.js +[capacityreservationgroupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/capacityReservationGroupsDeleteSample.js +[capacityreservationgroupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/capacityReservationGroupsGetSample.js +[capacityreservationgroupslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/capacityReservationGroupsListByResourceGroupSample.js +[capacityreservationgroupslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/capacityReservationGroupsListBySubscriptionSample.js +[capacityreservationgroupsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/capacityReservationGroupsUpdateSample.js +[capacityreservationscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/capacityReservationsCreateOrUpdateSample.js +[capacityreservationsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/capacityReservationsDeleteSample.js +[capacityreservationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/capacityReservationsGetSample.js +[capacityreservationslistbycapacityreservationgroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/capacityReservationsListByCapacityReservationGroupSample.js +[capacityreservationsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/capacityReservationsUpdateSample.js +[cloudserviceoperatingsystemsgetosfamilysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/cloudServiceOperatingSystemsGetOSFamilySample.js +[cloudserviceoperatingsystemsgetosversionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/cloudServiceOperatingSystemsGetOSVersionSample.js +[cloudserviceoperatingsystemslistosfamiliessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/cloudServiceOperatingSystemsListOSFamiliesSample.js +[cloudserviceoperatingsystemslistosversionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/cloudServiceOperatingSystemsListOSVersionsSample.js +[cloudserviceroleinstancesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/cloudServiceRoleInstancesDeleteSample.js +[cloudserviceroleinstancesgetinstanceviewsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/cloudServiceRoleInstancesGetInstanceViewSample.js +[cloudserviceroleinstancesgetremotedesktopfilesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/cloudServiceRoleInstancesGetRemoteDesktopFileSample.js +[cloudserviceroleinstancesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/cloudServiceRoleInstancesGetSample.js +[cloudserviceroleinstanceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/cloudServiceRoleInstancesListSample.js +[cloudserviceroleinstancesrebuildsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/cloudServiceRoleInstancesRebuildSample.js +[cloudserviceroleinstancesreimagesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/cloudServiceRoleInstancesReimageSample.js +[cloudserviceroleinstancesrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/cloudServiceRoleInstancesRestartSample.js +[cloudservicerolesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/cloudServiceRolesGetSample.js +[cloudserviceroleslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/cloudServiceRolesListSample.js +[cloudservicescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/cloudServicesCreateOrUpdateSample.js +[cloudservicesdeleteinstancessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/cloudServicesDeleteInstancesSample.js +[cloudservicesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/cloudServicesDeleteSample.js +[cloudservicesgetinstanceviewsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/cloudServicesGetInstanceViewSample.js +[cloudservicesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/cloudServicesGetSample.js +[cloudserviceslistallsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/cloudServicesListAllSample.js +[cloudserviceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/cloudServicesListSample.js +[cloudservicespoweroffsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/cloudServicesPowerOffSample.js +[cloudservicesrebuildsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/cloudServicesRebuildSample.js +[cloudservicesreimagesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/cloudServicesReimageSample.js +[cloudservicesrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/cloudServicesRestartSample.js +[cloudservicesstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/cloudServicesStartSample.js +[cloudservicesupdatedomaingetupdatedomainsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/cloudServicesUpdateDomainGetUpdateDomainSample.js +[cloudservicesupdatedomainlistupdatedomainssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/cloudServicesUpdateDomainListUpdateDomainsSample.js +[cloudservicesupdatedomainwalkupdatedomainsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/cloudServicesUpdateDomainWalkUpdateDomainSample.js +[cloudservicesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/cloudServicesUpdateSample.js +[communitygalleriesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/communityGalleriesGetSample.js +[communitygalleryimageversionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/communityGalleryImageVersionsGetSample.js +[communitygalleryimageversionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/communityGalleryImageVersionsListSample.js +[communitygalleryimagesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/communityGalleryImagesGetSample.js +[communitygalleryimageslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/communityGalleryImagesListSample.js +[dedicatedhostgroupscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostGroupsCreateOrUpdateSample.js +[dedicatedhostgroupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostGroupsDeleteSample.js +[dedicatedhostgroupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostGroupsGetSample.js +[dedicatedhostgroupslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostGroupsListByResourceGroupSample.js +[dedicatedhostgroupslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostGroupsListBySubscriptionSample.js +[dedicatedhostgroupsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostGroupsUpdateSample.js +[dedicatedhostscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostsCreateOrUpdateSample.js +[dedicatedhostsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostsDeleteSample.js +[dedicatedhostsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostsGetSample.js +[dedicatedhostslistavailablesizessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostsListAvailableSizesSample.js +[dedicatedhostslistbyhostgroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostsListByHostGroupSample.js +[dedicatedhostsrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostsRestartSample.js +[dedicatedhostsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostsUpdateSample.js +[diskaccessescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/diskAccessesCreateOrUpdateSample.js +[diskaccessesdeleteaprivateendpointconnectionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/diskAccessesDeleteAPrivateEndpointConnectionSample.js +[diskaccessesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/diskAccessesDeleteSample.js +[diskaccessesgetaprivateendpointconnectionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/diskAccessesGetAPrivateEndpointConnectionSample.js +[diskaccessesgetprivatelinkresourcessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/diskAccessesGetPrivateLinkResourcesSample.js +[diskaccessesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/diskAccessesGetSample.js +[diskaccesseslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/diskAccessesListByResourceGroupSample.js +[diskaccesseslistprivateendpointconnectionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/diskAccessesListPrivateEndpointConnectionsSample.js +[diskaccesseslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/diskAccessesListSample.js +[diskaccessesupdateaprivateendpointconnectionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/diskAccessesUpdateAPrivateEndpointConnectionSample.js +[diskaccessesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/diskAccessesUpdateSample.js +[diskencryptionsetscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/diskEncryptionSetsCreateOrUpdateSample.js +[diskencryptionsetsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/diskEncryptionSetsDeleteSample.js +[diskencryptionsetsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/diskEncryptionSetsGetSample.js +[diskencryptionsetslistassociatedresourcessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/diskEncryptionSetsListAssociatedResourcesSample.js +[diskencryptionsetslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/diskEncryptionSetsListByResourceGroupSample.js +[diskencryptionsetslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/diskEncryptionSetsListSample.js +[diskencryptionsetsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/diskEncryptionSetsUpdateSample.js +[diskrestorepointgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/diskRestorePointGetSample.js +[diskrestorepointgrantaccesssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/diskRestorePointGrantAccessSample.js +[diskrestorepointlistbyrestorepointsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/diskRestorePointListByRestorePointSample.js +[diskrestorepointrevokeaccesssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/diskRestorePointRevokeAccessSample.js +[diskscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/disksCreateOrUpdateSample.js +[disksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/disksDeleteSample.js +[disksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/disksGetSample.js +[disksgrantaccesssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/disksGrantAccessSample.js +[diskslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/disksListByResourceGroupSample.js +[diskslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/disksListSample.js +[disksrevokeaccesssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/disksRevokeAccessSample.js +[disksupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/disksUpdateSample.js +[galleriescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/galleriesCreateOrUpdateSample.js +[galleriesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/galleriesDeleteSample.js +[galleriesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/galleriesGetSample.js +[gallerieslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/galleriesListByResourceGroupSample.js +[gallerieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/galleriesListSample.js +[galleriesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/galleriesUpdateSample.js +[galleryapplicationversionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsCreateOrUpdateSample.js +[galleryapplicationversionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsDeleteSample.js +[galleryapplicationversionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsGetSample.js +[galleryapplicationversionslistbygalleryapplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsListByGalleryApplicationSample.js +[galleryapplicationversionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsUpdateSample.js +[galleryapplicationscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsCreateOrUpdateSample.js +[galleryapplicationsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsDeleteSample.js +[galleryapplicationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsGetSample.js +[galleryapplicationslistbygallerysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsListByGallerySample.js +[galleryapplicationsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsUpdateSample.js +[galleryimageversionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsCreateOrUpdateSample.js +[galleryimageversionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsDeleteSample.js +[galleryimageversionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsGetSample.js +[galleryimageversionslistbygalleryimagesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsListByGalleryImageSample.js +[galleryimageversionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsUpdateSample.js +[galleryimagescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesCreateOrUpdateSample.js +[galleryimagesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesDeleteSample.js +[galleryimagesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesGetSample.js +[galleryimageslistbygallerysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesListByGallerySample.js +[galleryimagesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesUpdateSample.js +[gallerysharingprofileupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/gallerySharingProfileUpdateSample.js +[imagescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/imagesCreateOrUpdateSample.js +[imagesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/imagesDeleteSample.js +[imagesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/imagesGetSample.js +[imageslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/imagesListByResourceGroupSample.js +[imageslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/imagesListSample.js +[imagesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/imagesUpdateSample.js +[loganalyticsexportrequestratebyintervalsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/logAnalyticsExportRequestRateByIntervalSample.js +[loganalyticsexportthrottledrequestssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/logAnalyticsExportThrottledRequestsSample.js +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/operationsListSample.js +[proximityplacementgroupscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/proximityPlacementGroupsCreateOrUpdateSample.js +[proximityplacementgroupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/proximityPlacementGroupsDeleteSample.js +[proximityplacementgroupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/proximityPlacementGroupsGetSample.js +[proximityplacementgroupslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/proximityPlacementGroupsListByResourceGroupSample.js +[proximityplacementgroupslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/proximityPlacementGroupsListBySubscriptionSample.js +[proximityplacementgroupsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/proximityPlacementGroupsUpdateSample.js +[resourceskuslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/resourceSkusListSample.js +[restorepointcollectionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/restorePointCollectionsCreateOrUpdateSample.js +[restorepointcollectionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/restorePointCollectionsDeleteSample.js +[restorepointcollectionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/restorePointCollectionsGetSample.js +[restorepointcollectionslistallsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/restorePointCollectionsListAllSample.js +[restorepointcollectionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/restorePointCollectionsListSample.js +[restorepointcollectionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/restorePointCollectionsUpdateSample.js +[restorepointscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/restorePointsCreateSample.js +[restorepointsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/restorePointsDeleteSample.js +[restorepointsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/restorePointsGetSample.js +[sharedgalleriesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleriesGetSample.js +[sharedgallerieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleriesListSample.js +[sharedgalleryimageversionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleryImageVersionsGetSample.js +[sharedgalleryimageversionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleryImageVersionsListSample.js +[sharedgalleryimagesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleryImagesGetSample.js +[sharedgalleryimageslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleryImagesListSample.js +[snapshotscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/snapshotsCreateOrUpdateSample.js +[snapshotsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/snapshotsDeleteSample.js +[snapshotsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/snapshotsGetSample.js +[snapshotsgrantaccesssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/snapshotsGrantAccessSample.js +[snapshotslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/snapshotsListByResourceGroupSample.js +[snapshotslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/snapshotsListSample.js +[snapshotsrevokeaccesssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/snapshotsRevokeAccessSample.js +[snapshotsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/snapshotsUpdateSample.js +[sshpublickeyscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/sshPublicKeysCreateSample.js +[sshpublickeysdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/sshPublicKeysDeleteSample.js +[sshpublickeysgeneratekeypairsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/sshPublicKeysGenerateKeyPairSample.js +[sshpublickeysgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/sshPublicKeysGetSample.js +[sshpublickeyslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/sshPublicKeysListByResourceGroupSample.js +[sshpublickeyslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/sshPublicKeysListBySubscriptionSample.js +[sshpublickeysupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/sshPublicKeysUpdateSample.js +[usagelistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/usageListSample.js +[virtualmachineextensionimagesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineExtensionImagesGetSample.js +[virtualmachineextensionimageslisttypessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineExtensionImagesListTypesSample.js +[virtualmachineextensionimageslistversionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineExtensionImagesListVersionsSample.js +[virtualmachineextensionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineExtensionsCreateOrUpdateSample.js +[virtualmachineextensionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineExtensionsDeleteSample.js +[virtualmachineextensionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineExtensionsGetSample.js +[virtualmachineextensionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineExtensionsListSample.js +[virtualmachineextensionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineExtensionsUpdateSample.js +[virtualmachineimagesedgezonegetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineImagesEdgeZoneGetSample.js +[virtualmachineimagesedgezonelistofferssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineImagesEdgeZoneListOffersSample.js +[virtualmachineimagesedgezonelistpublisherssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineImagesEdgeZoneListPublishersSample.js +[virtualmachineimagesedgezonelistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineImagesEdgeZoneListSample.js +[virtualmachineimagesedgezonelistskussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineImagesEdgeZoneListSkusSample.js +[virtualmachineimagesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineImagesGetSample.js +[virtualmachineimageslistbyedgezonesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineImagesListByEdgeZoneSample.js +[virtualmachineimageslistofferssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineImagesListOffersSample.js +[virtualmachineimageslistpublisherssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineImagesListPublishersSample.js +[virtualmachineimageslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineImagesListSample.js +[virtualmachineimageslistskussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineImagesListSkusSample.js +[virtualmachineruncommandscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineRunCommandsCreateOrUpdateSample.js +[virtualmachineruncommandsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineRunCommandsDeleteSample.js +[virtualmachineruncommandsgetbyvirtualmachinesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineRunCommandsGetByVirtualMachineSample.js +[virtualmachineruncommandsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineRunCommandsGetSample.js +[virtualmachineruncommandslistbyvirtualmachinesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineRunCommandsListByVirtualMachineSample.js +[virtualmachineruncommandslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineRunCommandsListSample.js +[virtualmachineruncommandsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineRunCommandsUpdateSample.js +[virtualmachinescalesetextensionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetExtensionsCreateOrUpdateSample.js +[virtualmachinescalesetextensionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetExtensionsDeleteSample.js +[virtualmachinescalesetextensionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetExtensionsGetSample.js +[virtualmachinescalesetextensionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetExtensionsListSample.js +[virtualmachinescalesetextensionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetExtensionsUpdateSample.js +[virtualmachinescalesetrollingupgradescancelsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetRollingUpgradesCancelSample.js +[virtualmachinescalesetrollingupgradesgetlatestsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetRollingUpgradesGetLatestSample.js +[virtualmachinescalesetrollingupgradesstartextensionupgradesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSample.js +[virtualmachinescalesetrollingupgradesstartosupgradesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetRollingUpgradesStartOSUpgradeSample.js +[virtualmachinescalesetvmextensionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMExtensionsCreateOrUpdateSample.js +[virtualmachinescalesetvmextensionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMExtensionsDeleteSample.js +[virtualmachinescalesetvmextensionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMExtensionsGetSample.js +[virtualmachinescalesetvmextensionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMExtensionsListSample.js +[virtualmachinescalesetvmextensionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMExtensionsUpdateSample.js +[virtualmachinescalesetvmruncommandscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMRunCommandsCreateOrUpdateSample.js +[virtualmachinescalesetvmruncommandsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMRunCommandsDeleteSample.js +[virtualmachinescalesetvmruncommandsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMRunCommandsGetSample.js +[virtualmachinescalesetvmruncommandslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMRunCommandsListSample.js +[virtualmachinescalesetvmruncommandsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMRunCommandsUpdateSample.js +[virtualmachinescalesetvmsdeallocatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSDeallocateSample.js +[virtualmachinescalesetvmsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSDeleteSample.js +[virtualmachinescalesetvmsgetinstanceviewsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSGetInstanceViewSample.js +[virtualmachinescalesetvmsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSGetSample.js +[virtualmachinescalesetvmslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSListSample.js +[virtualmachinescalesetvmsperformmaintenancesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSPerformMaintenanceSample.js +[virtualmachinescalesetvmspoweroffsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSPowerOffSample.js +[virtualmachinescalesetvmsredeploysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSRedeploySample.js +[virtualmachinescalesetvmsreimageallsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSReimageAllSample.js +[virtualmachinescalesetvmsreimagesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSReimageSample.js +[virtualmachinescalesetvmsrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSRestartSample.js +[virtualmachinescalesetvmsretrievebootdiagnosticsdatasample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.js +[virtualmachinescalesetvmsruncommandsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSRunCommandSample.js +[virtualmachinescalesetvmssimulateevictionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSSimulateEvictionSample.js +[virtualmachinescalesetvmsstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSStartSample.js +[virtualmachinescalesetvmsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSUpdateSample.js +[virtualmachinescalesetsconverttosingleplacementgroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsConvertToSinglePlacementGroupSample.js +[virtualmachinescalesetscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsCreateOrUpdateSample.js +[virtualmachinescalesetsdeallocatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsDeallocateSample.js +[virtualmachinescalesetsdeleteinstancessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsDeleteInstancesSample.js +[virtualmachinescalesetsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsDeleteSample.js +[virtualmachinescalesetsforcerecoveryservicefabricplatformupdatedomainwalksample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSample.js +[virtualmachinescalesetsgetinstanceviewsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsGetInstanceViewSample.js +[virtualmachinescalesetsgetosupgradehistorysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsGetOSUpgradeHistorySample.js +[virtualmachinescalesetsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsGetSample.js +[virtualmachinescalesetslistallsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsListAllSample.js +[virtualmachinescalesetslistbylocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsListByLocationSample.js +[virtualmachinescalesetslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsListSample.js +[virtualmachinescalesetslistskussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsListSkusSample.js +[virtualmachinescalesetsperformmaintenancesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsPerformMaintenanceSample.js +[virtualmachinescalesetspoweroffsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsPowerOffSample.js +[virtualmachinescalesetsreapplysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsReapplySample.js +[virtualmachinescalesetsredeploysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsRedeploySample.js +[virtualmachinescalesetsreimageallsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsReimageAllSample.js +[virtualmachinescalesetsreimagesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsReimageSample.js +[virtualmachinescalesetsrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsRestartSample.js +[virtualmachinescalesetssetorchestrationservicestatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsSetOrchestrationServiceStateSample.js +[virtualmachinescalesetsstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsStartSample.js +[virtualmachinescalesetsupdateinstancessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsUpdateInstancesSample.js +[virtualmachinescalesetsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsUpdateSample.js +[virtualmachinesizeslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineSizesListSample.js +[virtualmachinesassesspatchessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesAssessPatchesSample.js +[virtualmachinescapturesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesCaptureSample.js +[virtualmachinesconverttomanageddiskssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesConvertToManagedDisksSample.js +[virtualmachinescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesCreateOrUpdateSample.js +[virtualmachinesdeallocatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesDeallocateSample.js +[virtualmachinesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesDeleteSample.js +[virtualmachinesgeneralizesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesGeneralizeSample.js +[virtualmachinesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesGetSample.js +[virtualmachinesinstallpatchessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesInstallPatchesSample.js +[virtualmachinesinstanceviewsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesInstanceViewSample.js +[virtualmachineslistallsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesListAllSample.js +[virtualmachineslistavailablesizessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesListAvailableSizesSample.js +[virtualmachineslistbylocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesListByLocationSample.js +[virtualmachineslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesListSample.js +[virtualmachinesperformmaintenancesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesPerformMaintenanceSample.js +[virtualmachinespoweroffsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesPowerOffSample.js +[virtualmachinesreapplysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesReapplySample.js +[virtualmachinesredeploysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesRedeploySample.js +[virtualmachinesreimagesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesReimageSample.js +[virtualmachinesrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesRestartSample.js +[virtualmachinesretrievebootdiagnosticsdatasample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesRetrieveBootDiagnosticsDataSample.js +[virtualmachinesruncommandsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesRunCommandSample.js +[virtualmachinessimulateevictionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesSimulateEvictionSample.js +[virtualmachinesstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesStartSample.js +[virtualmachinesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesUpdateSample.js [apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-compute?view=azure-node-preview [freesub]: https://azure.microsoft.com/free/ [package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/compute/arm-compute/README.md diff --git a/sdk/compute/arm-compute/samples/v20/javascript/availabilitySetsCreateOrUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/availabilitySetsCreateOrUpdateSample.js similarity index 95% rename from sdk/compute/arm-compute/samples/v20/javascript/availabilitySetsCreateOrUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/availabilitySetsCreateOrUpdateSample.js index d4e740532eea..d8b4e0f71303 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/availabilitySetsCreateOrUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/availabilitySetsCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or update an availability set. * * @summary Create or update an availability set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySet_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_Create.json */ async function createAnAvailabilitySet() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/availabilitySetsDeleteSample.js b/sdk/compute/arm-compute/samples/v21/javascript/availabilitySetsDeleteSample.js similarity index 80% rename from sdk/compute/arm-compute/samples/v20/javascript/availabilitySetsDeleteSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/availabilitySetsDeleteSample.js index 88cd8256c990..4bb0819ef466 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/availabilitySetsDeleteSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/availabilitySetsDeleteSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Delete an availability set. * * @summary Delete an availability set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_Delete_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_Delete_MaximumSet_Gen.json */ -async function availabilitySetsDeleteMaximumSetGen() { +async function availabilitySetDeleteMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const availabilitySetName = "aaaaaaaaaaaaaaaaaaaa"; @@ -32,9 +32,9 @@ async function availabilitySetsDeleteMaximumSetGen() { * This sample demonstrates how to Delete an availability set. * * @summary Delete an availability set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_Delete_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_Delete_MinimumSet_Gen.json */ -async function availabilitySetsDeleteMinimumSetGen() { +async function availabilitySetDeleteMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const availabilitySetName = "aaaaaaaaaaa"; @@ -45,8 +45,8 @@ async function availabilitySetsDeleteMinimumSetGen() { } async function main() { - availabilitySetsDeleteMaximumSetGen(); - availabilitySetsDeleteMinimumSetGen(); + availabilitySetDeleteMaximumSetGen(); + availabilitySetDeleteMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/availabilitySetsGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/availabilitySetsGetSample.js similarity index 81% rename from sdk/compute/arm-compute/samples/v20/javascript/availabilitySetsGetSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/availabilitySetsGetSample.js index e5a75dae97b1..a8c9e14611dc 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/availabilitySetsGetSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/availabilitySetsGetSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves information about an availability set. * * @summary Retrieves information about an availability set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_Get_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_Get_MaximumSet_Gen.json */ -async function availabilitySetsGetMaximumSetGen() { +async function availabilitySetGetMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const availabilitySetName = "aaaaaaaaaaaa"; @@ -32,9 +32,9 @@ async function availabilitySetsGetMaximumSetGen() { * This sample demonstrates how to Retrieves information about an availability set. * * @summary Retrieves information about an availability set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_Get_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_Get_MinimumSet_Gen.json */ -async function availabilitySetsGetMinimumSetGen() { +async function availabilitySetGetMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const availabilitySetName = "aaaaaaaaaaaaaaaaaaaa"; @@ -45,8 +45,8 @@ async function availabilitySetsGetMinimumSetGen() { } async function main() { - availabilitySetsGetMaximumSetGen(); - availabilitySetsGetMinimumSetGen(); + availabilitySetGetMaximumSetGen(); + availabilitySetGetMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/availabilitySetsListAvailableSizesSample.js b/sdk/compute/arm-compute/samples/v21/javascript/availabilitySetsListAvailableSizesSample.js similarity index 82% rename from sdk/compute/arm-compute/samples/v20/javascript/availabilitySetsListAvailableSizesSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/availabilitySetsListAvailableSizesSample.js index 0a2629f9d4e4..9fd0deb5f780 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/availabilitySetsListAvailableSizesSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/availabilitySetsListAvailableSizesSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set. * * @summary Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_ListAvailableSizes_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_ListAvailableSizes_MaximumSet_Gen.json */ -async function availabilitySetsListAvailableSizesMaximumSetGen() { +async function availabilitySetListAvailableSizesMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const availabilitySetName = "aaaaaaaaaaaaaaaaaaaa"; @@ -38,9 +38,9 @@ async function availabilitySetsListAvailableSizesMaximumSetGen() { * This sample demonstrates how to Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set. * * @summary Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_ListAvailableSizes_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_ListAvailableSizes_MinimumSet_Gen.json */ -async function availabilitySetsListAvailableSizesMinimumSetGen() { +async function availabilitySetListAvailableSizesMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const availabilitySetName = "aa"; @@ -57,8 +57,8 @@ async function availabilitySetsListAvailableSizesMinimumSetGen() { } async function main() { - availabilitySetsListAvailableSizesMaximumSetGen(); - availabilitySetsListAvailableSizesMinimumSetGen(); + availabilitySetListAvailableSizesMaximumSetGen(); + availabilitySetListAvailableSizesMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/availabilitySetsListBySubscriptionSample.js b/sdk/compute/arm-compute/samples/v21/javascript/availabilitySetsListBySubscriptionSample.js similarity index 95% rename from sdk/compute/arm-compute/samples/v20/javascript/availabilitySetsListBySubscriptionSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/availabilitySetsListBySubscriptionSample.js index 28d9bd7a4b4b..3992e0801400 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/availabilitySetsListBySubscriptionSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/availabilitySetsListBySubscriptionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all availability sets in a subscription. * * @summary Lists all availability sets in a subscription. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySet_ListBySubscription.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_ListBySubscription.json */ async function listAvailabilitySetsInASubscription() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/availabilitySetsListSample.js b/sdk/compute/arm-compute/samples/v21/javascript/availabilitySetsListSample.js similarity index 81% rename from sdk/compute/arm-compute/samples/v20/javascript/availabilitySetsListSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/availabilitySetsListSample.js index b590eda68ad8..62a71816e798 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/availabilitySetsListSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/availabilitySetsListSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Lists all availability sets in a resource group. * * @summary Lists all availability sets in a resource group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_List_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_List_MaximumSet_Gen.json */ -async function availabilitySetsListMaximumSetGen() { +async function availabilitySetListMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const credential = new DefaultAzureCredential(); @@ -34,9 +34,9 @@ async function availabilitySetsListMaximumSetGen() { * This sample demonstrates how to Lists all availability sets in a resource group. * * @summary Lists all availability sets in a resource group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_List_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_List_MinimumSet_Gen.json */ -async function availabilitySetsListMinimumSetGen() { +async function availabilitySetListMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const credential = new DefaultAzureCredential(); @@ -49,8 +49,8 @@ async function availabilitySetsListMinimumSetGen() { } async function main() { - availabilitySetsListMaximumSetGen(); - availabilitySetsListMinimumSetGen(); + availabilitySetListMaximumSetGen(); + availabilitySetListMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/availabilitySetsUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/availabilitySetsUpdateSample.js similarity index 85% rename from sdk/compute/arm-compute/samples/v20/javascript/availabilitySetsUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/availabilitySetsUpdateSample.js index 75d3f2efccb2..d45c07667ab5 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/availabilitySetsUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/availabilitySetsUpdateSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Update an availability set. * * @summary Update an availability set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_Update_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_Update_MaximumSet_Gen.json */ -async function availabilitySetsUpdateMaximumSetGen() { +async function availabilitySetUpdateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const availabilitySetName = "aaaaaaaaaaaaaaaaaaa"; @@ -50,9 +50,9 @@ async function availabilitySetsUpdateMaximumSetGen() { * This sample demonstrates how to Update an availability set. * * @summary Update an availability set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_Update_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_Update_MinimumSet_Gen.json */ -async function availabilitySetsUpdateMinimumSetGen() { +async function availabilitySetUpdateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const availabilitySetName = "aaaaaaaaaaaaaaaaaaaa"; @@ -68,8 +68,8 @@ async function availabilitySetsUpdateMinimumSetGen() { } async function main() { - availabilitySetsUpdateMaximumSetGen(); - availabilitySetsUpdateMinimumSetGen(); + availabilitySetUpdateMaximumSetGen(); + availabilitySetUpdateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/capacityReservationGroupsCreateOrUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/capacityReservationGroupsCreateOrUpdateSample.js similarity index 96% rename from sdk/compute/arm-compute/samples/v20/javascript/capacityReservationGroupsCreateOrUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/capacityReservationGroupsCreateOrUpdateSample.js index c349e5b78aed..99f4bcdf2a48 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/capacityReservationGroupsCreateOrUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/capacityReservationGroupsCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to create or update a capacity reservation group. When updating a capacity reservation group, only tags may be modified. Please refer to https://aka.ms/CapacityReservation for more details. * * @summary The operation to create or update a capacity reservation group. When updating a capacity reservation group, only tags may be modified. Please refer to https://aka.ms/CapacityReservation for more details. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservationGroup_CreateOrUpdate.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservationGroup_CreateOrUpdate.json */ async function createOrUpdateACapacityReservationGroup() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/capacityReservationGroupsDeleteSample.js b/sdk/compute/arm-compute/samples/v21/javascript/capacityReservationGroupsDeleteSample.js similarity index 89% rename from sdk/compute/arm-compute/samples/v20/javascript/capacityReservationGroupsDeleteSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/capacityReservationGroupsDeleteSample.js index a0d9ea051195..60daf43785f3 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/capacityReservationGroupsDeleteSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/capacityReservationGroupsDeleteSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to The operation to delete a capacity reservation group. This operation is allowed only if all the associated resources are disassociated from the reservation group and all capacity reservations under the reservation group have also been deleted. Please refer to https://aka.ms/CapacityReservation for more details. * * @summary The operation to delete a capacity reservation group. This operation is allowed only if all the associated resources are disassociated from the reservation group and all capacity reservations under the reservation group have also been deleted. Please refer to https://aka.ms/CapacityReservation for more details. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservationGroup_Delete_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservationGroup_Delete_MaximumSet_Gen.json */ -async function capacityReservationGroupsDeleteMaximumSetGen() { +async function capacityReservationGroupDeleteMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const capacityReservationGroupName = "a"; @@ -35,9 +35,9 @@ async function capacityReservationGroupsDeleteMaximumSetGen() { * This sample demonstrates how to The operation to delete a capacity reservation group. This operation is allowed only if all the associated resources are disassociated from the reservation group and all capacity reservations under the reservation group have also been deleted. Please refer to https://aka.ms/CapacityReservation for more details. * * @summary The operation to delete a capacity reservation group. This operation is allowed only if all the associated resources are disassociated from the reservation group and all capacity reservations under the reservation group have also been deleted. Please refer to https://aka.ms/CapacityReservation for more details. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservationGroup_Delete_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservationGroup_Delete_MinimumSet_Gen.json */ -async function capacityReservationGroupsDeleteMinimumSetGen() { +async function capacityReservationGroupDeleteMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const capacityReservationGroupName = "aaaaaaaaaaaaaaaaaaaaaaaaaa"; @@ -51,8 +51,8 @@ async function capacityReservationGroupsDeleteMinimumSetGen() { } async function main() { - capacityReservationGroupsDeleteMaximumSetGen(); - capacityReservationGroupsDeleteMinimumSetGen(); + capacityReservationGroupDeleteMaximumSetGen(); + capacityReservationGroupDeleteMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/capacityReservationGroupsGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/capacityReservationGroupsGetSample.js similarity index 95% rename from sdk/compute/arm-compute/samples/v20/javascript/capacityReservationGroupsGetSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/capacityReservationGroupsGetSample.js index ec8d206d2e8e..a1fecb230500 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/capacityReservationGroupsGetSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/capacityReservationGroupsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation that retrieves information about a capacity reservation group. * * @summary The operation that retrieves information about a capacity reservation group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservationGroup_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservationGroup_Get.json */ async function getACapacityReservationGroup() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/capacityReservationGroupsListByResourceGroupSample.js b/sdk/compute/arm-compute/samples/v21/javascript/capacityReservationGroupsListByResourceGroupSample.js similarity index 96% rename from sdk/compute/arm-compute/samples/v20/javascript/capacityReservationGroupsListByResourceGroupSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/capacityReservationGroupsListByResourceGroupSample.js index fd837f089512..3a26d1477a2c 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/capacityReservationGroupsListByResourceGroupSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/capacityReservationGroupsListByResourceGroupSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all of the capacity reservation groups in the specified resource group. Use the nextLink property in the response to get the next page of capacity reservation groups. * * @summary Lists all of the capacity reservation groups in the specified resource group. Use the nextLink property in the response to get the next page of capacity reservation groups. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservationGroup_ListByResourceGroup.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservationGroup_ListByResourceGroup.json */ async function listCapacityReservationGroupsInResourceGroup() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/capacityReservationGroupsListBySubscriptionSample.js b/sdk/compute/arm-compute/samples/v21/javascript/capacityReservationGroupsListBySubscriptionSample.js similarity index 96% rename from sdk/compute/arm-compute/samples/v20/javascript/capacityReservationGroupsListBySubscriptionSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/capacityReservationGroupsListBySubscriptionSample.js index 330d2ad45829..79b1b6d3d872 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/capacityReservationGroupsListBySubscriptionSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/capacityReservationGroupsListBySubscriptionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all of the capacity reservation groups in the subscription. Use the nextLink property in the response to get the next page of capacity reservation groups. * * @summary Lists all of the capacity reservation groups in the subscription. Use the nextLink property in the response to get the next page of capacity reservation groups. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservationGroup_ListBySubscription.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservationGroup_ListBySubscription.json */ async function listCapacityReservationGroupsInSubscription() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/capacityReservationGroupsUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/capacityReservationGroupsUpdateSample.js similarity index 87% rename from sdk/compute/arm-compute/samples/v20/javascript/capacityReservationGroupsUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/capacityReservationGroupsUpdateSample.js index 1a463938f0a6..b3576fc983a0 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/capacityReservationGroupsUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/capacityReservationGroupsUpdateSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to The operation to update a capacity reservation group. When updating a capacity reservation group, only tags may be modified. * * @summary The operation to update a capacity reservation group. When updating a capacity reservation group, only tags may be modified. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservationGroup_Update_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservationGroup_Update_MaximumSet_Gen.json */ -async function capacityReservationGroupsUpdateMaximumSetGen() { +async function capacityReservationGroupUpdateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const capacityReservationGroupName = "aaaaaaaaaaaaaaaaaaaaaa"; @@ -40,9 +40,9 @@ async function capacityReservationGroupsUpdateMaximumSetGen() { * This sample demonstrates how to The operation to update a capacity reservation group. When updating a capacity reservation group, only tags may be modified. * * @summary The operation to update a capacity reservation group. When updating a capacity reservation group, only tags may be modified. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservationGroup_Update_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservationGroup_Update_MinimumSet_Gen.json */ -async function capacityReservationGroupsUpdateMinimumSetGen() { +async function capacityReservationGroupUpdateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const capacityReservationGroupName = "aaaaaaaaaaaaaaaaaaaaaa"; @@ -58,8 +58,8 @@ async function capacityReservationGroupsUpdateMinimumSetGen() { } async function main() { - capacityReservationGroupsUpdateMaximumSetGen(); - capacityReservationGroupsUpdateMinimumSetGen(); + capacityReservationGroupUpdateMaximumSetGen(); + capacityReservationGroupUpdateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/capacityReservationsCreateOrUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/capacityReservationsCreateOrUpdateSample.js similarity index 96% rename from sdk/compute/arm-compute/samples/v20/javascript/capacityReservationsCreateOrUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/capacityReservationsCreateOrUpdateSample.js index 866c115d82b6..3563dfc02f6a 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/capacityReservationsCreateOrUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/capacityReservationsCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to create or update a capacity reservation. Please note some properties can be set only during capacity reservation creation. Please refer to https://aka.ms/CapacityReservation for more details. * * @summary The operation to create or update a capacity reservation. Please note some properties can be set only during capacity reservation creation. Please refer to https://aka.ms/CapacityReservation for more details. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservation_CreateOrUpdate.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservation_CreateOrUpdate.json */ async function createOrUpdateACapacityReservation() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/capacityReservationsDeleteSample.js b/sdk/compute/arm-compute/samples/v21/javascript/capacityReservationsDeleteSample.js similarity index 89% rename from sdk/compute/arm-compute/samples/v20/javascript/capacityReservationsDeleteSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/capacityReservationsDeleteSample.js index c2031ec22856..ed75689bf7a2 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/capacityReservationsDeleteSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/capacityReservationsDeleteSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to The operation to delete a capacity reservation. This operation is allowed only when all the associated resources are disassociated from the capacity reservation. Please refer to https://aka.ms/CapacityReservation for more details. * * @summary The operation to delete a capacity reservation. This operation is allowed only when all the associated resources are disassociated from the capacity reservation. Please refer to https://aka.ms/CapacityReservation for more details. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservation_Delete_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservation_Delete_MaximumSet_Gen.json */ -async function capacityReservationsDeleteMaximumSetGen() { +async function capacityReservationDeleteMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const capacityReservationGroupName = "aaaaaaaaaaa"; @@ -37,9 +37,9 @@ async function capacityReservationsDeleteMaximumSetGen() { * This sample demonstrates how to The operation to delete a capacity reservation. This operation is allowed only when all the associated resources are disassociated from the capacity reservation. Please refer to https://aka.ms/CapacityReservation for more details. * * @summary The operation to delete a capacity reservation. This operation is allowed only when all the associated resources are disassociated from the capacity reservation. Please refer to https://aka.ms/CapacityReservation for more details. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservation_Delete_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservation_Delete_MinimumSet_Gen.json */ -async function capacityReservationsDeleteMinimumSetGen() { +async function capacityReservationDeleteMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const capacityReservationGroupName = "aaa"; @@ -55,8 +55,8 @@ async function capacityReservationsDeleteMinimumSetGen() { } async function main() { - capacityReservationsDeleteMaximumSetGen(); - capacityReservationsDeleteMinimumSetGen(); + capacityReservationDeleteMaximumSetGen(); + capacityReservationDeleteMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/capacityReservationsGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/capacityReservationsGetSample.js similarity index 96% rename from sdk/compute/arm-compute/samples/v20/javascript/capacityReservationsGetSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/capacityReservationsGetSample.js index 022de1853f05..496c3842e50e 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/capacityReservationsGetSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/capacityReservationsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation that retrieves information about the capacity reservation. * * @summary The operation that retrieves information about the capacity reservation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservation_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservation_Get.json */ async function getACapacityReservation() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/capacityReservationsListByCapacityReservationGroupSample.js b/sdk/compute/arm-compute/samples/v21/javascript/capacityReservationsListByCapacityReservationGroupSample.js similarity index 96% rename from sdk/compute/arm-compute/samples/v20/javascript/capacityReservationsListByCapacityReservationGroupSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/capacityReservationsListByCapacityReservationGroupSample.js index c9a614080081..144b90de0752 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/capacityReservationsListByCapacityReservationGroupSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/capacityReservationsListByCapacityReservationGroupSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all of the capacity reservations in the specified capacity reservation group. Use the nextLink property in the response to get the next page of capacity reservations. * * @summary Lists all of the capacity reservations in the specified capacity reservation group. Use the nextLink property in the response to get the next page of capacity reservations. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservation_ListByReservationGroup.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservation_ListByReservationGroup.json */ async function listCapacityReservationsInReservationGroup() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/capacityReservationsUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/capacityReservationsUpdateSample.js similarity index 89% rename from sdk/compute/arm-compute/samples/v20/javascript/capacityReservationsUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/capacityReservationsUpdateSample.js index b4414cdfb61f..4d346d4ce212 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/capacityReservationsUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/capacityReservationsUpdateSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to The operation to update a capacity reservation. * * @summary The operation to update a capacity reservation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservation_Update_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservation_Update_MaximumSet_Gen.json */ -async function capacityReservationsUpdateMaximumSetGen() { +async function capacityReservationUpdateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const capacityReservationGroupName = "aaaaaaaaaa"; @@ -54,9 +54,9 @@ async function capacityReservationsUpdateMaximumSetGen() { * This sample demonstrates how to The operation to update a capacity reservation. * * @summary The operation to update a capacity reservation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservation_Update_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservation_Update_MinimumSet_Gen.json */ -async function capacityReservationsUpdateMinimumSetGen() { +async function capacityReservationUpdateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const capacityReservationGroupName = "aaaaaaaaaaaaaaaaaaaaaaaaaa"; @@ -74,8 +74,8 @@ async function capacityReservationsUpdateMinimumSetGen() { } async function main() { - capacityReservationsUpdateMaximumSetGen(); - capacityReservationsUpdateMinimumSetGen(); + capacityReservationUpdateMaximumSetGen(); + capacityReservationUpdateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/cloudServiceOperatingSystemsGetOSFamilySample.js b/sdk/compute/arm-compute/samples/v21/javascript/cloudServiceOperatingSystemsGetOSFamilySample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/cloudServiceOperatingSystemsGetOSFamilySample.js rename to sdk/compute/arm-compute/samples/v21/javascript/cloudServiceOperatingSystemsGetOSFamilySample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/cloudServiceOperatingSystemsGetOSVersionSample.js b/sdk/compute/arm-compute/samples/v21/javascript/cloudServiceOperatingSystemsGetOSVersionSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/cloudServiceOperatingSystemsGetOSVersionSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/cloudServiceOperatingSystemsGetOSVersionSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/cloudServiceOperatingSystemsListOSFamiliesSample.js b/sdk/compute/arm-compute/samples/v21/javascript/cloudServiceOperatingSystemsListOSFamiliesSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/cloudServiceOperatingSystemsListOSFamiliesSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/cloudServiceOperatingSystemsListOSFamiliesSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/cloudServiceOperatingSystemsListOSVersionsSample.js b/sdk/compute/arm-compute/samples/v21/javascript/cloudServiceOperatingSystemsListOSVersionsSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/cloudServiceOperatingSystemsListOSVersionsSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/cloudServiceOperatingSystemsListOSVersionsSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/cloudServiceRoleInstancesDeleteSample.js b/sdk/compute/arm-compute/samples/v21/javascript/cloudServiceRoleInstancesDeleteSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/cloudServiceRoleInstancesDeleteSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/cloudServiceRoleInstancesDeleteSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/cloudServiceRoleInstancesGetInstanceViewSample.js b/sdk/compute/arm-compute/samples/v21/javascript/cloudServiceRoleInstancesGetInstanceViewSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/cloudServiceRoleInstancesGetInstanceViewSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/cloudServiceRoleInstancesGetInstanceViewSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/cloudServiceRoleInstancesGetRemoteDesktopFileSample.js b/sdk/compute/arm-compute/samples/v21/javascript/cloudServiceRoleInstancesGetRemoteDesktopFileSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/cloudServiceRoleInstancesGetRemoteDesktopFileSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/cloudServiceRoleInstancesGetRemoteDesktopFileSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/cloudServiceRoleInstancesGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/cloudServiceRoleInstancesGetSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/cloudServiceRoleInstancesGetSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/cloudServiceRoleInstancesGetSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/cloudServiceRoleInstancesListSample.js b/sdk/compute/arm-compute/samples/v21/javascript/cloudServiceRoleInstancesListSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/cloudServiceRoleInstancesListSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/cloudServiceRoleInstancesListSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/cloudServiceRoleInstancesRebuildSample.js b/sdk/compute/arm-compute/samples/v21/javascript/cloudServiceRoleInstancesRebuildSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/cloudServiceRoleInstancesRebuildSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/cloudServiceRoleInstancesRebuildSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/cloudServiceRoleInstancesReimageSample.js b/sdk/compute/arm-compute/samples/v21/javascript/cloudServiceRoleInstancesReimageSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/cloudServiceRoleInstancesReimageSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/cloudServiceRoleInstancesReimageSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/cloudServiceRoleInstancesRestartSample.js b/sdk/compute/arm-compute/samples/v21/javascript/cloudServiceRoleInstancesRestartSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/cloudServiceRoleInstancesRestartSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/cloudServiceRoleInstancesRestartSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/cloudServiceRolesGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/cloudServiceRolesGetSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/cloudServiceRolesGetSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/cloudServiceRolesGetSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/cloudServiceRolesListSample.js b/sdk/compute/arm-compute/samples/v21/javascript/cloudServiceRolesListSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/cloudServiceRolesListSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/cloudServiceRolesListSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/cloudServicesCreateOrUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/cloudServicesCreateOrUpdateSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/cloudServicesCreateOrUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/cloudServicesCreateOrUpdateSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/cloudServicesDeleteInstancesSample.js b/sdk/compute/arm-compute/samples/v21/javascript/cloudServicesDeleteInstancesSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/cloudServicesDeleteInstancesSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/cloudServicesDeleteInstancesSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/cloudServicesDeleteSample.js b/sdk/compute/arm-compute/samples/v21/javascript/cloudServicesDeleteSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/cloudServicesDeleteSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/cloudServicesDeleteSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/cloudServicesGetInstanceViewSample.js b/sdk/compute/arm-compute/samples/v21/javascript/cloudServicesGetInstanceViewSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/cloudServicesGetInstanceViewSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/cloudServicesGetInstanceViewSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/cloudServicesGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/cloudServicesGetSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/cloudServicesGetSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/cloudServicesGetSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/cloudServicesListAllSample.js b/sdk/compute/arm-compute/samples/v21/javascript/cloudServicesListAllSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/cloudServicesListAllSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/cloudServicesListAllSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/cloudServicesListSample.js b/sdk/compute/arm-compute/samples/v21/javascript/cloudServicesListSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/cloudServicesListSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/cloudServicesListSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/cloudServicesPowerOffSample.js b/sdk/compute/arm-compute/samples/v21/javascript/cloudServicesPowerOffSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/cloudServicesPowerOffSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/cloudServicesPowerOffSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/cloudServicesRebuildSample.js b/sdk/compute/arm-compute/samples/v21/javascript/cloudServicesRebuildSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/cloudServicesRebuildSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/cloudServicesRebuildSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/cloudServicesReimageSample.js b/sdk/compute/arm-compute/samples/v21/javascript/cloudServicesReimageSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/cloudServicesReimageSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/cloudServicesReimageSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/cloudServicesRestartSample.js b/sdk/compute/arm-compute/samples/v21/javascript/cloudServicesRestartSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/cloudServicesRestartSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/cloudServicesRestartSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/cloudServicesStartSample.js b/sdk/compute/arm-compute/samples/v21/javascript/cloudServicesStartSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/cloudServicesStartSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/cloudServicesStartSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/cloudServicesUpdateDomainGetUpdateDomainSample.js b/sdk/compute/arm-compute/samples/v21/javascript/cloudServicesUpdateDomainGetUpdateDomainSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/cloudServicesUpdateDomainGetUpdateDomainSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/cloudServicesUpdateDomainGetUpdateDomainSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/cloudServicesUpdateDomainListUpdateDomainsSample.js b/sdk/compute/arm-compute/samples/v21/javascript/cloudServicesUpdateDomainListUpdateDomainsSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/cloudServicesUpdateDomainListUpdateDomainsSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/cloudServicesUpdateDomainListUpdateDomainsSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/cloudServicesUpdateDomainWalkUpdateDomainSample.js b/sdk/compute/arm-compute/samples/v21/javascript/cloudServicesUpdateDomainWalkUpdateDomainSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/cloudServicesUpdateDomainWalkUpdateDomainSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/cloudServicesUpdateDomainWalkUpdateDomainSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/cloudServicesUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/cloudServicesUpdateSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/cloudServicesUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/cloudServicesUpdateSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/communityGalleriesGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/communityGalleriesGetSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/communityGalleriesGetSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/communityGalleriesGetSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/communityGalleryImageVersionsGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/communityGalleryImageVersionsGetSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/communityGalleryImageVersionsGetSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/communityGalleryImageVersionsGetSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/communityGalleryImageVersionsListSample.js b/sdk/compute/arm-compute/samples/v21/javascript/communityGalleryImageVersionsListSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/communityGalleryImageVersionsListSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/communityGalleryImageVersionsListSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/communityGalleryImagesGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/communityGalleryImagesGetSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/communityGalleryImagesGetSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/communityGalleryImagesGetSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/communityGalleryImagesListSample.js b/sdk/compute/arm-compute/samples/v21/javascript/communityGalleryImagesListSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/communityGalleryImagesListSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/communityGalleryImagesListSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostGroupsCreateOrUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostGroupsCreateOrUpdateSample.js similarity index 96% rename from sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostGroupsCreateOrUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostGroupsCreateOrUpdateSample.js index eff3aa43ce84..04fcdeacc40a 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostGroupsCreateOrUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostGroupsCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups please see [Dedicated Host Documentation] (https://go.microsoft.com/fwlink/?linkid=2082596) * * @summary Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups please see [Dedicated Host Documentation] (https://go.microsoft.com/fwlink/?linkid=2082596) - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroup_CreateOrUpdate_WithUltraSSD.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_CreateOrUpdate_WithUltraSSD.json */ async function createOrUpdateADedicatedHostGroupWithUltraSsdSupport() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -44,7 +44,7 @@ async function createOrUpdateADedicatedHostGroupWithUltraSsdSupport() { * This sample demonstrates how to Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups please see [Dedicated Host Documentation] (https://go.microsoft.com/fwlink/?linkid=2082596) * * @summary Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups please see [Dedicated Host Documentation] (https://go.microsoft.com/fwlink/?linkid=2082596) - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroup_CreateOrUpdate.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_CreateOrUpdate.json */ async function createOrUpdateADedicatedHostGroup() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostGroupsDeleteSample.js b/sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostGroupsDeleteSample.js similarity index 79% rename from sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostGroupsDeleteSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostGroupsDeleteSample.js index cfd740991a59..38de3cfd9c09 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostGroupsDeleteSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostGroupsDeleteSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Delete a dedicated host group. * * @summary Delete a dedicated host group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroups_Delete_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_Delete_MaximumSet_Gen.json */ -async function dedicatedHostGroupsDeleteMaximumSetGen() { +async function dedicatedHostGroupDeleteMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const hostGroupName = "a"; @@ -32,9 +32,9 @@ async function dedicatedHostGroupsDeleteMaximumSetGen() { * This sample demonstrates how to Delete a dedicated host group. * * @summary Delete a dedicated host group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroups_Delete_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_Delete_MinimumSet_Gen.json */ -async function dedicatedHostGroupsDeleteMinimumSetGen() { +async function dedicatedHostGroupDeleteMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const hostGroupName = "aaaa"; @@ -45,8 +45,8 @@ async function dedicatedHostGroupsDeleteMinimumSetGen() { } async function main() { - dedicatedHostGroupsDeleteMaximumSetGen(); - dedicatedHostGroupsDeleteMinimumSetGen(); + dedicatedHostGroupDeleteMaximumSetGen(); + dedicatedHostGroupDeleteMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostGroupsGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostGroupsGetSample.js similarity index 94% rename from sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostGroupsGetSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostGroupsGetSample.js index ecb82c0f6735..d3c5163aea88 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostGroupsGetSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostGroupsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves information about a dedicated host group. * * @summary Retrieves information about a dedicated host group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroup_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_Get.json */ async function createADedicatedHostGroup() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}"; @@ -32,7 +32,7 @@ async function createADedicatedHostGroup() { * This sample demonstrates how to Retrieves information about a dedicated host group. * * @summary Retrieves information about a dedicated host group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroup_Get_UltraSSDEnabledDedicatedHostGroup.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_Get_UltraSSDEnabledDedicatedHostGroup.json */ async function createAnUltraSsdEnabledDedicatedHostGroup() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostGroupsListByResourceGroupSample.js b/sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostGroupsListByResourceGroupSample.js similarity index 81% rename from sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostGroupsListByResourceGroupSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostGroupsListByResourceGroupSample.js index 8525f5664e34..7b3f5c6cf0e2 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostGroupsListByResourceGroupSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostGroupsListByResourceGroupSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Lists all of the dedicated host groups in the specified resource group. Use the nextLink property in the response to get the next page of dedicated host groups. * * @summary Lists all of the dedicated host groups in the specified resource group. Use the nextLink property in the response to get the next page of dedicated host groups. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroups_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_ListByResourceGroup_MaximumSet_Gen.json */ -async function dedicatedHostGroupsListByResourceGroupMaximumSetGen() { +async function dedicatedHostGroupListByResourceGroupMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const credential = new DefaultAzureCredential(); @@ -34,9 +34,9 @@ async function dedicatedHostGroupsListByResourceGroupMaximumSetGen() { * This sample demonstrates how to Lists all of the dedicated host groups in the specified resource group. Use the nextLink property in the response to get the next page of dedicated host groups. * * @summary Lists all of the dedicated host groups in the specified resource group. Use the nextLink property in the response to get the next page of dedicated host groups. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroups_ListByResourceGroup_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_ListByResourceGroup_MinimumSet_Gen.json */ -async function dedicatedHostGroupsListByResourceGroupMinimumSetGen() { +async function dedicatedHostGroupListByResourceGroupMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const credential = new DefaultAzureCredential(); @@ -49,8 +49,8 @@ async function dedicatedHostGroupsListByResourceGroupMinimumSetGen() { } async function main() { - dedicatedHostGroupsListByResourceGroupMaximumSetGen(); - dedicatedHostGroupsListByResourceGroupMinimumSetGen(); + dedicatedHostGroupListByResourceGroupMaximumSetGen(); + dedicatedHostGroupListByResourceGroupMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostGroupsListBySubscriptionSample.js b/sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostGroupsListBySubscriptionSample.js similarity index 80% rename from sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostGroupsListBySubscriptionSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostGroupsListBySubscriptionSample.js index 0a19ff0e2bed..051656fa0286 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostGroupsListBySubscriptionSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostGroupsListBySubscriptionSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Lists all of the dedicated host groups in the subscription. Use the nextLink property in the response to get the next page of dedicated host groups. * * @summary Lists all of the dedicated host groups in the subscription. Use the nextLink property in the response to get the next page of dedicated host groups. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroups_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_ListBySubscription_MaximumSet_Gen.json */ -async function dedicatedHostGroupsListBySubscriptionMaximumSetGen() { +async function dedicatedHostGroupListBySubscriptionMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -33,9 +33,9 @@ async function dedicatedHostGroupsListBySubscriptionMaximumSetGen() { * This sample demonstrates how to Lists all of the dedicated host groups in the subscription. Use the nextLink property in the response to get the next page of dedicated host groups. * * @summary Lists all of the dedicated host groups in the subscription. Use the nextLink property in the response to get the next page of dedicated host groups. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroups_ListBySubscription_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_ListBySubscription_MinimumSet_Gen.json */ -async function dedicatedHostGroupsListBySubscriptionMinimumSetGen() { +async function dedicatedHostGroupListBySubscriptionMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -47,8 +47,8 @@ async function dedicatedHostGroupsListBySubscriptionMinimumSetGen() { } async function main() { - dedicatedHostGroupsListBySubscriptionMaximumSetGen(); - dedicatedHostGroupsListBySubscriptionMinimumSetGen(); + dedicatedHostGroupListBySubscriptionMaximumSetGen(); + dedicatedHostGroupListBySubscriptionMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostGroupsUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostGroupsUpdateSample.js similarity index 84% rename from sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostGroupsUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostGroupsUpdateSample.js index cdab08627a6b..7545d180c4a0 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostGroupsUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostGroupsUpdateSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Update an dedicated host group. * * @summary Update an dedicated host group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroups_Update_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_Update_MaximumSet_Gen.json */ -async function dedicatedHostGroupsUpdateMaximumSetGen() { +async function dedicatedHostGroupUpdateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const hostGroupName = "aaaa"; @@ -60,9 +60,9 @@ async function dedicatedHostGroupsUpdateMaximumSetGen() { * This sample demonstrates how to Update an dedicated host group. * * @summary Update an dedicated host group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroups_Update_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_Update_MinimumSet_Gen.json */ -async function dedicatedHostGroupsUpdateMinimumSetGen() { +async function dedicatedHostGroupUpdateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const hostGroupName = "aaaaaaaaaaa"; @@ -78,8 +78,8 @@ async function dedicatedHostGroupsUpdateMinimumSetGen() { } async function main() { - dedicatedHostGroupsUpdateMaximumSetGen(); - dedicatedHostGroupsUpdateMinimumSetGen(); + dedicatedHostGroupUpdateMaximumSetGen(); + dedicatedHostGroupUpdateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostsCreateOrUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostsCreateOrUpdateSample.js similarity index 96% rename from sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostsCreateOrUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostsCreateOrUpdateSample.js index 9a6ae597d227..303caa557fbc 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostsCreateOrUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostsCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or update a dedicated host . * * @summary Create or update a dedicated host . - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHost_CreateOrUpdate.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_CreateOrUpdate.json */ async function createOrUpdateADedicatedHost() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostsDeleteSample.js b/sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostsDeleteSample.js similarity index 81% rename from sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostsDeleteSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostsDeleteSample.js index c9e34ff61761..715d0e0048f5 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostsDeleteSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostsDeleteSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Delete a dedicated host. * * @summary Delete a dedicated host. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHosts_Delete_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_Delete_MaximumSet_Gen.json */ -async function dedicatedHostsDeleteMaximumSetGen() { +async function dedicatedHostDeleteMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const hostGroupName = "aaaaaa"; @@ -37,9 +37,9 @@ async function dedicatedHostsDeleteMaximumSetGen() { * This sample demonstrates how to Delete a dedicated host. * * @summary Delete a dedicated host. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHosts_Delete_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_Delete_MinimumSet_Gen.json */ -async function dedicatedHostsDeleteMinimumSetGen() { +async function dedicatedHostDeleteMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const hostGroupName = "aaaaaaaaaaaaaaa"; @@ -55,8 +55,8 @@ async function dedicatedHostsDeleteMinimumSetGen() { } async function main() { - dedicatedHostsDeleteMaximumSetGen(); - dedicatedHostsDeleteMinimumSetGen(); + dedicatedHostDeleteMaximumSetGen(); + dedicatedHostDeleteMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostsGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostsGetSample.js similarity index 83% rename from sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostsGetSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostsGetSample.js index 11c60bdab355..fae7a170c5ad 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostsGetSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostsGetSample.js @@ -16,16 +16,23 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves information about a dedicated host. * * @summary Retrieves information about a dedicated host. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHost_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_Get.json */ async function getADedicatedHost() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; const hostGroupName = "myDedicatedHostGroup"; const hostName = "myHost"; + const expand = "instanceView"; + const options = { expand }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.dedicatedHosts.get(resourceGroupName, hostGroupName, hostName); + const result = await client.dedicatedHosts.get( + resourceGroupName, + hostGroupName, + hostName, + options + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostsListAvailableSizesSample.js b/sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostsListAvailableSizesSample.js new file mode 100644 index 000000000000..fe3743283e6a --- /dev/null +++ b/sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostsListAvailableSizesSample.js @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ComputeManagementClient } = require("@azure/arm-compute"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Lists all available dedicated host sizes to which the specified dedicated host can be resized. NOTE: The dedicated host sizes provided can be used to only scale up the existing dedicated host. + * + * @summary Lists all available dedicated host sizes to which the specified dedicated host can be resized. NOTE: The dedicated host sizes provided can be used to only scale up the existing dedicated host. + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_ListAvailableSizes.json + */ +async function getAvailableDedicatedHostSizes() { + const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}"; + const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; + const hostGroupName = "myDedicatedHostGroup"; + const hostName = "myHost"; + const credential = new DefaultAzureCredential(); + const client = new ComputeManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dedicatedHosts.listAvailableSizes( + resourceGroupName, + hostGroupName, + hostName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + getAvailableDedicatedHostSizes(); +} + +main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostsListByHostGroupSample.js b/sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostsListByHostGroupSample.js similarity index 83% rename from sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostsListByHostGroupSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostsListByHostGroupSample.js index 97c0168f3aa7..c74cf7e69b07 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostsListByHostGroupSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostsListByHostGroupSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink property in the response to get the next page of dedicated hosts. * * @summary Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink property in the response to get the next page of dedicated hosts. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHosts_ListByHostGroup_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_ListByHostGroup_MaximumSet_Gen.json */ -async function dedicatedHostsListByHostGroupMaximumSetGen() { +async function dedicatedHostListByHostGroupMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const hostGroupName = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; @@ -35,9 +35,9 @@ async function dedicatedHostsListByHostGroupMaximumSetGen() { * This sample demonstrates how to Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink property in the response to get the next page of dedicated hosts. * * @summary Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink property in the response to get the next page of dedicated hosts. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHosts_ListByHostGroup_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_ListByHostGroup_MinimumSet_Gen.json */ -async function dedicatedHostsListByHostGroupMinimumSetGen() { +async function dedicatedHostListByHostGroupMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const hostGroupName = "aaaa"; @@ -51,8 +51,8 @@ async function dedicatedHostsListByHostGroupMinimumSetGen() { } async function main() { - dedicatedHostsListByHostGroupMaximumSetGen(); - dedicatedHostsListByHostGroupMinimumSetGen(); + dedicatedHostListByHostGroupMaximumSetGen(); + dedicatedHostListByHostGroupMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostsRestartSample.js b/sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostsRestartSample.js similarity index 96% rename from sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostsRestartSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostsRestartSample.js index 5151760ce8f5..fff398b177d1 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostsRestartSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostsRestartSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Restart the dedicated host. The operation will complete successfully once the dedicated host has restarted and is running. To determine the health of VMs deployed on the dedicated host after the restart check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/azure/service-health/resource-health-overview for more details. * * @summary Restart the dedicated host. The operation will complete successfully once the dedicated host has restarted and is running. To determine the health of VMs deployed on the dedicated host after the restart check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/azure/service-health/resource-health-overview for more details. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHost_Restart.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_Restart.json */ async function restartDedicatedHost() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostsUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostsUpdateSample.js similarity index 59% rename from sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostsUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostsUpdateSample.js index dcc0973b1f1a..8e38d8eea498 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/dedicatedHostsUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/dedicatedHostsUpdateSample.js @@ -13,12 +13,12 @@ const { DefaultAzureCredential } = require("@azure/identity"); require("dotenv").config(); /** - * This sample demonstrates how to Update an dedicated host . + * This sample demonstrates how to Update a dedicated host . * - * @summary Update an dedicated host . - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHosts_Update_MaximumSet_Gen.json + * @summary Update a dedicated host . + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_Update_MaximumSet_Gen.json */ -async function dedicatedHostsUpdateMaximumSetGen() { +async function dedicatedHostUpdateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const hostGroupName = "aaaaaaaaa"; @@ -55,12 +55,12 @@ async function dedicatedHostsUpdateMaximumSetGen() { } /** - * This sample demonstrates how to Update an dedicated host . + * This sample demonstrates how to Update a dedicated host . * - * @summary Update an dedicated host . - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHosts_Update_MinimumSet_Gen.json + * @summary Update a dedicated host . + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_Update_MinimumSet_Gen.json */ -async function dedicatedHostsUpdateMinimumSetGen() { +async function dedicatedHostUpdateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const hostGroupName = "aa"; @@ -77,9 +77,33 @@ async function dedicatedHostsUpdateMinimumSetGen() { console.log(result); } +/** + * This sample demonstrates how to Update a dedicated host . + * + * @summary Update a dedicated host . + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_Update_Resize.json + */ +async function dedicatedHostUpdateResize() { + const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; + const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; + const hostGroupName = "aaaaaaaaa"; + const hostName = "aaaaaaaaaaaaaaaaaaaaa"; + const parameters = { sku: { name: "DSv3-Type1" } }; + const credential = new DefaultAzureCredential(); + const client = new ComputeManagementClient(credential, subscriptionId); + const result = await client.dedicatedHosts.beginUpdateAndWait( + resourceGroupName, + hostGroupName, + hostName, + parameters + ); + console.log(result); +} + async function main() { - dedicatedHostsUpdateMaximumSetGen(); - dedicatedHostsUpdateMinimumSetGen(); + dedicatedHostUpdateMaximumSetGen(); + dedicatedHostUpdateMinimumSetGen(); + dedicatedHostUpdateResize(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/diskAccessesCreateOrUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/diskAccessesCreateOrUpdateSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/diskAccessesCreateOrUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/diskAccessesCreateOrUpdateSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/diskAccessesDeleteAPrivateEndpointConnectionSample.js b/sdk/compute/arm-compute/samples/v21/javascript/diskAccessesDeleteAPrivateEndpointConnectionSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/diskAccessesDeleteAPrivateEndpointConnectionSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/diskAccessesDeleteAPrivateEndpointConnectionSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/diskAccessesDeleteSample.js b/sdk/compute/arm-compute/samples/v21/javascript/diskAccessesDeleteSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/diskAccessesDeleteSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/diskAccessesDeleteSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/diskAccessesGetAPrivateEndpointConnectionSample.js b/sdk/compute/arm-compute/samples/v21/javascript/diskAccessesGetAPrivateEndpointConnectionSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/diskAccessesGetAPrivateEndpointConnectionSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/diskAccessesGetAPrivateEndpointConnectionSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/diskAccessesGetPrivateLinkResourcesSample.js b/sdk/compute/arm-compute/samples/v21/javascript/diskAccessesGetPrivateLinkResourcesSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/diskAccessesGetPrivateLinkResourcesSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/diskAccessesGetPrivateLinkResourcesSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/diskAccessesGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/diskAccessesGetSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/diskAccessesGetSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/diskAccessesGetSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/diskAccessesListByResourceGroupSample.js b/sdk/compute/arm-compute/samples/v21/javascript/diskAccessesListByResourceGroupSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/diskAccessesListByResourceGroupSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/diskAccessesListByResourceGroupSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/diskAccessesListPrivateEndpointConnectionsSample.js b/sdk/compute/arm-compute/samples/v21/javascript/diskAccessesListPrivateEndpointConnectionsSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/diskAccessesListPrivateEndpointConnectionsSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/diskAccessesListPrivateEndpointConnectionsSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/diskAccessesListSample.js b/sdk/compute/arm-compute/samples/v21/javascript/diskAccessesListSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/diskAccessesListSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/diskAccessesListSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/diskAccessesUpdateAPrivateEndpointConnectionSample.js b/sdk/compute/arm-compute/samples/v21/javascript/diskAccessesUpdateAPrivateEndpointConnectionSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/diskAccessesUpdateAPrivateEndpointConnectionSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/diskAccessesUpdateAPrivateEndpointConnectionSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/diskAccessesUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/diskAccessesUpdateSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/diskAccessesUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/diskAccessesUpdateSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/diskEncryptionSetsCreateOrUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/diskEncryptionSetsCreateOrUpdateSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/diskEncryptionSetsCreateOrUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/diskEncryptionSetsCreateOrUpdateSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/diskEncryptionSetsDeleteSample.js b/sdk/compute/arm-compute/samples/v21/javascript/diskEncryptionSetsDeleteSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/diskEncryptionSetsDeleteSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/diskEncryptionSetsDeleteSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/diskEncryptionSetsGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/diskEncryptionSetsGetSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/diskEncryptionSetsGetSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/diskEncryptionSetsGetSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/diskEncryptionSetsListAssociatedResourcesSample.js b/sdk/compute/arm-compute/samples/v21/javascript/diskEncryptionSetsListAssociatedResourcesSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/diskEncryptionSetsListAssociatedResourcesSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/diskEncryptionSetsListAssociatedResourcesSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/diskEncryptionSetsListByResourceGroupSample.js b/sdk/compute/arm-compute/samples/v21/javascript/diskEncryptionSetsListByResourceGroupSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/diskEncryptionSetsListByResourceGroupSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/diskEncryptionSetsListByResourceGroupSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/diskEncryptionSetsListSample.js b/sdk/compute/arm-compute/samples/v21/javascript/diskEncryptionSetsListSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/diskEncryptionSetsListSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/diskEncryptionSetsListSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/diskEncryptionSetsUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/diskEncryptionSetsUpdateSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/diskEncryptionSetsUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/diskEncryptionSetsUpdateSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/diskRestorePointGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/diskRestorePointGetSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/diskRestorePointGetSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/diskRestorePointGetSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/diskRestorePointGrantAccessSample.js b/sdk/compute/arm-compute/samples/v21/javascript/diskRestorePointGrantAccessSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/diskRestorePointGrantAccessSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/diskRestorePointGrantAccessSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/diskRestorePointListByRestorePointSample.js b/sdk/compute/arm-compute/samples/v21/javascript/diskRestorePointListByRestorePointSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/diskRestorePointListByRestorePointSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/diskRestorePointListByRestorePointSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/diskRestorePointRevokeAccessSample.js b/sdk/compute/arm-compute/samples/v21/javascript/diskRestorePointRevokeAccessSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/diskRestorePointRevokeAccessSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/diskRestorePointRevokeAccessSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/disksCreateOrUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/disksCreateOrUpdateSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/disksCreateOrUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/disksCreateOrUpdateSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/disksDeleteSample.js b/sdk/compute/arm-compute/samples/v21/javascript/disksDeleteSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/disksDeleteSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/disksDeleteSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/disksGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/disksGetSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/disksGetSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/disksGetSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/disksGrantAccessSample.js b/sdk/compute/arm-compute/samples/v21/javascript/disksGrantAccessSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/disksGrantAccessSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/disksGrantAccessSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/disksListByResourceGroupSample.js b/sdk/compute/arm-compute/samples/v21/javascript/disksListByResourceGroupSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/disksListByResourceGroupSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/disksListByResourceGroupSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/disksListSample.js b/sdk/compute/arm-compute/samples/v21/javascript/disksListSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/disksListSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/disksListSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/disksRevokeAccessSample.js b/sdk/compute/arm-compute/samples/v21/javascript/disksRevokeAccessSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/disksRevokeAccessSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/disksRevokeAccessSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/disksUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/disksUpdateSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/disksUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/disksUpdateSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/galleriesCreateOrUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleriesCreateOrUpdateSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/galleriesCreateOrUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/galleriesCreateOrUpdateSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/galleriesDeleteSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleriesDeleteSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/galleriesDeleteSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/galleriesDeleteSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/galleriesGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleriesGetSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/galleriesGetSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/galleriesGetSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/galleriesListByResourceGroupSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleriesListByResourceGroupSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/galleriesListByResourceGroupSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/galleriesListByResourceGroupSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/galleriesListSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleriesListSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/galleriesListSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/galleriesListSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/galleriesUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleriesUpdateSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/galleriesUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/galleriesUpdateSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/galleryApplicationVersionsCreateOrUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsCreateOrUpdateSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/galleryApplicationVersionsCreateOrUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsCreateOrUpdateSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/galleryApplicationVersionsDeleteSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsDeleteSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/galleryApplicationVersionsDeleteSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsDeleteSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/galleryApplicationVersionsGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsGetSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/galleryApplicationVersionsGetSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsGetSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/galleryApplicationVersionsListByGalleryApplicationSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsListByGalleryApplicationSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/galleryApplicationVersionsListByGalleryApplicationSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsListByGalleryApplicationSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/galleryApplicationVersionsUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsUpdateSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/galleryApplicationVersionsUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsUpdateSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/galleryApplicationsCreateOrUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsCreateOrUpdateSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/galleryApplicationsCreateOrUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsCreateOrUpdateSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/galleryApplicationsDeleteSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsDeleteSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/galleryApplicationsDeleteSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsDeleteSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/galleryApplicationsGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsGetSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/galleryApplicationsGetSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsGetSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/galleryApplicationsListByGallerySample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsListByGallerySample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/galleryApplicationsListByGallerySample.js rename to sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsListByGallerySample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/galleryApplicationsUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsUpdateSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/galleryApplicationsUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsUpdateSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/galleryImageVersionsCreateOrUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsCreateOrUpdateSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/galleryImageVersionsCreateOrUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsCreateOrUpdateSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/galleryImageVersionsDeleteSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsDeleteSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/galleryImageVersionsDeleteSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsDeleteSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/galleryImageVersionsGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsGetSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/galleryImageVersionsGetSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsGetSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/galleryImageVersionsListByGalleryImageSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsListByGalleryImageSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/galleryImageVersionsListByGalleryImageSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsListByGalleryImageSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/galleryImageVersionsUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsUpdateSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/galleryImageVersionsUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsUpdateSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/galleryImagesCreateOrUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesCreateOrUpdateSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/galleryImagesCreateOrUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/galleryImagesCreateOrUpdateSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/galleryImagesDeleteSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesDeleteSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/galleryImagesDeleteSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/galleryImagesDeleteSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/galleryImagesGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesGetSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/galleryImagesGetSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/galleryImagesGetSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/galleryImagesListByGallerySample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesListByGallerySample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/galleryImagesListByGallerySample.js rename to sdk/compute/arm-compute/samples/v21/javascript/galleryImagesListByGallerySample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/galleryImagesUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesUpdateSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/galleryImagesUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/galleryImagesUpdateSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/gallerySharingProfileUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/gallerySharingProfileUpdateSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/gallerySharingProfileUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/gallerySharingProfileUpdateSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/imagesCreateOrUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/imagesCreateOrUpdateSample.js similarity index 95% rename from sdk/compute/arm-compute/samples/v20/javascript/imagesCreateOrUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/imagesCreateOrUpdateSample.js index a1a707e4157b..00ca064c847d 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/imagesCreateOrUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/imagesCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or update an image. * * @summary Create or update an image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_CreateFromABlobWithDiskEncryptionSet.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_CreateFromABlobWithDiskEncryptionSet.json */ async function createAVirtualMachineImageFromABlobWithDiskEncryptionSetResource() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -49,7 +49,7 @@ async function createAVirtualMachineImageFromABlobWithDiskEncryptionSetResource( * This sample demonstrates how to Create or update an image. * * @summary Create or update an image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_CreateFromABlob.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_CreateFromABlob.json */ async function createAVirtualMachineImageFromABlob() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -80,7 +80,7 @@ async function createAVirtualMachineImageFromABlob() { * This sample demonstrates how to Create or update an image. * * @summary Create or update an image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_CreateFromAManagedDiskWithDiskEncryptionSet.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_CreateFromAManagedDiskWithDiskEncryptionSet.json */ async function createAVirtualMachineImageFromAManagedDiskWithDiskEncryptionSetResource() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -115,7 +115,7 @@ async function createAVirtualMachineImageFromAManagedDiskWithDiskEncryptionSetRe * This sample demonstrates how to Create or update an image. * * @summary Create or update an image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_CreateFromAManagedDisk.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_CreateFromAManagedDisk.json */ async function createAVirtualMachineImageFromAManagedDisk() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -148,7 +148,7 @@ async function createAVirtualMachineImageFromAManagedDisk() { * This sample demonstrates how to Create or update an image. * * @summary Create or update an image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_CreateFromASnapshotWithDiskEncryptionSet.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_CreateFromASnapshotWithDiskEncryptionSet.json */ async function createAVirtualMachineImageFromASnapshotWithDiskEncryptionSetResource() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -183,7 +183,7 @@ async function createAVirtualMachineImageFromASnapshotWithDiskEncryptionSetResou * This sample demonstrates how to Create or update an image. * * @summary Create or update an image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_CreateFromASnapshot.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_CreateFromASnapshot.json */ async function createAVirtualMachineImageFromASnapshot() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -216,7 +216,7 @@ async function createAVirtualMachineImageFromASnapshot() { * This sample demonstrates how to Create or update an image. * * @summary Create or update an image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_CreateFromAVM.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_CreateFromAVM.json */ async function createAVirtualMachineImageFromAnExistingVirtualMachine() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -242,7 +242,7 @@ async function createAVirtualMachineImageFromAnExistingVirtualMachine() { * This sample demonstrates how to Create or update an image. * * @summary Create or update an image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_Create_DataDiskFromABlobIncluded.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_Create_DataDiskFromABlobIncluded.json */ async function createAVirtualMachineImageThatIncludesADataDiskFromABlob() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -279,7 +279,7 @@ async function createAVirtualMachineImageThatIncludesADataDiskFromABlob() { * This sample demonstrates how to Create or update an image. * * @summary Create or update an image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_Create_DataDiskFromAManagedDiskIncluded.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_Create_DataDiskFromAManagedDiskIncluded.json */ async function createAVirtualMachineImageThatIncludesADataDiskFromAManagedDisk() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -320,7 +320,7 @@ async function createAVirtualMachineImageThatIncludesADataDiskFromAManagedDisk() * This sample demonstrates how to Create or update an image. * * @summary Create or update an image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_Create_DataDiskFromASnapshotIncluded.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_Create_DataDiskFromASnapshotIncluded.json */ async function createAVirtualMachineImageThatIncludesADataDiskFromASnapshot() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/imagesDeleteSample.js b/sdk/compute/arm-compute/samples/v21/javascript/imagesDeleteSample.js similarity index 86% rename from sdk/compute/arm-compute/samples/v20/javascript/imagesDeleteSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/imagesDeleteSample.js index 97fe37e7fa19..a5e71c50f599 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/imagesDeleteSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/imagesDeleteSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Deletes an Image. * * @summary Deletes an Image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Images_Delete_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Images_Delete_MaximumSet_Gen.json */ -async function imagesDeleteMaximumSetGen() { +async function imageDeleteMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const imageName = "aaaaaaaaaaaaaaaaaaaaaaaaaaa"; @@ -32,9 +32,9 @@ async function imagesDeleteMaximumSetGen() { * This sample demonstrates how to Deletes an Image. * * @summary Deletes an Image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Images_Delete_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Images_Delete_MinimumSet_Gen.json */ -async function imagesDeleteMinimumSetGen() { +async function imageDeleteMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const imageName = "aaaaaaaaaaaaaaaaaaaaaaaaaaaa"; @@ -45,8 +45,8 @@ async function imagesDeleteMinimumSetGen() { } async function main() { - imagesDeleteMaximumSetGen(); - imagesDeleteMinimumSetGen(); + imageDeleteMaximumSetGen(); + imageDeleteMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/imagesGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/imagesGetSample.js similarity index 95% rename from sdk/compute/arm-compute/samples/v20/javascript/imagesGetSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/imagesGetSample.js index bee83b86abed..5fc64267a756 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/imagesGetSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/imagesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets an image. * * @summary Gets an image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_Get.json */ async function getInformationAboutAVirtualMachineImage() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/imagesListByResourceGroupSample.js b/sdk/compute/arm-compute/samples/v21/javascript/imagesListByResourceGroupSample.js similarity index 95% rename from sdk/compute/arm-compute/samples/v20/javascript/imagesListByResourceGroupSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/imagesListByResourceGroupSample.js index 5a6b11522c2e..816555b9733d 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/imagesListByResourceGroupSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/imagesListByResourceGroupSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the list of images under a resource group. * * @summary Gets the list of images under a resource group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_ListByResourceGroup.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_ListByResourceGroup.json */ async function listAllVirtualMachineImagesInAResourceGroup() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/imagesListSample.js b/sdk/compute/arm-compute/samples/v21/javascript/imagesListSample.js similarity index 95% rename from sdk/compute/arm-compute/samples/v20/javascript/imagesListSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/imagesListSample.js index 92a8d4333d6c..12f1460be7fa 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/imagesListSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/imagesListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the list of Images in the subscription. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images. * * @summary Gets the list of Images in the subscription. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_ListBySubscription.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_ListBySubscription.json */ async function listAllVirtualMachineImagesInASubscription() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/imagesUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/imagesUpdateSample.js similarity index 95% rename from sdk/compute/arm-compute/samples/v20/javascript/imagesUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/imagesUpdateSample.js index c61893a84cf0..46e99b7f9aa1 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/imagesUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/imagesUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Update an image. * * @summary Update an image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_Update.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_Update.json */ async function updatesTagsOfAnImage() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/logAnalyticsExportRequestRateByIntervalSample.js b/sdk/compute/arm-compute/samples/v21/javascript/logAnalyticsExportRequestRateByIntervalSample.js similarity index 96% rename from sdk/compute/arm-compute/samples/v20/javascript/logAnalyticsExportRequestRateByIntervalSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/logAnalyticsExportRequestRateByIntervalSample.js index fba2735c6941..a997c2898d0f 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/logAnalyticsExportRequestRateByIntervalSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/logAnalyticsExportRequestRateByIntervalSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Export logs that show Api requests made by this subscription in the given time window to show throttling activities. * * @summary Export logs that show Api requests made by this subscription in the given time window to show throttling activities. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/logAnalyticExamples/LogAnalytics_RequestRateByInterval.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/logAnalyticExamples/LogAnalytics_RequestRateByInterval.json */ async function exportLogsWhichContainAllApiRequestsMadeToComputeResourceProviderWithinTheGivenTimePeriodBrokenDownByIntervals() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/logAnalyticsExportThrottledRequestsSample.js b/sdk/compute/arm-compute/samples/v21/javascript/logAnalyticsExportThrottledRequestsSample.js similarity index 96% rename from sdk/compute/arm-compute/samples/v20/javascript/logAnalyticsExportThrottledRequestsSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/logAnalyticsExportThrottledRequestsSample.js index e5cfe7fa9545..910dba80ffbd 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/logAnalyticsExportThrottledRequestsSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/logAnalyticsExportThrottledRequestsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Export logs that show total throttled Api requests for this subscription in the given time window. * * @summary Export logs that show total throttled Api requests for this subscription in the given time window. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/logAnalyticExamples/LogAnalytics_ThrottledRequests.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/logAnalyticExamples/LogAnalytics_ThrottledRequests.json */ async function exportLogsWhichContainAllThrottledApiRequestsMadeToComputeResourceProviderWithinTheGivenTimePeriod() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/operationsListSample.js b/sdk/compute/arm-compute/samples/v21/javascript/operationsListSample.js similarity index 93% rename from sdk/compute/arm-compute/samples/v20/javascript/operationsListSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/operationsListSample.js index 74d6d1658990..c1511c4a7838 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/operationsListSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/operationsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets a list of compute operations. * * @summary Gets a list of compute operations. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/computeRPCommonExamples/Operations_List_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/computeRPCommonExamples/Operations_List_MaximumSet_Gen.json */ async function operationsListMaximumSetGen() { const subscriptionId = @@ -34,7 +34,7 @@ async function operationsListMaximumSetGen() { * This sample demonstrates how to Gets a list of compute operations. * * @summary Gets a list of compute operations. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/computeRPCommonExamples/Operations_List_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/computeRPCommonExamples/Operations_List_MinimumSet_Gen.json */ async function operationsListMinimumSetGen() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/javascript/package.json b/sdk/compute/arm-compute/samples/v21/javascript/package.json similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/package.json rename to sdk/compute/arm-compute/samples/v21/javascript/package.json diff --git a/sdk/compute/arm-compute/samples/v20/javascript/proximityPlacementGroupsCreateOrUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/proximityPlacementGroupsCreateOrUpdateSample.js similarity index 96% rename from sdk/compute/arm-compute/samples/v20/javascript/proximityPlacementGroupsCreateOrUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/proximityPlacementGroupsCreateOrUpdateSample.js index db1777304b8f..baf73067cc78 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/proximityPlacementGroupsCreateOrUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/proximityPlacementGroupsCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or update a proximity placement group. * * @summary Create or update a proximity placement group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_CreateOrUpdate.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_CreateOrUpdate.json */ async function createOrUpdateAProximityPlacementGroup() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/proximityPlacementGroupsDeleteSample.js b/sdk/compute/arm-compute/samples/v21/javascript/proximityPlacementGroupsDeleteSample.js similarity index 89% rename from sdk/compute/arm-compute/samples/v20/javascript/proximityPlacementGroupsDeleteSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/proximityPlacementGroupsDeleteSample.js index d4916dfb5fce..b7db41e87e26 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/proximityPlacementGroupsDeleteSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/proximityPlacementGroupsDeleteSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Delete a proximity placement group. * * @summary Delete a proximity placement group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_Delete.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_Delete.json */ -async function createAProximityPlacementGroup() { +async function deleteAProximityPlacementGroup() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; const proximityPlacementGroupName = "myProximityPlacementGroup"; @@ -32,7 +32,7 @@ async function createAProximityPlacementGroup() { } async function main() { - createAProximityPlacementGroup(); + deleteAProximityPlacementGroup(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/proximityPlacementGroupsGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/proximityPlacementGroupsGetSample.js similarity index 89% rename from sdk/compute/arm-compute/samples/v20/javascript/proximityPlacementGroupsGetSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/proximityPlacementGroupsGetSample.js index 37551fe7f333..2eb6b285e948 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/proximityPlacementGroupsGetSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/proximityPlacementGroupsGetSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves information about a proximity placement group . * * @summary Retrieves information about a proximity placement group . - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_Get.json */ -async function createAProximityPlacementGroup() { +async function getProximityPlacementGroups() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; const proximityPlacementGroupName = "myProximityPlacementGroup"; @@ -32,7 +32,7 @@ async function createAProximityPlacementGroup() { } async function main() { - createAProximityPlacementGroup(); + getProximityPlacementGroups(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/proximityPlacementGroupsListByResourceGroupSample.js b/sdk/compute/arm-compute/samples/v21/javascript/proximityPlacementGroupsListByResourceGroupSample.js similarity index 89% rename from sdk/compute/arm-compute/samples/v20/javascript/proximityPlacementGroupsListByResourceGroupSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/proximityPlacementGroupsListByResourceGroupSample.js index 5ae0098c0168..094db747f81d 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/proximityPlacementGroupsListByResourceGroupSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/proximityPlacementGroupsListByResourceGroupSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Lists all proximity placement groups in a resource group. * * @summary Lists all proximity placement groups in a resource group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_ListByResourceGroup.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_ListByResourceGroup.json */ -async function createAProximityPlacementGroup() { +async function listProximityPlacementGroup() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; const credential = new DefaultAzureCredential(); @@ -31,7 +31,7 @@ async function createAProximityPlacementGroup() { } async function main() { - createAProximityPlacementGroup(); + listProximityPlacementGroup(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/proximityPlacementGroupsListBySubscriptionSample.js b/sdk/compute/arm-compute/samples/v21/javascript/proximityPlacementGroupsListBySubscriptionSample.js similarity index 88% rename from sdk/compute/arm-compute/samples/v20/javascript/proximityPlacementGroupsListBySubscriptionSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/proximityPlacementGroupsListBySubscriptionSample.js index a8503cb9f534..4b6b553e1b28 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/proximityPlacementGroupsListBySubscriptionSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/proximityPlacementGroupsListBySubscriptionSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Lists all proximity placement groups in a subscription. * * @summary Lists all proximity placement groups in a subscription. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_ListBySubscription.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_ListBySubscription.json */ -async function createAProximityPlacementGroup() { +async function listProximityPlacementGroups() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -30,7 +30,7 @@ async function createAProximityPlacementGroup() { } async function main() { - createAProximityPlacementGroup(); + listProximityPlacementGroups(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/proximityPlacementGroupsUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/proximityPlacementGroupsUpdateSample.js similarity index 90% rename from sdk/compute/arm-compute/samples/v20/javascript/proximityPlacementGroupsUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/proximityPlacementGroupsUpdateSample.js index c2a1e79895cd..40e1c7a369c5 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/proximityPlacementGroupsUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/proximityPlacementGroupsUpdateSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Update a proximity placement group. * * @summary Update a proximity placement group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_Patch.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_Patch.json */ -async function createAProximityPlacementGroup() { +async function updateAProximityPlacementGroup() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; const proximityPlacementGroupName = "myProximityPlacementGroup"; @@ -36,7 +36,7 @@ async function createAProximityPlacementGroup() { } async function main() { - createAProximityPlacementGroup(); + updateAProximityPlacementGroup(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/resourceSkusListSample.js b/sdk/compute/arm-compute/samples/v21/javascript/resourceSkusListSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/resourceSkusListSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/resourceSkusListSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/restorePointCollectionsCreateOrUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/restorePointCollectionsCreateOrUpdateSample.js similarity index 96% rename from sdk/compute/arm-compute/samples/v20/javascript/restorePointCollectionsCreateOrUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/restorePointCollectionsCreateOrUpdateSample.js index 859ce0366dda..ceaddc205c84 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/restorePointCollectionsCreateOrUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/restorePointCollectionsCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to create or update the restore point collection. Please refer to https://aka.ms/RestorePoints for more details. When updating a restore point collection, only tags may be modified. * * @summary The operation to create or update the restore point collection. Please refer to https://aka.ms/RestorePoints for more details. When updating a restore point collection, only tags may be modified. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollection_CreateOrUpdate_ForCrossRegionCopy.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePointCollection_CreateOrUpdate_ForCrossRegionCopy.json */ async function createOrUpdateARestorePointCollectionForCrossRegionCopy() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -43,7 +43,7 @@ async function createOrUpdateARestorePointCollectionForCrossRegionCopy() { * This sample demonstrates how to The operation to create or update the restore point collection. Please refer to https://aka.ms/RestorePoints for more details. When updating a restore point collection, only tags may be modified. * * @summary The operation to create or update the restore point collection. Please refer to https://aka.ms/RestorePoints for more details. When updating a restore point collection, only tags may be modified. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollection_CreateOrUpdate.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePointCollection_CreateOrUpdate.json */ async function createOrUpdateARestorePointCollection() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/restorePointCollectionsDeleteSample.js b/sdk/compute/arm-compute/samples/v21/javascript/restorePointCollectionsDeleteSample.js similarity index 82% rename from sdk/compute/arm-compute/samples/v20/javascript/restorePointCollectionsDeleteSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/restorePointCollectionsDeleteSample.js index b94b15329caa..8b61940b1d23 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/restorePointCollectionsDeleteSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/restorePointCollectionsDeleteSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to The operation to delete the restore point collection. This operation will also delete all the contained restore points. * * @summary The operation to delete the restore point collection. This operation will also delete all the contained restore points. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollections_Delete_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePointCollection_Delete_MaximumSet_Gen.json */ -async function restorePointCollectionsDeleteMaximumSetGen() { +async function restorePointCollectionDeleteMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const restorePointCollectionName = "aaaaaaaaaaaaaaaaa"; @@ -35,9 +35,9 @@ async function restorePointCollectionsDeleteMaximumSetGen() { * This sample demonstrates how to The operation to delete the restore point collection. This operation will also delete all the contained restore points. * * @summary The operation to delete the restore point collection. This operation will also delete all the contained restore points. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollections_Delete_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePointCollection_Delete_MinimumSet_Gen.json */ -async function restorePointCollectionsDeleteMinimumSetGen() { +async function restorePointCollectionDeleteMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const restorePointCollectionName = "aaaaaaaaaaaaaaaaaaaa"; @@ -51,8 +51,8 @@ async function restorePointCollectionsDeleteMinimumSetGen() { } async function main() { - restorePointCollectionsDeleteMaximumSetGen(); - restorePointCollectionsDeleteMinimumSetGen(); + restorePointCollectionDeleteMaximumSetGen(); + restorePointCollectionDeleteMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/restorePointCollectionsGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/restorePointCollectionsGetSample.js similarity index 95% rename from sdk/compute/arm-compute/samples/v20/javascript/restorePointCollectionsGetSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/restorePointCollectionsGetSample.js index 94cbfc8359e6..f07f20c97e23 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/restorePointCollectionsGetSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/restorePointCollectionsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to get the restore point collection. * * @summary The operation to get the restore point collection. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollection_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePointCollection_Get.json */ async function getARestorePointCollectionButNotTheRestorePointsContainedInTheRestorePointCollection() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -35,7 +35,7 @@ async function getARestorePointCollectionButNotTheRestorePointsContainedInTheRes * This sample demonstrates how to The operation to get the restore point collection. * * @summary The operation to get the restore point collection. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollection_Get_WithContainedRestorePoints.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePointCollection_Get_WithContainedRestorePoints.json */ async function getARestorePointCollectionIncludingTheRestorePointsContainedInTheRestorePointCollection() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/restorePointCollectionsListAllSample.js b/sdk/compute/arm-compute/samples/v21/javascript/restorePointCollectionsListAllSample.js similarity index 96% rename from sdk/compute/arm-compute/samples/v20/javascript/restorePointCollectionsListAllSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/restorePointCollectionsListAllSample.js index ee495179e5ed..1a83c6395ef3 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/restorePointCollectionsListAllSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/restorePointCollectionsListAllSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the list of restore point collections in the subscription. Use nextLink property in the response to get the next page of restore point collections. Do this till nextLink is not null to fetch all the restore point collections. * * @summary Gets the list of restore point collections in the subscription. Use nextLink property in the response to get the next page of restore point collections. Do this till nextLink is not null to fetch all the restore point collections. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollection_ListBySubscription.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePointCollection_ListBySubscription.json */ async function getsTheListOfRestorePointCollectionsInASubscription() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/restorePointCollectionsListSample.js b/sdk/compute/arm-compute/samples/v21/javascript/restorePointCollectionsListSample.js similarity index 95% rename from sdk/compute/arm-compute/samples/v20/javascript/restorePointCollectionsListSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/restorePointCollectionsListSample.js index c56882fdcfa9..8dccc804cefa 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/restorePointCollectionsListSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/restorePointCollectionsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the list of restore point collections in a resource group. * * @summary Gets the list of restore point collections in a resource group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollection_ListByResourceGroup.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePointCollection_ListByResourceGroup.json */ async function getsTheListOfRestorePointCollectionsInAResourceGroup() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/restorePointCollectionsUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/restorePointCollectionsUpdateSample.js similarity index 82% rename from sdk/compute/arm-compute/samples/v20/javascript/restorePointCollectionsUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/restorePointCollectionsUpdateSample.js index a5c77635be8e..ca3a6d1249b0 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/restorePointCollectionsUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/restorePointCollectionsUpdateSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to The operation to update the restore point collection. * * @summary The operation to update the restore point collection. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollections_Update_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePointCollection_Update_MaximumSet_Gen.json */ -async function restorePointCollectionsUpdateMaximumSetGen() { +async function restorePointCollectionUpdateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const restorePointCollectionName = "aaaaaaaaaaaaaaaaaaaa"; @@ -42,9 +42,9 @@ async function restorePointCollectionsUpdateMaximumSetGen() { * This sample demonstrates how to The operation to update the restore point collection. * * @summary The operation to update the restore point collection. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollections_Update_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePointCollection_Update_MinimumSet_Gen.json */ -async function restorePointCollectionsUpdateMinimumSetGen() { +async function restorePointCollectionUpdateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const restorePointCollectionName = "aaaaaaaaaaaaaaaaaa"; @@ -60,8 +60,8 @@ async function restorePointCollectionsUpdateMinimumSetGen() { } async function main() { - restorePointCollectionsUpdateMaximumSetGen(); - restorePointCollectionsUpdateMinimumSetGen(); + restorePointCollectionUpdateMaximumSetGen(); + restorePointCollectionUpdateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/restorePointsCreateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/restorePointsCreateSample.js similarity index 95% rename from sdk/compute/arm-compute/samples/v20/javascript/restorePointsCreateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/restorePointsCreateSample.js index 7abe69f2c2c4..cc8c477fc2c6 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/restorePointsCreateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/restorePointsCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to create the restore point. Updating properties of an existing restore point is not allowed * * @summary The operation to create the restore point. Updating properties of an existing restore point is not allowed - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePoint_Copy_BetweenRegions.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePoint_Copy_BetweenRegions.json */ async function copyARestorePointToADifferentRegion() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -43,7 +43,7 @@ async function copyARestorePointToADifferentRegion() { * This sample demonstrates how to The operation to create the restore point. Updating properties of an existing restore point is not allowed * * @summary The operation to create the restore point. Updating properties of an existing restore point is not allowed - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePoint_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePoint_Create.json */ async function createARestorePoint() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/restorePointsDeleteSample.js b/sdk/compute/arm-compute/samples/v21/javascript/restorePointsDeleteSample.js similarity index 83% rename from sdk/compute/arm-compute/samples/v20/javascript/restorePointsDeleteSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/restorePointsDeleteSample.js index fe8ebaf15a00..d1e09d053bb0 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/restorePointsDeleteSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/restorePointsDeleteSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to The operation to delete the restore point. * * @summary The operation to delete the restore point. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePoints_Delete_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePoint_Delete_MaximumSet_Gen.json */ -async function restorePointsDeleteMaximumSetGen() { +async function restorePointDeleteMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const restorePointCollectionName = "aaaaaaaaaaaaaaaaaaaaaa"; @@ -37,9 +37,9 @@ async function restorePointsDeleteMaximumSetGen() { * This sample demonstrates how to The operation to delete the restore point. * * @summary The operation to delete the restore point. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePoints_Delete_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePoint_Delete_MinimumSet_Gen.json */ -async function restorePointsDeleteMinimumSetGen() { +async function restorePointDeleteMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const restorePointCollectionName = "aaaaaaaaaaaaaaaaa"; @@ -55,8 +55,8 @@ async function restorePointsDeleteMinimumSetGen() { } async function main() { - restorePointsDeleteMaximumSetGen(); - restorePointsDeleteMinimumSetGen(); + restorePointDeleteMaximumSetGen(); + restorePointDeleteMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/restorePointsGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/restorePointsGetSample.js similarity index 94% rename from sdk/compute/arm-compute/samples/v20/javascript/restorePointsGetSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/restorePointsGetSample.js index b3dc4ad0e33e..4b7914af62db 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/restorePointsGetSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/restorePointsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to get the restore point. * * @summary The operation to get the restore point. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePoint_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePoint_Get.json */ async function getARestorePoint() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -37,7 +37,7 @@ async function getARestorePoint() { * This sample demonstrates how to The operation to get the restore point. * * @summary The operation to get the restore point. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePoint_Get_WithInstanceView.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePoint_Get_WithInstanceView.json */ async function getRestorePointWithInstanceView() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/sample.env b/sdk/compute/arm-compute/samples/v21/javascript/sample.env similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/sample.env rename to sdk/compute/arm-compute/samples/v21/javascript/sample.env diff --git a/sdk/compute/arm-compute/samples/v20/javascript/sharedGalleriesGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleriesGetSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/sharedGalleriesGetSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/sharedGalleriesGetSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/sharedGalleriesListSample.js b/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleriesListSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/sharedGalleriesListSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/sharedGalleriesListSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/sharedGalleryImageVersionsGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleryImageVersionsGetSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/sharedGalleryImageVersionsGetSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/sharedGalleryImageVersionsGetSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/sharedGalleryImageVersionsListSample.js b/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleryImageVersionsListSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/sharedGalleryImageVersionsListSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/sharedGalleryImageVersionsListSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/sharedGalleryImagesGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleryImagesGetSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/sharedGalleryImagesGetSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/sharedGalleryImagesGetSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/sharedGalleryImagesListSample.js b/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleryImagesListSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/sharedGalleryImagesListSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/sharedGalleryImagesListSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/snapshotsCreateOrUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/snapshotsCreateOrUpdateSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/snapshotsCreateOrUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/snapshotsCreateOrUpdateSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/snapshotsDeleteSample.js b/sdk/compute/arm-compute/samples/v21/javascript/snapshotsDeleteSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/snapshotsDeleteSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/snapshotsDeleteSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/snapshotsGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/snapshotsGetSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/snapshotsGetSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/snapshotsGetSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/snapshotsGrantAccessSample.js b/sdk/compute/arm-compute/samples/v21/javascript/snapshotsGrantAccessSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/snapshotsGrantAccessSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/snapshotsGrantAccessSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/snapshotsListByResourceGroupSample.js b/sdk/compute/arm-compute/samples/v21/javascript/snapshotsListByResourceGroupSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/snapshotsListByResourceGroupSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/snapshotsListByResourceGroupSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/snapshotsListSample.js b/sdk/compute/arm-compute/samples/v21/javascript/snapshotsListSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/snapshotsListSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/snapshotsListSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/snapshotsRevokeAccessSample.js b/sdk/compute/arm-compute/samples/v21/javascript/snapshotsRevokeAccessSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/snapshotsRevokeAccessSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/snapshotsRevokeAccessSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/snapshotsUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/snapshotsUpdateSample.js similarity index 100% rename from sdk/compute/arm-compute/samples/v20/javascript/snapshotsUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/snapshotsUpdateSample.js diff --git a/sdk/compute/arm-compute/samples/v20/javascript/sshPublicKeysCreateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/sshPublicKeysCreateSample.js similarity index 95% rename from sdk/compute/arm-compute/samples/v20/javascript/sshPublicKeysCreateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/sshPublicKeysCreateSample.js index 9e6be953dc71..1ebf6198499c 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/sshPublicKeysCreateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/sshPublicKeysCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates a new SSH public key resource. * * @summary Creates a new SSH public key resource. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKey_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_Create.json */ async function createANewSshPublicKeyResource() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/sshPublicKeysDeleteSample.js b/sdk/compute/arm-compute/samples/v21/javascript/sshPublicKeysDeleteSample.js similarity index 81% rename from sdk/compute/arm-compute/samples/v20/javascript/sshPublicKeysDeleteSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/sshPublicKeysDeleteSample.js index 64385a6ddd36..678e1c49d7ad 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/sshPublicKeysDeleteSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/sshPublicKeysDeleteSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Delete an SSH public key. * * @summary Delete an SSH public key. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKeys_Delete_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_Delete_MaximumSet_Gen.json */ -async function sshPublicKeysDeleteMaximumSetGen() { +async function sshPublicKeyDeleteMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const sshPublicKeyName = "aaaaaaaaaa"; @@ -32,9 +32,9 @@ async function sshPublicKeysDeleteMaximumSetGen() { * This sample demonstrates how to Delete an SSH public key. * * @summary Delete an SSH public key. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKeys_Delete_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_Delete_MinimumSet_Gen.json */ -async function sshPublicKeysDeleteMinimumSetGen() { +async function sshPublicKeyDeleteMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const sshPublicKeyName = "aaaaaaaaaaaaaaaaaaa"; @@ -45,8 +45,8 @@ async function sshPublicKeysDeleteMinimumSetGen() { } async function main() { - sshPublicKeysDeleteMaximumSetGen(); - sshPublicKeysDeleteMinimumSetGen(); + sshPublicKeyDeleteMaximumSetGen(); + sshPublicKeyDeleteMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/sshPublicKeysGenerateKeyPairSample.js b/sdk/compute/arm-compute/samples/v21/javascript/sshPublicKeysGenerateKeyPairSample.js similarity index 93% rename from sdk/compute/arm-compute/samples/v20/javascript/sshPublicKeysGenerateKeyPairSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/sshPublicKeysGenerateKeyPairSample.js index 73724b40b068..75401afcc434 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/sshPublicKeysGenerateKeyPairSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/sshPublicKeysGenerateKeyPairSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Generates and returns a public/private key pair and populates the SSH public key resource with the public key. The length of the key will be 3072 bits. This operation can only be performed once per SSH public key resource. * * @summary Generates and returns a public/private key pair and populates the SSH public key resource with the public key. The length of the key will be 3072 bits. This operation can only be performed once per SSH public key resource. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKeys_GenerateKeyPair.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_GenerateKeyPair.json */ async function generateAnSshKeyPair() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/sshPublicKeysGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/sshPublicKeysGetSample.js similarity index 95% rename from sdk/compute/arm-compute/samples/v20/javascript/sshPublicKeysGetSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/sshPublicKeysGetSample.js index b0b8488cdfff..36500a207cb1 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/sshPublicKeysGetSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/sshPublicKeysGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves information about an SSH public key. * * @summary Retrieves information about an SSH public key. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKey_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_Get.json */ async function getAnSshPublicKey() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/sshPublicKeysListByResourceGroupSample.js b/sdk/compute/arm-compute/samples/v21/javascript/sshPublicKeysListByResourceGroupSample.js similarity index 82% rename from sdk/compute/arm-compute/samples/v20/javascript/sshPublicKeysListByResourceGroupSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/sshPublicKeysListByResourceGroupSample.js index 903a149acb13..1c4b14999f82 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/sshPublicKeysListByResourceGroupSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/sshPublicKeysListByResourceGroupSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Lists all of the SSH public keys in the specified resource group. Use the nextLink property in the response to get the next page of SSH public keys. * * @summary Lists all of the SSH public keys in the specified resource group. Use the nextLink property in the response to get the next page of SSH public keys. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKeys_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_ListByResourceGroup_MaximumSet_Gen.json */ -async function sshPublicKeysListByResourceGroupMaximumSetGen() { +async function sshPublicKeyListByResourceGroupMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const credential = new DefaultAzureCredential(); @@ -34,9 +34,9 @@ async function sshPublicKeysListByResourceGroupMaximumSetGen() { * This sample demonstrates how to Lists all of the SSH public keys in the specified resource group. Use the nextLink property in the response to get the next page of SSH public keys. * * @summary Lists all of the SSH public keys in the specified resource group. Use the nextLink property in the response to get the next page of SSH public keys. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKeys_ListByResourceGroup_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_ListByResourceGroup_MinimumSet_Gen.json */ -async function sshPublicKeysListByResourceGroupMinimumSetGen() { +async function sshPublicKeyListByResourceGroupMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const credential = new DefaultAzureCredential(); @@ -49,8 +49,8 @@ async function sshPublicKeysListByResourceGroupMinimumSetGen() { } async function main() { - sshPublicKeysListByResourceGroupMaximumSetGen(); - sshPublicKeysListByResourceGroupMinimumSetGen(); + sshPublicKeyListByResourceGroupMaximumSetGen(); + sshPublicKeyListByResourceGroupMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/sshPublicKeysListBySubscriptionSample.js b/sdk/compute/arm-compute/samples/v21/javascript/sshPublicKeysListBySubscriptionSample.js similarity index 81% rename from sdk/compute/arm-compute/samples/v20/javascript/sshPublicKeysListBySubscriptionSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/sshPublicKeysListBySubscriptionSample.js index 31a5c820cf62..7ef2e5b4c569 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/sshPublicKeysListBySubscriptionSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/sshPublicKeysListBySubscriptionSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Lists all of the SSH public keys in the subscription. Use the nextLink property in the response to get the next page of SSH public keys. * * @summary Lists all of the SSH public keys in the subscription. Use the nextLink property in the response to get the next page of SSH public keys. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKeys_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_ListBySubscription_MaximumSet_Gen.json */ -async function sshPublicKeysListBySubscriptionMaximumSetGen() { +async function sshPublicKeyListBySubscriptionMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -33,9 +33,9 @@ async function sshPublicKeysListBySubscriptionMaximumSetGen() { * This sample demonstrates how to Lists all of the SSH public keys in the subscription. Use the nextLink property in the response to get the next page of SSH public keys. * * @summary Lists all of the SSH public keys in the subscription. Use the nextLink property in the response to get the next page of SSH public keys. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKeys_ListBySubscription_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_ListBySubscription_MinimumSet_Gen.json */ -async function sshPublicKeysListBySubscriptionMinimumSetGen() { +async function sshPublicKeyListBySubscriptionMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -47,8 +47,8 @@ async function sshPublicKeysListBySubscriptionMinimumSetGen() { } async function main() { - sshPublicKeysListBySubscriptionMaximumSetGen(); - sshPublicKeysListBySubscriptionMinimumSetGen(); + sshPublicKeyListBySubscriptionMaximumSetGen(); + sshPublicKeyListBySubscriptionMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/sshPublicKeysUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/sshPublicKeysUpdateSample.js similarity index 82% rename from sdk/compute/arm-compute/samples/v20/javascript/sshPublicKeysUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/sshPublicKeysUpdateSample.js index 51c794b547bd..08465d22420f 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/sshPublicKeysUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/sshPublicKeysUpdateSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Updates a new SSH public key resource. * * @summary Updates a new SSH public key resource. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKeys_Update_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_Update_MaximumSet_Gen.json */ -async function sshPublicKeysUpdateMaximumSetGen() { +async function sshPublicKeyUpdateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const sshPublicKeyName = "aaaaaaaaaaaa"; @@ -36,9 +36,9 @@ async function sshPublicKeysUpdateMaximumSetGen() { * This sample demonstrates how to Updates a new SSH public key resource. * * @summary Updates a new SSH public key resource. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKeys_Update_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_Update_MinimumSet_Gen.json */ -async function sshPublicKeysUpdateMinimumSetGen() { +async function sshPublicKeyUpdateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const sshPublicKeyName = "aaaaaaaaaaa"; @@ -50,8 +50,8 @@ async function sshPublicKeysUpdateMinimumSetGen() { } async function main() { - sshPublicKeysUpdateMaximumSetGen(); - sshPublicKeysUpdateMinimumSetGen(); + sshPublicKeyUpdateMaximumSetGen(); + sshPublicKeyUpdateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/usageListSample.js b/sdk/compute/arm-compute/samples/v21/javascript/usageListSample.js similarity index 94% rename from sdk/compute/arm-compute/samples/v20/javascript/usageListSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/usageListSample.js index 2fcf5219a8c2..68f8d4569454 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/usageListSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/usageListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription. * * @summary Gets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/computeRPCommonExamples/Usage_List_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/computeRPCommonExamples/Usage_List_MaximumSet_Gen.json */ async function usageListMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -34,7 +34,7 @@ async function usageListMaximumSetGen() { * This sample demonstrates how to Gets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription. * * @summary Gets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/computeRPCommonExamples/Usage_List_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/computeRPCommonExamples/Usage_List_MinimumSet_Gen.json */ async function usageListMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineExtensionImagesGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineExtensionImagesGetSample.js similarity index 79% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineExtensionImagesGetSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineExtensionImagesGetSample.js index 8802fa633287..5a3670ff9711 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineExtensionImagesGetSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineExtensionImagesGetSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Gets a virtual machine extension image. * * @summary Gets a virtual machine extension image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_Get_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_Get_MaximumSet_Gen.json */ -async function virtualMachineExtensionImagesGetMaximumSetGen() { +async function virtualMachineExtensionImageGetMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaaaaaaaaaaa"; const publisherName = "aaaaaaaaaaaaaaaaaaaa"; @@ -39,9 +39,9 @@ async function virtualMachineExtensionImagesGetMaximumSetGen() { * This sample demonstrates how to Gets a virtual machine extension image. * * @summary Gets a virtual machine extension image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_Get_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_Get_MinimumSet_Gen.json */ -async function virtualMachineExtensionImagesGetMinimumSetGen() { +async function virtualMachineExtensionImageGetMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaaaaaaaaaaaa"; const publisherName = "aaaaaaaaaaaaaaaaaaaaaaaaaa"; @@ -59,8 +59,8 @@ async function virtualMachineExtensionImagesGetMinimumSetGen() { } async function main() { - virtualMachineExtensionImagesGetMaximumSetGen(); - virtualMachineExtensionImagesGetMinimumSetGen(); + virtualMachineExtensionImageGetMaximumSetGen(); + virtualMachineExtensionImageGetMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineExtensionImagesListTypesSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineExtensionImagesListTypesSample.js similarity index 76% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineExtensionImagesListTypesSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineExtensionImagesListTypesSample.js index a5000e89f393..40734487880d 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineExtensionImagesListTypesSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineExtensionImagesListTypesSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Gets a list of virtual machine extension image types. * * @summary Gets a list of virtual machine extension image types. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListTypes_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListTypes_MaximumSet_Gen.json */ -async function virtualMachineExtensionImagesListTypesMaximumSetGen() { +async function virtualMachineExtensionImageListTypesMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaaaaaaaaaaaaaaaaaaaaaaaa"; const publisherName = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; @@ -32,9 +32,9 @@ async function virtualMachineExtensionImagesListTypesMaximumSetGen() { * This sample demonstrates how to Gets a list of virtual machine extension image types. * * @summary Gets a list of virtual machine extension image types. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListTypes_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListTypes_MinimumSet_Gen.json */ -async function virtualMachineExtensionImagesListTypesMinimumSetGen() { +async function virtualMachineExtensionImageListTypesMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaa"; const publisherName = "aa"; @@ -45,8 +45,8 @@ async function virtualMachineExtensionImagesListTypesMinimumSetGen() { } async function main() { - virtualMachineExtensionImagesListTypesMaximumSetGen(); - virtualMachineExtensionImagesListTypesMinimumSetGen(); + virtualMachineExtensionImageListTypesMaximumSetGen(); + virtualMachineExtensionImageListTypesMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineExtensionImagesListVersionsSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineExtensionImagesListVersionsSample.js similarity index 78% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineExtensionImagesListVersionsSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineExtensionImagesListVersionsSample.js index 6c5ef674a0e4..fbbda037183a 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineExtensionImagesListVersionsSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineExtensionImagesListVersionsSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Gets a list of virtual machine extension image versions. * * @summary Gets a list of virtual machine extension image versions. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListVersions_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListVersions_MaximumSet_Gen.json */ -async function virtualMachineExtensionImagesListVersionsMaximumSetGen() { +async function virtualMachineExtensionImageListVersionsMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaaaaaaaaaaaaaaaaaaaaaaaa"; const publisherName = "aaaaaaaaaaaaaaaaaaaa"; @@ -46,9 +46,9 @@ async function virtualMachineExtensionImagesListVersionsMaximumSetGen() { * This sample demonstrates how to Gets a list of virtual machine extension image versions. * * @summary Gets a list of virtual machine extension image versions. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListVersions_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListVersions_MinimumSet_Gen.json */ -async function virtualMachineExtensionImagesListVersionsMinimumSetGen() { +async function virtualMachineExtensionImageListVersionsMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaaaaaaa"; const publisherName = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; @@ -64,8 +64,8 @@ async function virtualMachineExtensionImagesListVersionsMinimumSetGen() { } async function main() { - virtualMachineExtensionImagesListVersionsMaximumSetGen(); - virtualMachineExtensionImagesListVersionsMinimumSetGen(); + virtualMachineExtensionImageListVersionsMaximumSetGen(); + virtualMachineExtensionImageListVersionsMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineExtensionsCreateOrUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineExtensionsCreateOrUpdateSample.js similarity index 83% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineExtensionsCreateOrUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineExtensionsCreateOrUpdateSample.js index 8070e380129e..12e12c81b587 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineExtensionsCreateOrUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineExtensionsCreateOrUpdateSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to The operation to create or update the extension. * * @summary The operation to create or update the extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachineExtension_CreateOrUpdate_MaximumSet_Gen.json */ -async function virtualMachineExtensionsCreateOrUpdateMaximumSetGen() { +async function virtualMachineExtensionCreateOrUpdateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmName = "aaaaaaaaaaaaaaaaaaaaaaaa"; @@ -74,13 +74,13 @@ async function virtualMachineExtensionsCreateOrUpdateMaximumSetGen() { * This sample demonstrates how to The operation to create or update the extension. * * @summary The operation to create or update the extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_CreateOrUpdate_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachineExtension_CreateOrUpdate_MinimumSet_Gen.json */ -async function virtualMachineExtensionsCreateOrUpdateMinimumSetGen() { +async function virtualMachineExtensionCreateOrUpdateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; - const vmName = "aaaa"; - const vmExtensionName = "aaaaaaaaaaaaaaaaaaaaaaaa"; + const vmName = "myVM"; + const vmExtensionName = "myVMExtension"; const extensionParameters = { location: "westus" }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -94,8 +94,8 @@ async function virtualMachineExtensionsCreateOrUpdateMinimumSetGen() { } async function main() { - virtualMachineExtensionsCreateOrUpdateMaximumSetGen(); - virtualMachineExtensionsCreateOrUpdateMinimumSetGen(); + virtualMachineExtensionCreateOrUpdateMaximumSetGen(); + virtualMachineExtensionCreateOrUpdateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineExtensionsDeleteSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineExtensionsDeleteSample.js similarity index 80% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineExtensionsDeleteSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineExtensionsDeleteSample.js index a5465663d731..13f7dc0cc2cb 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineExtensionsDeleteSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineExtensionsDeleteSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to The operation to delete the extension. * * @summary The operation to delete the extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_Delete_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachineExtension_Delete_MaximumSet_Gen.json */ -async function virtualMachineExtensionsDeleteMaximumSetGen() { +async function virtualMachineExtensionDeleteMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmName = "aaaaaaaaaaaaa"; @@ -37,9 +37,9 @@ async function virtualMachineExtensionsDeleteMaximumSetGen() { * This sample demonstrates how to The operation to delete the extension. * * @summary The operation to delete the extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_Delete_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachineExtension_Delete_MinimumSet_Gen.json */ -async function virtualMachineExtensionsDeleteMinimumSetGen() { +async function virtualMachineExtensionDeleteMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmName = "aaaaaaaaaaaaaaaaaaaaaaaaa"; @@ -55,8 +55,8 @@ async function virtualMachineExtensionsDeleteMinimumSetGen() { } async function main() { - virtualMachineExtensionsDeleteMaximumSetGen(); - virtualMachineExtensionsDeleteMinimumSetGen(); + virtualMachineExtensionDeleteMaximumSetGen(); + virtualMachineExtensionDeleteMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineExtensionsGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineExtensionsGetSample.js similarity index 78% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineExtensionsGetSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineExtensionsGetSample.js index ce62e50e2d24..8b11f3fb0e77 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineExtensionsGetSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineExtensionsGetSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to The operation to get the extension. * * @summary The operation to get the extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_Get_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachineExtension_Get_MaximumSet_Gen.json */ -async function virtualMachineExtensionsGetMaximumSetGen() { +async function virtualMachineExtensionGetMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmName = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; @@ -40,13 +40,13 @@ async function virtualMachineExtensionsGetMaximumSetGen() { * This sample demonstrates how to The operation to get the extension. * * @summary The operation to get the extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_Get_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachineExtension_Get_MinimumSet_Gen.json */ -async function virtualMachineExtensionsGetMinimumSetGen() { +async function virtualMachineExtensionGetMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; - const vmName = "a"; - const vmExtensionName = "aaaaaaaaaaaaaaaaaaaaaaaaaaaa"; + const vmName = "myVM"; + const vmExtensionName = "myVMExtension"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineExtensions.get( @@ -58,8 +58,8 @@ async function virtualMachineExtensionsGetMinimumSetGen() { } async function main() { - virtualMachineExtensionsGetMaximumSetGen(); - virtualMachineExtensionsGetMinimumSetGen(); + virtualMachineExtensionGetMaximumSetGen(); + virtualMachineExtensionGetMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineExtensionsListSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineExtensionsListSample.js similarity index 80% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineExtensionsListSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineExtensionsListSample.js index 726e6f08001a..3729be08618e 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineExtensionsListSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineExtensionsListSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to The operation to get all extensions of a Virtual Machine. * * @summary The operation to get all extensions of a Virtual Machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_List_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachineExtension_List_MaximumSet_Gen.json */ -async function virtualMachineExtensionsListMaximumSetGen() { +async function virtualMachineExtensionListMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmName = "aaaaaaaaaaaaa"; @@ -34,9 +34,9 @@ async function virtualMachineExtensionsListMaximumSetGen() { * This sample demonstrates how to The operation to get all extensions of a Virtual Machine. * * @summary The operation to get all extensions of a Virtual Machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_List_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachineExtension_List_MinimumSet_Gen.json */ -async function virtualMachineExtensionsListMinimumSetGen() { +async function virtualMachineExtensionListMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmName = "aaaaaaaaaaaaaaaaaaaaaaaaaaa"; @@ -47,8 +47,8 @@ async function virtualMachineExtensionsListMinimumSetGen() { } async function main() { - virtualMachineExtensionsListMaximumSetGen(); - virtualMachineExtensionsListMinimumSetGen(); + virtualMachineExtensionListMaximumSetGen(); + virtualMachineExtensionListMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineExtensionsUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineExtensionsUpdateSample.js similarity index 94% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineExtensionsUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineExtensionsUpdateSample.js index dfb8b6a349f6..923d3a2047f8 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineExtensionsUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineExtensionsUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to update the extension. * * @summary The operation to update the extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_Update.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachineExtension_Update.json */ async function updateVMExtension() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineImagesEdgeZoneGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineImagesEdgeZoneGetSample.js similarity index 95% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineImagesEdgeZoneGetSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineImagesEdgeZoneGetSample.js index 16d9326b4a4e..0d9de881b8bc 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineImagesEdgeZoneGetSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineImagesEdgeZoneGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets a virtual machine image in an edge zone. * * @summary Gets a virtual machine image in an edge zone. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_Get_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_Get_MaximumSet_Gen.json */ async function virtualMachineImagesEdgeZoneGetMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -43,7 +43,7 @@ async function virtualMachineImagesEdgeZoneGetMaximumSetGen() { * This sample demonstrates how to Gets a virtual machine image in an edge zone. * * @summary Gets a virtual machine image in an edge zone. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_Get_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_Get_MinimumSet_Gen.json */ async function virtualMachineImagesEdgeZoneGetMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineImagesEdgeZoneListOffersSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineImagesEdgeZoneListOffersSample.js similarity index 95% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineImagesEdgeZoneListOffersSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineImagesEdgeZoneListOffersSample.js index 98e2dca83374..fdafb733b9bc 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineImagesEdgeZoneListOffersSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineImagesEdgeZoneListOffersSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets a list of virtual machine image offers for the specified location, edge zone and publisher. * * @summary Gets a list of virtual machine image offers for the specified location, edge zone and publisher. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListOffers_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListOffers_MaximumSet_Gen.json */ async function virtualMachineImagesEdgeZoneListOffersMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -37,7 +37,7 @@ async function virtualMachineImagesEdgeZoneListOffersMaximumSetGen() { * This sample demonstrates how to Gets a list of virtual machine image offers for the specified location, edge zone and publisher. * * @summary Gets a list of virtual machine image offers for the specified location, edge zone and publisher. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListOffers_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListOffers_MinimumSet_Gen.json */ async function virtualMachineImagesEdgeZoneListOffersMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineImagesEdgeZoneListPublishersSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineImagesEdgeZoneListPublishersSample.js similarity index 94% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineImagesEdgeZoneListPublishersSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineImagesEdgeZoneListPublishersSample.js index 44e83ff8cc63..6b9bfae5cc6e 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineImagesEdgeZoneListPublishersSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineImagesEdgeZoneListPublishersSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets a list of virtual machine image publishers for the specified Azure location and edge zone. * * @summary Gets a list of virtual machine image publishers for the specified Azure location and edge zone. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListPublishers_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListPublishers_MaximumSet_Gen.json */ async function virtualMachineImagesEdgeZoneListPublishersMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -32,7 +32,7 @@ async function virtualMachineImagesEdgeZoneListPublishersMaximumSetGen() { * This sample demonstrates how to Gets a list of virtual machine image publishers for the specified Azure location and edge zone. * * @summary Gets a list of virtual machine image publishers for the specified Azure location and edge zone. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListPublishers_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListPublishers_MinimumSet_Gen.json */ async function virtualMachineImagesEdgeZoneListPublishersMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineImagesEdgeZoneListSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineImagesEdgeZoneListSample.js similarity index 95% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineImagesEdgeZoneListSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineImagesEdgeZoneListSample.js index 5686fa5808a3..98528bb0bd98 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineImagesEdgeZoneListSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineImagesEdgeZoneListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets a list of all virtual machine image versions for the specified location, edge zone, publisher, offer, and SKU. * * @summary Gets a list of all virtual machine image versions for the specified location, edge zone, publisher, offer, and SKU. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_List_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_List_MaximumSet_Gen.json */ async function virtualMachineImagesEdgeZoneListMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -50,7 +50,7 @@ async function virtualMachineImagesEdgeZoneListMaximumSetGen() { * This sample demonstrates how to Gets a list of all virtual machine image versions for the specified location, edge zone, publisher, offer, and SKU. * * @summary Gets a list of all virtual machine image versions for the specified location, edge zone, publisher, offer, and SKU. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_List_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_List_MinimumSet_Gen.json */ async function virtualMachineImagesEdgeZoneListMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineImagesEdgeZoneListSkusSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineImagesEdgeZoneListSkusSample.js similarity index 95% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineImagesEdgeZoneListSkusSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineImagesEdgeZoneListSkusSample.js index 87bd95110d13..775a8bd01a83 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineImagesEdgeZoneListSkusSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineImagesEdgeZoneListSkusSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets a list of virtual machine image SKUs for the specified location, edge zone, publisher, and offer. * * @summary Gets a list of virtual machine image SKUs for the specified location, edge zone, publisher, and offer. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListSkus_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListSkus_MaximumSet_Gen.json */ async function virtualMachineImagesEdgeZoneListSkusMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -39,7 +39,7 @@ async function virtualMachineImagesEdgeZoneListSkusMaximumSetGen() { * This sample demonstrates how to Gets a list of virtual machine image SKUs for the specified location, edge zone, publisher, and offer. * * @summary Gets a list of virtual machine image SKUs for the specified location, edge zone, publisher, and offer. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListSkus_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListSkus_MinimumSet_Gen.json */ async function virtualMachineImagesEdgeZoneListSkusMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineImagesGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineImagesGetSample.js similarity index 81% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineImagesGetSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineImagesGetSample.js index 2f20e58852e5..a368ff38a56f 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineImagesGetSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineImagesGetSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Gets a virtual machine image. * * @summary Gets a virtual machine image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_Get_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImage_Get_MaximumSet_Gen.json */ -async function virtualMachineImagesGetMaximumSetGen() { +async function virtualMachineImageGetMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaaaa"; const publisherName = "aaa"; @@ -41,9 +41,9 @@ async function virtualMachineImagesGetMaximumSetGen() { * This sample demonstrates how to Gets a virtual machine image. * * @summary Gets a virtual machine image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_Get_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImage_Get_MinimumSet_Gen.json */ -async function virtualMachineImagesGetMinimumSetGen() { +async function virtualMachineImageGetMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaaaaaaaaaa"; const publisherName = "aaaaaaaaaaa"; @@ -63,8 +63,8 @@ async function virtualMachineImagesGetMinimumSetGen() { } async function main() { - virtualMachineImagesGetMaximumSetGen(); - virtualMachineImagesGetMinimumSetGen(); + virtualMachineImageGetMaximumSetGen(); + virtualMachineImageGetMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineImagesListByEdgeZoneSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineImagesListByEdgeZoneSample.js similarity index 94% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineImagesListByEdgeZoneSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineImagesListByEdgeZoneSample.js index f8442a8604d7..e2feba49a5ee 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineImagesListByEdgeZoneSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineImagesListByEdgeZoneSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets a list of all virtual machine image versions for the specified edge zone * * @summary Gets a list of all virtual machine image versions for the specified edge zone - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListByEdgeZone_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListByEdgeZone_MaximumSet_Gen.json */ async function virtualMachineImagesEdgeZoneListByEdgeZoneMaximumSetGen() { const subscriptionId = @@ -33,7 +33,7 @@ async function virtualMachineImagesEdgeZoneListByEdgeZoneMaximumSetGen() { * This sample demonstrates how to Gets a list of all virtual machine image versions for the specified edge zone * * @summary Gets a list of all virtual machine image versions for the specified edge zone - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListByEdgeZone_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListByEdgeZone_MinimumSet_Gen.json */ async function virtualMachineImagesEdgeZoneListByEdgeZoneMinimumSetGen() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineImagesListOffersSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineImagesListOffersSample.js similarity index 79% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineImagesListOffersSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineImagesListOffersSample.js index b8b8ea5c77a4..55db067fcfd2 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineImagesListOffersSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineImagesListOffersSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Gets a list of virtual machine image offers for the specified location and publisher. * * @summary Gets a list of virtual machine image offers for the specified location and publisher. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_ListOffers_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImage_ListOffers_MaximumSet_Gen.json */ -async function virtualMachineImagesListOffersMaximumSetGen() { +async function virtualMachineImageListOffersMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaaaaa"; const publisherName = "aaaaaaaa"; @@ -32,9 +32,9 @@ async function virtualMachineImagesListOffersMaximumSetGen() { * This sample demonstrates how to Gets a list of virtual machine image offers for the specified location and publisher. * * @summary Gets a list of virtual machine image offers for the specified location and publisher. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_ListOffers_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImage_ListOffers_MinimumSet_Gen.json */ -async function virtualMachineImagesListOffersMinimumSetGen() { +async function virtualMachineImageListOffersMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaaaaaaaaaaaaaaa"; const publisherName = "aaaaaaaaaaaaaaaaaaaaaaaaaaaa"; @@ -45,8 +45,8 @@ async function virtualMachineImagesListOffersMinimumSetGen() { } async function main() { - virtualMachineImagesListOffersMaximumSetGen(); - virtualMachineImagesListOffersMinimumSetGen(); + virtualMachineImageListOffersMaximumSetGen(); + virtualMachineImageListOffersMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineImagesListPublishersSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineImagesListPublishersSample.js similarity index 77% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineImagesListPublishersSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineImagesListPublishersSample.js index 84365d5e6093..e383069dbfbc 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineImagesListPublishersSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineImagesListPublishersSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Gets a list of virtual machine image publishers for the specified Azure location. * * @summary Gets a list of virtual machine image publishers for the specified Azure location. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_ListPublishers_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImage_ListPublishers_MaximumSet_Gen.json */ -async function virtualMachineImagesListPublishersMaximumSetGen() { +async function virtualMachineImageListPublishersMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaaa"; const credential = new DefaultAzureCredential(); @@ -31,9 +31,9 @@ async function virtualMachineImagesListPublishersMaximumSetGen() { * This sample demonstrates how to Gets a list of virtual machine image publishers for the specified Azure location. * * @summary Gets a list of virtual machine image publishers for the specified Azure location. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_ListPublishers_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImage_ListPublishers_MinimumSet_Gen.json */ -async function virtualMachineImagesListPublishersMinimumSetGen() { +async function virtualMachineImageListPublishersMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaaaaaaaaaaaaaaaaaaaaaaaaa"; const credential = new DefaultAzureCredential(); @@ -43,8 +43,8 @@ async function virtualMachineImagesListPublishersMinimumSetGen() { } async function main() { - virtualMachineImagesListPublishersMaximumSetGen(); - virtualMachineImagesListPublishersMinimumSetGen(); + virtualMachineImageListPublishersMaximumSetGen(); + virtualMachineImageListPublishersMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineImagesListSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineImagesListSample.js similarity index 83% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineImagesListSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineImagesListSample.js index c9a885fea7a6..6ab1404498d7 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineImagesListSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineImagesListSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU. * * @summary Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_List_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImage_List_MaximumSet_Gen.json */ -async function virtualMachineImagesListMaximumSetGen() { +async function virtualMachineImageListMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaaaaaaaaaaaaa"; const publisherName = "aaaaaa"; @@ -48,9 +48,9 @@ async function virtualMachineImagesListMaximumSetGen() { * This sample demonstrates how to Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU. * * @summary Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_List_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImage_List_MinimumSet_Gen.json */ -async function virtualMachineImagesListMinimumSetGen() { +async function virtualMachineImageListMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaaaaa"; const publisherName = "aaaaaaaaaaa"; @@ -63,8 +63,8 @@ async function virtualMachineImagesListMinimumSetGen() { } async function main() { - virtualMachineImagesListMaximumSetGen(); - virtualMachineImagesListMinimumSetGen(); + virtualMachineImageListMaximumSetGen(); + virtualMachineImageListMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineImagesListSkusSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineImagesListSkusSample.js similarity index 80% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineImagesListSkusSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineImagesListSkusSample.js index 6ed1341d312f..c2a6aeb61527 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineImagesListSkusSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineImagesListSkusSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Gets a list of virtual machine image SKUs for the specified location, publisher, and offer. * * @summary Gets a list of virtual machine image SKUs for the specified location, publisher, and offer. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_ListSkus_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImage_ListSkus_MaximumSet_Gen.json */ -async function virtualMachineImagesListSkusMaximumSetGen() { +async function virtualMachineImageListSkusMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaa"; const publisherName = "aaaaaaaaaaaaaaaaaaaaaaaaaaaa"; @@ -33,9 +33,9 @@ async function virtualMachineImagesListSkusMaximumSetGen() { * This sample demonstrates how to Gets a list of virtual machine image SKUs for the specified location, publisher, and offer. * * @summary Gets a list of virtual machine image SKUs for the specified location, publisher, and offer. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_ListSkus_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImage_ListSkus_MinimumSet_Gen.json */ -async function virtualMachineImagesListSkusMinimumSetGen() { +async function virtualMachineImageListSkusMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaa"; const publisherName = "aaaaaaaaaaaaa"; @@ -47,8 +47,8 @@ async function virtualMachineImagesListSkusMinimumSetGen() { } async function main() { - virtualMachineImagesListSkusMaximumSetGen(); - virtualMachineImagesListSkusMinimumSetGen(); + virtualMachineImageListSkusMaximumSetGen(); + virtualMachineImageListSkusMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineRunCommandsCreateOrUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineRunCommandsCreateOrUpdateSample.js similarity index 67% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineRunCommandsCreateOrUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineRunCommandsCreateOrUpdateSample.js index f4d009f40076..d3610f555f56 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineRunCommandsCreateOrUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineRunCommandsCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to create or update the run command. * * @summary The operation to create or update the run command. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineRunCommand_CreateOrUpdate.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineRunCommand_CreateOrUpdate.json */ async function createOrUpdateARunCommand() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -25,15 +25,26 @@ async function createOrUpdateARunCommand() { const runCommandName = "myRunCommand"; const runCommand = { asyncExecution: false, + errorBlobUri: + "https://mystorageaccount.blob.core.windows.net/mycontainer/MyScriptError.txt?sp=racw&st=2022-10-07T19:40:21Z&se=2022-10-08T03:40:21Z&spr=https&sv=2021-06-08&sr=b&sig=Yh7B%2Fy83olbYBdfsfbUREvd7ol8Dq5EVP3lAO4Kj4xDcN8%3D", location: "West US", + outputBlobManagedIdentity: { + clientId: "22d35efb-0c99-4041-8c5b-6d24db33a69a", + }, + outputBlobUri: + "https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/MyScriptoutput.txt", parameters: [ { name: "param1", value: "value1" }, { name: "param2", value: "value2" }, ], runAsPassword: "", runAsUser: "user1", - source: { script: "Write-Host Hello World!" }, + source: { + scriptUri: + "https://mystorageaccount.blob.core.windows.net/scriptcontainer/MyScript.ps1?sp=r&st=2022-10-07T19:52:54Z&se=2022-10-08T03:52:54Z&spr=https&sv=2021-06-08&sr=b&sig=zfYFYCgea1PqVERZuwJiewrte5gjTnKGtVJngcw5oc828%3D", + }, timeoutInSeconds: 3600, + treatFailureAsDeploymentFailure: false, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineRunCommandsDeleteSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineRunCommandsDeleteSample.js similarity index 95% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineRunCommandsDeleteSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineRunCommandsDeleteSample.js index 38496096a391..d92620e18def 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineRunCommandsDeleteSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineRunCommandsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to delete the run command. * * @summary The operation to delete the run command. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineRunCommand_Delete.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineRunCommand_Delete.json */ async function deleteARunCommand() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineRunCommandsGetByVirtualMachineSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineRunCommandsGetByVirtualMachineSample.js similarity index 95% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineRunCommandsGetByVirtualMachineSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineRunCommandsGetByVirtualMachineSample.js index 5f7caccab792..134a448b47a8 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineRunCommandsGetByVirtualMachineSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineRunCommandsGetByVirtualMachineSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to get the run command. * * @summary The operation to get the run command. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineRunCommand_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineRunCommand_Get.json */ async function getARunCommand() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineRunCommandsGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineRunCommandsGetSample.js similarity index 95% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineRunCommandsGetSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineRunCommandsGetSample.js index e5b9f6245dcd..54211ce2990c 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineRunCommandsGetSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineRunCommandsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets specific run command for a subscription in a location. * * @summary Gets specific run command for a subscription in a location. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/RunCommand_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/RunCommand_Get.json */ async function virtualMachineRunCommandGet() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineRunCommandsListByVirtualMachineSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineRunCommandsListByVirtualMachineSample.js similarity index 95% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineRunCommandsListByVirtualMachineSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineRunCommandsListByVirtualMachineSample.js index 42b3c3f5e02b..f5412e8e7aa5 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineRunCommandsListByVirtualMachineSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineRunCommandsListByVirtualMachineSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to get all run commands of a Virtual Machine. * * @summary The operation to get all run commands of a Virtual Machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineRunCommand_List.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineRunCommand_List.json */ async function listRunCommandsInAVirtualMachine() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineRunCommandsListSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineRunCommandsListSample.js similarity index 95% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineRunCommandsListSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineRunCommandsListSample.js index 6357201cd7f4..4ca30a073fea 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineRunCommandsListSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineRunCommandsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all available run commands for a subscription in a location. * * @summary Lists all available run commands for a subscription in a location. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/RunCommand_List.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/RunCommand_List.json */ async function virtualMachineRunCommandList() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineRunCommandsUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineRunCommandsUpdateSample.js similarity index 62% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineRunCommandsUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineRunCommandsUpdateSample.js index 190d68fa02e0..c97628ad1eae 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineRunCommandsUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineRunCommandsUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to update the run command. * * @summary The operation to update the run command. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineRunCommand_Update.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineRunCommand_Update.json */ async function updateARunCommand() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -24,7 +24,23 @@ async function updateARunCommand() { const vmName = "myVM"; const runCommandName = "myRunCommand"; const runCommand = { - source: { script: "Write-Host Script Source Updated!" }, + asyncExecution: false, + errorBlobManagedIdentity: { + objectId: "4231e4d2-33e4-4e23-96b2-17888afa6072", + }, + errorBlobUri: "https://mystorageaccount.blob.core.windows.net/mycontainer/MyScriptError.txt", + outputBlobUri: + "https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/MyScriptoutput.txt?sp=racw&st=2022-10-07T19:40:21Z&se=2022-10-08T03:40:21Z&spr=https&sv=2021-06-08&sr=b&sig=Yh7B%2Fy83olbYBdfsfbUREvd7ol8Dq5EVP3lAO4Kj4xDcN8%3D", + parameters: [ + { name: "param1", value: "value1" }, + { name: "param2", value: "value2" }, + ], + runAsPassword: "", + runAsUser: "user1", + source: { + script: "Write-Host Hello World! ; Remove-Item C:\test\testFile.txt", + }, + timeoutInSeconds: 3600, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetExtensionsCreateOrUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetExtensionsCreateOrUpdateSample.js similarity index 81% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetExtensionsCreateOrUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetExtensionsCreateOrUpdateSample.js index 933fb272c2a2..0ccc2f0db643 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetExtensionsCreateOrUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetExtensionsCreateOrUpdateSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to The operation to create or update an extension. * * @summary The operation to create or update an extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_CreateOrUpdate_MaximumSet_Gen.json */ -async function virtualMachineScaleSetExtensionsCreateOrUpdateMaximumSetGen() { +async function virtualMachineScaleSetExtensionCreateOrUpdateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaa"; @@ -51,9 +51,9 @@ async function virtualMachineScaleSetExtensionsCreateOrUpdateMaximumSetGen() { * This sample demonstrates how to The operation to create or update an extension. * * @summary The operation to create or update an extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_CreateOrUpdate_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_CreateOrUpdate_MinimumSet_Gen.json */ -async function virtualMachineScaleSetExtensionsCreateOrUpdateMinimumSetGen() { +async function virtualMachineScaleSetExtensionCreateOrUpdateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaa"; @@ -71,8 +71,8 @@ async function virtualMachineScaleSetExtensionsCreateOrUpdateMinimumSetGen() { } async function main() { - virtualMachineScaleSetExtensionsCreateOrUpdateMaximumSetGen(); - virtualMachineScaleSetExtensionsCreateOrUpdateMinimumSetGen(); + virtualMachineScaleSetExtensionCreateOrUpdateMaximumSetGen(); + virtualMachineScaleSetExtensionCreateOrUpdateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetExtensionsDeleteSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetExtensionsDeleteSample.js similarity index 79% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetExtensionsDeleteSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetExtensionsDeleteSample.js index 0a153345dc76..080d267b84b4 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetExtensionsDeleteSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetExtensionsDeleteSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to The operation to delete the extension. * * @summary The operation to delete the extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_Delete_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Delete_MaximumSet_Gen.json */ -async function virtualMachineScaleSetExtensionsDeleteMaximumSetGen() { +async function virtualMachineScaleSetExtensionDeleteMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; @@ -37,9 +37,9 @@ async function virtualMachineScaleSetExtensionsDeleteMaximumSetGen() { * This sample demonstrates how to The operation to delete the extension. * * @summary The operation to delete the extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_Delete_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Delete_MinimumSet_Gen.json */ -async function virtualMachineScaleSetExtensionsDeleteMinimumSetGen() { +async function virtualMachineScaleSetExtensionDeleteMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaa"; @@ -55,8 +55,8 @@ async function virtualMachineScaleSetExtensionsDeleteMinimumSetGen() { } async function main() { - virtualMachineScaleSetExtensionsDeleteMaximumSetGen(); - virtualMachineScaleSetExtensionsDeleteMinimumSetGen(); + virtualMachineScaleSetExtensionDeleteMaximumSetGen(); + virtualMachineScaleSetExtensionDeleteMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetExtensionsGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetExtensionsGetSample.js similarity index 79% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetExtensionsGetSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetExtensionsGetSample.js index 0ddcbcc222ac..e9c99f26e9cb 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetExtensionsGetSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetExtensionsGetSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to The operation to get the extension. * * @summary The operation to get the extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_Get_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Get_MaximumSet_Gen.json */ -async function virtualMachineScaleSetExtensionsGetMaximumSetGen() { +async function virtualMachineScaleSetExtensionGetMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaa"; @@ -40,9 +40,9 @@ async function virtualMachineScaleSetExtensionsGetMaximumSetGen() { * This sample demonstrates how to The operation to get the extension. * * @summary The operation to get the extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_Get_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Get_MinimumSet_Gen.json */ -async function virtualMachineScaleSetExtensionsGetMinimumSetGen() { +async function virtualMachineScaleSetExtensionGetMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "a"; @@ -58,8 +58,8 @@ async function virtualMachineScaleSetExtensionsGetMinimumSetGen() { } async function main() { - virtualMachineScaleSetExtensionsGetMaximumSetGen(); - virtualMachineScaleSetExtensionsGetMinimumSetGen(); + virtualMachineScaleSetExtensionGetMaximumSetGen(); + virtualMachineScaleSetExtensionGetMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetExtensionsListSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetExtensionsListSample.js similarity index 79% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetExtensionsListSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetExtensionsListSample.js index 56bcda323aa7..dcb2c1477584 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetExtensionsListSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetExtensionsListSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Gets a list of all extensions in a VM scale set. * * @summary Gets a list of all extensions in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_List_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_List_MaximumSet_Gen.json */ -async function virtualMachineScaleSetExtensionsListMaximumSetGen() { +async function virtualMachineScaleSetExtensionListMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaa"; @@ -38,9 +38,9 @@ async function virtualMachineScaleSetExtensionsListMaximumSetGen() { * This sample demonstrates how to Gets a list of all extensions in a VM scale set. * * @summary Gets a list of all extensions in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_List_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_List_MinimumSet_Gen.json */ -async function virtualMachineScaleSetExtensionsListMinimumSetGen() { +async function virtualMachineScaleSetExtensionListMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; @@ -57,8 +57,8 @@ async function virtualMachineScaleSetExtensionsListMinimumSetGen() { } async function main() { - virtualMachineScaleSetExtensionsListMaximumSetGen(); - virtualMachineScaleSetExtensionsListMinimumSetGen(); + virtualMachineScaleSetExtensionListMaximumSetGen(); + virtualMachineScaleSetExtensionListMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetExtensionsUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetExtensionsUpdateSample.js similarity index 82% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetExtensionsUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetExtensionsUpdateSample.js index 92a88da4d49f..30a03858cfd8 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetExtensionsUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetExtensionsUpdateSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to The operation to update an extension. * * @summary The operation to update an extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_Update_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Update_MaximumSet_Gen.json */ -async function virtualMachineScaleSetExtensionsUpdateMaximumSetGen() { +async function virtualMachineScaleSetExtensionUpdateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; @@ -50,9 +50,9 @@ async function virtualMachineScaleSetExtensionsUpdateMaximumSetGen() { * This sample demonstrates how to The operation to update an extension. * * @summary The operation to update an extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_Update_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Update_MinimumSet_Gen.json */ -async function virtualMachineScaleSetExtensionsUpdateMinimumSetGen() { +async function virtualMachineScaleSetExtensionUpdateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaaaa"; @@ -70,8 +70,8 @@ async function virtualMachineScaleSetExtensionsUpdateMinimumSetGen() { } async function main() { - virtualMachineScaleSetExtensionsUpdateMaximumSetGen(); - virtualMachineScaleSetExtensionsUpdateMinimumSetGen(); + virtualMachineScaleSetExtensionUpdateMaximumSetGen(); + virtualMachineScaleSetExtensionUpdateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetRollingUpgradesCancelSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetRollingUpgradesCancelSample.js similarity index 77% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetRollingUpgradesCancelSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetRollingUpgradesCancelSample.js index 31201448c0cb..bd04bd42c70c 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetRollingUpgradesCancelSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetRollingUpgradesCancelSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Cancels the current virtual machine scale set rolling upgrade. * * @summary Cancels the current virtual machine scale set rolling upgrade. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrades_Cancel_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_Cancel_MaximumSet_Gen.json */ -async function virtualMachineScaleSetRollingUpgradesCancelMaximumSetGen() { +async function virtualMachineScaleSetRollingUpgradeCancelMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaa"; @@ -35,9 +35,9 @@ async function virtualMachineScaleSetRollingUpgradesCancelMaximumSetGen() { * This sample demonstrates how to Cancels the current virtual machine scale set rolling upgrade. * * @summary Cancels the current virtual machine scale set rolling upgrade. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrades_Cancel_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_Cancel_MinimumSet_Gen.json */ -async function virtualMachineScaleSetRollingUpgradesCancelMinimumSetGen() { +async function virtualMachineScaleSetRollingUpgradeCancelMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaa"; @@ -51,8 +51,8 @@ async function virtualMachineScaleSetRollingUpgradesCancelMinimumSetGen() { } async function main() { - virtualMachineScaleSetRollingUpgradesCancelMaximumSetGen(); - virtualMachineScaleSetRollingUpgradesCancelMinimumSetGen(); + virtualMachineScaleSetRollingUpgradeCancelMaximumSetGen(); + virtualMachineScaleSetRollingUpgradeCancelMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetRollingUpgradesGetLatestSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetRollingUpgradesGetLatestSample.js similarity index 77% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetRollingUpgradesGetLatestSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetRollingUpgradesGetLatestSample.js index 22951afe4d2d..f9330a0b3f31 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetRollingUpgradesGetLatestSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetRollingUpgradesGetLatestSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Gets the status of the latest virtual machine scale set rolling upgrade. * * @summary Gets the status of the latest virtual machine scale set rolling upgrade. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrades_GetLatest_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_GetLatest_MaximumSet_Gen.json */ -async function virtualMachineScaleSetRollingUpgradesGetLatestMaximumSetGen() { +async function virtualMachineScaleSetRollingUpgradeGetLatestMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaaa"; @@ -35,9 +35,9 @@ async function virtualMachineScaleSetRollingUpgradesGetLatestMaximumSetGen() { * This sample demonstrates how to Gets the status of the latest virtual machine scale set rolling upgrade. * * @summary Gets the status of the latest virtual machine scale set rolling upgrade. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrades_GetLatest_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_GetLatest_MinimumSet_Gen.json */ -async function virtualMachineScaleSetRollingUpgradesGetLatestMinimumSetGen() { +async function virtualMachineScaleSetRollingUpgradeGetLatestMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaa"; @@ -51,8 +51,8 @@ async function virtualMachineScaleSetRollingUpgradesGetLatestMinimumSetGen() { } async function main() { - virtualMachineScaleSetRollingUpgradesGetLatestMaximumSetGen(); - virtualMachineScaleSetRollingUpgradesGetLatestMinimumSetGen(); + virtualMachineScaleSetRollingUpgradeGetLatestMaximumSetGen(); + virtualMachineScaleSetRollingUpgradeGetLatestMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSample.js similarity index 96% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSample.js index 3ad667c6c51c..c79f2eed1d43 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Starts a rolling upgrade to move all extensions for all virtual machine scale set instances to the latest available extension version. Instances which are already running the latest extension versions are not affected. * * @summary Starts a rolling upgrade to move all extensions for all virtual machine scale set instances to the latest available extension version. Instances which are already running the latest extension versions are not affected. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_RollingUpgrade.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_RollingUpgrade.json */ async function startAnExtensionRollingUpgrade() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetRollingUpgradesStartOSUpgradeSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetRollingUpgradesStartOSUpgradeSample.js similarity index 80% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetRollingUpgradesStartOSUpgradeSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetRollingUpgradesStartOSUpgradeSample.js index f1c88f2a6ef6..88aca645d264 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetRollingUpgradesStartOSUpgradeSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetRollingUpgradesStartOSUpgradeSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Starts a rolling upgrade to move all virtual machine scale set instances to the latest available Platform Image OS version. Instances which are already running the latest available OS version are not affected. * * @summary Starts a rolling upgrade to move all virtual machine scale set instances to the latest available Platform Image OS version. Instances which are already running the latest available OS version are not affected. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrades_StartOSUpgrade_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_StartOSUpgrade_MaximumSet_Gen.json */ -async function virtualMachineScaleSetRollingUpgradesStartOSUpgradeMaximumSetGen() { +async function virtualMachineScaleSetRollingUpgradeStartOSUpgradeMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaa"; @@ -35,9 +35,9 @@ async function virtualMachineScaleSetRollingUpgradesStartOSUpgradeMaximumSetGen( * This sample demonstrates how to Starts a rolling upgrade to move all virtual machine scale set instances to the latest available Platform Image OS version. Instances which are already running the latest available OS version are not affected. * * @summary Starts a rolling upgrade to move all virtual machine scale set instances to the latest available Platform Image OS version. Instances which are already running the latest available OS version are not affected. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrades_StartOSUpgrade_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_StartOSUpgrade_MinimumSet_Gen.json */ -async function virtualMachineScaleSetRollingUpgradesStartOSUpgradeMinimumSetGen() { +async function virtualMachineScaleSetRollingUpgradeStartOSUpgradeMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaa"; @@ -51,8 +51,8 @@ async function virtualMachineScaleSetRollingUpgradesStartOSUpgradeMinimumSetGen( } async function main() { - virtualMachineScaleSetRollingUpgradesStartOSUpgradeMaximumSetGen(); - virtualMachineScaleSetRollingUpgradesStartOSUpgradeMinimumSetGen(); + virtualMachineScaleSetRollingUpgradeStartOSUpgradeMaximumSetGen(); + virtualMachineScaleSetRollingUpgradeStartOSUpgradeMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMExtensionsCreateOrUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMExtensionsCreateOrUpdateSample.js similarity index 92% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMExtensionsCreateOrUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMExtensionsCreateOrUpdateSample.js index 2de7aea87d97..7a8912c3fbe4 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMExtensionsCreateOrUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMExtensionsCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to create or update the VMSS VM extension. * * @summary The operation to create or update the VMSS VM extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtensions_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Create.json */ async function createVirtualMachineScaleSetVMExtension() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMExtensionsDeleteSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMExtensionsDeleteSample.js similarity index 91% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMExtensionsDeleteSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMExtensionsDeleteSample.js index b7b263bcb249..ffd9bc70caf1 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMExtensionsDeleteSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMExtensionsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to delete the VMSS VM extension. * * @summary The operation to delete the VMSS VM extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtensions_Delete.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Delete.json */ async function deleteVirtualMachineScaleSetVMExtension() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMExtensionsGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMExtensionsGetSample.js similarity index 91% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMExtensionsGetSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMExtensionsGetSample.js index 0eb329c5dd70..b406f2032380 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMExtensionsGetSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMExtensionsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to get the VMSS VM extension. * * @summary The operation to get the VMSS VM extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtensions_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Get.json */ async function getVirtualMachineScaleSetVMExtension() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMExtensionsListSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMExtensionsListSample.js similarity index 91% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMExtensionsListSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMExtensionsListSample.js index 76ae4d3bdf6c..f1253504c3a9 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMExtensionsListSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMExtensionsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to get all extensions of an instance in Virtual Machine Scaleset. * * @summary The operation to get all extensions of an instance in Virtual Machine Scaleset. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtensions_List.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_List.json */ async function listExtensionsInVmssInstance() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMExtensionsUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMExtensionsUpdateSample.js similarity index 92% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMExtensionsUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMExtensionsUpdateSample.js index 9db3f6f7696f..de3bc43ee60b 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMExtensionsUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMExtensionsUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to update the VMSS VM extension. * * @summary The operation to update the VMSS VM extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtensions_Update.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Update.json */ async function updateVirtualMachineScaleSetVMExtension() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMRunCommandsCreateOrUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMRunCommandsCreateOrUpdateSample.js similarity index 73% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMRunCommandsCreateOrUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMRunCommandsCreateOrUpdateSample.js index fd8ceb5b0db7..2fb5f19966d3 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMRunCommandsCreateOrUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMRunCommandsCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to create or update the VMSS VM run command. * * @summary The operation to create or update the VMSS VM run command. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_CreateOrUpdate.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_CreateOrUpdate.json */ async function createVirtualMachineScaleSetVMRunCommand() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -26,15 +26,28 @@ async function createVirtualMachineScaleSetVMRunCommand() { const runCommandName = "myRunCommand"; const runCommand = { asyncExecution: false, + errorBlobManagedIdentity: {}, + errorBlobUri: "https://mystorageaccount.blob.core.windows.net/mycontainer/MyScriptError.txt", location: "West US", + outputBlobManagedIdentity: { + clientId: "22d35efb-0c99-4041-8c5b-6d24db33a69a", + }, + outputBlobUri: + "https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/MyScriptoutput.txt", parameters: [ { name: "param1", value: "value1" }, { name: "param2", value: "value2" }, ], runAsPassword: "", runAsUser: "user1", - source: { script: "Write-Host Hello World!" }, + source: { + scriptUri: "https://mystorageaccount.blob.core.windows.net/scriptcontainer/MyScript.ps1", + scriptUriManagedIdentity: { + objectId: "4231e4d2-33e4-4e23-96b2-17888afa6072", + }, + }, timeoutInSeconds: 3600, + treatFailureAsDeploymentFailure: true, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMRunCommandsDeleteSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMRunCommandsDeleteSample.js similarity index 95% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMRunCommandsDeleteSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMRunCommandsDeleteSample.js index 710287315cd6..406ee37c32cf 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMRunCommandsDeleteSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMRunCommandsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to delete the VMSS VM run command. * * @summary The operation to delete the VMSS VM run command. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Delete.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Delete.json */ async function deleteVirtualMachineScaleSetVMRunCommand() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMRunCommandsGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMRunCommandsGetSample.js similarity index 95% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMRunCommandsGetSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMRunCommandsGetSample.js index 5c4157c7fcf3..db4b26e1b59f 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMRunCommandsGetSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMRunCommandsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to get the VMSS VM run command. * * @summary The operation to get the VMSS VM run command. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Get.json */ async function getVirtualMachineScaleSetVMRunCommands() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMRunCommandsListSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMRunCommandsListSample.js similarity index 96% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMRunCommandsListSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMRunCommandsListSample.js index 0648f4ebc224..4321f765a64e 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMRunCommandsListSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMRunCommandsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to get all run commands of an instance in Virtual Machine Scaleset. * * @summary The operation to get all run commands of an instance in Virtual Machine Scaleset. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_List.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_List.json */ async function listRunCommandsInVmssInstance() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMRunCommandsUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMRunCommandsUpdateSample.js similarity index 84% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMRunCommandsUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMRunCommandsUpdateSample.js index a1ff135d1945..165d1f7454a5 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMRunCommandsUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMRunCommandsUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to update the VMSS VM run command. * * @summary The operation to update the VMSS VM run command. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Update.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Update.json */ async function updateVirtualMachineScaleSetVMRunCommand() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -25,7 +25,12 @@ async function updateVirtualMachineScaleSetVMRunCommand() { const instanceId = "0"; const runCommandName = "myRunCommand"; const runCommand = { - source: { script: "Write-Host Script Source Updated!" }, + source: { + scriptUri: "https://mystorageaccount.blob.core.windows.net/scriptcontainer/MyScript.ps1", + scriptUriManagedIdentity: { + objectId: "4231e4d2-33e4-4e23-96b2-17888afa6072", + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSDeallocateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSDeallocateSample.js similarity index 84% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSDeallocateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSDeallocateSample.js index 5503510d016b..7224b4ca5893 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSDeallocateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSDeallocateSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the compute resources it uses. You are not billed for the compute resources of this virtual machine once it is deallocated. * * @summary Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the compute resources it uses. You are not billed for the compute resources of this virtual machine once it is deallocated. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Deallocate_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Deallocate_MaximumSet_Gen.json */ -async function virtualMachineScaleSetVMSDeallocateMaximumSetGen() { +async function virtualMachineScaleSetVMDeallocateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaa"; @@ -37,9 +37,9 @@ async function virtualMachineScaleSetVMSDeallocateMaximumSetGen() { * This sample demonstrates how to Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the compute resources it uses. You are not billed for the compute resources of this virtual machine once it is deallocated. * * @summary Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the compute resources it uses. You are not billed for the compute resources of this virtual machine once it is deallocated. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Deallocate_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Deallocate_MinimumSet_Gen.json */ -async function virtualMachineScaleSetVMSDeallocateMinimumSetGen() { +async function virtualMachineScaleSetVMDeallocateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaa"; @@ -55,8 +55,8 @@ async function virtualMachineScaleSetVMSDeallocateMinimumSetGen() { } async function main() { - virtualMachineScaleSetVMSDeallocateMaximumSetGen(); - virtualMachineScaleSetVMSDeallocateMinimumSetGen(); + virtualMachineScaleSetVMDeallocateMaximumSetGen(); + virtualMachineScaleSetVMDeallocateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSDeleteSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSDeleteSample.js similarity index 95% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSDeleteSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSDeleteSample.js index 4bfb0fa9e9d1..992388860f16 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSDeleteSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes a virtual machine from a VM scale set. * * @summary Deletes a virtual machine from a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Delete_Force.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Delete_Force.json */ async function forceDeleteAVirtualMachineFromAVMScaleSet() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSGetInstanceViewSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSGetInstanceViewSample.js similarity index 96% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSGetInstanceViewSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSGetInstanceViewSample.js index 6a530fc2e0d9..b6b4785cdcda 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSGetInstanceViewSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSGetInstanceViewSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the status of a virtual machine from a VM scale set. * * @summary Gets the status of a virtual machine from a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_InstanceViewAutoPlacedOnDedicatedHostGroup.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_InstanceViewAutoPlacedOnDedicatedHostGroup.json */ async function getInstanceViewOfAVirtualMachineFromAVMScaleSetPlacedOnADedicatedHostGroupThroughAutomaticPlacement() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSGetSample.js similarity index 94% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSGetSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSGetSample.js index c20beebf188c..7be8b5b17611 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSGetSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets a virtual machine from a VM scale set. * * @summary Gets a virtual machine from a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithUserData.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithUserData.json */ async function getVMScaleSetVMWithUserData() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -37,7 +37,7 @@ async function getVMScaleSetVMWithUserData() { * This sample demonstrates how to Gets a virtual machine from a VM scale set. * * @summary Gets a virtual machine from a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithVMSizeProperties.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithVMSizeProperties.json */ async function getVMScaleSetVMWithVMSizeProperties() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSListSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSListSample.js similarity index 82% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSListSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSListSample.js index 40a8df813f6a..2d5f748c818c 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSListSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSListSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Gets a list of all virtual machines in a VM scale sets. * * @summary Gets a list of all virtual machines in a VM scale sets. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_List_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_List_MaximumSet_Gen.json */ -async function virtualMachineScaleSetVMSListMaximumSetGen() { +async function virtualMachineScaleSetVMListMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const virtualMachineScaleSetName = "aaaaaaaaaaaaaaaaaaaaaa"; @@ -47,9 +47,9 @@ async function virtualMachineScaleSetVMSListMaximumSetGen() { * This sample demonstrates how to Gets a list of all virtual machines in a VM scale sets. * * @summary Gets a list of all virtual machines in a VM scale sets. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_List_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_List_MinimumSet_Gen.json */ -async function virtualMachineScaleSetVMSListMinimumSetGen() { +async function virtualMachineScaleSetVMListMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const virtualMachineScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaaaaaa"; @@ -66,8 +66,8 @@ async function virtualMachineScaleSetVMSListMinimumSetGen() { } async function main() { - virtualMachineScaleSetVMSListMaximumSetGen(); - virtualMachineScaleSetVMSListMinimumSetGen(); + virtualMachineScaleSetVMListMaximumSetGen(); + virtualMachineScaleSetVMListMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSPerformMaintenanceSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSPerformMaintenanceSample.js similarity index 78% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSPerformMaintenanceSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSPerformMaintenanceSample.js index dc6589b0ab65..e08fc1d494ec 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSPerformMaintenanceSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSPerformMaintenanceSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Performs maintenance on a virtual machine in a VM scale set. * * @summary Performs maintenance on a virtual machine in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_PerformMaintenance_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PerformMaintenance_MaximumSet_Gen.json */ -async function virtualMachineScaleSetVMSPerformMaintenanceMaximumSetGen() { +async function virtualMachineScaleSetVMPerformMaintenanceMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaa"; @@ -37,9 +37,9 @@ async function virtualMachineScaleSetVMSPerformMaintenanceMaximumSetGen() { * This sample demonstrates how to Performs maintenance on a virtual machine in a VM scale set. * * @summary Performs maintenance on a virtual machine in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_PerformMaintenance_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PerformMaintenance_MinimumSet_Gen.json */ -async function virtualMachineScaleSetVMSPerformMaintenanceMinimumSetGen() { +async function virtualMachineScaleSetVMPerformMaintenanceMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaa"; @@ -55,8 +55,8 @@ async function virtualMachineScaleSetVMSPerformMaintenanceMinimumSetGen() { } async function main() { - virtualMachineScaleSetVMSPerformMaintenanceMaximumSetGen(); - virtualMachineScaleSetVMSPerformMaintenanceMinimumSetGen(); + virtualMachineScaleSetVMPerformMaintenanceMaximumSetGen(); + virtualMachineScaleSetVMPerformMaintenanceMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSPowerOffSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSPowerOffSample.js similarity index 84% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSPowerOffSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSPowerOffSample.js index f06c54e5f86a..d3459884a046 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSPowerOffSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSPowerOffSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. * * @summary Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_PowerOff_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PowerOff_MaximumSet_Gen.json */ -async function virtualMachineScaleSetVMSPowerOffMaximumSetGen() { +async function virtualMachineScaleSetVMPowerOffMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaa"; @@ -42,9 +42,9 @@ async function virtualMachineScaleSetVMSPowerOffMaximumSetGen() { * This sample demonstrates how to Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. * * @summary Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_PowerOff_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PowerOff_MinimumSet_Gen.json */ -async function virtualMachineScaleSetVMSPowerOffMinimumSetGen() { +async function virtualMachineScaleSetVMPowerOffMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; @@ -60,8 +60,8 @@ async function virtualMachineScaleSetVMSPowerOffMinimumSetGen() { } async function main() { - virtualMachineScaleSetVMSPowerOffMaximumSetGen(); - virtualMachineScaleSetVMSPowerOffMinimumSetGen(); + virtualMachineScaleSetVMPowerOffMaximumSetGen(); + virtualMachineScaleSetVMPowerOffMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSRedeploySample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSRedeploySample.js similarity index 81% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSRedeploySample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSRedeploySample.js index 8136ecd82e1a..b369f4e9ea1d 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSRedeploySample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSRedeploySample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on. * * @summary Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Redeploy_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Redeploy_MaximumSet_Gen.json */ -async function virtualMachineScaleSetVMSRedeployMaximumSetGen() { +async function virtualMachineScaleSetVMRedeployMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaa"; @@ -37,9 +37,9 @@ async function virtualMachineScaleSetVMSRedeployMaximumSetGen() { * This sample demonstrates how to Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on. * * @summary Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Redeploy_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Redeploy_MinimumSet_Gen.json */ -async function virtualMachineScaleSetVMSRedeployMinimumSetGen() { +async function virtualMachineScaleSetVMRedeployMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaa"; @@ -55,8 +55,8 @@ async function virtualMachineScaleSetVMSRedeployMinimumSetGen() { } async function main() { - virtualMachineScaleSetVMSRedeployMaximumSetGen(); - virtualMachineScaleSetVMSRedeployMinimumSetGen(); + virtualMachineScaleSetVMRedeployMaximumSetGen(); + virtualMachineScaleSetVMRedeployMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSReimageAllSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSReimageAllSample.js similarity index 82% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSReimageAllSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSReimageAllSample.js index 26a121ed5a2f..3fcaa10c9ee1 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSReimageAllSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSReimageAllSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This operation is only supported for managed disks. * * @summary Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This operation is only supported for managed disks. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_ReimageAll_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_ReimageAll_MaximumSet_Gen.json */ -async function virtualMachineScaleSetVMSReimageAllMaximumSetGen() { +async function virtualMachineScaleSetVMReimageAllMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaa"; @@ -37,9 +37,9 @@ async function virtualMachineScaleSetVMSReimageAllMaximumSetGen() { * This sample demonstrates how to Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This operation is only supported for managed disks. * * @summary Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This operation is only supported for managed disks. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_ReimageAll_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_ReimageAll_MinimumSet_Gen.json */ -async function virtualMachineScaleSetVMSReimageAllMinimumSetGen() { +async function virtualMachineScaleSetVMReimageAllMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaaa"; @@ -55,8 +55,8 @@ async function virtualMachineScaleSetVMSReimageAllMinimumSetGen() { } async function main() { - virtualMachineScaleSetVMSReimageAllMaximumSetGen(); - virtualMachineScaleSetVMSReimageAllMinimumSetGen(); + virtualMachineScaleSetVMReimageAllMaximumSetGen(); + virtualMachineScaleSetVMReimageAllMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSReimageSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSReimageSample.js similarity index 82% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSReimageSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSReimageSample.js index 3ef864dc35f3..9322a2b76673 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSReimageSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSReimageSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Reimages (upgrade the operating system) a specific virtual machine in a VM scale set. * * @summary Reimages (upgrade the operating system) a specific virtual machine in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Reimage_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Reimage_MaximumSet_Gen.json */ -async function virtualMachineScaleSetVMSReimageMaximumSetGen() { +async function virtualMachineScaleSetVMReimageMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaa"; @@ -44,9 +44,9 @@ async function virtualMachineScaleSetVMSReimageMaximumSetGen() { * This sample demonstrates how to Reimages (upgrade the operating system) a specific virtual machine in a VM scale set. * * @summary Reimages (upgrade the operating system) a specific virtual machine in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Reimage_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Reimage_MinimumSet_Gen.json */ -async function virtualMachineScaleSetVMSReimageMinimumSetGen() { +async function virtualMachineScaleSetVMReimageMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaa"; @@ -62,8 +62,8 @@ async function virtualMachineScaleSetVMSReimageMinimumSetGen() { } async function main() { - virtualMachineScaleSetVMSReimageMaximumSetGen(); - virtualMachineScaleSetVMSReimageMinimumSetGen(); + virtualMachineScaleSetVMReimageMaximumSetGen(); + virtualMachineScaleSetVMReimageMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSRestartSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSRestartSample.js similarity index 79% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSRestartSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSRestartSample.js index dc19cb450dee..7cb998a0a79c 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSRestartSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSRestartSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Restarts a virtual machine in a VM scale set. * * @summary Restarts a virtual machine in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Restart_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Restart_MaximumSet_Gen.json */ -async function virtualMachineScaleSetVMSRestartMaximumSetGen() { +async function virtualMachineScaleSetVMRestartMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aa"; @@ -37,9 +37,9 @@ async function virtualMachineScaleSetVMSRestartMaximumSetGen() { * This sample demonstrates how to Restarts a virtual machine in a VM scale set. * * @summary Restarts a virtual machine in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Restart_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Restart_MinimumSet_Gen.json */ -async function virtualMachineScaleSetVMSRestartMinimumSetGen() { +async function virtualMachineScaleSetVMRestartMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaa"; @@ -55,8 +55,8 @@ async function virtualMachineScaleSetVMSRestartMinimumSetGen() { } async function main() { - virtualMachineScaleSetVMSRestartMaximumSetGen(); - virtualMachineScaleSetVMSRestartMinimumSetGen(); + virtualMachineScaleSetVMRestartMaximumSetGen(); + virtualMachineScaleSetVMRestartMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.js similarity index 96% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.js index 0aee95499486..c88ae8162006 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to retrieve SAS URIs of boot diagnostic logs for a virtual machine in a VM scale set. * * @summary The operation to retrieve SAS URIs of boot diagnostic logs for a virtual machine in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_RetrieveBootDiagnosticsData.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_RetrieveBootDiagnosticsData.json */ async function retrieveBootDiagnosticsDataOfAVirtualMachine() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSRunCommandSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSRunCommandSample.js similarity index 96% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSRunCommandSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSRunCommandSample.js index cb292ba1777b..4475f8dc0f2a 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSRunCommandSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSRunCommandSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Run command on a virtual machine in a VM scale set. * * @summary Run command on a virtual machine in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand.json */ async function virtualMachineScaleSetVMSRunCommand() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSSimulateEvictionSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSSimulateEvictionSample.js similarity index 95% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSSimulateEvictionSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSSimulateEvictionSample.js index 3c98ebec3e46..d5ad7c345a18 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSSimulateEvictionSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSSimulateEvictionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to simulate the eviction of spot virtual machine in a VM scale set. * * @summary The operation to simulate the eviction of spot virtual machine in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_SimulateEviction.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_SimulateEviction.json */ async function simulateEvictionAVirtualMachine() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSStartSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSStartSample.js similarity index 80% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSStartSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSStartSample.js index db2ec146cebd..794eabc8f4e4 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSStartSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSStartSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Starts a virtual machine in a VM scale set. * * @summary Starts a virtual machine in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Start_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Start_MaximumSet_Gen.json */ -async function virtualMachineScaleSetVMSStartMaximumSetGen() { +async function virtualMachineScaleSetVMStartMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaa"; @@ -37,9 +37,9 @@ async function virtualMachineScaleSetVMSStartMaximumSetGen() { * This sample demonstrates how to Starts a virtual machine in a VM scale set. * * @summary Starts a virtual machine in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Start_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Start_MinimumSet_Gen.json */ -async function virtualMachineScaleSetVMSStartMinimumSetGen() { +async function virtualMachineScaleSetVMStartMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaa"; @@ -55,8 +55,8 @@ async function virtualMachineScaleSetVMSStartMinimumSetGen() { } async function main() { - virtualMachineScaleSetVMSStartMaximumSetGen(); - virtualMachineScaleSetVMSStartMinimumSetGen(); + virtualMachineScaleSetVMStartMaximumSetGen(); + virtualMachineScaleSetVMStartMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSUpdateSample.js similarity index 96% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSUpdateSample.js index c4f1192424b3..9d92e7fc5cd1 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetVMSUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSUpdateSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Updates a virtual machine of a VM scale set. * * @summary Updates a virtual machine of a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Update_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Update_MaximumSet_Gen.json */ -async function virtualMachineScaleSetVMSUpdateMaximumSetGen() { +async function virtualMachineScaleSetVMUpdateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaa"; @@ -239,7 +239,6 @@ async function virtualMachineScaleSetVMSUpdateMaximumSetGen() { enableAcceleratedNetworking: true, enableFpga: true, enableIPForwarding: true, - id: "aaaaaaaa", ipConfigurations: [ { name: "vmsstestnetconfig9693", @@ -253,7 +252,6 @@ async function virtualMachineScaleSetVMSUpdateMaximumSetGen() { id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", }, ], - id: "aaaaaaaaa", loadBalancerBackendAddressPools: [ { id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", @@ -433,9 +431,9 @@ async function virtualMachineScaleSetVMSUpdateMaximumSetGen() { * This sample demonstrates how to Updates a virtual machine of a VM scale set. * * @summary Updates a virtual machine of a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Update_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Update_MinimumSet_Gen.json */ -async function virtualMachineScaleSetVMSUpdateMinimumSetGen() { +async function virtualMachineScaleSetVMUpdateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaa"; @@ -453,8 +451,8 @@ async function virtualMachineScaleSetVMSUpdateMinimumSetGen() { } async function main() { - virtualMachineScaleSetVMSUpdateMaximumSetGen(); - virtualMachineScaleSetVMSUpdateMinimumSetGen(); + virtualMachineScaleSetVMUpdateMaximumSetGen(); + virtualMachineScaleSetVMUpdateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsConvertToSinglePlacementGroupSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsConvertToSinglePlacementGroupSample.js similarity index 78% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsConvertToSinglePlacementGroupSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsConvertToSinglePlacementGroupSample.js index c565e33b23ca..00003e386a39 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsConvertToSinglePlacementGroupSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsConvertToSinglePlacementGroupSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Converts SinglePlacementGroup property to false for a existing virtual machine scale set. * * @summary Converts SinglePlacementGroup property to false for a existing virtual machine scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ConvertToSinglePlacementGroup_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ConvertToSinglePlacementGroup_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsConvertToSinglePlacementGroupMaximumSetGen() { +async function virtualMachineScaleSetConvertToSinglePlacementGroupMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; @@ -39,9 +39,9 @@ async function virtualMachineScaleSetsConvertToSinglePlacementGroupMaximumSetGen * This sample demonstrates how to Converts SinglePlacementGroup property to false for a existing virtual machine scale set. * * @summary Converts SinglePlacementGroup property to false for a existing virtual machine scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ConvertToSinglePlacementGroup_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ConvertToSinglePlacementGroup_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsConvertToSinglePlacementGroupMinimumSetGen() { +async function virtualMachineScaleSetConvertToSinglePlacementGroupMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaa"; @@ -57,8 +57,8 @@ async function virtualMachineScaleSetsConvertToSinglePlacementGroupMinimumSetGen } async function main() { - virtualMachineScaleSetsConvertToSinglePlacementGroupMaximumSetGen(); - virtualMachineScaleSetsConvertToSinglePlacementGroupMinimumSetGen(); + virtualMachineScaleSetConvertToSinglePlacementGroupMaximumSetGen(); + virtualMachineScaleSetConvertToSinglePlacementGroupMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsCreateOrUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsCreateOrUpdateSample.js similarity index 95% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsCreateOrUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsCreateOrUpdateSample.js index 67897f02f27a..82d37aaba24d 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsCreateOrUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithExtensionsSuppressFailuresEnabled.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithExtensionsSuppressFailuresEnabled.json */ async function createAVmssWithAnExtensionThatHasSuppressFailuresEnabled() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -98,7 +98,7 @@ async function createAVmssWithAnExtensionThatHasSuppressFailuresEnabled() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithProtectedSettingsFromKeyVault.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithProtectedSettingsFromKeyVault.json */ async function createAVmssWithAnExtensionWithProtectedSettingsFromKeyVault() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -186,7 +186,7 @@ async function createAVmssWithAnExtensionWithProtectedSettingsFromKeyVault() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_CustomImageFromAnUnmanagedGeneralizedOsImage.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_CustomImageFromAnUnmanagedGeneralizedOsImage.json */ async function createACustomImageScaleSetFromAnUnmanagedGeneralizedOSImage() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -246,7 +246,7 @@ async function createACustomImageScaleSetFromAnUnmanagedGeneralizedOSImage() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_PlatformImageWithUnmanagedOsDisks.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_PlatformImageWithUnmanagedOsDisks.json */ async function createAPlatformImageScaleSetWithUnmanagedOSDisks() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -316,7 +316,7 @@ async function createAPlatformImageScaleSetWithUnmanagedOSDisks() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromACustomImage.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromACustomImage.json */ async function createAScaleSetFromACustomImage() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -376,7 +376,7 @@ async function createAScaleSetFromACustomImage() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromAGeneralizedSharedImage.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromAGeneralizedSharedImage.json */ async function createAScaleSetFromAGeneralizedSharedImage() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -436,7 +436,7 @@ async function createAScaleSetFromAGeneralizedSharedImage() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromASpecializedSharedImage.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromASpecializedSharedImage.json */ async function createAScaleSetFromASpecializedSharedImage() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -491,7 +491,7 @@ async function createAScaleSetFromASpecializedSharedImage() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromWithDisableTcpStateTrackingNetworkInterface.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromWithDisableTcpStateTrackingNetworkInterface.json */ async function createAScaleSetWhereNicConfigHasDisableTcpStateTrackingProperty() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -570,7 +570,7 @@ async function createAScaleSetWhereNicConfigHasDisableTcpStateTrackingProperty() * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithApplicationProfile.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithApplicationProfile.json */ async function createAScaleSetWithApplicationProfile() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -651,7 +651,7 @@ async function createAScaleSetWithApplicationProfile() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithDiskControllerType.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithDiskControllerType.json */ async function createAScaleSetWithDiskControllerType() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -719,7 +719,7 @@ async function createAScaleSetWithDiskControllerType() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithDiskEncryptionSetResource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithDiskEncryptionSetResource.json */ async function createAScaleSetWithDiskEncryptionSetResourceInOSDiskAndDataDisk() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -798,7 +798,7 @@ async function createAScaleSetWithDiskEncryptionSetResourceInOSDiskAndDataDisk() * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromWithFpgaNetworkInterface.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromWithFpgaNetworkInterface.json */ async function createAScaleSetWithFpgaNetworkInterfaces() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -875,7 +875,7 @@ async function createAScaleSetWithFpgaNetworkInterfaces() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithEncryptionAtHost.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithEncryptionAtHost.json */ async function createAScaleSetWithHostEncryptionUsingEncryptionAtHostProperty() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -944,7 +944,7 @@ async function createAScaleSetWithHostEncryptionUsingEncryptionAtHostProperty() * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithOSImageScheduledEventEnabled.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithOSImageScheduledEventEnabled.json */ async function createAScaleSetWithOSImageScheduledEventsEnabled() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -1010,7 +1010,76 @@ async function createAScaleSetWithOSImageScheduledEventsEnabled() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSecurityTypeConfidentialVM.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSecurityPostureReference.json + */ +async function createAScaleSetWithSecurityPostureReference() { + const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; + const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; + const vmScaleSetName = "{vmss-name}"; + const parameters = { + location: "eastus2euap", + overprovision: true, + sku: { name: "Standard_A1", capacity: 3, tier: "Standard" }, + upgradePolicy: { + automaticOSUpgradePolicy: { enableAutomaticOSUpgrade: true }, + mode: "Automatic", + }, + virtualMachineProfile: { + networkProfile: { + networkInterfaceConfigurations: [ + { + name: "{vmss-name}", + enableIPForwarding: true, + ipConfigurations: [ + { + name: "{vmss-name}", + subnet: { + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, + ], + primary: true, + }, + ], + }, + osProfile: { + adminPassword: "{your-password}", + adminUsername: "{your-username}", + computerNamePrefix: "{vmss-name}", + }, + securityPostureReference: { + id: "/CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest", + }, + storageProfile: { + imageReference: { + offer: "WindowsServer", + publisher: "MicrosoftWindowsServer", + sku: "2022-Datacenter", + version: "latest", + }, + osDisk: { + name: "osDisk", + caching: "ReadWrite", + createOption: "FromImage", + }, + }, + }, + }; + const credential = new DefaultAzureCredential(); + const client = new ComputeManagementClient(credential, subscriptionId); + const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters + ); + console.log(result); +} + +/** + * This sample demonstrates how to Create or update a VM scale set. + * + * @summary Create or update a VM scale set. + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSecurityTypeConfidentialVM.json */ async function createAScaleSetWithSecurityTypeAsConfidentialVM() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -1080,7 +1149,7 @@ async function createAScaleSetWithSecurityTypeAsConfidentialVM() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithServiceArtifactReference.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithServiceArtifactReference.json */ async function createAScaleSetWithServiceArtifactReference() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -1149,7 +1218,7 @@ async function createAScaleSetWithServiceArtifactReference() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithUefiSettings.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithUefiSettings.json */ async function createAScaleSetWithUefiSettingsOfSecureBootAndVTpm() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -1216,7 +1285,7 @@ async function createAScaleSetWithUefiSettingsOfSecureBootAndVTpm() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAMarketplaceImagePlan.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAMarketplaceImagePlan.json */ async function createAScaleSetWithAMarketplaceImagePlan() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -1284,7 +1353,7 @@ async function createAScaleSetWithAMarketplaceImagePlan() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAzureApplicationGateway.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAzureApplicationGateway.json */ async function createAScaleSetWithAnAzureApplicationGateway() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -1352,7 +1421,7 @@ async function createAScaleSetWithAnAzureApplicationGateway() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAzureLoadBalancer.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAzureLoadBalancer.json */ async function createAScaleSetWithAnAzureLoadBalancer() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -1429,7 +1498,7 @@ async function createAScaleSetWithAnAzureLoadBalancer() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAutomaticRepairs.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAutomaticRepairs.json */ async function createAScaleSetWithAutomaticRepairsEnabled() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -1493,7 +1562,7 @@ async function createAScaleSetWithAutomaticRepairsEnabled() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithBootDiagnostics.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithBootDiagnostics.json */ async function createAScaleSetWithBootDiagnostics() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -1562,7 +1631,7 @@ async function createAScaleSetWithBootDiagnostics() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithEmptyDataDisksOnEachVm.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithEmptyDataDisksOnEachVm.json */ async function createAScaleSetWithEmptyDataDisksOnEachVM() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -1630,7 +1699,7 @@ async function createAScaleSetWithEmptyDataDisksOnEachVM() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_CreateA_WithDiffOsDiskUsingDiffDiskPlacement.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_CreateA_WithDiffOsDiskUsingDiffDiskPlacement.json */ async function createAScaleSetWithEphemeralOSDisksUsingPlacementProperty() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -1699,7 +1768,7 @@ async function createAScaleSetWithEphemeralOSDisksUsingPlacementProperty() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithDiffOsDisk.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithDiffOsDisk.json */ async function createAScaleSetWithEphemeralOSDisks() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -1768,7 +1837,7 @@ async function createAScaleSetWithEphemeralOSDisks() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithExtensionsTimeBudget.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithExtensionsTimeBudget.json */ async function createAScaleSetWithExtensionTimeBudget() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -1850,7 +1919,7 @@ async function createAScaleSetWithExtensionTimeBudget() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithManagedBootDiagnostics.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithManagedBootDiagnostics.json */ async function createAScaleSetWithManagedBootDiagnostics() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -1914,7 +1983,7 @@ async function createAScaleSetWithManagedBootDiagnostics() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPasswordAuthentication.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPasswordAuthentication.json */ async function createAScaleSetWithPasswordAuthentication() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -1977,7 +2046,7 @@ async function createAScaleSetWithPasswordAuthentication() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPremiumStorage.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPremiumStorage.json */ async function createAScaleSetWithPremiumStorage() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -2040,7 +2109,7 @@ async function createAScaleSetWithPremiumStorage() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPriorityMixPolicy.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPriorityMixPolicy.json */ async function createAScaleSetWithPriorityMixPolicy() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -2110,7 +2179,7 @@ async function createAScaleSetWithPriorityMixPolicy() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithScaleInPolicy.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithScaleInPolicy.json */ async function createAScaleSetWithScaleInPolicy() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -2174,7 +2243,7 @@ async function createAScaleSetWithScaleInPolicy() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSpotRestorePolicy.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSpotRestorePolicy.json */ async function createAScaleSetWithSpotRestorePolicy() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -2241,7 +2310,7 @@ async function createAScaleSetWithSpotRestorePolicy() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSshAuthentication.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSshAuthentication.json */ async function createAScaleSetWithSshAuthentication() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -2315,7 +2384,7 @@ async function createAScaleSetWithSshAuthentication() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithTerminateScheduledEventEnabled.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithTerminateScheduledEventEnabled.json */ async function createAScaleSetWithTerminateScheduledEventsEnabled() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -2381,7 +2450,7 @@ async function createAScaleSetWithTerminateScheduledEventsEnabled() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithUserData.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithUserData.json */ async function createAScaleSetWithUserData() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -2445,7 +2514,7 @@ async function createAScaleSetWithUserData() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithVMsInDifferentZones.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithVMsInDifferentZones.json */ async function createAScaleSetWithVirtualMachinesInDifferentZones() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -2514,7 +2583,7 @@ async function createAScaleSetWithVirtualMachinesInDifferentZones() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithVMSizeProperties.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithVMSizeProperties.json */ async function createAScaleSetWithVMSizeProperties() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -2581,7 +2650,7 @@ async function createAScaleSetWithVMSizeProperties() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithCapacityReservation.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithCapacityReservation.json */ async function createOrUpdateAScaleSetWithCapacityReservation() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -2660,6 +2729,7 @@ async function main() { createAScaleSetWithFpgaNetworkInterfaces(); createAScaleSetWithHostEncryptionUsingEncryptionAtHostProperty(); createAScaleSetWithOSImageScheduledEventsEnabled(); + createAScaleSetWithSecurityPostureReference(); createAScaleSetWithSecurityTypeAsConfidentialVM(); createAScaleSetWithServiceArtifactReference(); createAScaleSetWithUefiSettingsOfSecureBootAndVTpm(); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsDeallocateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsDeallocateSample.js similarity index 83% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsDeallocateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsDeallocateSample.js index 8ac7df4e8b20..f66f92d425f4 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsDeallocateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsDeallocateSample.js @@ -16,16 +16,18 @@ require("dotenv").config(); * This sample demonstrates how to Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual machine scale set deallocates. * * @summary Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual machine scale set deallocates. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Deallocate_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Deallocate_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsDeallocateMaximumSetGen() { +async function virtualMachineScaleSetDeallocateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaaaaaa"; + const hibernate = true; const vmInstanceIDs = { instanceIds: ["aaaaaaaaaaaaaaaaa"], }; const options = { + hibernate, vmInstanceIDs, }; const credential = new DefaultAzureCredential(); @@ -42,9 +44,9 @@ async function virtualMachineScaleSetsDeallocateMaximumSetGen() { * This sample demonstrates how to Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual machine scale set deallocates. * * @summary Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual machine scale set deallocates. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Deallocate_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Deallocate_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsDeallocateMinimumSetGen() { +async function virtualMachineScaleSetDeallocateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaa"; @@ -58,8 +60,8 @@ async function virtualMachineScaleSetsDeallocateMinimumSetGen() { } async function main() { - virtualMachineScaleSetsDeallocateMaximumSetGen(); - virtualMachineScaleSetsDeallocateMinimumSetGen(); + virtualMachineScaleSetDeallocateMaximumSetGen(); + virtualMachineScaleSetDeallocateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsDeleteInstancesSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsDeleteInstancesSample.js similarity index 80% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsDeleteInstancesSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsDeleteInstancesSample.js index 5eec02600340..b829f40caf9b 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsDeleteInstancesSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsDeleteInstancesSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Deletes virtual machines in a VM scale set. * * @summary Deletes virtual machines in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_DeleteInstances_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_DeleteInstances_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsDeleteInstancesMaximumSetGen() { +async function virtualMachineScaleSetDeleteInstancesMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaa"; @@ -44,9 +44,9 @@ async function virtualMachineScaleSetsDeleteInstancesMaximumSetGen() { * This sample demonstrates how to Deletes virtual machines in a VM scale set. * * @summary Deletes virtual machines in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_DeleteInstances_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_DeleteInstances_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsDeleteInstancesMinimumSetGen() { +async function virtualMachineScaleSetDeleteInstancesMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaa"; @@ -64,8 +64,8 @@ async function virtualMachineScaleSetsDeleteInstancesMinimumSetGen() { } async function main() { - virtualMachineScaleSetsDeleteInstancesMaximumSetGen(); - virtualMachineScaleSetsDeleteInstancesMinimumSetGen(); + virtualMachineScaleSetDeleteInstancesMaximumSetGen(); + virtualMachineScaleSetDeleteInstancesMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsDeleteSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsDeleteSample.js similarity index 95% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsDeleteSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsDeleteSample.js index 53ff5e6ddb7e..0207e475c990 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsDeleteSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes a VM scale set. * * @summary Deletes a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Delete_Force.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Delete_Force.json */ async function forceDeleteAVMScaleSet() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSample.js similarity index 75% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSample.js index c5c4f9eb97d3..b2f53b5aa04b 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Manual platform update domain walk to update virtual machines in a service fabric virtual machine scale set. * * @summary Manual platform update domain walk to update virtual machines in a service fabric virtual machine scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ForceRecoveryServiceFabricPlatformUpdateDomainWalk_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ForceRecoveryServiceFabricPlatformUpdateDomainWalk_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkMaximumSetGen() { +async function virtualMachineScaleSetForceRecoveryServiceFabricPlatformUpdateDomainWalkMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaa"; @@ -38,9 +38,9 @@ async function virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDo * This sample demonstrates how to Manual platform update domain walk to update virtual machines in a service fabric virtual machine scale set. * * @summary Manual platform update domain walk to update virtual machines in a service fabric virtual machine scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ForceRecoveryServiceFabricPlatformUpdateDomainWalk_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ForceRecoveryServiceFabricPlatformUpdateDomainWalk_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkMinimumSetGen() { +async function virtualMachineScaleSetForceRecoveryServiceFabricPlatformUpdateDomainWalkMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaa"; @@ -57,8 +57,8 @@ async function virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDo } async function main() { - virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkMaximumSetGen(); - virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkMinimumSetGen(); + virtualMachineScaleSetForceRecoveryServiceFabricPlatformUpdateDomainWalkMaximumSetGen(); + virtualMachineScaleSetForceRecoveryServiceFabricPlatformUpdateDomainWalkMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsGetInstanceViewSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsGetInstanceViewSample.js similarity index 77% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsGetInstanceViewSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsGetInstanceViewSample.js index d15f1014cb39..9018f040591f 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsGetInstanceViewSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsGetInstanceViewSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Gets the status of a VM scale set instance. * * @summary Gets the status of a VM scale set instance. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_GetInstanceView_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetInstanceView_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsGetInstanceViewMaximumSetGen() { +async function virtualMachineScaleSetGetInstanceViewMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaa"; @@ -35,9 +35,9 @@ async function virtualMachineScaleSetsGetInstanceViewMaximumSetGen() { * This sample demonstrates how to Gets the status of a VM scale set instance. * * @summary Gets the status of a VM scale set instance. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_GetInstanceView_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetInstanceView_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsGetInstanceViewMinimumSetGen() { +async function virtualMachineScaleSetGetInstanceViewMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaa"; @@ -51,8 +51,8 @@ async function virtualMachineScaleSetsGetInstanceViewMinimumSetGen() { } async function main() { - virtualMachineScaleSetsGetInstanceViewMaximumSetGen(); - virtualMachineScaleSetsGetInstanceViewMinimumSetGen(); + virtualMachineScaleSetGetInstanceViewMaximumSetGen(); + virtualMachineScaleSetGetInstanceViewMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsGetOSUpgradeHistorySample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsGetOSUpgradeHistorySample.js similarity index 78% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsGetOSUpgradeHistorySample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsGetOSUpgradeHistorySample.js index 3bf69c85ebb1..5f3e47d9ddb0 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsGetOSUpgradeHistorySample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsGetOSUpgradeHistorySample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Gets list of OS upgrades on a VM scale set instance. * * @summary Gets list of OS upgrades on a VM scale set instance. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_GetOSUpgradeHistory_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetOSUpgradeHistory_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsGetOSUpgradeHistoryMaximumSetGen() { +async function virtualMachineScaleSetGetOSUpgradeHistoryMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaa"; @@ -38,9 +38,9 @@ async function virtualMachineScaleSetsGetOSUpgradeHistoryMaximumSetGen() { * This sample demonstrates how to Gets list of OS upgrades on a VM scale set instance. * * @summary Gets list of OS upgrades on a VM scale set instance. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_GetOSUpgradeHistory_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetOSUpgradeHistory_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsGetOSUpgradeHistoryMinimumSetGen() { +async function virtualMachineScaleSetGetOSUpgradeHistoryMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaaaa"; @@ -57,8 +57,8 @@ async function virtualMachineScaleSetsGetOSUpgradeHistoryMinimumSetGen() { } async function main() { - virtualMachineScaleSetsGetOSUpgradeHistoryMaximumSetGen(); - virtualMachineScaleSetsGetOSUpgradeHistoryMinimumSetGen(); + virtualMachineScaleSetGetOSUpgradeHistoryMaximumSetGen(); + virtualMachineScaleSetGetOSUpgradeHistoryMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsGetSample.js similarity index 94% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsGetSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsGetSample.js index 10a49af85d73..0e302a3abb94 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsGetSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Display information about a virtual machine scale set. * * @summary Display information about a virtual machine scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get_WithDiskControllerType.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get_WithDiskControllerType.json */ async function getVMScaleSetVMWithDiskControllerType() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -38,7 +38,7 @@ async function getVMScaleSetVMWithDiskControllerType() { * This sample demonstrates how to Display information about a virtual machine scale set. * * @summary Display information about a virtual machine scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get.json */ async function getAVirtualMachineScaleSet() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -54,7 +54,7 @@ async function getAVirtualMachineScaleSet() { * This sample demonstrates how to Display information about a virtual machine scale set. * * @summary Display information about a virtual machine scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get_AutoPlacedOnDedicatedHostGroup.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get_AutoPlacedOnDedicatedHostGroup.json */ async function getAVirtualMachineScaleSetPlacedOnADedicatedHostGroupThroughAutomaticPlacement() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -70,7 +70,7 @@ async function getAVirtualMachineScaleSetPlacedOnADedicatedHostGroupThroughAutom * This sample demonstrates how to Display information about a virtual machine scale set. * * @summary Display information about a virtual machine scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get_WithUserData.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get_WithUserData.json */ async function getAVirtualMachineScaleSetWithUserData() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsListAllSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsListAllSample.js similarity index 83% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsListAllSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsListAllSample.js index 028c51a4310a..f0b6d77b63dc 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsListAllSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsListAllSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this till nextLink is null to fetch all the VM Scale Sets. * * @summary Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this till nextLink is null to fetch all the VM Scale Sets. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ListAll_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListAll_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsListAllMaximumSetGen() { +async function virtualMachineScaleSetListAllMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -33,9 +33,9 @@ async function virtualMachineScaleSetsListAllMaximumSetGen() { * This sample demonstrates how to Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this till nextLink is null to fetch all the VM Scale Sets. * * @summary Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this till nextLink is null to fetch all the VM Scale Sets. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ListAll_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListAll_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsListAllMinimumSetGen() { +async function virtualMachineScaleSetListAllMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -47,8 +47,8 @@ async function virtualMachineScaleSetsListAllMinimumSetGen() { } async function main() { - virtualMachineScaleSetsListAllMaximumSetGen(); - virtualMachineScaleSetsListAllMinimumSetGen(); + virtualMachineScaleSetListAllMaximumSetGen(); + virtualMachineScaleSetListAllMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsListByLocationSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsListByLocationSample.js similarity index 90% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsListByLocationSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsListByLocationSample.js index 568ace6c1b6e..81b9fe6f4fb7 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsListByLocationSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsListByLocationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets all the VM scale sets under the specified subscription for the specified location. * * @summary Gets all the VM scale sets under the specified subscription for the specified location. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ListBySubscription_ByLocation.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListBySubscription_ByLocation.json */ async function listsAllTheVMScaleSetsUnderTheSpecifiedSubscriptionForTheSpecifiedLocation() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsListSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsListSample.js similarity index 80% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsListSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsListSample.js index 8f85b5addc7e..9debab5b41c6 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsListSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsListSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Gets a list of all VM scale sets under a resource group. * * @summary Gets a list of all VM scale sets under a resource group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_List_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_List_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsListMaximumSetGen() { +async function virtualMachineScaleSetListMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const credential = new DefaultAzureCredential(); @@ -34,9 +34,9 @@ async function virtualMachineScaleSetsListMaximumSetGen() { * This sample demonstrates how to Gets a list of all VM scale sets under a resource group. * * @summary Gets a list of all VM scale sets under a resource group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_List_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_List_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsListMinimumSetGen() { +async function virtualMachineScaleSetListMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const credential = new DefaultAzureCredential(); @@ -49,8 +49,8 @@ async function virtualMachineScaleSetsListMinimumSetGen() { } async function main() { - virtualMachineScaleSetsListMaximumSetGen(); - virtualMachineScaleSetsListMinimumSetGen(); + virtualMachineScaleSetListMaximumSetGen(); + virtualMachineScaleSetListMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsListSkusSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsListSkusSample.js similarity index 82% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsListSkusSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsListSkusSample.js index 8a1637a159b6..10ec8449cb94 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsListSkusSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsListSkusSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU. * * @summary Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ListSkus_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListSkus_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsListSkusMaximumSetGen() { +async function virtualMachineScaleSetListSkusMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaa"; @@ -38,9 +38,9 @@ async function virtualMachineScaleSetsListSkusMaximumSetGen() { * This sample demonstrates how to Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU. * * @summary Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ListSkus_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListSkus_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsListSkusMinimumSetGen() { +async function virtualMachineScaleSetListSkusMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaa"; @@ -57,8 +57,8 @@ async function virtualMachineScaleSetsListSkusMinimumSetGen() { } async function main() { - virtualMachineScaleSetsListSkusMaximumSetGen(); - virtualMachineScaleSetsListSkusMinimumSetGen(); + virtualMachineScaleSetListSkusMaximumSetGen(); + virtualMachineScaleSetListSkusMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsPerformMaintenanceSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsPerformMaintenanceSample.js similarity index 84% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsPerformMaintenanceSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsPerformMaintenanceSample.js index 770e33fb7cf1..c7c68bb1e8da 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsPerformMaintenanceSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsPerformMaintenanceSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices for more details: https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications * * @summary Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices for more details: https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_PerformMaintenance_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PerformMaintenance_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsPerformMaintenanceMaximumSetGen() { +async function virtualMachineScaleSetPerformMaintenanceMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaa"; @@ -42,9 +42,9 @@ async function virtualMachineScaleSetsPerformMaintenanceMaximumSetGen() { * This sample demonstrates how to Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices for more details: https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications * * @summary Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices for more details: https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_PerformMaintenance_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PerformMaintenance_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsPerformMaintenanceMinimumSetGen() { +async function virtualMachineScaleSetPerformMaintenanceMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aa"; @@ -58,8 +58,8 @@ async function virtualMachineScaleSetsPerformMaintenanceMinimumSetGen() { } async function main() { - virtualMachineScaleSetsPerformMaintenanceMaximumSetGen(); - virtualMachineScaleSetsPerformMaintenanceMinimumSetGen(); + virtualMachineScaleSetPerformMaintenanceMaximumSetGen(); + virtualMachineScaleSetPerformMaintenanceMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsPowerOffSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsPowerOffSample.js similarity index 84% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsPowerOffSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsPowerOffSample.js index c61bc68ad662..9e40ecd0821d 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsPowerOffSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsPowerOffSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. * * @summary Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_PowerOff_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PowerOff_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsPowerOffMaximumSetGen() { +async function virtualMachineScaleSetPowerOffMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaa"; @@ -44,9 +44,9 @@ async function virtualMachineScaleSetsPowerOffMaximumSetGen() { * This sample demonstrates how to Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. * * @summary Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_PowerOff_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PowerOff_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsPowerOffMinimumSetGen() { +async function virtualMachineScaleSetPowerOffMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "a"; @@ -60,8 +60,8 @@ async function virtualMachineScaleSetsPowerOffMinimumSetGen() { } async function main() { - virtualMachineScaleSetsPowerOffMaximumSetGen(); - virtualMachineScaleSetsPowerOffMinimumSetGen(); + virtualMachineScaleSetPowerOffMaximumSetGen(); + virtualMachineScaleSetPowerOffMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsReapplySample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsReapplySample.js new file mode 100644 index 000000000000..796d7834f98d --- /dev/null +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsReapplySample.js @@ -0,0 +1,62 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ComputeManagementClient } = require("@azure/arm-compute"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Reapplies the Virtual Machine Scale Set Virtual Machine Profile to the Virtual Machine Instances + * + * @summary Reapplies the Virtual Machine Scale Set Virtual Machine Profile to the Virtual Machine Instances + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Reapply_MaximumSet_Gen.json + */ +async function virtualMachineScaleSetsReapplyMaximumSetGen() { + const subscriptionId = + process.env["COMPUTE_SUBSCRIPTION_ID"] || "b4f1213b-cacc-4816-8bfb-f30f90643de8"; + const resourceGroupName = + process.env["COMPUTE_RESOURCE_GROUP"] || "VirtualMachineScaleSetReapplyTestRG"; + const vmScaleSetName = "VMSSReapply-Test-ScaleSet"; + const credential = new DefaultAzureCredential(); + const client = new ComputeManagementClient(credential, subscriptionId); + const result = await client.virtualMachineScaleSets.beginReapplyAndWait( + resourceGroupName, + vmScaleSetName + ); + console.log(result); +} + +/** + * This sample demonstrates how to Reapplies the Virtual Machine Scale Set Virtual Machine Profile to the Virtual Machine Instances + * + * @summary Reapplies the Virtual Machine Scale Set Virtual Machine Profile to the Virtual Machine Instances + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Reapply_MinimumSet_Gen.json + */ +async function virtualMachineScaleSetsReapplyMinimumSetGen() { + const subscriptionId = + process.env["COMPUTE_SUBSCRIPTION_ID"] || "b4f1213b-cacc-4816-8bfb-f30f90643de8"; + const resourceGroupName = + process.env["COMPUTE_RESOURCE_GROUP"] || "VirtualMachineScaleSetReapplyTestRG"; + const vmScaleSetName = "VMSSReapply-Test-ScaleSet"; + const credential = new DefaultAzureCredential(); + const client = new ComputeManagementClient(credential, subscriptionId); + const result = await client.virtualMachineScaleSets.beginReapplyAndWait( + resourceGroupName, + vmScaleSetName + ); + console.log(result); +} + +async function main() { + virtualMachineScaleSetsReapplyMaximumSetGen(); + virtualMachineScaleSetsReapplyMinimumSetGen(); +} + +main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsRedeploySample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsRedeploySample.js similarity index 82% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsRedeploySample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsRedeploySample.js index 4aa2d41f02f3..6af8f44abfb1 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsRedeploySample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsRedeploySample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and powers them back on. * * @summary Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and powers them back on. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Redeploy_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Redeploy_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsRedeployMaximumSetGen() { +async function virtualMachineScaleSetRedeployMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; @@ -42,9 +42,9 @@ async function virtualMachineScaleSetsRedeployMaximumSetGen() { * This sample demonstrates how to Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and powers them back on. * * @summary Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and powers them back on. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Redeploy_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Redeploy_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsRedeployMinimumSetGen() { +async function virtualMachineScaleSetRedeployMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaa"; @@ -58,8 +58,8 @@ async function virtualMachineScaleSetsRedeployMinimumSetGen() { } async function main() { - virtualMachineScaleSetsRedeployMaximumSetGen(); - virtualMachineScaleSetsRedeployMinimumSetGen(); + virtualMachineScaleSetRedeployMaximumSetGen(); + virtualMachineScaleSetRedeployMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsReimageAllSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsReimageAllSample.js similarity index 82% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsReimageAllSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsReimageAllSample.js index 3bba66c56bcd..82fea9944f97 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsReimageAllSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsReimageAllSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation is only supported for managed disks. * * @summary Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation is only supported for managed disks. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ReimageAll_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ReimageAll_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsReimageAllMaximumSetGen() { +async function virtualMachineScaleSetReimageAllMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaa"; @@ -42,9 +42,9 @@ async function virtualMachineScaleSetsReimageAllMaximumSetGen() { * This sample demonstrates how to Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation is only supported for managed disks. * * @summary Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation is only supported for managed disks. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ReimageAll_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ReimageAll_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsReimageAllMinimumSetGen() { +async function virtualMachineScaleSetReimageAllMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaa"; @@ -58,8 +58,8 @@ async function virtualMachineScaleSetsReimageAllMinimumSetGen() { } async function main() { - virtualMachineScaleSetsReimageAllMaximumSetGen(); - virtualMachineScaleSetsReimageAllMinimumSetGen(); + virtualMachineScaleSetReimageAllMaximumSetGen(); + virtualMachineScaleSetReimageAllMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsReimageSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsReimageSample.js similarity index 84% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsReimageSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsReimageSample.js index 5d89c3213388..04da109cfdfa 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsReimageSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsReimageSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. * * @summary Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Reimage_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Reimage_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsReimageMaximumSetGen() { +async function virtualMachineScaleSetReimageMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaaaa"; @@ -43,9 +43,9 @@ async function virtualMachineScaleSetsReimageMaximumSetGen() { * This sample demonstrates how to Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. * * @summary Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Reimage_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Reimage_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsReimageMinimumSetGen() { +async function virtualMachineScaleSetReimageMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaaaaaa"; @@ -59,8 +59,8 @@ async function virtualMachineScaleSetsReimageMinimumSetGen() { } async function main() { - virtualMachineScaleSetsReimageMaximumSetGen(); - virtualMachineScaleSetsReimageMinimumSetGen(); + virtualMachineScaleSetReimageMaximumSetGen(); + virtualMachineScaleSetReimageMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsRestartSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsRestartSample.js similarity index 80% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsRestartSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsRestartSample.js index 14b913c1982c..a0bf6e2bf507 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsRestartSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsRestartSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Restarts one or more virtual machines in a VM scale set. * * @summary Restarts one or more virtual machines in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Restart_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Restart_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsRestartMaximumSetGen() { +async function virtualMachineScaleSetRestartMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaa"; @@ -42,9 +42,9 @@ async function virtualMachineScaleSetsRestartMaximumSetGen() { * This sample demonstrates how to Restarts one or more virtual machines in a VM scale set. * * @summary Restarts one or more virtual machines in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Restart_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Restart_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsRestartMinimumSetGen() { +async function virtualMachineScaleSetRestartMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaa"; @@ -58,8 +58,8 @@ async function virtualMachineScaleSetsRestartMinimumSetGen() { } async function main() { - virtualMachineScaleSetsRestartMaximumSetGen(); - virtualMachineScaleSetsRestartMinimumSetGen(); + virtualMachineScaleSetRestartMaximumSetGen(); + virtualMachineScaleSetRestartMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsSetOrchestrationServiceStateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsSetOrchestrationServiceStateSample.js similarity index 77% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsSetOrchestrationServiceStateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsSetOrchestrationServiceStateSample.js index a9e604204b01..ccf350dc68ad 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsSetOrchestrationServiceStateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsSetOrchestrationServiceStateSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Changes ServiceState property for a given service * * @summary Changes ServiceState property for a given service - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_SetOrchestrationServiceState_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_SetOrchestrationServiceState_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsSetOrchestrationServiceStateMaximumSetGen() { +async function virtualMachineScaleSetOrchestrationServiceStateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaa"; @@ -40,9 +40,9 @@ async function virtualMachineScaleSetsSetOrchestrationServiceStateMaximumSetGen( * This sample demonstrates how to Changes ServiceState property for a given service * * @summary Changes ServiceState property for a given service - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_SetOrchestrationServiceState_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_SetOrchestrationServiceState_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsSetOrchestrationServiceStateMinimumSetGen() { +async function virtualMachineScaleSetOrchestrationServiceStateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaa"; @@ -61,8 +61,8 @@ async function virtualMachineScaleSetsSetOrchestrationServiceStateMinimumSetGen( } async function main() { - virtualMachineScaleSetsSetOrchestrationServiceStateMaximumSetGen(); - virtualMachineScaleSetsSetOrchestrationServiceStateMinimumSetGen(); + virtualMachineScaleSetOrchestrationServiceStateMaximumSetGen(); + virtualMachineScaleSetOrchestrationServiceStateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsStartSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsStartSample.js similarity index 81% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsStartSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsStartSample.js index 10477da78bc1..a34708bc34e5 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsStartSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsStartSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Starts one or more virtual machines in a VM scale set. * * @summary Starts one or more virtual machines in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Start_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Start_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsStartMaximumSetGen() { +async function virtualMachineScaleSetStartMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaa"; @@ -40,9 +40,9 @@ async function virtualMachineScaleSetsStartMaximumSetGen() { * This sample demonstrates how to Starts one or more virtual machines in a VM scale set. * * @summary Starts one or more virtual machines in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Start_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Start_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsStartMinimumSetGen() { +async function virtualMachineScaleSetStartMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaa"; @@ -56,8 +56,8 @@ async function virtualMachineScaleSetsStartMinimumSetGen() { } async function main() { - virtualMachineScaleSetsStartMaximumSetGen(); - virtualMachineScaleSetsStartMinimumSetGen(); + virtualMachineScaleSetStartMaximumSetGen(); + virtualMachineScaleSetStartMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsUpdateInstancesSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsUpdateInstancesSample.js similarity index 81% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsUpdateInstancesSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsUpdateInstancesSample.js index 674b367ea787..b3b48dd94fd5 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsUpdateInstancesSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsUpdateInstancesSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Upgrades one or more virtual machines to the latest SKU set in the VM scale set model. * * @summary Upgrades one or more virtual machines to the latest SKU set in the VM scale set model. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_UpdateInstances_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_UpdateInstances_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsUpdateInstancesMaximumSetGen() { +async function virtualMachineScaleSetUpdateInstancesMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaa"; @@ -39,9 +39,9 @@ async function virtualMachineScaleSetsUpdateInstancesMaximumSetGen() { * This sample demonstrates how to Upgrades one or more virtual machines to the latest SKU set in the VM scale set model. * * @summary Upgrades one or more virtual machines to the latest SKU set in the VM scale set model. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_UpdateInstances_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_UpdateInstances_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsUpdateInstancesMinimumSetGen() { +async function virtualMachineScaleSetUpdateInstancesMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; @@ -59,8 +59,8 @@ async function virtualMachineScaleSetsUpdateInstancesMinimumSetGen() { } async function main() { - virtualMachineScaleSetsUpdateInstancesMaximumSetGen(); - virtualMachineScaleSetsUpdateInstancesMinimumSetGen(); + virtualMachineScaleSetUpdateInstancesMaximumSetGen(); + virtualMachineScaleSetUpdateInstancesMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsUpdateSample.js similarity index 94% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsUpdateSample.js index 60a25ecce420..e39911c75725 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineScaleSetsUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsUpdateSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Update a VM scale set. * * @summary Update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Update_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Update_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsUpdateMaximumSetGen() { +async function virtualMachineScaleSetUpdateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaa"; @@ -101,7 +101,6 @@ async function virtualMachineScaleSetsUpdateMaximumSetGen() { enableAcceleratedNetworking: true, enableFpga: true, enableIPForwarding: true, - id: "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", ipConfigurations: [ { name: "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa", @@ -115,7 +114,6 @@ async function virtualMachineScaleSetsUpdateMaximumSetGen() { id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot", }, ], - id: "aaaaaaaaaaaaaaaa", loadBalancerBackendAddressPools: [ { id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot", @@ -268,9 +266,9 @@ async function virtualMachineScaleSetsUpdateMaximumSetGen() { * This sample demonstrates how to Update a VM scale set. * * @summary Update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Update_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Update_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsUpdateMinimumSetGen() { +async function virtualMachineScaleSetUpdateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaa"; @@ -286,8 +284,8 @@ async function virtualMachineScaleSetsUpdateMinimumSetGen() { } async function main() { - virtualMachineScaleSetsUpdateMaximumSetGen(); - virtualMachineScaleSetsUpdateMinimumSetGen(); + virtualMachineScaleSetUpdateMaximumSetGen(); + virtualMachineScaleSetUpdateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineSizesListSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineSizesListSample.js similarity index 94% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachineSizesListSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachineSizesListSample.js index 542299da6391..8899f6311842 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachineSizesListSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineSizesListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to This API is deprecated. Use [Resources Skus](https://docs.microsoft.com/rest/api/compute/resourceskus/list) * * @summary This API is deprecated. Use [Resources Skus](https://docs.microsoft.com/rest/api/compute/resourceskus/list) - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/computeRPCommonExamples/VirtualMachineSizes_List_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/computeRPCommonExamples/VirtualMachineSizes_List_MaximumSet_Gen.json */ async function virtualMachineSizesListMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -34,7 +34,7 @@ async function virtualMachineSizesListMaximumSetGen() { * This sample demonstrates how to This API is deprecated. Use [Resources Skus](https://docs.microsoft.com/rest/api/compute/resourceskus/list) * * @summary This API is deprecated. Use [Resources Skus](https://docs.microsoft.com/rest/api/compute/resourceskus/list) - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/computeRPCommonExamples/VirtualMachineSizes_List_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/computeRPCommonExamples/VirtualMachineSizes_List_MinimumSet_Gen.json */ async function virtualMachineSizesListMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesAssessPatchesSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesAssessPatchesSample.js similarity index 95% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesAssessPatchesSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesAssessPatchesSample.js index 0f6f6fef52c6..17add54ebb18 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesAssessPatchesSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesAssessPatchesSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Assess patches on the VM. * * @summary Assess patches on the VM. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_AssessPatches.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_AssessPatches.json */ async function assessPatchStateOfAVirtualMachine() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesCaptureSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesCaptureSample.js similarity index 84% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesCaptureSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesCaptureSample.js index b6ee18a0be89..5e3e76a9f628 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesCaptureSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesCaptureSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs. * * @summary Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Capture_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Capture_MaximumSet_Gen.json */ -async function virtualMachinesCaptureMaximumSetGen() { +async function virtualMachineCaptureMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmName = "aaaaaaaaaaaaaaaaaaaa"; @@ -41,9 +41,9 @@ async function virtualMachinesCaptureMaximumSetGen() { * This sample demonstrates how to Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs. * * @summary Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Capture_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Capture_MinimumSet_Gen.json */ -async function virtualMachinesCaptureMinimumSetGen() { +async function virtualMachineCaptureMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmName = "aaaaaaaaaaaaa"; @@ -63,8 +63,8 @@ async function virtualMachinesCaptureMinimumSetGen() { } async function main() { - virtualMachinesCaptureMaximumSetGen(); - virtualMachinesCaptureMinimumSetGen(); + virtualMachineCaptureMaximumSetGen(); + virtualMachineCaptureMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesConvertToManagedDisksSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesConvertToManagedDisksSample.js similarity index 81% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesConvertToManagedDisksSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesConvertToManagedDisksSample.js index cd615737c96a..b439f6a19444 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesConvertToManagedDisksSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesConvertToManagedDisksSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop-deallocated before invoking this operation. * * @summary Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop-deallocated before invoking this operation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_ConvertToManagedDisks_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_ConvertToManagedDisks_MaximumSet_Gen.json */ -async function virtualMachinesConvertToManagedDisksMaximumSetGen() { +async function virtualMachineConvertToManagedDisksMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmName = "aaaaaaa"; @@ -35,9 +35,9 @@ async function virtualMachinesConvertToManagedDisksMaximumSetGen() { * This sample demonstrates how to Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop-deallocated before invoking this operation. * * @summary Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop-deallocated before invoking this operation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_ConvertToManagedDisks_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_ConvertToManagedDisks_MinimumSet_Gen.json */ -async function virtualMachinesConvertToManagedDisksMinimumSetGen() { +async function virtualMachineConvertToManagedDisksMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmName = "aaaaaaaaaaa"; @@ -51,8 +51,8 @@ async function virtualMachinesConvertToManagedDisksMinimumSetGen() { } async function main() { - virtualMachinesConvertToManagedDisksMaximumSetGen(); - virtualMachinesConvertToManagedDisksMinimumSetGen(); + virtualMachineConvertToManagedDisksMaximumSetGen(); + virtualMachineConvertToManagedDisksMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesCreateOrUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesCreateOrUpdateSample.js similarity index 96% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesCreateOrUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesCreateOrUpdateSample.js index 529a7336c5cc..51bb27f6535e 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesCreateOrUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithPatchSettingAssessmentModeOfImageDefault.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithPatchSettingAssessmentModeOfImageDefault.json */ async function createALinuxVMWithAPatchSettingAssessmentModeOfImageDefault() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -71,7 +71,7 @@ async function createALinuxVMWithAPatchSettingAssessmentModeOfImageDefault() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithAutomaticByPlatformSettings.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithAutomaticByPlatformSettings.json */ async function createALinuxVMWithAPatchSettingPatchModeOfAutomaticByPlatformAndAutomaticByPlatformSettings() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -95,7 +95,10 @@ async function createALinuxVMWithAPatchSettingPatchModeOfAutomaticByPlatformAndA linuxConfiguration: { patchSettings: { assessmentMode: "AutomaticByPlatform", - automaticByPlatformSettings: { rebootSetting: "Never" }, + automaticByPlatformSettings: { + bypassPlatformSafetyChecksOnUserSchedule: true, + rebootSetting: "Never", + }, patchMode: "AutomaticByPlatform", }, provisionVMAgent: true, @@ -130,7 +133,7 @@ async function createALinuxVMWithAPatchSettingPatchModeOfAutomaticByPlatformAndA * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithPatchSettingModeOfImageDefault.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithPatchSettingModeOfImageDefault.json */ async function createALinuxVMWithAPatchSettingPatchModeOfImageDefault() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -185,7 +188,7 @@ async function createALinuxVMWithAPatchSettingPatchModeOfImageDefault() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithPatchSettingModesOfAutomaticByPlatform.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithPatchSettingModesOfAutomaticByPlatform.json */ async function createALinuxVMWithAPatchSettingsPatchModeAndAssessmentModeSetToAutomaticByPlatform() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -243,7 +246,7 @@ async function createALinuxVMWithAPatchSettingsPatchModeAndAssessmentModeSetToAu * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_FromACommunityGalleryImage.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_FromACommunityGalleryImage.json */ async function createAVMFromACommunityGalleryImage() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -292,7 +295,7 @@ async function createAVMFromACommunityGalleryImage() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_FromASharedGalleryImage.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_FromASharedGalleryImage.json */ async function createAVMFromASharedGalleryImage() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -341,7 +344,7 @@ async function createAVMFromASharedGalleryImage() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithDiskControllerType.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithDiskControllerType.json */ async function createAVMWithDiskControllerType() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -400,7 +403,7 @@ async function createAVMWithDiskControllerType() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithHibernationEnabled.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithHibernationEnabled.json */ async function createAVMWithHibernationEnabled() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -458,7 +461,7 @@ async function createAVMWithHibernationEnabled() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithUefiSettings.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithUefiSettings.json */ async function createAVMWithUefiSettingsOfSecureBootAndVTpm() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -513,7 +516,7 @@ async function createAVMWithUefiSettingsOfSecureBootAndVTpm() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithUserData.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithUserData.json */ async function createAVMWithUserData() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -571,7 +574,7 @@ async function createAVMWithUserData() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_CreateWithVMSizeProperties.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithVMSizeProperties.json */ async function createAVMWithVMSizeProperties() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -632,7 +635,7 @@ async function createAVMWithVMSizeProperties() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithNetworkInterfaceConfiguration.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithNetworkInterfaceConfiguration.json */ async function createAVMWithNetworkInterfaceConfiguration() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -697,7 +700,7 @@ async function createAVMWithNetworkInterfaceConfiguration() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithSecurityTypeConfidentialVMWithCustomerManagedKeys.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithSecurityTypeConfidentialVMWithCustomerManagedKeys.json */ async function createAVMWithSecurityTypeConfidentialVMWithCustomerManagedKeys() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -760,7 +763,7 @@ async function createAVMWithSecurityTypeConfidentialVMWithCustomerManagedKeys() * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithSecurityTypeConfidentialVM.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithSecurityTypeConfidentialVM.json */ async function createAVMWithSecurityTypeConfidentialVMWithPlatformManagedKeys() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -818,7 +821,7 @@ async function createAVMWithSecurityTypeConfidentialVMWithPlatformManagedKeys() * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingAssessmentModeOfImageDefault.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingAssessmentModeOfImageDefault.json */ async function createAWindowsVMWithAPatchSettingAssessmentModeOfImageDefault() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -874,7 +877,7 @@ async function createAWindowsVMWithAPatchSettingAssessmentModeOfImageDefault() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModeOfAutomaticByOS.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModeOfAutomaticByOS.json */ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByOS() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -930,7 +933,7 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByOS() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithAutomaticByPlatformSettings.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithAutomaticByPlatformSettings.json */ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByPlatformAndAutomaticByPlatformSettings() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -955,7 +958,10 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByPlatformAn enableAutomaticUpdates: true, patchSettings: { assessmentMode: "AutomaticByPlatform", - automaticByPlatformSettings: { rebootSetting: "Never" }, + automaticByPlatformSettings: { + bypassPlatformSafetyChecksOnUserSchedule: false, + rebootSetting: "Never", + }, patchMode: "AutomaticByPlatform", }, provisionVMAgent: true, @@ -990,7 +996,7 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByPlatformAn * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModeOfAutomaticByPlatformAndEnableHotPatchingTrue.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModeOfAutomaticByPlatformAndEnableHotPatchingTrue.json */ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByPlatformAndEnableHotpatchingSetToTrue() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -1049,7 +1055,7 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByPlatformAn * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModeOfManual.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModeOfManual.json */ async function createAWindowsVMWithAPatchSettingPatchModeOfManual() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -1105,7 +1111,7 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfManual() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModesOfAutomaticByPlatform.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModesOfAutomaticByPlatform.json */ async function createAWindowsVMWithPatchSettingsPatchModeAndAssessmentModeSetToAutomaticByPlatform() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -1164,7 +1170,7 @@ async function createAWindowsVMWithPatchSettingsPatchModeAndAssessmentModeSetToA * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_CustomImageVmFromAnUnmanagedGeneralizedOsImage.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_CustomImageVmFromAnUnmanagedGeneralizedOsImage.json */ async function createACustomImageVMFromAnUnmanagedGeneralizedOSImage() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -1215,7 +1221,7 @@ async function createACustomImageVMFromAnUnmanagedGeneralizedOSImage() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_PlatformImageVmWithUnmanagedOsAndDataDisks.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_PlatformImageVmWithUnmanagedOsAndDataDisks.json */ async function createAPlatformImageVMWithUnmanagedOSAndDataDisks() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -1286,7 +1292,7 @@ async function createAPlatformImageVMWithUnmanagedOSAndDataDisks() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_FromACustomImage.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_FromACustomImage.json */ async function createAVMFromACustomImage() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -1334,7 +1340,7 @@ async function createAVMFromACustomImage() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_FromAGeneralizedSharedImage.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_FromAGeneralizedSharedImage.json */ async function createAVMFromAGeneralizedSharedImage() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -1382,7 +1388,7 @@ async function createAVMFromAGeneralizedSharedImage() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_FromASpecializedSharedImage.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_FromASpecializedSharedImage.json */ async function createAVMFromASpecializedSharedImage() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -1425,7 +1431,7 @@ async function createAVMFromASpecializedSharedImage() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_InAVmssWithCustomerAssignedPlatformFaultDomain.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_InAVmssWithCustomerAssignedPlatformFaultDomain.json */ async function createAVMInAVirtualMachineScaleSetWithCustomerAssignedPlatformFaultDomain() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -1480,7 +1486,7 @@ async function createAVMInAVirtualMachineScaleSetWithCustomerAssignedPlatformFau * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_InAnAvailabilitySet.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_InAnAvailabilitySet.json */ async function createAVMInAnAvailabilitySet() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -1534,7 +1540,7 @@ async function createAVMInAnAvailabilitySet() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithApplicationProfile.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithApplicationProfile.json */ async function createAVMWithApplicationProfile() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -1603,7 +1609,7 @@ async function createAVMWithApplicationProfile() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithDiskEncryptionSetResource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithDiskEncryptionSetResource.json */ async function createAVMWithDiskEncryptionSetResourceIdInTheOSDiskAndDataDisk() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -1683,7 +1689,7 @@ async function createAVMWithDiskEncryptionSetResourceIdInTheOSDiskAndDataDisk() * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithEncryptionAtHost.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithEncryptionAtHost.json */ async function createAVMWithHostEncryptionUsingEncryptionAtHostProperty() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -1740,7 +1746,7 @@ async function createAVMWithHostEncryptionUsingEncryptionAtHostProperty() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithScheduledEventsProfile.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithScheduledEventsProfile.json */ async function createAVMWithScheduledEventsProfile() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -1801,7 +1807,7 @@ async function createAVMWithScheduledEventsProfile() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithAMarketplaceImagePlan.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithAMarketplaceImagePlan.json */ async function createAVMWithAMarketplaceImagePlan() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -1857,7 +1863,7 @@ async function createAVMWithAMarketplaceImagePlan() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithExtensionsTimeBudget.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithExtensionsTimeBudget.json */ async function createAVMWithAnExtensionsTimeBudget() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -1915,7 +1921,7 @@ async function createAVMWithAnExtensionsTimeBudget() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithBootDiagnostics.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithBootDiagnostics.json */ async function createAVMWithBootDiagnostics() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -1972,7 +1978,7 @@ async function createAVMWithBootDiagnostics() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithEmptyDataDisks.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithEmptyDataDisks.json */ async function createAVMWithEmptyDataDisks() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -2027,7 +2033,7 @@ async function createAVMWithEmptyDataDisks() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDiskUsingDiffDiskPlacementAsCacheDisk.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDiskUsingDiffDiskPlacementAsCacheDisk.json */ async function createAVMWithEphemeralOSDiskProvisioningInCacheDiskUsingPlacementProperty() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -2084,7 +2090,7 @@ async function createAVMWithEphemeralOSDiskProvisioningInCacheDiskUsingPlacement * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDiskUsingDiffDiskPlacementAsResourceDisk.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDiskUsingDiffDiskPlacementAsResourceDisk.json */ async function createAVMWithEphemeralOSDiskProvisioningInResourceDiskUsingPlacementProperty() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -2141,7 +2147,7 @@ async function createAVMWithEphemeralOSDiskProvisioningInResourceDiskUsingPlacem * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDisk.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDisk.json */ async function createAVMWithEphemeralOSDisk() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -2198,7 +2204,7 @@ async function createAVMWithEphemeralOSDisk() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithManagedBootDiagnostics.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithManagedBootDiagnostics.json */ async function createAVMWithManagedBootDiagnostics() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -2250,7 +2256,7 @@ async function createAVMWithManagedBootDiagnostics() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithPasswordAuthentication.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithPasswordAuthentication.json */ async function createAVMWithPasswordAuthentication() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -2301,7 +2307,7 @@ async function createAVMWithPasswordAuthentication() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithPremiumStorage.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithPremiumStorage.json */ async function createAVMWithPremiumStorage() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -2352,7 +2358,7 @@ async function createAVMWithPremiumStorage() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithSshAuthentication.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithSshAuthentication.json */ async function createAVMWithSshAuthentication() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -2414,7 +2420,7 @@ async function createAVMWithSshAuthentication() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithCapacityReservation.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithCapacityReservation.json */ async function createOrUpdateAVMWithCapacityReservation() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesDeallocateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesDeallocateSample.js similarity index 83% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesDeallocateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesDeallocateSample.js index f6e70a991a5f..f92d04ce13c9 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesDeallocateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesDeallocateSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses. * * @summary Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Deallocate_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Deallocate_MaximumSet_Gen.json */ -async function virtualMachinesDeallocateMaximumSetGen() { +async function virtualMachineDeallocateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmName = "aaaaaaaaaa"; @@ -38,9 +38,9 @@ async function virtualMachinesDeallocateMaximumSetGen() { * This sample demonstrates how to Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses. * * @summary Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Deallocate_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Deallocate_MinimumSet_Gen.json */ -async function virtualMachinesDeallocateMinimumSetGen() { +async function virtualMachineDeallocateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmName = "aaaaaaaaaaaaaaaa"; @@ -51,8 +51,8 @@ async function virtualMachinesDeallocateMinimumSetGen() { } async function main() { - virtualMachinesDeallocateMaximumSetGen(); - virtualMachinesDeallocateMinimumSetGen(); + virtualMachineDeallocateMaximumSetGen(); + virtualMachineDeallocateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesDeleteSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesDeleteSample.js similarity index 95% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesDeleteSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesDeleteSample.js index fdefab781e06..c507229ed8ca 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesDeleteSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to delete a virtual machine. * * @summary The operation to delete a virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Delete_Force.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Delete_Force.json */ async function forceDeleteAVM() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesGeneralizeSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesGeneralizeSample.js similarity index 64% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesGeneralizeSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesGeneralizeSample.js index b63e33be95b0..b49adb4a28c2 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesGeneralizeSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesGeneralizeSample.js @@ -13,10 +13,10 @@ const { DefaultAzureCredential } = require("@azure/identity"); require("dotenv").config(); /** - * This sample demonstrates how to Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual machine before performing this operation.
For Windows, please refer to [Create a managed image of a generalized VM in Azure](https://docs.microsoft.com/azure/virtual-machines/windows/capture-image-resource).
For Linux, please refer to [How to create an image of a virtual machine or VHD](https://docs.microsoft.com/azure/virtual-machines/linux/capture-image). + * This sample demonstrates how to Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual machine before performing this operation. For Windows, please refer to [Create a managed image of a generalized VM in Azure](https://docs.microsoft.com/azure/virtual-machines/windows/capture-image-resource). For Linux, please refer to [How to create an image of a virtual machine or VHD](https://docs.microsoft.com/azure/virtual-machines/linux/capture-image). * - * @summary Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual machine before performing this operation.
For Windows, please refer to [Create a managed image of a generalized VM in Azure](https://docs.microsoft.com/azure/virtual-machines/windows/capture-image-resource).
For Linux, please refer to [How to create an image of a virtual machine or VHD](https://docs.microsoft.com/azure/virtual-machines/linux/capture-image). - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Generalize.json + * @summary Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual machine before performing this operation. For Windows, please refer to [Create a managed image of a generalized VM in Azure](https://docs.microsoft.com/azure/virtual-machines/windows/capture-image-resource). For Linux, please refer to [How to create an image of a virtual machine or VHD](https://docs.microsoft.com/azure/virtual-machines/linux/capture-image). + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Generalize.json */ async function generalizeAVirtualMachine() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesGetSample.js similarity index 94% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesGetSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesGetSample.js index f95c3a4e9e27..e126ae169eaf 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesGetSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves information about the model view or the instance view of a virtual machine. * * @summary Retrieves information about the model view or the instance view of a virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Get.json */ async function getAVirtualMachine() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -34,7 +34,7 @@ async function getAVirtualMachine() { * This sample demonstrates how to Retrieves information about the model view or the instance view of a virtual machine. * * @summary Retrieves information about the model view or the instance view of a virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Get_AutoPlacedOnDedicatedHostGroup.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Get_AutoPlacedOnDedicatedHostGroup.json */ async function getAVirtualMachinePlacedOnADedicatedHostGroupThroughAutomaticPlacement() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -50,7 +50,7 @@ async function getAVirtualMachinePlacedOnADedicatedHostGroupThroughAutomaticPlac * This sample demonstrates how to Retrieves information about the model view or the instance view of a virtual machine. * * @summary Retrieves information about the model view or the instance view of a virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Get_WithDiskControllerType.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Get_WithDiskControllerType.json */ async function getAVirtualMachineWithDiskControllerTypeProperties() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -68,7 +68,7 @@ async function getAVirtualMachineWithDiskControllerTypeProperties() { * This sample demonstrates how to Retrieves information about the model view or the instance view of a virtual machine. * * @summary Retrieves information about the model view or the instance view of a virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Get_WithVMSizeProperties.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Get_WithVMSizeProperties.json */ async function getAVirtualMachineWithVMSizeProperties() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesInstallPatchesSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesInstallPatchesSample.js similarity index 96% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesInstallPatchesSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesInstallPatchesSample.js index c4b1206d1a6e..4434d5c62a31 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesInstallPatchesSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesInstallPatchesSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Installs patches on the VM. * * @summary Installs patches on the VM. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_InstallPatches.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_InstallPatches.json */ async function installPatchStateOfAVirtualMachine() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesInstanceViewSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesInstanceViewSample.js similarity index 94% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesInstanceViewSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesInstanceViewSample.js index 2028c49cc1d4..e8e0f2a66a30 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesInstanceViewSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesInstanceViewSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves information about the run-time state of a virtual machine. * * @summary Retrieves information about the run-time state of a virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Get_InstanceView.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Get_InstanceView.json */ async function getVirtualMachineInstanceView() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -32,7 +32,7 @@ async function getVirtualMachineInstanceView() { * This sample demonstrates how to Retrieves information about the run-time state of a virtual machine. * * @summary Retrieves information about the run-time state of a virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Get_InstanceViewAutoPlacedOnDedicatedHostGroup.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Get_InstanceViewAutoPlacedOnDedicatedHostGroup.json */ async function getInstanceViewOfAVirtualMachinePlacedOnADedicatedHostGroupThroughAutomaticPlacement() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesListAllSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesListAllSample.js similarity index 83% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesListAllSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesListAllSample.js index b554f325959c..c04aed53aa1d 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesListAllSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesListAllSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines. * * @summary Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_ListAll_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_ListAll_MaximumSet_Gen.json */ -async function virtualMachinesListAllMaximumSetGen() { +async function virtualMachineListAllMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const statusOnly = "aaaaaa"; const filter = "aaaaaaaaaaaaaaaaaaaaaaaaaaaa"; @@ -36,9 +36,9 @@ async function virtualMachinesListAllMaximumSetGen() { * This sample demonstrates how to Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines. * * @summary Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_ListAll_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_ListAll_MinimumSet_Gen.json */ -async function virtualMachinesListAllMinimumSetGen() { +async function virtualMachineListAllMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -50,8 +50,8 @@ async function virtualMachinesListAllMinimumSetGen() { } async function main() { - virtualMachinesListAllMaximumSetGen(); - virtualMachinesListAllMinimumSetGen(); + virtualMachineListAllMaximumSetGen(); + virtualMachineListAllMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesListAvailableSizesSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesListAvailableSizesSample.js similarity index 92% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesListAvailableSizesSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesListAvailableSizesSample.js index 71297bb54151..78a9bde3118e 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesListAvailableSizesSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesListAvailableSizesSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all available virtual machine sizes to which the specified virtual machine can be resized. * * @summary Lists all available virtual machine sizes to which the specified virtual machine can be resized. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_ListAvailableVmSizes.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_ListAvailableVmSizes.json */ async function listsAllAvailableVirtualMachineSizesToWhichTheSpecifiedVirtualMachineCanBeResized() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesListByLocationSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesListByLocationSample.js similarity index 91% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesListByLocationSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesListByLocationSample.js index 9c866f195fd8..1c36310afbc5 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesListByLocationSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesListByLocationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets all the virtual machines under the specified subscription for the specified location. * * @summary Gets all the virtual machines under the specified subscription for the specified location. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_ListBySubscription_ByLocation.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_ListBySubscription_ByLocation.json */ async function listsAllTheVirtualMachinesUnderTheSpecifiedSubscriptionForTheSpecifiedLocation() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesListSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesListSample.js similarity index 85% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesListSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesListSample.js index bd86ab3102b4..4ec2eb96fe77 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesListSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesListSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines. * * @summary Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_List_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_List_MaximumSet_Gen.json */ -async function virtualMachinesListMaximumSetGen() { +async function virtualMachineListMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const filter = "aaaaaaaaaaaaaaaaaaaaaaa"; @@ -36,9 +36,9 @@ async function virtualMachinesListMaximumSetGen() { * This sample demonstrates how to Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines. * * @summary Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_List_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_List_MinimumSet_Gen.json */ -async function virtualMachinesListMinimumSetGen() { +async function virtualMachineListMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const credential = new DefaultAzureCredential(); @@ -51,8 +51,8 @@ async function virtualMachinesListMinimumSetGen() { } async function main() { - virtualMachinesListMaximumSetGen(); - virtualMachinesListMinimumSetGen(); + virtualMachineListMaximumSetGen(); + virtualMachineListMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesPerformMaintenanceSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesPerformMaintenanceSample.js similarity index 79% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesPerformMaintenanceSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesPerformMaintenanceSample.js index b384b20fbe6a..42e0811691cf 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesPerformMaintenanceSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesPerformMaintenanceSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to The operation to perform maintenance on a virtual machine. * * @summary The operation to perform maintenance on a virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_PerformMaintenance_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_PerformMaintenance_MaximumSet_Gen.json */ -async function virtualMachinesPerformMaintenanceMaximumSetGen() { +async function virtualMachinePerformMaintenanceMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmName = "aaaaaaa"; @@ -35,9 +35,9 @@ async function virtualMachinesPerformMaintenanceMaximumSetGen() { * This sample demonstrates how to The operation to perform maintenance on a virtual machine. * * @summary The operation to perform maintenance on a virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_PerformMaintenance_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_PerformMaintenance_MinimumSet_Gen.json */ -async function virtualMachinesPerformMaintenanceMinimumSetGen() { +async function virtualMachinePerformMaintenanceMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmName = "aaaaaaaaaa"; @@ -51,8 +51,8 @@ async function virtualMachinesPerformMaintenanceMinimumSetGen() { } async function main() { - virtualMachinesPerformMaintenanceMaximumSetGen(); - virtualMachinesPerformMaintenanceMinimumSetGen(); + virtualMachinePerformMaintenanceMaximumSetGen(); + virtualMachinePerformMaintenanceMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesPowerOffSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesPowerOffSample.js similarity index 84% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesPowerOffSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesPowerOffSample.js index 902dc1714354..697593ee0b34 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesPowerOffSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesPowerOffSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine. * * @summary The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_PowerOff_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_PowerOff_MaximumSet_Gen.json */ -async function virtualMachinesPowerOffMaximumSetGen() { +async function virtualMachinePowerOffMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmName = "aaaaaaaaaaaaaaaaaaaaaaaaaaa"; @@ -38,9 +38,9 @@ async function virtualMachinesPowerOffMaximumSetGen() { * This sample demonstrates how to The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine. * * @summary The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_PowerOff_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_PowerOff_MinimumSet_Gen.json */ -async function virtualMachinesPowerOffMinimumSetGen() { +async function virtualMachinePowerOffMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmName = "aaaaaaaaaaaaaaaaaa"; @@ -51,8 +51,8 @@ async function virtualMachinesPowerOffMinimumSetGen() { } async function main() { - virtualMachinesPowerOffMaximumSetGen(); - virtualMachinesPowerOffMinimumSetGen(); + virtualMachinePowerOffMaximumSetGen(); + virtualMachinePowerOffMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesReapplySample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesReapplySample.js similarity index 95% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesReapplySample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesReapplySample.js index 25236ab62f20..2bb56d64ea21 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesReapplySample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesReapplySample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to reapply a virtual machine's state. * * @summary The operation to reapply a virtual machine's state. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Reapply.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Reapply.json */ async function reapplyTheStateOfAVirtualMachine() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesRedeploySample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesRedeploySample.js similarity index 81% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesRedeploySample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesRedeploySample.js index 1b31af425a94..905aa4b99456 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesRedeploySample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesRedeploySample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Shuts down the virtual machine, moves it to a new node, and powers it back on. * * @summary Shuts down the virtual machine, moves it to a new node, and powers it back on. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Redeploy_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Redeploy_MaximumSet_Gen.json */ -async function virtualMachinesRedeployMaximumSetGen() { +async function virtualMachineRedeployMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmName = "a"; @@ -32,9 +32,9 @@ async function virtualMachinesRedeployMaximumSetGen() { * This sample demonstrates how to Shuts down the virtual machine, moves it to a new node, and powers it back on. * * @summary Shuts down the virtual machine, moves it to a new node, and powers it back on. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Redeploy_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Redeploy_MinimumSet_Gen.json */ -async function virtualMachinesRedeployMinimumSetGen() { +async function virtualMachineRedeployMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmName = "aaaaaaaaaaaaaaa"; @@ -45,8 +45,8 @@ async function virtualMachinesRedeployMinimumSetGen() { } async function main() { - virtualMachinesRedeployMaximumSetGen(); - virtualMachinesRedeployMinimumSetGen(); + virtualMachineRedeployMaximumSetGen(); + virtualMachineRedeployMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesReimageSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesReimageSample.js similarity index 97% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesReimageSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesReimageSample.js index 739b74fd4dd0..4ac770b0aded 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesReimageSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesReimageSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. NOTE: The retaining of old OS disk depends on the value of deleteOption of OS disk. If deleteOption is detach, the old OS disk will be preserved after reimage. If deleteOption is delete, the old OS disk will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage. * * @summary Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. NOTE: The retaining of old OS disk depends on the value of deleteOption of OS disk. If deleteOption is detach, the old OS disk will be preserved after reimage. If deleteOption is delete, the old OS disk will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Reimage_NonEphemeralVMs.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Reimage_NonEphemeralVMs.json */ async function reimageANonEphemeralVirtualMachine() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -45,7 +45,7 @@ async function reimageANonEphemeralVirtualMachine() { * This sample demonstrates how to Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. NOTE: The retaining of old OS disk depends on the value of deleteOption of OS disk. If deleteOption is detach, the old OS disk will be preserved after reimage. If deleteOption is delete, the old OS disk will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage. * * @summary Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. NOTE: The retaining of old OS disk depends on the value of deleteOption of OS disk. If deleteOption is detach, the old OS disk will be preserved after reimage. If deleteOption is delete, the old OS disk will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Reimage.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Reimage.json */ async function reimageAVirtualMachine() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesRestartSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesRestartSample.js similarity index 80% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesRestartSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesRestartSample.js index 3e8d050f0563..f4eb94fc8928 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesRestartSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesRestartSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to The operation to restart a virtual machine. * * @summary The operation to restart a virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Restart_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Restart_MaximumSet_Gen.json */ -async function virtualMachinesRestartMaximumSetGen() { +async function virtualMachineRestartMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmName = "aaaaaaaaaaaaaaaaaaaa"; @@ -32,9 +32,9 @@ async function virtualMachinesRestartMaximumSetGen() { * This sample demonstrates how to The operation to restart a virtual machine. * * @summary The operation to restart a virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Restart_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Restart_MinimumSet_Gen.json */ -async function virtualMachinesRestartMinimumSetGen() { +async function virtualMachineRestartMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmName = "aaa"; @@ -45,8 +45,8 @@ async function virtualMachinesRestartMinimumSetGen() { } async function main() { - virtualMachinesRestartMaximumSetGen(); - virtualMachinesRestartMinimumSetGen(); + virtualMachineRestartMaximumSetGen(); + virtualMachineRestartMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesRetrieveBootDiagnosticsDataSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesRetrieveBootDiagnosticsDataSample.js similarity index 96% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesRetrieveBootDiagnosticsDataSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesRetrieveBootDiagnosticsDataSample.js index 4173031b624d..089b805a0614 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesRetrieveBootDiagnosticsDataSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesRetrieveBootDiagnosticsDataSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to retrieve SAS URIs for a virtual machine's boot diagnostic logs. * * @summary The operation to retrieve SAS URIs for a virtual machine's boot diagnostic logs. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_RetrieveBootDiagnosticsData.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_RetrieveBootDiagnosticsData.json */ async function retrieveBootDiagnosticsDataOfAVirtualMachine() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesRunCommandSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesRunCommandSample.js similarity index 95% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesRunCommandSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesRunCommandSample.js index 8db17bcf4fc1..776c3a7f6b93 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesRunCommandSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesRunCommandSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Run command on the VM. * * @summary Run command on the VM. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineRunCommand.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineRunCommand.json */ async function virtualMachineRunCommand() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesSimulateEvictionSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesSimulateEvictionSample.js similarity index 95% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesSimulateEvictionSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesSimulateEvictionSample.js index 09987f8cd7fd..0383f298d944 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesSimulateEvictionSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesSimulateEvictionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to simulate the eviction of spot virtual machine. * * @summary The operation to simulate the eviction of spot virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_SimulateEviction.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_SimulateEviction.json */ async function simulateEvictionAVirtualMachine() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesStartSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesStartSample.js similarity index 81% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesStartSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesStartSample.js index 5a639fae791b..8ad8b011005e 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesStartSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesStartSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to The operation to start a virtual machine. * * @summary The operation to start a virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Start_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Start_MaximumSet_Gen.json */ -async function virtualMachinesStartMaximumSetGen() { +async function virtualMachineStartMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmName = "aaaaaaaaaaaaaaaaaaaa"; @@ -32,9 +32,9 @@ async function virtualMachinesStartMaximumSetGen() { * This sample demonstrates how to The operation to start a virtual machine. * * @summary The operation to start a virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Start_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Start_MinimumSet_Gen.json */ -async function virtualMachinesStartMinimumSetGen() { +async function virtualMachineStartMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmName = "aaaaa"; @@ -45,8 +45,8 @@ async function virtualMachinesStartMinimumSetGen() { } async function main() { - virtualMachinesStartMaximumSetGen(); - virtualMachinesStartMinimumSetGen(); + virtualMachineStartMaximumSetGen(); + virtualMachineStartMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesUpdateSample.js similarity index 97% rename from sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesUpdateSample.js rename to sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesUpdateSample.js index d5a4f6e49d36..b5eee87e7d12 100644 --- a/sdk/compute/arm-compute/samples/v20/javascript/virtualMachinesUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to update a virtual machine. * * @summary The operation to update a virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Update_DetachDataDiskUsingToBeDetachedProperty.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Update_DetachDataDiskUsingToBeDetachedProperty.json */ async function updateAVMByDetachingDataDisk() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -70,7 +70,7 @@ async function updateAVMByDetachingDataDisk() { * This sample demonstrates how to The operation to update a virtual machine. * * @summary The operation to update a virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Update_ForceDetachDataDisk.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Update_ForceDetachDataDisk.json */ async function updateAVMByForceDetachingDataDisk() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v20/typescript/README.md b/sdk/compute/arm-compute/samples/v21/typescript/README.md similarity index 87% rename from sdk/compute/arm-compute/samples/v20/typescript/README.md rename to sdk/compute/arm-compute/samples/v21/typescript/README.md index d97701e48400..0c822acc6cf9 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/README.md +++ b/sdk/compute/arm-compute/samples/v21/typescript/README.md @@ -4,24 +4,24 @@ These sample programs show how to use the TypeScript client libraries for in som | **File Name** | **Description** | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [availabilitySetsCreateOrUpdateSample.ts][availabilitysetscreateorupdatesample] | Create or update an availability set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySet_Create.json | -| [availabilitySetsDeleteSample.ts][availabilitysetsdeletesample] | Delete an availability set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_Delete_MaximumSet_Gen.json | -| [availabilitySetsGetSample.ts][availabilitysetsgetsample] | Retrieves information about an availability set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_Get_MaximumSet_Gen.json | -| [availabilitySetsListAvailableSizesSample.ts][availabilitysetslistavailablesizessample] | Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_ListAvailableSizes_MaximumSet_Gen.json | -| [availabilitySetsListBySubscriptionSample.ts][availabilitysetslistbysubscriptionsample] | Lists all availability sets in a subscription. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySet_ListBySubscription.json | -| [availabilitySetsListSample.ts][availabilitysetslistsample] | Lists all availability sets in a resource group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_List_MaximumSet_Gen.json | -| [availabilitySetsUpdateSample.ts][availabilitysetsupdatesample] | Update an availability set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_Update_MaximumSet_Gen.json | -| [capacityReservationGroupsCreateOrUpdateSample.ts][capacityreservationgroupscreateorupdatesample] | The operation to create or update a capacity reservation group. When updating a capacity reservation group, only tags may be modified. Please refer to https://aka.ms/CapacityReservation for more details. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservationGroup_CreateOrUpdate.json | -| [capacityReservationGroupsDeleteSample.ts][capacityreservationgroupsdeletesample] | The operation to delete a capacity reservation group. This operation is allowed only if all the associated resources are disassociated from the reservation group and all capacity reservations under the reservation group have also been deleted. Please refer to https://aka.ms/CapacityReservation for more details. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservationGroup_Delete_MaximumSet_Gen.json | -| [capacityReservationGroupsGetSample.ts][capacityreservationgroupsgetsample] | The operation that retrieves information about a capacity reservation group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservationGroup_Get.json | -| [capacityReservationGroupsListByResourceGroupSample.ts][capacityreservationgroupslistbyresourcegroupsample] | Lists all of the capacity reservation groups in the specified resource group. Use the nextLink property in the response to get the next page of capacity reservation groups. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservationGroup_ListByResourceGroup.json | -| [capacityReservationGroupsListBySubscriptionSample.ts][capacityreservationgroupslistbysubscriptionsample] | Lists all of the capacity reservation groups in the subscription. Use the nextLink property in the response to get the next page of capacity reservation groups. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservationGroup_ListBySubscription.json | -| [capacityReservationGroupsUpdateSample.ts][capacityreservationgroupsupdatesample] | The operation to update a capacity reservation group. When updating a capacity reservation group, only tags may be modified. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservationGroup_Update_MaximumSet_Gen.json | -| [capacityReservationsCreateOrUpdateSample.ts][capacityreservationscreateorupdatesample] | The operation to create or update a capacity reservation. Please note some properties can be set only during capacity reservation creation. Please refer to https://aka.ms/CapacityReservation for more details. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservation_CreateOrUpdate.json | -| [capacityReservationsDeleteSample.ts][capacityreservationsdeletesample] | The operation to delete a capacity reservation. This operation is allowed only when all the associated resources are disassociated from the capacity reservation. Please refer to https://aka.ms/CapacityReservation for more details. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservation_Delete_MaximumSet_Gen.json | -| [capacityReservationsGetSample.ts][capacityreservationsgetsample] | The operation that retrieves information about the capacity reservation. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservation_Get.json | -| [capacityReservationsListByCapacityReservationGroupSample.ts][capacityreservationslistbycapacityreservationgroupsample] | Lists all of the capacity reservations in the specified capacity reservation group. Use the nextLink property in the response to get the next page of capacity reservations. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservation_ListByReservationGroup.json | -| [capacityReservationsUpdateSample.ts][capacityreservationsupdatesample] | The operation to update a capacity reservation. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservation_Update_MaximumSet_Gen.json | +| [availabilitySetsCreateOrUpdateSample.ts][availabilitysetscreateorupdatesample] | Create or update an availability set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_Create.json | +| [availabilitySetsDeleteSample.ts][availabilitysetsdeletesample] | Delete an availability set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_Delete_MaximumSet_Gen.json | +| [availabilitySetsGetSample.ts][availabilitysetsgetsample] | Retrieves information about an availability set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_Get_MaximumSet_Gen.json | +| [availabilitySetsListAvailableSizesSample.ts][availabilitysetslistavailablesizessample] | Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_ListAvailableSizes_MaximumSet_Gen.json | +| [availabilitySetsListBySubscriptionSample.ts][availabilitysetslistbysubscriptionsample] | Lists all availability sets in a subscription. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_ListBySubscription.json | +| [availabilitySetsListSample.ts][availabilitysetslistsample] | Lists all availability sets in a resource group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_List_MaximumSet_Gen.json | +| [availabilitySetsUpdateSample.ts][availabilitysetsupdatesample] | Update an availability set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_Update_MaximumSet_Gen.json | +| [capacityReservationGroupsCreateOrUpdateSample.ts][capacityreservationgroupscreateorupdatesample] | The operation to create or update a capacity reservation group. When updating a capacity reservation group, only tags may be modified. Please refer to https://aka.ms/CapacityReservation for more details. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservationGroup_CreateOrUpdate.json | +| [capacityReservationGroupsDeleteSample.ts][capacityreservationgroupsdeletesample] | The operation to delete a capacity reservation group. This operation is allowed only if all the associated resources are disassociated from the reservation group and all capacity reservations under the reservation group have also been deleted. Please refer to https://aka.ms/CapacityReservation for more details. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservationGroup_Delete_MaximumSet_Gen.json | +| [capacityReservationGroupsGetSample.ts][capacityreservationgroupsgetsample] | The operation that retrieves information about a capacity reservation group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservationGroup_Get.json | +| [capacityReservationGroupsListByResourceGroupSample.ts][capacityreservationgroupslistbyresourcegroupsample] | Lists all of the capacity reservation groups in the specified resource group. Use the nextLink property in the response to get the next page of capacity reservation groups. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservationGroup_ListByResourceGroup.json | +| [capacityReservationGroupsListBySubscriptionSample.ts][capacityreservationgroupslistbysubscriptionsample] | Lists all of the capacity reservation groups in the subscription. Use the nextLink property in the response to get the next page of capacity reservation groups. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservationGroup_ListBySubscription.json | +| [capacityReservationGroupsUpdateSample.ts][capacityreservationgroupsupdatesample] | The operation to update a capacity reservation group. When updating a capacity reservation group, only tags may be modified. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservationGroup_Update_MaximumSet_Gen.json | +| [capacityReservationsCreateOrUpdateSample.ts][capacityreservationscreateorupdatesample] | The operation to create or update a capacity reservation. Please note some properties can be set only during capacity reservation creation. Please refer to https://aka.ms/CapacityReservation for more details. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservation_CreateOrUpdate.json | +| [capacityReservationsDeleteSample.ts][capacityreservationsdeletesample] | The operation to delete a capacity reservation. This operation is allowed only when all the associated resources are disassociated from the capacity reservation. Please refer to https://aka.ms/CapacityReservation for more details. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservation_Delete_MaximumSet_Gen.json | +| [capacityReservationsGetSample.ts][capacityreservationsgetsample] | The operation that retrieves information about the capacity reservation. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservation_Get.json | +| [capacityReservationsListByCapacityReservationGroupSample.ts][capacityreservationslistbycapacityreservationgroupsample] | Lists all of the capacity reservations in the specified capacity reservation group. Use the nextLink property in the response to get the next page of capacity reservations. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservation_ListByReservationGroup.json | +| [capacityReservationsUpdateSample.ts][capacityreservationsupdatesample] | The operation to update a capacity reservation. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservation_Update_MaximumSet_Gen.json | | [cloudServiceOperatingSystemsGetOSFamilySample.ts][cloudserviceoperatingsystemsgetosfamilysample] | Gets properties of a guest operating system family that can be specified in the XML service configuration (.cscfg) for a cloud service. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/CloudserviceRP/stable/2022-09-04/examples/CloudServiceOSFamily_Get.json | | [cloudServiceOperatingSystemsGetOSVersionSample.ts][cloudserviceoperatingsystemsgetosversionsample] | Gets properties of a guest operating system version that can be specified in the XML service configuration (.cscfg) for a cloud service. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/CloudserviceRP/stable/2022-09-04/examples/CloudServiceOSVersion_Get.json | | [cloudServiceOperatingSystemsListOSFamiliesSample.ts][cloudserviceoperatingsystemslistosfamiliessample] | Gets a list of all guest operating system families available to be specified in the XML service configuration (.cscfg) for a cloud service. Use nextLink property in the response to get the next page of OS Families. Do this till nextLink is null to fetch all the OS Families. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/CloudserviceRP/stable/2022-09-04/examples/CloudServiceOSFamilies_List.json | @@ -57,18 +57,19 @@ These sample programs show how to use the TypeScript client libraries for in som | [communityGalleryImageVersionsListSample.ts][communitygalleryimageversionslistsample] | List community gallery image versions inside an image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-03-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_List.json | | [communityGalleryImagesGetSample.ts][communitygalleryimagesgetsample] | Get a community gallery image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-03-03/examples/communityGalleryExamples/CommunityGalleryImage_Get.json | | [communityGalleryImagesListSample.ts][communitygalleryimageslistsample] | List community gallery images inside a gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-03-03/examples/communityGalleryExamples/CommunityGalleryImage_List.json | -| [dedicatedHostGroupsCreateOrUpdateSample.ts][dedicatedhostgroupscreateorupdatesample] | Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups please see [Dedicated Host Documentation] (https://go.microsoft.com/fwlink/?linkid=2082596) x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroup_CreateOrUpdate_WithUltraSSD.json | -| [dedicatedHostGroupsDeleteSample.ts][dedicatedhostgroupsdeletesample] | Delete a dedicated host group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroups_Delete_MaximumSet_Gen.json | -| [dedicatedHostGroupsGetSample.ts][dedicatedhostgroupsgetsample] | Retrieves information about a dedicated host group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroup_Get.json | -| [dedicatedHostGroupsListByResourceGroupSample.ts][dedicatedhostgroupslistbyresourcegroupsample] | Lists all of the dedicated host groups in the specified resource group. Use the nextLink property in the response to get the next page of dedicated host groups. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroups_ListByResourceGroup_MaximumSet_Gen.json | -| [dedicatedHostGroupsListBySubscriptionSample.ts][dedicatedhostgroupslistbysubscriptionsample] | Lists all of the dedicated host groups in the subscription. Use the nextLink property in the response to get the next page of dedicated host groups. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroups_ListBySubscription_MaximumSet_Gen.json | -| [dedicatedHostGroupsUpdateSample.ts][dedicatedhostgroupsupdatesample] | Update an dedicated host group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroups_Update_MaximumSet_Gen.json | -| [dedicatedHostsCreateOrUpdateSample.ts][dedicatedhostscreateorupdatesample] | Create or update a dedicated host . x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHost_CreateOrUpdate.json | -| [dedicatedHostsDeleteSample.ts][dedicatedhostsdeletesample] | Delete a dedicated host. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHosts_Delete_MaximumSet_Gen.json | -| [dedicatedHostsGetSample.ts][dedicatedhostsgetsample] | Retrieves information about a dedicated host. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHost_Get.json | -| [dedicatedHostsListByHostGroupSample.ts][dedicatedhostslistbyhostgroupsample] | Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink property in the response to get the next page of dedicated hosts. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHosts_ListByHostGroup_MaximumSet_Gen.json | -| [dedicatedHostsRestartSample.ts][dedicatedhostsrestartsample] | Restart the dedicated host. The operation will complete successfully once the dedicated host has restarted and is running. To determine the health of VMs deployed on the dedicated host after the restart check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/azure/service-health/resource-health-overview for more details. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHost_Restart.json | -| [dedicatedHostsUpdateSample.ts][dedicatedhostsupdatesample] | Update an dedicated host . x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHosts_Update_MaximumSet_Gen.json | +| [dedicatedHostGroupsCreateOrUpdateSample.ts][dedicatedhostgroupscreateorupdatesample] | Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups please see [Dedicated Host Documentation] (https://go.microsoft.com/fwlink/?linkid=2082596) x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_CreateOrUpdate_WithUltraSSD.json | +| [dedicatedHostGroupsDeleteSample.ts][dedicatedhostgroupsdeletesample] | Delete a dedicated host group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_Delete_MaximumSet_Gen.json | +| [dedicatedHostGroupsGetSample.ts][dedicatedhostgroupsgetsample] | Retrieves information about a dedicated host group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_Get.json | +| [dedicatedHostGroupsListByResourceGroupSample.ts][dedicatedhostgroupslistbyresourcegroupsample] | Lists all of the dedicated host groups in the specified resource group. Use the nextLink property in the response to get the next page of dedicated host groups. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_ListByResourceGroup_MaximumSet_Gen.json | +| [dedicatedHostGroupsListBySubscriptionSample.ts][dedicatedhostgroupslistbysubscriptionsample] | Lists all of the dedicated host groups in the subscription. Use the nextLink property in the response to get the next page of dedicated host groups. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_ListBySubscription_MaximumSet_Gen.json | +| [dedicatedHostGroupsUpdateSample.ts][dedicatedhostgroupsupdatesample] | Update an dedicated host group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_Update_MaximumSet_Gen.json | +| [dedicatedHostsCreateOrUpdateSample.ts][dedicatedhostscreateorupdatesample] | Create or update a dedicated host . x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_CreateOrUpdate.json | +| [dedicatedHostsDeleteSample.ts][dedicatedhostsdeletesample] | Delete a dedicated host. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_Delete_MaximumSet_Gen.json | +| [dedicatedHostsGetSample.ts][dedicatedhostsgetsample] | Retrieves information about a dedicated host. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_Get.json | +| [dedicatedHostsListAvailableSizesSample.ts][dedicatedhostslistavailablesizessample] | Lists all available dedicated host sizes to which the specified dedicated host can be resized. NOTE: The dedicated host sizes provided can be used to only scale up the existing dedicated host. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_ListAvailableSizes.json | +| [dedicatedHostsListByHostGroupSample.ts][dedicatedhostslistbyhostgroupsample] | Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink property in the response to get the next page of dedicated hosts. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_ListByHostGroup_MaximumSet_Gen.json | +| [dedicatedHostsRestartSample.ts][dedicatedhostsrestartsample] | Restart the dedicated host. The operation will complete successfully once the dedicated host has restarted and is running. To determine the health of VMs deployed on the dedicated host after the restart check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/azure/service-health/resource-health-overview for more details. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_Restart.json | +| [dedicatedHostsUpdateSample.ts][dedicatedhostsupdatesample] | Update a dedicated host . x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_Update_MaximumSet_Gen.json | | [diskAccessesCreateOrUpdateSample.ts][diskaccessescreateorupdatesample] | Creates or updates a disk access resource x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/DiskRP/stable/2022-07-02/examples/diskAccessExamples/DiskAccess_Create.json | | [diskAccessesDeleteAPrivateEndpointConnectionSample.ts][diskaccessesdeleteaprivateendpointconnectionsample] | Deletes a private endpoint connection under a disk access resource. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/DiskRP/stable/2022-07-02/examples/diskAccessExamples/DiskAccessPrivateEndpointConnection_Delete.json | | [diskAccessesDeleteSample.ts][diskaccessesdeletesample] | Deletes a disk access resource. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/DiskRP/stable/2022-07-02/examples/diskAccessExamples/DiskAccess_Delete.json | @@ -126,31 +127,31 @@ These sample programs show how to use the TypeScript client libraries for in som | [galleryImagesListByGallerySample.ts][galleryimageslistbygallerysample] | List gallery image definitions in a gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImage_ListByGallery.json | | [galleryImagesUpdateSample.ts][galleryimagesupdatesample] | Update a gallery image definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImage_Update.json | | [gallerySharingProfileUpdateSample.ts][gallerysharingprofileupdatesample] | Update sharing profile of a gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-03-03/examples/galleryExamples/Gallery_AddToSharingProfile.json | -| [imagesCreateOrUpdateSample.ts][imagescreateorupdatesample] | Create or update an image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_CreateFromABlobWithDiskEncryptionSet.json | -| [imagesDeleteSample.ts][imagesdeletesample] | Deletes an Image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Images_Delete_MaximumSet_Gen.json | -| [imagesGetSample.ts][imagesgetsample] | Gets an image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_Get.json | -| [imagesListByResourceGroupSample.ts][imageslistbyresourcegroupsample] | Gets the list of images under a resource group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_ListByResourceGroup.json | -| [imagesListSample.ts][imageslistsample] | Gets the list of Images in the subscription. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_ListBySubscription.json | -| [imagesUpdateSample.ts][imagesupdatesample] | Update an image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_Update.json | -| [logAnalyticsExportRequestRateByIntervalSample.ts][loganalyticsexportrequestratebyintervalsample] | Export logs that show Api requests made by this subscription in the given time window to show throttling activities. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/logAnalyticExamples/LogAnalytics_RequestRateByInterval.json | -| [logAnalyticsExportThrottledRequestsSample.ts][loganalyticsexportthrottledrequestssample] | Export logs that show total throttled Api requests for this subscription in the given time window. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/logAnalyticExamples/LogAnalytics_ThrottledRequests.json | -| [operationsListSample.ts][operationslistsample] | Gets a list of compute operations. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/computeRPCommonExamples/Operations_List_MaximumSet_Gen.json | -| [proximityPlacementGroupsCreateOrUpdateSample.ts][proximityplacementgroupscreateorupdatesample] | Create or update a proximity placement group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_CreateOrUpdate.json | -| [proximityPlacementGroupsDeleteSample.ts][proximityplacementgroupsdeletesample] | Delete a proximity placement group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_Delete.json | -| [proximityPlacementGroupsGetSample.ts][proximityplacementgroupsgetsample] | Retrieves information about a proximity placement group . x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_Get.json | -| [proximityPlacementGroupsListByResourceGroupSample.ts][proximityplacementgroupslistbyresourcegroupsample] | Lists all proximity placement groups in a resource group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_ListByResourceGroup.json | -| [proximityPlacementGroupsListBySubscriptionSample.ts][proximityplacementgroupslistbysubscriptionsample] | Lists all proximity placement groups in a subscription. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_ListBySubscription.json | -| [proximityPlacementGroupsUpdateSample.ts][proximityplacementgroupsupdatesample] | Update a proximity placement group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_Patch.json | +| [imagesCreateOrUpdateSample.ts][imagescreateorupdatesample] | Create or update an image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_CreateFromABlobWithDiskEncryptionSet.json | +| [imagesDeleteSample.ts][imagesdeletesample] | Deletes an Image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Images_Delete_MaximumSet_Gen.json | +| [imagesGetSample.ts][imagesgetsample] | Gets an image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_Get.json | +| [imagesListByResourceGroupSample.ts][imageslistbyresourcegroupsample] | Gets the list of images under a resource group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_ListByResourceGroup.json | +| [imagesListSample.ts][imageslistsample] | Gets the list of Images in the subscription. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_ListBySubscription.json | +| [imagesUpdateSample.ts][imagesupdatesample] | Update an image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_Update.json | +| [logAnalyticsExportRequestRateByIntervalSample.ts][loganalyticsexportrequestratebyintervalsample] | Export logs that show Api requests made by this subscription in the given time window to show throttling activities. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/logAnalyticExamples/LogAnalytics_RequestRateByInterval.json | +| [logAnalyticsExportThrottledRequestsSample.ts][loganalyticsexportthrottledrequestssample] | Export logs that show total throttled Api requests for this subscription in the given time window. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/logAnalyticExamples/LogAnalytics_ThrottledRequests.json | +| [operationsListSample.ts][operationslistsample] | Gets a list of compute operations. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/computeRPCommonExamples/Operations_List_MaximumSet_Gen.json | +| [proximityPlacementGroupsCreateOrUpdateSample.ts][proximityplacementgroupscreateorupdatesample] | Create or update a proximity placement group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_CreateOrUpdate.json | +| [proximityPlacementGroupsDeleteSample.ts][proximityplacementgroupsdeletesample] | Delete a proximity placement group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_Delete.json | +| [proximityPlacementGroupsGetSample.ts][proximityplacementgroupsgetsample] | Retrieves information about a proximity placement group . x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_Get.json | +| [proximityPlacementGroupsListByResourceGroupSample.ts][proximityplacementgroupslistbyresourcegroupsample] | Lists all proximity placement groups in a resource group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_ListByResourceGroup.json | +| [proximityPlacementGroupsListBySubscriptionSample.ts][proximityplacementgroupslistbysubscriptionsample] | Lists all proximity placement groups in a subscription. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_ListBySubscription.json | +| [proximityPlacementGroupsUpdateSample.ts][proximityplacementgroupsupdatesample] | Update a proximity placement group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_Patch.json | | [resourceSkusListSample.ts][resourceskuslistsample] | Gets the list of Microsoft.Compute SKUs available for your Subscription. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/Skus/stable/2021-07-01/examples/skus/ListAvailableResourceSkus.json | -| [restorePointCollectionsCreateOrUpdateSample.ts][restorepointcollectionscreateorupdatesample] | The operation to create or update the restore point collection. Please refer to https://aka.ms/RestorePoints for more details. When updating a restore point collection, only tags may be modified. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollection_CreateOrUpdate_ForCrossRegionCopy.json | -| [restorePointCollectionsDeleteSample.ts][restorepointcollectionsdeletesample] | The operation to delete the restore point collection. This operation will also delete all the contained restore points. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollections_Delete_MaximumSet_Gen.json | -| [restorePointCollectionsGetSample.ts][restorepointcollectionsgetsample] | The operation to get the restore point collection. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollection_Get.json | -| [restorePointCollectionsListAllSample.ts][restorepointcollectionslistallsample] | Gets the list of restore point collections in the subscription. Use nextLink property in the response to get the next page of restore point collections. Do this till nextLink is not null to fetch all the restore point collections. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollection_ListBySubscription.json | -| [restorePointCollectionsListSample.ts][restorepointcollectionslistsample] | Gets the list of restore point collections in a resource group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollection_ListByResourceGroup.json | -| [restorePointCollectionsUpdateSample.ts][restorepointcollectionsupdatesample] | The operation to update the restore point collection. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollections_Update_MaximumSet_Gen.json | -| [restorePointsCreateSample.ts][restorepointscreatesample] | The operation to create the restore point. Updating properties of an existing restore point is not allowed x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePoint_Copy_BetweenRegions.json | -| [restorePointsDeleteSample.ts][restorepointsdeletesample] | The operation to delete the restore point. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePoints_Delete_MaximumSet_Gen.json | -| [restorePointsGetSample.ts][restorepointsgetsample] | The operation to get the restore point. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePoint_Get.json | +| [restorePointCollectionsCreateOrUpdateSample.ts][restorepointcollectionscreateorupdatesample] | The operation to create or update the restore point collection. Please refer to https://aka.ms/RestorePoints for more details. When updating a restore point collection, only tags may be modified. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePointCollection_CreateOrUpdate_ForCrossRegionCopy.json | +| [restorePointCollectionsDeleteSample.ts][restorepointcollectionsdeletesample] | The operation to delete the restore point collection. This operation will also delete all the contained restore points. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePointCollection_Delete_MaximumSet_Gen.json | +| [restorePointCollectionsGetSample.ts][restorepointcollectionsgetsample] | The operation to get the restore point collection. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePointCollection_Get.json | +| [restorePointCollectionsListAllSample.ts][restorepointcollectionslistallsample] | Gets the list of restore point collections in the subscription. Use nextLink property in the response to get the next page of restore point collections. Do this till nextLink is not null to fetch all the restore point collections. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePointCollection_ListBySubscription.json | +| [restorePointCollectionsListSample.ts][restorepointcollectionslistsample] | Gets the list of restore point collections in a resource group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePointCollection_ListByResourceGroup.json | +| [restorePointCollectionsUpdateSample.ts][restorepointcollectionsupdatesample] | The operation to update the restore point collection. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePointCollection_Update_MaximumSet_Gen.json | +| [restorePointsCreateSample.ts][restorepointscreatesample] | The operation to create the restore point. Updating properties of an existing restore point is not allowed x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePoint_Copy_BetweenRegions.json | +| [restorePointsDeleteSample.ts][restorepointsdeletesample] | The operation to delete the restore point. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePoint_Delete_MaximumSet_Gen.json | +| [restorePointsGetSample.ts][restorepointsgetsample] | The operation to get the restore point. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePoint_Get.json | | [sharedGalleriesGetSample.ts][sharedgalleriesgetsample] | Get a shared gallery by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-03-03/examples/sharedGalleryExamples/SharedGallery_Get.json | | [sharedGalleriesListSample.ts][sharedgallerieslistsample] | List shared galleries by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-03-03/examples/sharedGalleryExamples/SharedGallery_List.json | | [sharedGalleryImageVersionsGetSample.ts][sharedgalleryimageversionsgetsample] | Get a shared gallery image version by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-03-03/examples/sharedGalleryExamples/SharedGalleryImageVersion_Get.json | @@ -165,124 +166,125 @@ These sample programs show how to use the TypeScript client libraries for in som | [snapshotsListSample.ts][snapshotslistsample] | Lists snapshots under a subscription. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/DiskRP/stable/2022-07-02/examples/snapshotExamples/Snapshot_ListBySubscription.json | | [snapshotsRevokeAccessSample.ts][snapshotsrevokeaccesssample] | Revokes access to a snapshot. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/DiskRP/stable/2022-07-02/examples/snapshotExamples/Snapshot_EndGetAccess.json | | [snapshotsUpdateSample.ts][snapshotsupdatesample] | Updates (patches) a snapshot. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/DiskRP/stable/2022-07-02/examples/snapshotExamples/Snapshot_Update_WithAcceleratedNetwork.json | -| [sshPublicKeysCreateSample.ts][sshpublickeyscreatesample] | Creates a new SSH public key resource. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKey_Create.json | -| [sshPublicKeysDeleteSample.ts][sshpublickeysdeletesample] | Delete an SSH public key. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKeys_Delete_MaximumSet_Gen.json | -| [sshPublicKeysGenerateKeyPairSample.ts][sshpublickeysgeneratekeypairsample] | Generates and returns a public/private key pair and populates the SSH public key resource with the public key. The length of the key will be 3072 bits. This operation can only be performed once per SSH public key resource. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKeys_GenerateKeyPair.json | -| [sshPublicKeysGetSample.ts][sshpublickeysgetsample] | Retrieves information about an SSH public key. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKey_Get.json | -| [sshPublicKeysListByResourceGroupSample.ts][sshpublickeyslistbyresourcegroupsample] | Lists all of the SSH public keys in the specified resource group. Use the nextLink property in the response to get the next page of SSH public keys. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKeys_ListByResourceGroup_MaximumSet_Gen.json | -| [sshPublicKeysListBySubscriptionSample.ts][sshpublickeyslistbysubscriptionsample] | Lists all of the SSH public keys in the subscription. Use the nextLink property in the response to get the next page of SSH public keys. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKeys_ListBySubscription_MaximumSet_Gen.json | -| [sshPublicKeysUpdateSample.ts][sshpublickeysupdatesample] | Updates a new SSH public key resource. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKeys_Update_MaximumSet_Gen.json | -| [usageListSample.ts][usagelistsample] | Gets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/computeRPCommonExamples/Usage_List_MaximumSet_Gen.json | -| [virtualMachineExtensionImagesGetSample.ts][virtualmachineextensionimagesgetsample] | Gets a virtual machine extension image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_Get_MaximumSet_Gen.json | -| [virtualMachineExtensionImagesListTypesSample.ts][virtualmachineextensionimageslisttypessample] | Gets a list of virtual machine extension image types. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListTypes_MaximumSet_Gen.json | -| [virtualMachineExtensionImagesListVersionsSample.ts][virtualmachineextensionimageslistversionssample] | Gets a list of virtual machine extension image versions. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListVersions_MaximumSet_Gen.json | -| [virtualMachineExtensionsCreateOrUpdateSample.ts][virtualmachineextensionscreateorupdatesample] | The operation to create or update the extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_CreateOrUpdate_MaximumSet_Gen.json | -| [virtualMachineExtensionsDeleteSample.ts][virtualmachineextensionsdeletesample] | The operation to delete the extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_Delete_MaximumSet_Gen.json | -| [virtualMachineExtensionsGetSample.ts][virtualmachineextensionsgetsample] | The operation to get the extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_Get_MaximumSet_Gen.json | -| [virtualMachineExtensionsListSample.ts][virtualmachineextensionslistsample] | The operation to get all extensions of a Virtual Machine. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_List_MaximumSet_Gen.json | -| [virtualMachineExtensionsUpdateSample.ts][virtualmachineextensionsupdatesample] | The operation to update the extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_Update.json | -| [virtualMachineImagesEdgeZoneGetSample.ts][virtualmachineimagesedgezonegetsample] | Gets a virtual machine image in an edge zone. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_Get_MaximumSet_Gen.json | -| [virtualMachineImagesEdgeZoneListOffersSample.ts][virtualmachineimagesedgezonelistofferssample] | Gets a list of virtual machine image offers for the specified location, edge zone and publisher. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListOffers_MaximumSet_Gen.json | -| [virtualMachineImagesEdgeZoneListPublishersSample.ts][virtualmachineimagesedgezonelistpublisherssample] | Gets a list of virtual machine image publishers for the specified Azure location and edge zone. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListPublishers_MaximumSet_Gen.json | -| [virtualMachineImagesEdgeZoneListSample.ts][virtualmachineimagesedgezonelistsample] | Gets a list of all virtual machine image versions for the specified location, edge zone, publisher, offer, and SKU. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_List_MaximumSet_Gen.json | -| [virtualMachineImagesEdgeZoneListSkusSample.ts][virtualmachineimagesedgezonelistskussample] | Gets a list of virtual machine image SKUs for the specified location, edge zone, publisher, and offer. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListSkus_MaximumSet_Gen.json | -| [virtualMachineImagesGetSample.ts][virtualmachineimagesgetsample] | Gets a virtual machine image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_Get_MaximumSet_Gen.json | -| [virtualMachineImagesListByEdgeZoneSample.ts][virtualmachineimageslistbyedgezonesample] | Gets a list of all virtual machine image versions for the specified edge zone x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListByEdgeZone_MaximumSet_Gen.json | -| [virtualMachineImagesListOffersSample.ts][virtualmachineimageslistofferssample] | Gets a list of virtual machine image offers for the specified location and publisher. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_ListOffers_MaximumSet_Gen.json | -| [virtualMachineImagesListPublishersSample.ts][virtualmachineimageslistpublisherssample] | Gets a list of virtual machine image publishers for the specified Azure location. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_ListPublishers_MaximumSet_Gen.json | -| [virtualMachineImagesListSample.ts][virtualmachineimageslistsample] | Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_List_MaximumSet_Gen.json | -| [virtualMachineImagesListSkusSample.ts][virtualmachineimageslistskussample] | Gets a list of virtual machine image SKUs for the specified location, publisher, and offer. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_ListSkus_MaximumSet_Gen.json | -| [virtualMachineRunCommandsCreateOrUpdateSample.ts][virtualmachineruncommandscreateorupdatesample] | The operation to create or update the run command. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineRunCommand_CreateOrUpdate.json | -| [virtualMachineRunCommandsDeleteSample.ts][virtualmachineruncommandsdeletesample] | The operation to delete the run command. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineRunCommand_Delete.json | -| [virtualMachineRunCommandsGetByVirtualMachineSample.ts][virtualmachineruncommandsgetbyvirtualmachinesample] | The operation to get the run command. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineRunCommand_Get.json | -| [virtualMachineRunCommandsGetSample.ts][virtualmachineruncommandsgetsample] | Gets specific run command for a subscription in a location. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/RunCommand_Get.json | -| [virtualMachineRunCommandsListByVirtualMachineSample.ts][virtualmachineruncommandslistbyvirtualmachinesample] | The operation to get all run commands of a Virtual Machine. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineRunCommand_List.json | -| [virtualMachineRunCommandsListSample.ts][virtualmachineruncommandslistsample] | Lists all available run commands for a subscription in a location. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/RunCommand_List.json | -| [virtualMachineRunCommandsUpdateSample.ts][virtualmachineruncommandsupdatesample] | The operation to update the run command. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineRunCommand_Update.json | -| [virtualMachineScaleSetExtensionsCreateOrUpdateSample.ts][virtualmachinescalesetextensionscreateorupdatesample] | The operation to create or update an extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_CreateOrUpdate_MaximumSet_Gen.json | -| [virtualMachineScaleSetExtensionsDeleteSample.ts][virtualmachinescalesetextensionsdeletesample] | The operation to delete the extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_Delete_MaximumSet_Gen.json | -| [virtualMachineScaleSetExtensionsGetSample.ts][virtualmachinescalesetextensionsgetsample] | The operation to get the extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_Get_MaximumSet_Gen.json | -| [virtualMachineScaleSetExtensionsListSample.ts][virtualmachinescalesetextensionslistsample] | Gets a list of all extensions in a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_List_MaximumSet_Gen.json | -| [virtualMachineScaleSetExtensionsUpdateSample.ts][virtualmachinescalesetextensionsupdatesample] | The operation to update an extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_Update_MaximumSet_Gen.json | -| [virtualMachineScaleSetRollingUpgradesCancelSample.ts][virtualmachinescalesetrollingupgradescancelsample] | Cancels the current virtual machine scale set rolling upgrade. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrades_Cancel_MaximumSet_Gen.json | -| [virtualMachineScaleSetRollingUpgradesGetLatestSample.ts][virtualmachinescalesetrollingupgradesgetlatestsample] | Gets the status of the latest virtual machine scale set rolling upgrade. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrades_GetLatest_MaximumSet_Gen.json | -| [virtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSample.ts][virtualmachinescalesetrollingupgradesstartextensionupgradesample] | Starts a rolling upgrade to move all extensions for all virtual machine scale set instances to the latest available extension version. Instances which are already running the latest extension versions are not affected. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_RollingUpgrade.json | -| [virtualMachineScaleSetRollingUpgradesStartOSUpgradeSample.ts][virtualmachinescalesetrollingupgradesstartosupgradesample] | Starts a rolling upgrade to move all virtual machine scale set instances to the latest available Platform Image OS version. Instances which are already running the latest available OS version are not affected. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrades_StartOSUpgrade_MaximumSet_Gen.json | -| [virtualMachineScaleSetVMExtensionsCreateOrUpdateSample.ts][virtualmachinescalesetvmextensionscreateorupdatesample] | The operation to create or update the VMSS VM extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtensions_Create.json | -| [virtualMachineScaleSetVMExtensionsDeleteSample.ts][virtualmachinescalesetvmextensionsdeletesample] | The operation to delete the VMSS VM extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtensions_Delete.json | -| [virtualMachineScaleSetVMExtensionsGetSample.ts][virtualmachinescalesetvmextensionsgetsample] | The operation to get the VMSS VM extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtensions_Get.json | -| [virtualMachineScaleSetVMExtensionsListSample.ts][virtualmachinescalesetvmextensionslistsample] | The operation to get all extensions of an instance in Virtual Machine Scaleset. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtensions_List.json | -| [virtualMachineScaleSetVMExtensionsUpdateSample.ts][virtualmachinescalesetvmextensionsupdatesample] | The operation to update the VMSS VM extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtensions_Update.json | -| [virtualMachineScaleSetVMRunCommandsCreateOrUpdateSample.ts][virtualmachinescalesetvmruncommandscreateorupdatesample] | The operation to create or update the VMSS VM run command. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_CreateOrUpdate.json | -| [virtualMachineScaleSetVMRunCommandsDeleteSample.ts][virtualmachinescalesetvmruncommandsdeletesample] | The operation to delete the VMSS VM run command. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Delete.json | -| [virtualMachineScaleSetVMRunCommandsGetSample.ts][virtualmachinescalesetvmruncommandsgetsample] | The operation to get the VMSS VM run command. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Get.json | -| [virtualMachineScaleSetVMRunCommandsListSample.ts][virtualmachinescalesetvmruncommandslistsample] | The operation to get all run commands of an instance in Virtual Machine Scaleset. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_List.json | -| [virtualMachineScaleSetVMRunCommandsUpdateSample.ts][virtualmachinescalesetvmruncommandsupdatesample] | The operation to update the VMSS VM run command. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Update.json | -| [virtualMachineScaleSetVMSDeallocateSample.ts][virtualmachinescalesetvmsdeallocatesample] | Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the compute resources it uses. You are not billed for the compute resources of this virtual machine once it is deallocated. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Deallocate_MaximumSet_Gen.json | -| [virtualMachineScaleSetVMSDeleteSample.ts][virtualmachinescalesetvmsdeletesample] | Deletes a virtual machine from a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Delete_Force.json | -| [virtualMachineScaleSetVMSGetInstanceViewSample.ts][virtualmachinescalesetvmsgetinstanceviewsample] | Gets the status of a virtual machine from a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_InstanceViewAutoPlacedOnDedicatedHostGroup.json | -| [virtualMachineScaleSetVMSGetSample.ts][virtualmachinescalesetvmsgetsample] | Gets a virtual machine from a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithUserData.json | -| [virtualMachineScaleSetVMSListSample.ts][virtualmachinescalesetvmslistsample] | Gets a list of all virtual machines in a VM scale sets. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_List_MaximumSet_Gen.json | -| [virtualMachineScaleSetVMSPerformMaintenanceSample.ts][virtualmachinescalesetvmsperformmaintenancesample] | Performs maintenance on a virtual machine in a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_PerformMaintenance_MaximumSet_Gen.json | -| [virtualMachineScaleSetVMSPowerOffSample.ts][virtualmachinescalesetvmspoweroffsample] | Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_PowerOff_MaximumSet_Gen.json | -| [virtualMachineScaleSetVMSRedeploySample.ts][virtualmachinescalesetvmsredeploysample] | Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Redeploy_MaximumSet_Gen.json | -| [virtualMachineScaleSetVMSReimageAllSample.ts][virtualmachinescalesetvmsreimageallsample] | Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This operation is only supported for managed disks. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_ReimageAll_MaximumSet_Gen.json | -| [virtualMachineScaleSetVMSReimageSample.ts][virtualmachinescalesetvmsreimagesample] | Reimages (upgrade the operating system) a specific virtual machine in a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Reimage_MaximumSet_Gen.json | -| [virtualMachineScaleSetVMSRestartSample.ts][virtualmachinescalesetvmsrestartsample] | Restarts a virtual machine in a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Restart_MaximumSet_Gen.json | -| [virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.ts][virtualmachinescalesetvmsretrievebootdiagnosticsdatasample] | The operation to retrieve SAS URIs of boot diagnostic logs for a virtual machine in a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_RetrieveBootDiagnosticsData.json | -| [virtualMachineScaleSetVMSRunCommandSample.ts][virtualmachinescalesetvmsruncommandsample] | Run command on a virtual machine in a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand.json | -| [virtualMachineScaleSetVMSSimulateEvictionSample.ts][virtualmachinescalesetvmssimulateevictionsample] | The operation to simulate the eviction of spot virtual machine in a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_SimulateEviction.json | -| [virtualMachineScaleSetVMSStartSample.ts][virtualmachinescalesetvmsstartsample] | Starts a virtual machine in a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Start_MaximumSet_Gen.json | -| [virtualMachineScaleSetVMSUpdateSample.ts][virtualmachinescalesetvmsupdatesample] | Updates a virtual machine of a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Update_MaximumSet_Gen.json | -| [virtualMachineScaleSetsConvertToSinglePlacementGroupSample.ts][virtualmachinescalesetsconverttosingleplacementgroupsample] | Converts SinglePlacementGroup property to false for a existing virtual machine scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ConvertToSinglePlacementGroup_MaximumSet_Gen.json | -| [virtualMachineScaleSetsCreateOrUpdateSample.ts][virtualmachinescalesetscreateorupdatesample] | Create or update a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithExtensionsSuppressFailuresEnabled.json | -| [virtualMachineScaleSetsDeallocateSample.ts][virtualmachinescalesetsdeallocatesample] | Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual machine scale set deallocates. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Deallocate_MaximumSet_Gen.json | -| [virtualMachineScaleSetsDeleteInstancesSample.ts][virtualmachinescalesetsdeleteinstancessample] | Deletes virtual machines in a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_DeleteInstances_MaximumSet_Gen.json | -| [virtualMachineScaleSetsDeleteSample.ts][virtualmachinescalesetsdeletesample] | Deletes a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Delete_Force.json | -| [virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSample.ts][virtualmachinescalesetsforcerecoveryservicefabricplatformupdatedomainwalksample] | Manual platform update domain walk to update virtual machines in a service fabric virtual machine scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ForceRecoveryServiceFabricPlatformUpdateDomainWalk_MaximumSet_Gen.json | -| [virtualMachineScaleSetsGetInstanceViewSample.ts][virtualmachinescalesetsgetinstanceviewsample] | Gets the status of a VM scale set instance. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_GetInstanceView_MaximumSet_Gen.json | -| [virtualMachineScaleSetsGetOSUpgradeHistorySample.ts][virtualmachinescalesetsgetosupgradehistorysample] | Gets list of OS upgrades on a VM scale set instance. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_GetOSUpgradeHistory_MaximumSet_Gen.json | -| [virtualMachineScaleSetsGetSample.ts][virtualmachinescalesetsgetsample] | Display information about a virtual machine scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get_WithDiskControllerType.json | -| [virtualMachineScaleSetsListAllSample.ts][virtualmachinescalesetslistallsample] | Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this till nextLink is null to fetch all the VM Scale Sets. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ListAll_MaximumSet_Gen.json | -| [virtualMachineScaleSetsListByLocationSample.ts][virtualmachinescalesetslistbylocationsample] | Gets all the VM scale sets under the specified subscription for the specified location. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ListBySubscription_ByLocation.json | -| [virtualMachineScaleSetsListSample.ts][virtualmachinescalesetslistsample] | Gets a list of all VM scale sets under a resource group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_List_MaximumSet_Gen.json | -| [virtualMachineScaleSetsListSkusSample.ts][virtualmachinescalesetslistskussample] | Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ListSkus_MaximumSet_Gen.json | -| [virtualMachineScaleSetsPerformMaintenanceSample.ts][virtualmachinescalesetsperformmaintenancesample] | Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices for more details: https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_PerformMaintenance_MaximumSet_Gen.json | -| [virtualMachineScaleSetsPowerOffSample.ts][virtualmachinescalesetspoweroffsample] | Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_PowerOff_MaximumSet_Gen.json | -| [virtualMachineScaleSetsRedeploySample.ts][virtualmachinescalesetsredeploysample] | Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and powers them back on. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Redeploy_MaximumSet_Gen.json | -| [virtualMachineScaleSetsReimageAllSample.ts][virtualmachinescalesetsreimageallsample] | Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation is only supported for managed disks. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ReimageAll_MaximumSet_Gen.json | -| [virtualMachineScaleSetsReimageSample.ts][virtualmachinescalesetsreimagesample] | Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Reimage_MaximumSet_Gen.json | -| [virtualMachineScaleSetsRestartSample.ts][virtualmachinescalesetsrestartsample] | Restarts one or more virtual machines in a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Restart_MaximumSet_Gen.json | -| [virtualMachineScaleSetsSetOrchestrationServiceStateSample.ts][virtualmachinescalesetssetorchestrationservicestatesample] | Changes ServiceState property for a given service x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_SetOrchestrationServiceState_MaximumSet_Gen.json | -| [virtualMachineScaleSetsStartSample.ts][virtualmachinescalesetsstartsample] | Starts one or more virtual machines in a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Start_MaximumSet_Gen.json | -| [virtualMachineScaleSetsUpdateInstancesSample.ts][virtualmachinescalesetsupdateinstancessample] | Upgrades one or more virtual machines to the latest SKU set in the VM scale set model. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_UpdateInstances_MaximumSet_Gen.json | -| [virtualMachineScaleSetsUpdateSample.ts][virtualmachinescalesetsupdatesample] | Update a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Update_MaximumSet_Gen.json | -| [virtualMachineSizesListSample.ts][virtualmachinesizeslistsample] | This API is deprecated. Use [Resources Skus](https://docs.microsoft.com/rest/api/compute/resourceskus/list) x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/computeRPCommonExamples/VirtualMachineSizes_List_MaximumSet_Gen.json | -| [virtualMachinesAssessPatchesSample.ts][virtualmachinesassesspatchessample] | Assess patches on the VM. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_AssessPatches.json | -| [virtualMachinesCaptureSample.ts][virtualmachinescapturesample] | Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Capture_MaximumSet_Gen.json | -| [virtualMachinesConvertToManagedDisksSample.ts][virtualmachinesconverttomanageddiskssample] | Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop-deallocated before invoking this operation. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_ConvertToManagedDisks_MaximumSet_Gen.json | -| [virtualMachinesCreateOrUpdateSample.ts][virtualmachinescreateorupdatesample] | The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithPatchSettingAssessmentModeOfImageDefault.json | -| [virtualMachinesDeallocateSample.ts][virtualmachinesdeallocatesample] | Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Deallocate_MaximumSet_Gen.json | -| [virtualMachinesDeleteSample.ts][virtualmachinesdeletesample] | The operation to delete a virtual machine. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Delete_Force.json | -| [virtualMachinesGeneralizeSample.ts][virtualmachinesgeneralizesample] | Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual machine before performing this operation.
For Windows, please refer to [Create a managed image of a generalized VM in Azure](https://docs.microsoft.com/azure/virtual-machines/windows/capture-image-resource).
For Linux, please refer to [How to create an image of a virtual machine or VHD](https://docs.microsoft.com/azure/virtual-machines/linux/capture-image). x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Generalize.json | -| [virtualMachinesGetSample.ts][virtualmachinesgetsample] | Retrieves information about the model view or the instance view of a virtual machine. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Get.json | -| [virtualMachinesInstallPatchesSample.ts][virtualmachinesinstallpatchessample] | Installs patches on the VM. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_InstallPatches.json | -| [virtualMachinesInstanceViewSample.ts][virtualmachinesinstanceviewsample] | Retrieves information about the run-time state of a virtual machine. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Get_InstanceView.json | -| [virtualMachinesListAllSample.ts][virtualmachineslistallsample] | Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_ListAll_MaximumSet_Gen.json | -| [virtualMachinesListAvailableSizesSample.ts][virtualmachineslistavailablesizessample] | Lists all available virtual machine sizes to which the specified virtual machine can be resized. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_ListAvailableVmSizes.json | -| [virtualMachinesListByLocationSample.ts][virtualmachineslistbylocationsample] | Gets all the virtual machines under the specified subscription for the specified location. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_ListBySubscription_ByLocation.json | -| [virtualMachinesListSample.ts][virtualmachineslistsample] | Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_List_MaximumSet_Gen.json | -| [virtualMachinesPerformMaintenanceSample.ts][virtualmachinesperformmaintenancesample] | The operation to perform maintenance on a virtual machine. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_PerformMaintenance_MaximumSet_Gen.json | -| [virtualMachinesPowerOffSample.ts][virtualmachinespoweroffsample] | The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_PowerOff_MaximumSet_Gen.json | -| [virtualMachinesReapplySample.ts][virtualmachinesreapplysample] | The operation to reapply a virtual machine's state. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Reapply.json | -| [virtualMachinesRedeploySample.ts][virtualmachinesredeploysample] | Shuts down the virtual machine, moves it to a new node, and powers it back on. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Redeploy_MaximumSet_Gen.json | -| [virtualMachinesReimageSample.ts][virtualmachinesreimagesample] | Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. NOTE: The retaining of old OS disk depends on the value of deleteOption of OS disk. If deleteOption is detach, the old OS disk will be preserved after reimage. If deleteOption is delete, the old OS disk will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Reimage_NonEphemeralVMs.json | -| [virtualMachinesRestartSample.ts][virtualmachinesrestartsample] | The operation to restart a virtual machine. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Restart_MaximumSet_Gen.json | -| [virtualMachinesRetrieveBootDiagnosticsDataSample.ts][virtualmachinesretrievebootdiagnosticsdatasample] | The operation to retrieve SAS URIs for a virtual machine's boot diagnostic logs. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_RetrieveBootDiagnosticsData.json | -| [virtualMachinesRunCommandSample.ts][virtualmachinesruncommandsample] | Run command on the VM. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineRunCommand.json | -| [virtualMachinesSimulateEvictionSample.ts][virtualmachinessimulateevictionsample] | The operation to simulate the eviction of spot virtual machine. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_SimulateEviction.json | -| [virtualMachinesStartSample.ts][virtualmachinesstartsample] | The operation to start a virtual machine. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Start_MaximumSet_Gen.json | -| [virtualMachinesUpdateSample.ts][virtualmachinesupdatesample] | The operation to update a virtual machine. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Update_DetachDataDiskUsingToBeDetachedProperty.json | +| [sshPublicKeysCreateSample.ts][sshpublickeyscreatesample] | Creates a new SSH public key resource. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_Create.json | +| [sshPublicKeysDeleteSample.ts][sshpublickeysdeletesample] | Delete an SSH public key. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_Delete_MaximumSet_Gen.json | +| [sshPublicKeysGenerateKeyPairSample.ts][sshpublickeysgeneratekeypairsample] | Generates and returns a public/private key pair and populates the SSH public key resource with the public key. The length of the key will be 3072 bits. This operation can only be performed once per SSH public key resource. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_GenerateKeyPair.json | +| [sshPublicKeysGetSample.ts][sshpublickeysgetsample] | Retrieves information about an SSH public key. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_Get.json | +| [sshPublicKeysListByResourceGroupSample.ts][sshpublickeyslistbyresourcegroupsample] | Lists all of the SSH public keys in the specified resource group. Use the nextLink property in the response to get the next page of SSH public keys. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_ListByResourceGroup_MaximumSet_Gen.json | +| [sshPublicKeysListBySubscriptionSample.ts][sshpublickeyslistbysubscriptionsample] | Lists all of the SSH public keys in the subscription. Use the nextLink property in the response to get the next page of SSH public keys. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_ListBySubscription_MaximumSet_Gen.json | +| [sshPublicKeysUpdateSample.ts][sshpublickeysupdatesample] | Updates a new SSH public key resource. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_Update_MaximumSet_Gen.json | +| [usageListSample.ts][usagelistsample] | Gets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/computeRPCommonExamples/Usage_List_MaximumSet_Gen.json | +| [virtualMachineExtensionImagesGetSample.ts][virtualmachineextensionimagesgetsample] | Gets a virtual machine extension image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_Get_MaximumSet_Gen.json | +| [virtualMachineExtensionImagesListTypesSample.ts][virtualmachineextensionimageslisttypessample] | Gets a list of virtual machine extension image types. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListTypes_MaximumSet_Gen.json | +| [virtualMachineExtensionImagesListVersionsSample.ts][virtualmachineextensionimageslistversionssample] | Gets a list of virtual machine extension image versions. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListVersions_MaximumSet_Gen.json | +| [virtualMachineExtensionsCreateOrUpdateSample.ts][virtualmachineextensionscreateorupdatesample] | The operation to create or update the extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachineExtension_CreateOrUpdate_MaximumSet_Gen.json | +| [virtualMachineExtensionsDeleteSample.ts][virtualmachineextensionsdeletesample] | The operation to delete the extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachineExtension_Delete_MaximumSet_Gen.json | +| [virtualMachineExtensionsGetSample.ts][virtualmachineextensionsgetsample] | The operation to get the extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachineExtension_Get_MaximumSet_Gen.json | +| [virtualMachineExtensionsListSample.ts][virtualmachineextensionslistsample] | The operation to get all extensions of a Virtual Machine. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachineExtension_List_MaximumSet_Gen.json | +| [virtualMachineExtensionsUpdateSample.ts][virtualmachineextensionsupdatesample] | The operation to update the extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachineExtension_Update.json | +| [virtualMachineImagesEdgeZoneGetSample.ts][virtualmachineimagesedgezonegetsample] | Gets a virtual machine image in an edge zone. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_Get_MaximumSet_Gen.json | +| [virtualMachineImagesEdgeZoneListOffersSample.ts][virtualmachineimagesedgezonelistofferssample] | Gets a list of virtual machine image offers for the specified location, edge zone and publisher. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListOffers_MaximumSet_Gen.json | +| [virtualMachineImagesEdgeZoneListPublishersSample.ts][virtualmachineimagesedgezonelistpublisherssample] | Gets a list of virtual machine image publishers for the specified Azure location and edge zone. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListPublishers_MaximumSet_Gen.json | +| [virtualMachineImagesEdgeZoneListSample.ts][virtualmachineimagesedgezonelistsample] | Gets a list of all virtual machine image versions for the specified location, edge zone, publisher, offer, and SKU. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_List_MaximumSet_Gen.json | +| [virtualMachineImagesEdgeZoneListSkusSample.ts][virtualmachineimagesedgezonelistskussample] | Gets a list of virtual machine image SKUs for the specified location, edge zone, publisher, and offer. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListSkus_MaximumSet_Gen.json | +| [virtualMachineImagesGetSample.ts][virtualmachineimagesgetsample] | Gets a virtual machine image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImage_Get_MaximumSet_Gen.json | +| [virtualMachineImagesListByEdgeZoneSample.ts][virtualmachineimageslistbyedgezonesample] | Gets a list of all virtual machine image versions for the specified edge zone x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListByEdgeZone_MaximumSet_Gen.json | +| [virtualMachineImagesListOffersSample.ts][virtualmachineimageslistofferssample] | Gets a list of virtual machine image offers for the specified location and publisher. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImage_ListOffers_MaximumSet_Gen.json | +| [virtualMachineImagesListPublishersSample.ts][virtualmachineimageslistpublisherssample] | Gets a list of virtual machine image publishers for the specified Azure location. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImage_ListPublishers_MaximumSet_Gen.json | +| [virtualMachineImagesListSample.ts][virtualmachineimageslistsample] | Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImage_List_MaximumSet_Gen.json | +| [virtualMachineImagesListSkusSample.ts][virtualmachineimageslistskussample] | Gets a list of virtual machine image SKUs for the specified location, publisher, and offer. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImage_ListSkus_MaximumSet_Gen.json | +| [virtualMachineRunCommandsCreateOrUpdateSample.ts][virtualmachineruncommandscreateorupdatesample] | The operation to create or update the run command. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineRunCommand_CreateOrUpdate.json | +| [virtualMachineRunCommandsDeleteSample.ts][virtualmachineruncommandsdeletesample] | The operation to delete the run command. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineRunCommand_Delete.json | +| [virtualMachineRunCommandsGetByVirtualMachineSample.ts][virtualmachineruncommandsgetbyvirtualmachinesample] | The operation to get the run command. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineRunCommand_Get.json | +| [virtualMachineRunCommandsGetSample.ts][virtualmachineruncommandsgetsample] | Gets specific run command for a subscription in a location. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/RunCommand_Get.json | +| [virtualMachineRunCommandsListByVirtualMachineSample.ts][virtualmachineruncommandslistbyvirtualmachinesample] | The operation to get all run commands of a Virtual Machine. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineRunCommand_List.json | +| [virtualMachineRunCommandsListSample.ts][virtualmachineruncommandslistsample] | Lists all available run commands for a subscription in a location. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/RunCommand_List.json | +| [virtualMachineRunCommandsUpdateSample.ts][virtualmachineruncommandsupdatesample] | The operation to update the run command. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineRunCommand_Update.json | +| [virtualMachineScaleSetExtensionsCreateOrUpdateSample.ts][virtualmachinescalesetextensionscreateorupdatesample] | The operation to create or update an extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_CreateOrUpdate_MaximumSet_Gen.json | +| [virtualMachineScaleSetExtensionsDeleteSample.ts][virtualmachinescalesetextensionsdeletesample] | The operation to delete the extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Delete_MaximumSet_Gen.json | +| [virtualMachineScaleSetExtensionsGetSample.ts][virtualmachinescalesetextensionsgetsample] | The operation to get the extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Get_MaximumSet_Gen.json | +| [virtualMachineScaleSetExtensionsListSample.ts][virtualmachinescalesetextensionslistsample] | Gets a list of all extensions in a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_List_MaximumSet_Gen.json | +| [virtualMachineScaleSetExtensionsUpdateSample.ts][virtualmachinescalesetextensionsupdatesample] | The operation to update an extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Update_MaximumSet_Gen.json | +| [virtualMachineScaleSetRollingUpgradesCancelSample.ts][virtualmachinescalesetrollingupgradescancelsample] | Cancels the current virtual machine scale set rolling upgrade. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_Cancel_MaximumSet_Gen.json | +| [virtualMachineScaleSetRollingUpgradesGetLatestSample.ts][virtualmachinescalesetrollingupgradesgetlatestsample] | Gets the status of the latest virtual machine scale set rolling upgrade. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_GetLatest_MaximumSet_Gen.json | +| [virtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSample.ts][virtualmachinescalesetrollingupgradesstartextensionupgradesample] | Starts a rolling upgrade to move all extensions for all virtual machine scale set instances to the latest available extension version. Instances which are already running the latest extension versions are not affected. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_RollingUpgrade.json | +| [virtualMachineScaleSetRollingUpgradesStartOSUpgradeSample.ts][virtualmachinescalesetrollingupgradesstartosupgradesample] | Starts a rolling upgrade to move all virtual machine scale set instances to the latest available Platform Image OS version. Instances which are already running the latest available OS version are not affected. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_StartOSUpgrade_MaximumSet_Gen.json | +| [virtualMachineScaleSetVMExtensionsCreateOrUpdateSample.ts][virtualmachinescalesetvmextensionscreateorupdatesample] | The operation to create or update the VMSS VM extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Create.json | +| [virtualMachineScaleSetVMExtensionsDeleteSample.ts][virtualmachinescalesetvmextensionsdeletesample] | The operation to delete the VMSS VM extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Delete.json | +| [virtualMachineScaleSetVMExtensionsGetSample.ts][virtualmachinescalesetvmextensionsgetsample] | The operation to get the VMSS VM extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Get.json | +| [virtualMachineScaleSetVMExtensionsListSample.ts][virtualmachinescalesetvmextensionslistsample] | The operation to get all extensions of an instance in Virtual Machine Scaleset. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_List.json | +| [virtualMachineScaleSetVMExtensionsUpdateSample.ts][virtualmachinescalesetvmextensionsupdatesample] | The operation to update the VMSS VM extension. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Update.json | +| [virtualMachineScaleSetVMRunCommandsCreateOrUpdateSample.ts][virtualmachinescalesetvmruncommandscreateorupdatesample] | The operation to create or update the VMSS VM run command. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_CreateOrUpdate.json | +| [virtualMachineScaleSetVMRunCommandsDeleteSample.ts][virtualmachinescalesetvmruncommandsdeletesample] | The operation to delete the VMSS VM run command. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Delete.json | +| [virtualMachineScaleSetVMRunCommandsGetSample.ts][virtualmachinescalesetvmruncommandsgetsample] | The operation to get the VMSS VM run command. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Get.json | +| [virtualMachineScaleSetVMRunCommandsListSample.ts][virtualmachinescalesetvmruncommandslistsample] | The operation to get all run commands of an instance in Virtual Machine Scaleset. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_List.json | +| [virtualMachineScaleSetVMRunCommandsUpdateSample.ts][virtualmachinescalesetvmruncommandsupdatesample] | The operation to update the VMSS VM run command. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Update.json | +| [virtualMachineScaleSetVMSDeallocateSample.ts][virtualmachinescalesetvmsdeallocatesample] | Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the compute resources it uses. You are not billed for the compute resources of this virtual machine once it is deallocated. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Deallocate_MaximumSet_Gen.json | +| [virtualMachineScaleSetVMSDeleteSample.ts][virtualmachinescalesetvmsdeletesample] | Deletes a virtual machine from a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Delete_Force.json | +| [virtualMachineScaleSetVMSGetInstanceViewSample.ts][virtualmachinescalesetvmsgetinstanceviewsample] | Gets the status of a virtual machine from a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_InstanceViewAutoPlacedOnDedicatedHostGroup.json | +| [virtualMachineScaleSetVMSGetSample.ts][virtualmachinescalesetvmsgetsample] | Gets a virtual machine from a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithUserData.json | +| [virtualMachineScaleSetVMSListSample.ts][virtualmachinescalesetvmslistsample] | Gets a list of all virtual machines in a VM scale sets. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_List_MaximumSet_Gen.json | +| [virtualMachineScaleSetVMSPerformMaintenanceSample.ts][virtualmachinescalesetvmsperformmaintenancesample] | Performs maintenance on a virtual machine in a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PerformMaintenance_MaximumSet_Gen.json | +| [virtualMachineScaleSetVMSPowerOffSample.ts][virtualmachinescalesetvmspoweroffsample] | Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PowerOff_MaximumSet_Gen.json | +| [virtualMachineScaleSetVMSRedeploySample.ts][virtualmachinescalesetvmsredeploysample] | Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Redeploy_MaximumSet_Gen.json | +| [virtualMachineScaleSetVMSReimageAllSample.ts][virtualmachinescalesetvmsreimageallsample] | Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This operation is only supported for managed disks. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_ReimageAll_MaximumSet_Gen.json | +| [virtualMachineScaleSetVMSReimageSample.ts][virtualmachinescalesetvmsreimagesample] | Reimages (upgrade the operating system) a specific virtual machine in a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Reimage_MaximumSet_Gen.json | +| [virtualMachineScaleSetVMSRestartSample.ts][virtualmachinescalesetvmsrestartsample] | Restarts a virtual machine in a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Restart_MaximumSet_Gen.json | +| [virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.ts][virtualmachinescalesetvmsretrievebootdiagnosticsdatasample] | The operation to retrieve SAS URIs of boot diagnostic logs for a virtual machine in a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_RetrieveBootDiagnosticsData.json | +| [virtualMachineScaleSetVMSRunCommandSample.ts][virtualmachinescalesetvmsruncommandsample] | Run command on a virtual machine in a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand.json | +| [virtualMachineScaleSetVMSSimulateEvictionSample.ts][virtualmachinescalesetvmssimulateevictionsample] | The operation to simulate the eviction of spot virtual machine in a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_SimulateEviction.json | +| [virtualMachineScaleSetVMSStartSample.ts][virtualmachinescalesetvmsstartsample] | Starts a virtual machine in a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Start_MaximumSet_Gen.json | +| [virtualMachineScaleSetVMSUpdateSample.ts][virtualmachinescalesetvmsupdatesample] | Updates a virtual machine of a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Update_MaximumSet_Gen.json | +| [virtualMachineScaleSetsConvertToSinglePlacementGroupSample.ts][virtualmachinescalesetsconverttosingleplacementgroupsample] | Converts SinglePlacementGroup property to false for a existing virtual machine scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ConvertToSinglePlacementGroup_MaximumSet_Gen.json | +| [virtualMachineScaleSetsCreateOrUpdateSample.ts][virtualmachinescalesetscreateorupdatesample] | Create or update a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithExtensionsSuppressFailuresEnabled.json | +| [virtualMachineScaleSetsDeallocateSample.ts][virtualmachinescalesetsdeallocatesample] | Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual machine scale set deallocates. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Deallocate_MaximumSet_Gen.json | +| [virtualMachineScaleSetsDeleteInstancesSample.ts][virtualmachinescalesetsdeleteinstancessample] | Deletes virtual machines in a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_DeleteInstances_MaximumSet_Gen.json | +| [virtualMachineScaleSetsDeleteSample.ts][virtualmachinescalesetsdeletesample] | Deletes a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Delete_Force.json | +| [virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSample.ts][virtualmachinescalesetsforcerecoveryservicefabricplatformupdatedomainwalksample] | Manual platform update domain walk to update virtual machines in a service fabric virtual machine scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ForceRecoveryServiceFabricPlatformUpdateDomainWalk_MaximumSet_Gen.json | +| [virtualMachineScaleSetsGetInstanceViewSample.ts][virtualmachinescalesetsgetinstanceviewsample] | Gets the status of a VM scale set instance. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetInstanceView_MaximumSet_Gen.json | +| [virtualMachineScaleSetsGetOSUpgradeHistorySample.ts][virtualmachinescalesetsgetosupgradehistorysample] | Gets list of OS upgrades on a VM scale set instance. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetOSUpgradeHistory_MaximumSet_Gen.json | +| [virtualMachineScaleSetsGetSample.ts][virtualmachinescalesetsgetsample] | Display information about a virtual machine scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get_WithDiskControllerType.json | +| [virtualMachineScaleSetsListAllSample.ts][virtualmachinescalesetslistallsample] | Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this till nextLink is null to fetch all the VM Scale Sets. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListAll_MaximumSet_Gen.json | +| [virtualMachineScaleSetsListByLocationSample.ts][virtualmachinescalesetslistbylocationsample] | Gets all the VM scale sets under the specified subscription for the specified location. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListBySubscription_ByLocation.json | +| [virtualMachineScaleSetsListSample.ts][virtualmachinescalesetslistsample] | Gets a list of all VM scale sets under a resource group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_List_MaximumSet_Gen.json | +| [virtualMachineScaleSetsListSkusSample.ts][virtualmachinescalesetslistskussample] | Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListSkus_MaximumSet_Gen.json | +| [virtualMachineScaleSetsPerformMaintenanceSample.ts][virtualmachinescalesetsperformmaintenancesample] | Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices for more details: https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PerformMaintenance_MaximumSet_Gen.json | +| [virtualMachineScaleSetsPowerOffSample.ts][virtualmachinescalesetspoweroffsample] | Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PowerOff_MaximumSet_Gen.json | +| [virtualMachineScaleSetsReapplySample.ts][virtualmachinescalesetsreapplysample] | Reapplies the Virtual Machine Scale Set Virtual Machine Profile to the Virtual Machine Instances x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Reapply_MaximumSet_Gen.json | +| [virtualMachineScaleSetsRedeploySample.ts][virtualmachinescalesetsredeploysample] | Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and powers them back on. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Redeploy_MaximumSet_Gen.json | +| [virtualMachineScaleSetsReimageAllSample.ts][virtualmachinescalesetsreimageallsample] | Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation is only supported for managed disks. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ReimageAll_MaximumSet_Gen.json | +| [virtualMachineScaleSetsReimageSample.ts][virtualmachinescalesetsreimagesample] | Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Reimage_MaximumSet_Gen.json | +| [virtualMachineScaleSetsRestartSample.ts][virtualmachinescalesetsrestartsample] | Restarts one or more virtual machines in a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Restart_MaximumSet_Gen.json | +| [virtualMachineScaleSetsSetOrchestrationServiceStateSample.ts][virtualmachinescalesetssetorchestrationservicestatesample] | Changes ServiceState property for a given service x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_SetOrchestrationServiceState_MaximumSet_Gen.json | +| [virtualMachineScaleSetsStartSample.ts][virtualmachinescalesetsstartsample] | Starts one or more virtual machines in a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Start_MaximumSet_Gen.json | +| [virtualMachineScaleSetsUpdateInstancesSample.ts][virtualmachinescalesetsupdateinstancessample] | Upgrades one or more virtual machines to the latest SKU set in the VM scale set model. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_UpdateInstances_MaximumSet_Gen.json | +| [virtualMachineScaleSetsUpdateSample.ts][virtualmachinescalesetsupdatesample] | Update a VM scale set. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Update_MaximumSet_Gen.json | +| [virtualMachineSizesListSample.ts][virtualmachinesizeslistsample] | This API is deprecated. Use [Resources Skus](https://docs.microsoft.com/rest/api/compute/resourceskus/list) x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/computeRPCommonExamples/VirtualMachineSizes_List_MaximumSet_Gen.json | +| [virtualMachinesAssessPatchesSample.ts][virtualmachinesassesspatchessample] | Assess patches on the VM. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_AssessPatches.json | +| [virtualMachinesCaptureSample.ts][virtualmachinescapturesample] | Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Capture_MaximumSet_Gen.json | +| [virtualMachinesConvertToManagedDisksSample.ts][virtualmachinesconverttomanageddiskssample] | Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop-deallocated before invoking this operation. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_ConvertToManagedDisks_MaximumSet_Gen.json | +| [virtualMachinesCreateOrUpdateSample.ts][virtualmachinescreateorupdatesample] | The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithPatchSettingAssessmentModeOfImageDefault.json | +| [virtualMachinesDeallocateSample.ts][virtualmachinesdeallocatesample] | Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Deallocate_MaximumSet_Gen.json | +| [virtualMachinesDeleteSample.ts][virtualmachinesdeletesample] | The operation to delete a virtual machine. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Delete_Force.json | +| [virtualMachinesGeneralizeSample.ts][virtualmachinesgeneralizesample] | Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual machine before performing this operation. For Windows, please refer to [Create a managed image of a generalized VM in Azure](https://docs.microsoft.com/azure/virtual-machines/windows/capture-image-resource). For Linux, please refer to [How to create an image of a virtual machine or VHD](https://docs.microsoft.com/azure/virtual-machines/linux/capture-image). x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Generalize.json | +| [virtualMachinesGetSample.ts][virtualmachinesgetsample] | Retrieves information about the model view or the instance view of a virtual machine. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Get.json | +| [virtualMachinesInstallPatchesSample.ts][virtualmachinesinstallpatchessample] | Installs patches on the VM. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_InstallPatches.json | +| [virtualMachinesInstanceViewSample.ts][virtualmachinesinstanceviewsample] | Retrieves information about the run-time state of a virtual machine. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Get_InstanceView.json | +| [virtualMachinesListAllSample.ts][virtualmachineslistallsample] | Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_ListAll_MaximumSet_Gen.json | +| [virtualMachinesListAvailableSizesSample.ts][virtualmachineslistavailablesizessample] | Lists all available virtual machine sizes to which the specified virtual machine can be resized. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_ListAvailableVmSizes.json | +| [virtualMachinesListByLocationSample.ts][virtualmachineslistbylocationsample] | Gets all the virtual machines under the specified subscription for the specified location. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_ListBySubscription_ByLocation.json | +| [virtualMachinesListSample.ts][virtualmachineslistsample] | Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_List_MaximumSet_Gen.json | +| [virtualMachinesPerformMaintenanceSample.ts][virtualmachinesperformmaintenancesample] | The operation to perform maintenance on a virtual machine. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_PerformMaintenance_MaximumSet_Gen.json | +| [virtualMachinesPowerOffSample.ts][virtualmachinespoweroffsample] | The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_PowerOff_MaximumSet_Gen.json | +| [virtualMachinesReapplySample.ts][virtualmachinesreapplysample] | The operation to reapply a virtual machine's state. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Reapply.json | +| [virtualMachinesRedeploySample.ts][virtualmachinesredeploysample] | Shuts down the virtual machine, moves it to a new node, and powers it back on. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Redeploy_MaximumSet_Gen.json | +| [virtualMachinesReimageSample.ts][virtualmachinesreimagesample] | Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. NOTE: The retaining of old OS disk depends on the value of deleteOption of OS disk. If deleteOption is detach, the old OS disk will be preserved after reimage. If deleteOption is delete, the old OS disk will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Reimage_NonEphemeralVMs.json | +| [virtualMachinesRestartSample.ts][virtualmachinesrestartsample] | The operation to restart a virtual machine. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Restart_MaximumSet_Gen.json | +| [virtualMachinesRetrieveBootDiagnosticsDataSample.ts][virtualmachinesretrievebootdiagnosticsdatasample] | The operation to retrieve SAS URIs for a virtual machine's boot diagnostic logs. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_RetrieveBootDiagnosticsData.json | +| [virtualMachinesRunCommandSample.ts][virtualmachinesruncommandsample] | Run command on the VM. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineRunCommand.json | +| [virtualMachinesSimulateEvictionSample.ts][virtualmachinessimulateevictionsample] | The operation to simulate the eviction of spot virtual machine. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_SimulateEviction.json | +| [virtualMachinesStartSample.ts][virtualmachinesstartsample] | The operation to start a virtual machine. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Start_MaximumSet_Gen.json | +| [virtualMachinesUpdateSample.ts][virtualmachinesupdatesample] | The operation to update a virtual machine. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Update_DetachDataDiskUsingToBeDetachedProperty.json | ## Prerequisites @@ -334,285 +336,287 @@ npx cross-env COMPUTE_SUBSCRIPTION_ID="" COMPUTE_RESOUR Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. -[availabilitysetscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/availabilitySetsCreateOrUpdateSample.ts -[availabilitysetsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/availabilitySetsDeleteSample.ts -[availabilitysetsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/availabilitySetsGetSample.ts -[availabilitysetslistavailablesizessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/availabilitySetsListAvailableSizesSample.ts -[availabilitysetslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/availabilitySetsListBySubscriptionSample.ts -[availabilitysetslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/availabilitySetsListSample.ts -[availabilitysetsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/availabilitySetsUpdateSample.ts -[capacityreservationgroupscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/capacityReservationGroupsCreateOrUpdateSample.ts -[capacityreservationgroupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/capacityReservationGroupsDeleteSample.ts -[capacityreservationgroupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/capacityReservationGroupsGetSample.ts -[capacityreservationgroupslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/capacityReservationGroupsListByResourceGroupSample.ts -[capacityreservationgroupslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/capacityReservationGroupsListBySubscriptionSample.ts -[capacityreservationgroupsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/capacityReservationGroupsUpdateSample.ts -[capacityreservationscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/capacityReservationsCreateOrUpdateSample.ts -[capacityreservationsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/capacityReservationsDeleteSample.ts -[capacityreservationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/capacityReservationsGetSample.ts -[capacityreservationslistbycapacityreservationgroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/capacityReservationsListByCapacityReservationGroupSample.ts -[capacityreservationsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/capacityReservationsUpdateSample.ts -[cloudserviceoperatingsystemsgetosfamilysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServiceOperatingSystemsGetOSFamilySample.ts -[cloudserviceoperatingsystemsgetosversionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServiceOperatingSystemsGetOSVersionSample.ts -[cloudserviceoperatingsystemslistosfamiliessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServiceOperatingSystemsListOSFamiliesSample.ts -[cloudserviceoperatingsystemslistosversionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServiceOperatingSystemsListOSVersionsSample.ts -[cloudserviceroleinstancesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServiceRoleInstancesDeleteSample.ts -[cloudserviceroleinstancesgetinstanceviewsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServiceRoleInstancesGetInstanceViewSample.ts -[cloudserviceroleinstancesgetremotedesktopfilesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServiceRoleInstancesGetRemoteDesktopFileSample.ts -[cloudserviceroleinstancesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServiceRoleInstancesGetSample.ts -[cloudserviceroleinstanceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServiceRoleInstancesListSample.ts -[cloudserviceroleinstancesrebuildsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServiceRoleInstancesRebuildSample.ts -[cloudserviceroleinstancesreimagesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServiceRoleInstancesReimageSample.ts -[cloudserviceroleinstancesrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServiceRoleInstancesRestartSample.ts -[cloudservicerolesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServiceRolesGetSample.ts -[cloudserviceroleslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServiceRolesListSample.ts -[cloudservicescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesCreateOrUpdateSample.ts -[cloudservicesdeleteinstancessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesDeleteInstancesSample.ts -[cloudservicesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesDeleteSample.ts -[cloudservicesgetinstanceviewsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesGetInstanceViewSample.ts -[cloudservicesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesGetSample.ts -[cloudserviceslistallsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesListAllSample.ts -[cloudserviceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesListSample.ts -[cloudservicespoweroffsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesPowerOffSample.ts -[cloudservicesrebuildsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesRebuildSample.ts -[cloudservicesreimagesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesReimageSample.ts -[cloudservicesrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesRestartSample.ts -[cloudservicesstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesStartSample.ts -[cloudservicesupdatedomaingetupdatedomainsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesUpdateDomainGetUpdateDomainSample.ts -[cloudservicesupdatedomainlistupdatedomainssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesUpdateDomainListUpdateDomainsSample.ts -[cloudservicesupdatedomainwalkupdatedomainsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesUpdateDomainWalkUpdateDomainSample.ts -[cloudservicesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesUpdateSample.ts -[communitygalleriesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/communityGalleriesGetSample.ts -[communitygalleryimageversionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/communityGalleryImageVersionsGetSample.ts -[communitygalleryimageversionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/communityGalleryImageVersionsListSample.ts -[communitygalleryimagesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/communityGalleryImagesGetSample.ts -[communitygalleryimageslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/communityGalleryImagesListSample.ts -[dedicatedhostgroupscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostGroupsCreateOrUpdateSample.ts -[dedicatedhostgroupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostGroupsDeleteSample.ts -[dedicatedhostgroupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostGroupsGetSample.ts -[dedicatedhostgroupslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostGroupsListByResourceGroupSample.ts -[dedicatedhostgroupslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostGroupsListBySubscriptionSample.ts -[dedicatedhostgroupsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostGroupsUpdateSample.ts -[dedicatedhostscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostsCreateOrUpdateSample.ts -[dedicatedhostsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostsDeleteSample.ts -[dedicatedhostsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostsGetSample.ts -[dedicatedhostslistbyhostgroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostsListByHostGroupSample.ts -[dedicatedhostsrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostsRestartSample.ts -[dedicatedhostsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostsUpdateSample.ts -[diskaccessescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/diskAccessesCreateOrUpdateSample.ts -[diskaccessesdeleteaprivateendpointconnectionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/diskAccessesDeleteAPrivateEndpointConnectionSample.ts -[diskaccessesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/diskAccessesDeleteSample.ts -[diskaccessesgetaprivateendpointconnectionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/diskAccessesGetAPrivateEndpointConnectionSample.ts -[diskaccessesgetprivatelinkresourcessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/diskAccessesGetPrivateLinkResourcesSample.ts -[diskaccessesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/diskAccessesGetSample.ts -[diskaccesseslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/diskAccessesListByResourceGroupSample.ts -[diskaccesseslistprivateendpointconnectionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/diskAccessesListPrivateEndpointConnectionsSample.ts -[diskaccesseslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/diskAccessesListSample.ts -[diskaccessesupdateaprivateendpointconnectionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/diskAccessesUpdateAPrivateEndpointConnectionSample.ts -[diskaccessesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/diskAccessesUpdateSample.ts -[diskencryptionsetscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/diskEncryptionSetsCreateOrUpdateSample.ts -[diskencryptionsetsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/diskEncryptionSetsDeleteSample.ts -[diskencryptionsetsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/diskEncryptionSetsGetSample.ts -[diskencryptionsetslistassociatedresourcessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/diskEncryptionSetsListAssociatedResourcesSample.ts -[diskencryptionsetslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/diskEncryptionSetsListByResourceGroupSample.ts -[diskencryptionsetslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/diskEncryptionSetsListSample.ts -[diskencryptionsetsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/diskEncryptionSetsUpdateSample.ts -[diskrestorepointgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/diskRestorePointGetSample.ts -[diskrestorepointgrantaccesssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/diskRestorePointGrantAccessSample.ts -[diskrestorepointlistbyrestorepointsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/diskRestorePointListByRestorePointSample.ts -[diskrestorepointrevokeaccesssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/diskRestorePointRevokeAccessSample.ts -[diskscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/disksCreateOrUpdateSample.ts -[disksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/disksDeleteSample.ts -[disksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/disksGetSample.ts -[disksgrantaccesssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/disksGrantAccessSample.ts -[diskslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/disksListByResourceGroupSample.ts -[diskslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/disksListSample.ts -[disksrevokeaccesssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/disksRevokeAccessSample.ts -[disksupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/disksUpdateSample.ts -[galleriescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/galleriesCreateOrUpdateSample.ts -[galleriesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/galleriesDeleteSample.ts -[galleriesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/galleriesGetSample.ts -[gallerieslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/galleriesListByResourceGroupSample.ts -[gallerieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/galleriesListSample.ts -[galleriesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/galleriesUpdateSample.ts -[galleryapplicationversionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/galleryApplicationVersionsCreateOrUpdateSample.ts -[galleryapplicationversionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/galleryApplicationVersionsDeleteSample.ts -[galleryapplicationversionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/galleryApplicationVersionsGetSample.ts -[galleryapplicationversionslistbygalleryapplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/galleryApplicationVersionsListByGalleryApplicationSample.ts -[galleryapplicationversionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/galleryApplicationVersionsUpdateSample.ts -[galleryapplicationscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/galleryApplicationsCreateOrUpdateSample.ts -[galleryapplicationsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/galleryApplicationsDeleteSample.ts -[galleryapplicationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/galleryApplicationsGetSample.ts -[galleryapplicationslistbygallerysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/galleryApplicationsListByGallerySample.ts -[galleryapplicationsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/galleryApplicationsUpdateSample.ts -[galleryimageversionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/galleryImageVersionsCreateOrUpdateSample.ts -[galleryimageversionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/galleryImageVersionsDeleteSample.ts -[galleryimageversionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/galleryImageVersionsGetSample.ts -[galleryimageversionslistbygalleryimagesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/galleryImageVersionsListByGalleryImageSample.ts -[galleryimageversionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/galleryImageVersionsUpdateSample.ts -[galleryimagescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/galleryImagesCreateOrUpdateSample.ts -[galleryimagesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/galleryImagesDeleteSample.ts -[galleryimagesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/galleryImagesGetSample.ts -[galleryimageslistbygallerysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/galleryImagesListByGallerySample.ts -[galleryimagesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/galleryImagesUpdateSample.ts -[gallerysharingprofileupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/gallerySharingProfileUpdateSample.ts -[imagescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/imagesCreateOrUpdateSample.ts -[imagesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/imagesDeleteSample.ts -[imagesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/imagesGetSample.ts -[imageslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/imagesListByResourceGroupSample.ts -[imageslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/imagesListSample.ts -[imagesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/imagesUpdateSample.ts -[loganalyticsexportrequestratebyintervalsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/logAnalyticsExportRequestRateByIntervalSample.ts -[loganalyticsexportthrottledrequestssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/logAnalyticsExportThrottledRequestsSample.ts -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/operationsListSample.ts -[proximityplacementgroupscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/proximityPlacementGroupsCreateOrUpdateSample.ts -[proximityplacementgroupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/proximityPlacementGroupsDeleteSample.ts -[proximityplacementgroupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/proximityPlacementGroupsGetSample.ts -[proximityplacementgroupslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/proximityPlacementGroupsListByResourceGroupSample.ts -[proximityplacementgroupslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/proximityPlacementGroupsListBySubscriptionSample.ts -[proximityplacementgroupsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/proximityPlacementGroupsUpdateSample.ts -[resourceskuslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/resourceSkusListSample.ts -[restorepointcollectionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/restorePointCollectionsCreateOrUpdateSample.ts -[restorepointcollectionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/restorePointCollectionsDeleteSample.ts -[restorepointcollectionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/restorePointCollectionsGetSample.ts -[restorepointcollectionslistallsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/restorePointCollectionsListAllSample.ts -[restorepointcollectionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/restorePointCollectionsListSample.ts -[restorepointcollectionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/restorePointCollectionsUpdateSample.ts -[restorepointscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/restorePointsCreateSample.ts -[restorepointsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/restorePointsDeleteSample.ts -[restorepointsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/restorePointsGetSample.ts -[sharedgalleriesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/sharedGalleriesGetSample.ts -[sharedgallerieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/sharedGalleriesListSample.ts -[sharedgalleryimageversionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/sharedGalleryImageVersionsGetSample.ts -[sharedgalleryimageversionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/sharedGalleryImageVersionsListSample.ts -[sharedgalleryimagesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/sharedGalleryImagesGetSample.ts -[sharedgalleryimageslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/sharedGalleryImagesListSample.ts -[snapshotscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/snapshotsCreateOrUpdateSample.ts -[snapshotsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/snapshotsDeleteSample.ts -[snapshotsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/snapshotsGetSample.ts -[snapshotsgrantaccesssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/snapshotsGrantAccessSample.ts -[snapshotslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/snapshotsListByResourceGroupSample.ts -[snapshotslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/snapshotsListSample.ts -[snapshotsrevokeaccesssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/snapshotsRevokeAccessSample.ts -[snapshotsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/snapshotsUpdateSample.ts -[sshpublickeyscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/sshPublicKeysCreateSample.ts -[sshpublickeysdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/sshPublicKeysDeleteSample.ts -[sshpublickeysgeneratekeypairsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/sshPublicKeysGenerateKeyPairSample.ts -[sshpublickeysgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/sshPublicKeysGetSample.ts -[sshpublickeyslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/sshPublicKeysListByResourceGroupSample.ts -[sshpublickeyslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/sshPublicKeysListBySubscriptionSample.ts -[sshpublickeysupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/sshPublicKeysUpdateSample.ts -[usagelistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/usageListSample.ts -[virtualmachineextensionimagesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineExtensionImagesGetSample.ts -[virtualmachineextensionimageslisttypessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineExtensionImagesListTypesSample.ts -[virtualmachineextensionimageslistversionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineExtensionImagesListVersionsSample.ts -[virtualmachineextensionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineExtensionsCreateOrUpdateSample.ts -[virtualmachineextensionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineExtensionsDeleteSample.ts -[virtualmachineextensionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineExtensionsGetSample.ts -[virtualmachineextensionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineExtensionsListSample.ts -[virtualmachineextensionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineExtensionsUpdateSample.ts -[virtualmachineimagesedgezonegetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineImagesEdgeZoneGetSample.ts -[virtualmachineimagesedgezonelistofferssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineImagesEdgeZoneListOffersSample.ts -[virtualmachineimagesedgezonelistpublisherssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineImagesEdgeZoneListPublishersSample.ts -[virtualmachineimagesedgezonelistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineImagesEdgeZoneListSample.ts -[virtualmachineimagesedgezonelistskussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineImagesEdgeZoneListSkusSample.ts -[virtualmachineimagesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineImagesGetSample.ts -[virtualmachineimageslistbyedgezonesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineImagesListByEdgeZoneSample.ts -[virtualmachineimageslistofferssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineImagesListOffersSample.ts -[virtualmachineimageslistpublisherssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineImagesListPublishersSample.ts -[virtualmachineimageslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineImagesListSample.ts -[virtualmachineimageslistskussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineImagesListSkusSample.ts -[virtualmachineruncommandscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineRunCommandsCreateOrUpdateSample.ts -[virtualmachineruncommandsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineRunCommandsDeleteSample.ts -[virtualmachineruncommandsgetbyvirtualmachinesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineRunCommandsGetByVirtualMachineSample.ts -[virtualmachineruncommandsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineRunCommandsGetSample.ts -[virtualmachineruncommandslistbyvirtualmachinesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineRunCommandsListByVirtualMachineSample.ts -[virtualmachineruncommandslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineRunCommandsListSample.ts -[virtualmachineruncommandsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineRunCommandsUpdateSample.ts -[virtualmachinescalesetextensionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetExtensionsCreateOrUpdateSample.ts -[virtualmachinescalesetextensionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetExtensionsDeleteSample.ts -[virtualmachinescalesetextensionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetExtensionsGetSample.ts -[virtualmachinescalesetextensionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetExtensionsListSample.ts -[virtualmachinescalesetextensionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetExtensionsUpdateSample.ts -[virtualmachinescalesetrollingupgradescancelsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetRollingUpgradesCancelSample.ts -[virtualmachinescalesetrollingupgradesgetlatestsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetRollingUpgradesGetLatestSample.ts -[virtualmachinescalesetrollingupgradesstartextensionupgradesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSample.ts -[virtualmachinescalesetrollingupgradesstartosupgradesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetRollingUpgradesStartOSUpgradeSample.ts -[virtualmachinescalesetvmextensionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMExtensionsCreateOrUpdateSample.ts -[virtualmachinescalesetvmextensionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMExtensionsDeleteSample.ts -[virtualmachinescalesetvmextensionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMExtensionsGetSample.ts -[virtualmachinescalesetvmextensionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMExtensionsListSample.ts -[virtualmachinescalesetvmextensionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMExtensionsUpdateSample.ts -[virtualmachinescalesetvmruncommandscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMRunCommandsCreateOrUpdateSample.ts -[virtualmachinescalesetvmruncommandsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMRunCommandsDeleteSample.ts -[virtualmachinescalesetvmruncommandsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMRunCommandsGetSample.ts -[virtualmachinescalesetvmruncommandslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMRunCommandsListSample.ts -[virtualmachinescalesetvmruncommandsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMRunCommandsUpdateSample.ts -[virtualmachinescalesetvmsdeallocatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSDeallocateSample.ts -[virtualmachinescalesetvmsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSDeleteSample.ts -[virtualmachinescalesetvmsgetinstanceviewsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSGetInstanceViewSample.ts -[virtualmachinescalesetvmsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSGetSample.ts -[virtualmachinescalesetvmslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSListSample.ts -[virtualmachinescalesetvmsperformmaintenancesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSPerformMaintenanceSample.ts -[virtualmachinescalesetvmspoweroffsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSPowerOffSample.ts -[virtualmachinescalesetvmsredeploysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSRedeploySample.ts -[virtualmachinescalesetvmsreimageallsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSReimageAllSample.ts -[virtualmachinescalesetvmsreimagesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSReimageSample.ts -[virtualmachinescalesetvmsrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSRestartSample.ts -[virtualmachinescalesetvmsretrievebootdiagnosticsdatasample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.ts -[virtualmachinescalesetvmsruncommandsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSRunCommandSample.ts -[virtualmachinescalesetvmssimulateevictionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSSimulateEvictionSample.ts -[virtualmachinescalesetvmsstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSStartSample.ts -[virtualmachinescalesetvmsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSUpdateSample.ts -[virtualmachinescalesetsconverttosingleplacementgroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsConvertToSinglePlacementGroupSample.ts -[virtualmachinescalesetscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsCreateOrUpdateSample.ts -[virtualmachinescalesetsdeallocatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsDeallocateSample.ts -[virtualmachinescalesetsdeleteinstancessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsDeleteInstancesSample.ts -[virtualmachinescalesetsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsDeleteSample.ts -[virtualmachinescalesetsforcerecoveryservicefabricplatformupdatedomainwalksample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSample.ts -[virtualmachinescalesetsgetinstanceviewsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsGetInstanceViewSample.ts -[virtualmachinescalesetsgetosupgradehistorysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsGetOSUpgradeHistorySample.ts -[virtualmachinescalesetsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsGetSample.ts -[virtualmachinescalesetslistallsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsListAllSample.ts -[virtualmachinescalesetslistbylocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsListByLocationSample.ts -[virtualmachinescalesetslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsListSample.ts -[virtualmachinescalesetslistskussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsListSkusSample.ts -[virtualmachinescalesetsperformmaintenancesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsPerformMaintenanceSample.ts -[virtualmachinescalesetspoweroffsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsPowerOffSample.ts -[virtualmachinescalesetsredeploysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsRedeploySample.ts -[virtualmachinescalesetsreimageallsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsReimageAllSample.ts -[virtualmachinescalesetsreimagesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsReimageSample.ts -[virtualmachinescalesetsrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsRestartSample.ts -[virtualmachinescalesetssetorchestrationservicestatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsSetOrchestrationServiceStateSample.ts -[virtualmachinescalesetsstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsStartSample.ts -[virtualmachinescalesetsupdateinstancessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsUpdateInstancesSample.ts -[virtualmachinescalesetsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsUpdateSample.ts -[virtualmachinesizeslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineSizesListSample.ts -[virtualmachinesassesspatchessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesAssessPatchesSample.ts -[virtualmachinescapturesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesCaptureSample.ts -[virtualmachinesconverttomanageddiskssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesConvertToManagedDisksSample.ts -[virtualmachinescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesCreateOrUpdateSample.ts -[virtualmachinesdeallocatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesDeallocateSample.ts -[virtualmachinesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesDeleteSample.ts -[virtualmachinesgeneralizesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesGeneralizeSample.ts -[virtualmachinesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesGetSample.ts -[virtualmachinesinstallpatchessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesInstallPatchesSample.ts -[virtualmachinesinstanceviewsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesInstanceViewSample.ts -[virtualmachineslistallsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesListAllSample.ts -[virtualmachineslistavailablesizessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesListAvailableSizesSample.ts -[virtualmachineslistbylocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesListByLocationSample.ts -[virtualmachineslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesListSample.ts -[virtualmachinesperformmaintenancesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesPerformMaintenanceSample.ts -[virtualmachinespoweroffsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesPowerOffSample.ts -[virtualmachinesreapplysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesReapplySample.ts -[virtualmachinesredeploysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesRedeploySample.ts -[virtualmachinesreimagesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesReimageSample.ts -[virtualmachinesrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesRestartSample.ts -[virtualmachinesretrievebootdiagnosticsdatasample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesRetrieveBootDiagnosticsDataSample.ts -[virtualmachinesruncommandsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesRunCommandSample.ts -[virtualmachinessimulateevictionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesSimulateEvictionSample.ts -[virtualmachinesstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesStartSample.ts -[virtualmachinesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesUpdateSample.ts +[availabilitysetscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsCreateOrUpdateSample.ts +[availabilitysetsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsDeleteSample.ts +[availabilitysetsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsGetSample.ts +[availabilitysetslistavailablesizessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsListAvailableSizesSample.ts +[availabilitysetslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsListBySubscriptionSample.ts +[availabilitysetslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsListSample.ts +[availabilitysetsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsUpdateSample.ts +[capacityreservationgroupscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsCreateOrUpdateSample.ts +[capacityreservationgroupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsDeleteSample.ts +[capacityreservationgroupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsGetSample.ts +[capacityreservationgroupslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsListByResourceGroupSample.ts +[capacityreservationgroupslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsListBySubscriptionSample.ts +[capacityreservationgroupsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsUpdateSample.ts +[capacityreservationscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsCreateOrUpdateSample.ts +[capacityreservationsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsDeleteSample.ts +[capacityreservationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsGetSample.ts +[capacityreservationslistbycapacityreservationgroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsListByCapacityReservationGroupSample.ts +[capacityreservationsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsUpdateSample.ts +[cloudserviceoperatingsystemsgetosfamilysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceOperatingSystemsGetOSFamilySample.ts +[cloudserviceoperatingsystemsgetosversionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceOperatingSystemsGetOSVersionSample.ts +[cloudserviceoperatingsystemslistosfamiliessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceOperatingSystemsListOSFamiliesSample.ts +[cloudserviceoperatingsystemslistosversionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceOperatingSystemsListOSVersionsSample.ts +[cloudserviceroleinstancesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesDeleteSample.ts +[cloudserviceroleinstancesgetinstanceviewsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesGetInstanceViewSample.ts +[cloudserviceroleinstancesgetremotedesktopfilesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesGetRemoteDesktopFileSample.ts +[cloudserviceroleinstancesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesGetSample.ts +[cloudserviceroleinstanceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesListSample.ts +[cloudserviceroleinstancesrebuildsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesRebuildSample.ts +[cloudserviceroleinstancesreimagesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesReimageSample.ts +[cloudserviceroleinstancesrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesRestartSample.ts +[cloudservicerolesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRolesGetSample.ts +[cloudserviceroleslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRolesListSample.ts +[cloudservicescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesCreateOrUpdateSample.ts +[cloudservicesdeleteinstancessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesDeleteInstancesSample.ts +[cloudservicesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesDeleteSample.ts +[cloudservicesgetinstanceviewsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesGetInstanceViewSample.ts +[cloudservicesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesGetSample.ts +[cloudserviceslistallsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesListAllSample.ts +[cloudserviceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesListSample.ts +[cloudservicespoweroffsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesPowerOffSample.ts +[cloudservicesrebuildsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesRebuildSample.ts +[cloudservicesreimagesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesReimageSample.ts +[cloudservicesrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesRestartSample.ts +[cloudservicesstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesStartSample.ts +[cloudservicesupdatedomaingetupdatedomainsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesUpdateDomainGetUpdateDomainSample.ts +[cloudservicesupdatedomainlistupdatedomainssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesUpdateDomainListUpdateDomainsSample.ts +[cloudservicesupdatedomainwalkupdatedomainsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesUpdateDomainWalkUpdateDomainSample.ts +[cloudservicesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesUpdateSample.ts +[communitygalleriesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleriesGetSample.ts +[communitygalleryimageversionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleryImageVersionsGetSample.ts +[communitygalleryimageversionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleryImageVersionsListSample.ts +[communitygalleryimagesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleryImagesGetSample.ts +[communitygalleryimageslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleryImagesListSample.ts +[dedicatedhostgroupscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsCreateOrUpdateSample.ts +[dedicatedhostgroupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsDeleteSample.ts +[dedicatedhostgroupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsGetSample.ts +[dedicatedhostgroupslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsListByResourceGroupSample.ts +[dedicatedhostgroupslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsListBySubscriptionSample.ts +[dedicatedhostgroupsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsUpdateSample.ts +[dedicatedhostscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsCreateOrUpdateSample.ts +[dedicatedhostsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsDeleteSample.ts +[dedicatedhostsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsGetSample.ts +[dedicatedhostslistavailablesizessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsListAvailableSizesSample.ts +[dedicatedhostslistbyhostgroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsListByHostGroupSample.ts +[dedicatedhostsrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsRestartSample.ts +[dedicatedhostsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsUpdateSample.ts +[diskaccessescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesCreateOrUpdateSample.ts +[diskaccessesdeleteaprivateendpointconnectionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesDeleteAPrivateEndpointConnectionSample.ts +[diskaccessesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesDeleteSample.ts +[diskaccessesgetaprivateendpointconnectionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesGetAPrivateEndpointConnectionSample.ts +[diskaccessesgetprivatelinkresourcessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesGetPrivateLinkResourcesSample.ts +[diskaccessesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesGetSample.ts +[diskaccesseslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesListByResourceGroupSample.ts +[diskaccesseslistprivateendpointconnectionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesListPrivateEndpointConnectionsSample.ts +[diskaccesseslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesListSample.ts +[diskaccessesupdateaprivateendpointconnectionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesUpdateAPrivateEndpointConnectionSample.ts +[diskaccessesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesUpdateSample.ts +[diskencryptionsetscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsCreateOrUpdateSample.ts +[diskencryptionsetsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsDeleteSample.ts +[diskencryptionsetsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsGetSample.ts +[diskencryptionsetslistassociatedresourcessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsListAssociatedResourcesSample.ts +[diskencryptionsetslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsListByResourceGroupSample.ts +[diskencryptionsetslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsListSample.ts +[diskencryptionsetsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsUpdateSample.ts +[diskrestorepointgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/diskRestorePointGetSample.ts +[diskrestorepointgrantaccesssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/diskRestorePointGrantAccessSample.ts +[diskrestorepointlistbyrestorepointsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/diskRestorePointListByRestorePointSample.ts +[diskrestorepointrevokeaccesssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/diskRestorePointRevokeAccessSample.ts +[diskscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/disksCreateOrUpdateSample.ts +[disksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/disksDeleteSample.ts +[disksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/disksGetSample.ts +[disksgrantaccesssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/disksGrantAccessSample.ts +[diskslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/disksListByResourceGroupSample.ts +[diskslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/disksListSample.ts +[disksrevokeaccesssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/disksRevokeAccessSample.ts +[disksupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/disksUpdateSample.ts +[galleriescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesCreateOrUpdateSample.ts +[galleriesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesDeleteSample.ts +[galleriesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesGetSample.ts +[gallerieslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesListByResourceGroupSample.ts +[gallerieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesListSample.ts +[galleriesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesUpdateSample.ts +[galleryapplicationversionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsCreateOrUpdateSample.ts +[galleryapplicationversionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsDeleteSample.ts +[galleryapplicationversionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsGetSample.ts +[galleryapplicationversionslistbygalleryapplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsListByGalleryApplicationSample.ts +[galleryapplicationversionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsUpdateSample.ts +[galleryapplicationscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsCreateOrUpdateSample.ts +[galleryapplicationsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsDeleteSample.ts +[galleryapplicationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsGetSample.ts +[galleryapplicationslistbygallerysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsListByGallerySample.ts +[galleryapplicationsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsUpdateSample.ts +[galleryimageversionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsCreateOrUpdateSample.ts +[galleryimageversionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsDeleteSample.ts +[galleryimageversionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsGetSample.ts +[galleryimageversionslistbygalleryimagesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsListByGalleryImageSample.ts +[galleryimageversionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsUpdateSample.ts +[galleryimagescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesCreateOrUpdateSample.ts +[galleryimagesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesDeleteSample.ts +[galleryimagesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesGetSample.ts +[galleryimageslistbygallerysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesListByGallerySample.ts +[galleryimagesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesUpdateSample.ts +[gallerysharingprofileupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/gallerySharingProfileUpdateSample.ts +[imagescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/imagesCreateOrUpdateSample.ts +[imagesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/imagesDeleteSample.ts +[imagesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/imagesGetSample.ts +[imageslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/imagesListByResourceGroupSample.ts +[imageslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/imagesListSample.ts +[imagesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/imagesUpdateSample.ts +[loganalyticsexportrequestratebyintervalsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/logAnalyticsExportRequestRateByIntervalSample.ts +[loganalyticsexportthrottledrequestssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/logAnalyticsExportThrottledRequestsSample.ts +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/operationsListSample.ts +[proximityplacementgroupscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsCreateOrUpdateSample.ts +[proximityplacementgroupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsDeleteSample.ts +[proximityplacementgroupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsGetSample.ts +[proximityplacementgroupslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsListByResourceGroupSample.ts +[proximityplacementgroupslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsListBySubscriptionSample.ts +[proximityplacementgroupsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsUpdateSample.ts +[resourceskuslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/resourceSkusListSample.ts +[restorepointcollectionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsCreateOrUpdateSample.ts +[restorepointcollectionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsDeleteSample.ts +[restorepointcollectionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsGetSample.ts +[restorepointcollectionslistallsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsListAllSample.ts +[restorepointcollectionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsListSample.ts +[restorepointcollectionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsUpdateSample.ts +[restorepointscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointsCreateSample.ts +[restorepointsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointsDeleteSample.ts +[restorepointsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointsGetSample.ts +[sharedgalleriesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleriesGetSample.ts +[sharedgallerieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleriesListSample.ts +[sharedgalleryimageversionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleryImageVersionsGetSample.ts +[sharedgalleryimageversionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleryImageVersionsListSample.ts +[sharedgalleryimagesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleryImagesGetSample.ts +[sharedgalleryimageslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleryImagesListSample.ts +[snapshotscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsCreateOrUpdateSample.ts +[snapshotsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsDeleteSample.ts +[snapshotsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsGetSample.ts +[snapshotsgrantaccesssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsGrantAccessSample.ts +[snapshotslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsListByResourceGroupSample.ts +[snapshotslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsListSample.ts +[snapshotsrevokeaccesssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsRevokeAccessSample.ts +[snapshotsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsUpdateSample.ts +[sshpublickeyscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysCreateSample.ts +[sshpublickeysdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysDeleteSample.ts +[sshpublickeysgeneratekeypairsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysGenerateKeyPairSample.ts +[sshpublickeysgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysGetSample.ts +[sshpublickeyslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysListByResourceGroupSample.ts +[sshpublickeyslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysListBySubscriptionSample.ts +[sshpublickeysupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysUpdateSample.ts +[usagelistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/usageListSample.ts +[virtualmachineextensionimagesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionImagesGetSample.ts +[virtualmachineextensionimageslisttypessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionImagesListTypesSample.ts +[virtualmachineextensionimageslistversionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionImagesListVersionsSample.ts +[virtualmachineextensionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsCreateOrUpdateSample.ts +[virtualmachineextensionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsDeleteSample.ts +[virtualmachineextensionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsGetSample.ts +[virtualmachineextensionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsListSample.ts +[virtualmachineextensionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsUpdateSample.ts +[virtualmachineimagesedgezonegetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneGetSample.ts +[virtualmachineimagesedgezonelistofferssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListOffersSample.ts +[virtualmachineimagesedgezonelistpublisherssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListPublishersSample.ts +[virtualmachineimagesedgezonelistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListSample.ts +[virtualmachineimagesedgezonelistskussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListSkusSample.ts +[virtualmachineimagesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesGetSample.ts +[virtualmachineimageslistbyedgezonesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListByEdgeZoneSample.ts +[virtualmachineimageslistofferssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListOffersSample.ts +[virtualmachineimageslistpublisherssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListPublishersSample.ts +[virtualmachineimageslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListSample.ts +[virtualmachineimageslistskussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListSkusSample.ts +[virtualmachineruncommandscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsCreateOrUpdateSample.ts +[virtualmachineruncommandsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsDeleteSample.ts +[virtualmachineruncommandsgetbyvirtualmachinesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsGetByVirtualMachineSample.ts +[virtualmachineruncommandsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsGetSample.ts +[virtualmachineruncommandslistbyvirtualmachinesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsListByVirtualMachineSample.ts +[virtualmachineruncommandslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsListSample.ts +[virtualmachineruncommandsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsUpdateSample.ts +[virtualmachinescalesetextensionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsCreateOrUpdateSample.ts +[virtualmachinescalesetextensionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsDeleteSample.ts +[virtualmachinescalesetextensionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsGetSample.ts +[virtualmachinescalesetextensionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsListSample.ts +[virtualmachinescalesetextensionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsUpdateSample.ts +[virtualmachinescalesetrollingupgradescancelsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesCancelSample.ts +[virtualmachinescalesetrollingupgradesgetlatestsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesGetLatestSample.ts +[virtualmachinescalesetrollingupgradesstartextensionupgradesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSample.ts +[virtualmachinescalesetrollingupgradesstartosupgradesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesStartOSUpgradeSample.ts +[virtualmachinescalesetvmextensionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsCreateOrUpdateSample.ts +[virtualmachinescalesetvmextensionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsDeleteSample.ts +[virtualmachinescalesetvmextensionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsGetSample.ts +[virtualmachinescalesetvmextensionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsListSample.ts +[virtualmachinescalesetvmextensionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsUpdateSample.ts +[virtualmachinescalesetvmruncommandscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsCreateOrUpdateSample.ts +[virtualmachinescalesetvmruncommandsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsDeleteSample.ts +[virtualmachinescalesetvmruncommandsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsGetSample.ts +[virtualmachinescalesetvmruncommandslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsListSample.ts +[virtualmachinescalesetvmruncommandsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsUpdateSample.ts +[virtualmachinescalesetvmsdeallocatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSDeallocateSample.ts +[virtualmachinescalesetvmsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSDeleteSample.ts +[virtualmachinescalesetvmsgetinstanceviewsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSGetInstanceViewSample.ts +[virtualmachinescalesetvmsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSGetSample.ts +[virtualmachinescalesetvmslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSListSample.ts +[virtualmachinescalesetvmsperformmaintenancesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSPerformMaintenanceSample.ts +[virtualmachinescalesetvmspoweroffsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSPowerOffSample.ts +[virtualmachinescalesetvmsredeploysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRedeploySample.ts +[virtualmachinescalesetvmsreimageallsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSReimageAllSample.ts +[virtualmachinescalesetvmsreimagesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSReimageSample.ts +[virtualmachinescalesetvmsrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRestartSample.ts +[virtualmachinescalesetvmsretrievebootdiagnosticsdatasample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.ts +[virtualmachinescalesetvmsruncommandsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRunCommandSample.ts +[virtualmachinescalesetvmssimulateevictionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSSimulateEvictionSample.ts +[virtualmachinescalesetvmsstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSStartSample.ts +[virtualmachinescalesetvmsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSUpdateSample.ts +[virtualmachinescalesetsconverttosingleplacementgroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsConvertToSinglePlacementGroupSample.ts +[virtualmachinescalesetscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsCreateOrUpdateSample.ts +[virtualmachinescalesetsdeallocatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsDeallocateSample.ts +[virtualmachinescalesetsdeleteinstancessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsDeleteInstancesSample.ts +[virtualmachinescalesetsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsDeleteSample.ts +[virtualmachinescalesetsforcerecoveryservicefabricplatformupdatedomainwalksample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSample.ts +[virtualmachinescalesetsgetinstanceviewsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsGetInstanceViewSample.ts +[virtualmachinescalesetsgetosupgradehistorysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsGetOSUpgradeHistorySample.ts +[virtualmachinescalesetsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsGetSample.ts +[virtualmachinescalesetslistallsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsListAllSample.ts +[virtualmachinescalesetslistbylocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsListByLocationSample.ts +[virtualmachinescalesetslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsListSample.ts +[virtualmachinescalesetslistskussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsListSkusSample.ts +[virtualmachinescalesetsperformmaintenancesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsPerformMaintenanceSample.ts +[virtualmachinescalesetspoweroffsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsPowerOffSample.ts +[virtualmachinescalesetsreapplysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsReapplySample.ts +[virtualmachinescalesetsredeploysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsRedeploySample.ts +[virtualmachinescalesetsreimageallsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsReimageAllSample.ts +[virtualmachinescalesetsreimagesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsReimageSample.ts +[virtualmachinescalesetsrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsRestartSample.ts +[virtualmachinescalesetssetorchestrationservicestatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsSetOrchestrationServiceStateSample.ts +[virtualmachinescalesetsstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsStartSample.ts +[virtualmachinescalesetsupdateinstancessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsUpdateInstancesSample.ts +[virtualmachinescalesetsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsUpdateSample.ts +[virtualmachinesizeslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineSizesListSample.ts +[virtualmachinesassesspatchessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesAssessPatchesSample.ts +[virtualmachinescapturesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesCaptureSample.ts +[virtualmachinesconverttomanageddiskssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesConvertToManagedDisksSample.ts +[virtualmachinescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesCreateOrUpdateSample.ts +[virtualmachinesdeallocatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesDeallocateSample.ts +[virtualmachinesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesDeleteSample.ts +[virtualmachinesgeneralizesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesGeneralizeSample.ts +[virtualmachinesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesGetSample.ts +[virtualmachinesinstallpatchessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesInstallPatchesSample.ts +[virtualmachinesinstanceviewsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesInstanceViewSample.ts +[virtualmachineslistallsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesListAllSample.ts +[virtualmachineslistavailablesizessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesListAvailableSizesSample.ts +[virtualmachineslistbylocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesListByLocationSample.ts +[virtualmachineslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesListSample.ts +[virtualmachinesperformmaintenancesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesPerformMaintenanceSample.ts +[virtualmachinespoweroffsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesPowerOffSample.ts +[virtualmachinesreapplysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesReapplySample.ts +[virtualmachinesredeploysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRedeploySample.ts +[virtualmachinesreimagesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesReimageSample.ts +[virtualmachinesrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRestartSample.ts +[virtualmachinesretrievebootdiagnosticsdatasample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRetrieveBootDiagnosticsDataSample.ts +[virtualmachinesruncommandsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRunCommandSample.ts +[virtualmachinessimulateevictionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesSimulateEvictionSample.ts +[virtualmachinesstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesStartSample.ts +[virtualmachinesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesUpdateSample.ts [apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-compute?view=azure-node-preview [freesub]: https://azure.microsoft.com/free/ [package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/compute/arm-compute/README.md diff --git a/sdk/compute/arm-compute/samples/v20/typescript/package.json b/sdk/compute/arm-compute/samples/v21/typescript/package.json similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/package.json rename to sdk/compute/arm-compute/samples/v21/typescript/package.json diff --git a/sdk/compute/arm-compute/samples/v20/typescript/sample.env b/sdk/compute/arm-compute/samples/v21/typescript/sample.env similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/sample.env rename to sdk/compute/arm-compute/samples/v21/typescript/sample.env diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/availabilitySetsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsCreateOrUpdateSample.ts similarity index 95% rename from sdk/compute/arm-compute/samples/v20/typescript/src/availabilitySetsCreateOrUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsCreateOrUpdateSample.ts index 7656537bfcba..18d6c7eae306 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/availabilitySetsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create or update an availability set. * * @summary Create or update an availability set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySet_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_Create.json */ async function createAnAvailabilitySet() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/availabilitySetsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsDeleteSample.ts similarity index 81% rename from sdk/compute/arm-compute/samples/v20/typescript/src/availabilitySetsDeleteSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsDeleteSample.ts index 007c90544007..b00b5666c1fa 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/availabilitySetsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsDeleteSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Delete an availability set. * * @summary Delete an availability set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_Delete_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_Delete_MaximumSet_Gen.json */ -async function availabilitySetsDeleteMaximumSetGen() { +async function availabilitySetDeleteMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -39,9 +39,9 @@ async function availabilitySetsDeleteMaximumSetGen() { * This sample demonstrates how to Delete an availability set. * * @summary Delete an availability set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_Delete_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_Delete_MinimumSet_Gen.json */ -async function availabilitySetsDeleteMinimumSetGen() { +async function availabilitySetDeleteMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -57,8 +57,8 @@ async function availabilitySetsDeleteMinimumSetGen() { } async function main() { - availabilitySetsDeleteMaximumSetGen(); - availabilitySetsDeleteMinimumSetGen(); + availabilitySetDeleteMaximumSetGen(); + availabilitySetDeleteMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/availabilitySetsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsGetSample.ts similarity index 82% rename from sdk/compute/arm-compute/samples/v20/typescript/src/availabilitySetsGetSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsGetSample.ts index 6b1ef11fe1da..7c5f261c5709 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/availabilitySetsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsGetSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Retrieves information about an availability set. * * @summary Retrieves information about an availability set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_Get_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_Get_MaximumSet_Gen.json */ -async function availabilitySetsGetMaximumSetGen() { +async function availabilitySetGetMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -39,9 +39,9 @@ async function availabilitySetsGetMaximumSetGen() { * This sample demonstrates how to Retrieves information about an availability set. * * @summary Retrieves information about an availability set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_Get_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_Get_MinimumSet_Gen.json */ -async function availabilitySetsGetMinimumSetGen() { +async function availabilitySetGetMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -57,8 +57,8 @@ async function availabilitySetsGetMinimumSetGen() { } async function main() { - availabilitySetsGetMaximumSetGen(); - availabilitySetsGetMinimumSetGen(); + availabilitySetGetMaximumSetGen(); + availabilitySetGetMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/availabilitySetsListAvailableSizesSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsListAvailableSizesSample.ts similarity index 82% rename from sdk/compute/arm-compute/samples/v20/typescript/src/availabilitySetsListAvailableSizesSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsListAvailableSizesSample.ts index 902744ebc831..22d4f8aed680 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/availabilitySetsListAvailableSizesSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsListAvailableSizesSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set. * * @summary Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_ListAvailableSizes_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_ListAvailableSizes_MaximumSet_Gen.json */ -async function availabilitySetsListAvailableSizesMaximumSetGen() { +async function availabilitySetListAvailableSizesMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -42,9 +42,9 @@ async function availabilitySetsListAvailableSizesMaximumSetGen() { * This sample demonstrates how to Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set. * * @summary Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_ListAvailableSizes_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_ListAvailableSizes_MinimumSet_Gen.json */ -async function availabilitySetsListAvailableSizesMinimumSetGen() { +async function availabilitySetListAvailableSizesMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -63,8 +63,8 @@ async function availabilitySetsListAvailableSizesMinimumSetGen() { } async function main() { - availabilitySetsListAvailableSizesMaximumSetGen(); - availabilitySetsListAvailableSizesMinimumSetGen(); + availabilitySetListAvailableSizesMaximumSetGen(); + availabilitySetListAvailableSizesMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/availabilitySetsListBySubscriptionSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsListBySubscriptionSample.ts similarity index 95% rename from sdk/compute/arm-compute/samples/v20/typescript/src/availabilitySetsListBySubscriptionSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsListBySubscriptionSample.ts index 1430dcff20d2..ba2a8eab1701 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/availabilitySetsListBySubscriptionSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsListBySubscriptionSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Lists all availability sets in a subscription. * * @summary Lists all availability sets in a subscription. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySet_ListBySubscription.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_ListBySubscription.json */ async function listAvailabilitySetsInASubscription() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/availabilitySetsListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsListSample.ts similarity index 81% rename from sdk/compute/arm-compute/samples/v20/typescript/src/availabilitySetsListSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsListSample.ts index 647975587be4..3ec78394018f 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/availabilitySetsListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsListSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Lists all availability sets in a resource group. * * @summary Lists all availability sets in a resource group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_List_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_List_MaximumSet_Gen.json */ -async function availabilitySetsListMaximumSetGen() { +async function availabilitySetListMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -38,9 +38,9 @@ async function availabilitySetsListMaximumSetGen() { * This sample demonstrates how to Lists all availability sets in a resource group. * * @summary Lists all availability sets in a resource group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_List_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_List_MinimumSet_Gen.json */ -async function availabilitySetsListMinimumSetGen() { +async function availabilitySetListMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -55,8 +55,8 @@ async function availabilitySetsListMinimumSetGen() { } async function main() { - availabilitySetsListMaximumSetGen(); - availabilitySetsListMinimumSetGen(); + availabilitySetListMaximumSetGen(); + availabilitySetListMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/availabilitySetsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsUpdateSample.ts similarity index 85% rename from sdk/compute/arm-compute/samples/v20/typescript/src/availabilitySetsUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsUpdateSample.ts index 76f13b4816fb..9f232e2b5f7c 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/availabilitySetsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsUpdateSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to Update an availability set. * * @summary Update an availability set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_Update_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_Update_MaximumSet_Gen.json */ -async function availabilitySetsUpdateMaximumSetGen() { +async function availabilitySetUpdateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -59,9 +59,9 @@ async function availabilitySetsUpdateMaximumSetGen() { * This sample demonstrates how to Update an availability set. * * @summary Update an availability set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/availabilitySetExamples/AvailabilitySets_Update_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/availabilitySetExamples/AvailabilitySet_Update_MinimumSet_Gen.json */ -async function availabilitySetsUpdateMinimumSetGen() { +async function availabilitySetUpdateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -79,8 +79,8 @@ async function availabilitySetsUpdateMinimumSetGen() { } async function main() { - availabilitySetsUpdateMaximumSetGen(); - availabilitySetsUpdateMinimumSetGen(); + availabilitySetUpdateMaximumSetGen(); + availabilitySetUpdateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/capacityReservationGroupsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsCreateOrUpdateSample.ts similarity index 96% rename from sdk/compute/arm-compute/samples/v20/typescript/src/capacityReservationGroupsCreateOrUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsCreateOrUpdateSample.ts index b4fae9d9369b..2661f77c3fed 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/capacityReservationGroupsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to create or update a capacity reservation group. When updating a capacity reservation group, only tags may be modified. Please refer to https://aka.ms/CapacityReservation for more details. * * @summary The operation to create or update a capacity reservation group. When updating a capacity reservation group, only tags may be modified. Please refer to https://aka.ms/CapacityReservation for more details. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservationGroup_CreateOrUpdate.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservationGroup_CreateOrUpdate.json */ async function createOrUpdateACapacityReservationGroup() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/capacityReservationGroupsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsDeleteSample.ts similarity index 89% rename from sdk/compute/arm-compute/samples/v20/typescript/src/capacityReservationGroupsDeleteSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsDeleteSample.ts index 47d84da1b736..9060398625dd 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/capacityReservationGroupsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsDeleteSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to The operation to delete a capacity reservation group. This operation is allowed only if all the associated resources are disassociated from the reservation group and all capacity reservations under the reservation group have also been deleted. Please refer to https://aka.ms/CapacityReservation for more details. * * @summary The operation to delete a capacity reservation group. This operation is allowed only if all the associated resources are disassociated from the reservation group and all capacity reservations under the reservation group have also been deleted. Please refer to https://aka.ms/CapacityReservation for more details. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservationGroup_Delete_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservationGroup_Delete_MaximumSet_Gen.json */ -async function capacityReservationGroupsDeleteMaximumSetGen() { +async function capacityReservationGroupDeleteMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -39,9 +39,9 @@ async function capacityReservationGroupsDeleteMaximumSetGen() { * This sample demonstrates how to The operation to delete a capacity reservation group. This operation is allowed only if all the associated resources are disassociated from the reservation group and all capacity reservations under the reservation group have also been deleted. Please refer to https://aka.ms/CapacityReservation for more details. * * @summary The operation to delete a capacity reservation group. This operation is allowed only if all the associated resources are disassociated from the reservation group and all capacity reservations under the reservation group have also been deleted. Please refer to https://aka.ms/CapacityReservation for more details. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservationGroup_Delete_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservationGroup_Delete_MinimumSet_Gen.json */ -async function capacityReservationGroupsDeleteMinimumSetGen() { +async function capacityReservationGroupDeleteMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -57,8 +57,8 @@ async function capacityReservationGroupsDeleteMinimumSetGen() { } async function main() { - capacityReservationGroupsDeleteMaximumSetGen(); - capacityReservationGroupsDeleteMinimumSetGen(); + capacityReservationGroupDeleteMaximumSetGen(); + capacityReservationGroupDeleteMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/capacityReservationGroupsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsGetSample.ts similarity index 96% rename from sdk/compute/arm-compute/samples/v20/typescript/src/capacityReservationGroupsGetSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsGetSample.ts index 3567f76a4893..e152c306325d 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/capacityReservationGroupsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsGetSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation that retrieves information about a capacity reservation group. * * @summary The operation that retrieves information about a capacity reservation group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservationGroup_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservationGroup_Get.json */ async function getACapacityReservationGroup() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/capacityReservationGroupsListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsListByResourceGroupSample.ts similarity index 96% rename from sdk/compute/arm-compute/samples/v20/typescript/src/capacityReservationGroupsListByResourceGroupSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsListByResourceGroupSample.ts index 1ab5b9324e77..84ce3cd8bfbf 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/capacityReservationGroupsListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsListByResourceGroupSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the capacity reservation groups in the specified resource group. Use the nextLink property in the response to get the next page of capacity reservation groups. * * @summary Lists all of the capacity reservation groups in the specified resource group. Use the nextLink property in the response to get the next page of capacity reservation groups. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservationGroup_ListByResourceGroup.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservationGroup_ListByResourceGroup.json */ async function listCapacityReservationGroupsInResourceGroup() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/capacityReservationGroupsListBySubscriptionSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsListBySubscriptionSample.ts similarity index 96% rename from sdk/compute/arm-compute/samples/v20/typescript/src/capacityReservationGroupsListBySubscriptionSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsListBySubscriptionSample.ts index a1d6941506b4..1979eab2e373 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/capacityReservationGroupsListBySubscriptionSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsListBySubscriptionSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the capacity reservation groups in the subscription. Use the nextLink property in the response to get the next page of capacity reservation groups. * * @summary Lists all of the capacity reservation groups in the subscription. Use the nextLink property in the response to get the next page of capacity reservation groups. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservationGroup_ListBySubscription.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservationGroup_ListBySubscription.json */ async function listCapacityReservationGroupsInSubscription() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/capacityReservationGroupsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsUpdateSample.ts similarity index 88% rename from sdk/compute/arm-compute/samples/v20/typescript/src/capacityReservationGroupsUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsUpdateSample.ts index 9a64d0c30d81..0053cf2c325c 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/capacityReservationGroupsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsUpdateSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to The operation to update a capacity reservation group. When updating a capacity reservation group, only tags may be modified. * * @summary The operation to update a capacity reservation group. When updating a capacity reservation group, only tags may be modified. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservationGroup_Update_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservationGroup_Update_MaximumSet_Gen.json */ -async function capacityReservationGroupsUpdateMaximumSetGen() { +async function capacityReservationGroupUpdateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -47,9 +47,9 @@ async function capacityReservationGroupsUpdateMaximumSetGen() { * This sample demonstrates how to The operation to update a capacity reservation group. When updating a capacity reservation group, only tags may be modified. * * @summary The operation to update a capacity reservation group. When updating a capacity reservation group, only tags may be modified. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservationGroup_Update_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservationGroup_Update_MinimumSet_Gen.json */ -async function capacityReservationGroupsUpdateMinimumSetGen() { +async function capacityReservationGroupUpdateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -67,8 +67,8 @@ async function capacityReservationGroupsUpdateMinimumSetGen() { } async function main() { - capacityReservationGroupsUpdateMaximumSetGen(); - capacityReservationGroupsUpdateMinimumSetGen(); + capacityReservationGroupUpdateMaximumSetGen(); + capacityReservationGroupUpdateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/capacityReservationsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsCreateOrUpdateSample.ts similarity index 97% rename from sdk/compute/arm-compute/samples/v20/typescript/src/capacityReservationsCreateOrUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsCreateOrUpdateSample.ts index 7565c3eb7a59..4f7ec4855021 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/capacityReservationsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to create or update a capacity reservation. Please note some properties can be set only during capacity reservation creation. Please refer to https://aka.ms/CapacityReservation for more details. * * @summary The operation to create or update a capacity reservation. Please note some properties can be set only during capacity reservation creation. Please refer to https://aka.ms/CapacityReservation for more details. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservation_CreateOrUpdate.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservation_CreateOrUpdate.json */ async function createOrUpdateACapacityReservation() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/capacityReservationsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsDeleteSample.ts similarity index 89% rename from sdk/compute/arm-compute/samples/v20/typescript/src/capacityReservationsDeleteSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsDeleteSample.ts index 3a9dd1b5e147..bf4b4fe444dc 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/capacityReservationsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsDeleteSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to The operation to delete a capacity reservation. This operation is allowed only when all the associated resources are disassociated from the capacity reservation. Please refer to https://aka.ms/CapacityReservation for more details. * * @summary The operation to delete a capacity reservation. This operation is allowed only when all the associated resources are disassociated from the capacity reservation. Please refer to https://aka.ms/CapacityReservation for more details. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservation_Delete_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservation_Delete_MaximumSet_Gen.json */ -async function capacityReservationsDeleteMaximumSetGen() { +async function capacityReservationDeleteMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -41,9 +41,9 @@ async function capacityReservationsDeleteMaximumSetGen() { * This sample demonstrates how to The operation to delete a capacity reservation. This operation is allowed only when all the associated resources are disassociated from the capacity reservation. Please refer to https://aka.ms/CapacityReservation for more details. * * @summary The operation to delete a capacity reservation. This operation is allowed only when all the associated resources are disassociated from the capacity reservation. Please refer to https://aka.ms/CapacityReservation for more details. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservation_Delete_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservation_Delete_MinimumSet_Gen.json */ -async function capacityReservationsDeleteMinimumSetGen() { +async function capacityReservationDeleteMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -61,8 +61,8 @@ async function capacityReservationsDeleteMinimumSetGen() { } async function main() { - capacityReservationsDeleteMaximumSetGen(); - capacityReservationsDeleteMinimumSetGen(); + capacityReservationDeleteMaximumSetGen(); + capacityReservationDeleteMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/capacityReservationsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsGetSample.ts similarity index 96% rename from sdk/compute/arm-compute/samples/v20/typescript/src/capacityReservationsGetSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsGetSample.ts index f17a474f19b2..6016ecfa8f32 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/capacityReservationsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsGetSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation that retrieves information about the capacity reservation. * * @summary The operation that retrieves information about the capacity reservation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservation_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservation_Get.json */ async function getACapacityReservation() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/capacityReservationsListByCapacityReservationGroupSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsListByCapacityReservationGroupSample.ts similarity index 96% rename from sdk/compute/arm-compute/samples/v20/typescript/src/capacityReservationsListByCapacityReservationGroupSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsListByCapacityReservationGroupSample.ts index 8a07eb98986e..0f72eff77a48 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/capacityReservationsListByCapacityReservationGroupSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsListByCapacityReservationGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the capacity reservations in the specified capacity reservation group. Use the nextLink property in the response to get the next page of capacity reservations. * * @summary Lists all of the capacity reservations in the specified capacity reservation group. Use the nextLink property in the response to get the next page of capacity reservations. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservation_ListByReservationGroup.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservation_ListByReservationGroup.json */ async function listCapacityReservationsInReservationGroup() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/capacityReservationsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsUpdateSample.ts similarity index 89% rename from sdk/compute/arm-compute/samples/v20/typescript/src/capacityReservationsUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsUpdateSample.ts index c6b5a5fc2b9d..986fc222a51a 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/capacityReservationsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsUpdateSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to The operation to update a capacity reservation. * * @summary The operation to update a capacity reservation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservation_Update_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservation_Update_MaximumSet_Gen.json */ -async function capacityReservationsUpdateMaximumSetGen() { +async function capacityReservationUpdateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -61,9 +61,9 @@ async function capacityReservationsUpdateMaximumSetGen() { * This sample demonstrates how to The operation to update a capacity reservation. * * @summary The operation to update a capacity reservation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/capacityReservationExamples/CapacityReservation_Update_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/capacityReservationExamples/CapacityReservation_Update_MinimumSet_Gen.json */ -async function capacityReservationsUpdateMinimumSetGen() { +async function capacityReservationUpdateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -83,8 +83,8 @@ async function capacityReservationsUpdateMinimumSetGen() { } async function main() { - capacityReservationsUpdateMaximumSetGen(); - capacityReservationsUpdateMinimumSetGen(); + capacityReservationUpdateMaximumSetGen(); + capacityReservationUpdateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServiceOperatingSystemsGetOSFamilySample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceOperatingSystemsGetOSFamilySample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/cloudServiceOperatingSystemsGetOSFamilySample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceOperatingSystemsGetOSFamilySample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServiceOperatingSystemsGetOSVersionSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceOperatingSystemsGetOSVersionSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/cloudServiceOperatingSystemsGetOSVersionSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceOperatingSystemsGetOSVersionSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServiceOperatingSystemsListOSFamiliesSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceOperatingSystemsListOSFamiliesSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/cloudServiceOperatingSystemsListOSFamiliesSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceOperatingSystemsListOSFamiliesSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServiceOperatingSystemsListOSVersionsSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceOperatingSystemsListOSVersionsSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/cloudServiceOperatingSystemsListOSVersionsSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceOperatingSystemsListOSVersionsSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServiceRoleInstancesDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesDeleteSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/cloudServiceRoleInstancesDeleteSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesDeleteSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServiceRoleInstancesGetInstanceViewSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesGetInstanceViewSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/cloudServiceRoleInstancesGetInstanceViewSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesGetInstanceViewSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServiceRoleInstancesGetRemoteDesktopFileSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesGetRemoteDesktopFileSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/cloudServiceRoleInstancesGetRemoteDesktopFileSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesGetRemoteDesktopFileSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServiceRoleInstancesGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesGetSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/cloudServiceRoleInstancesGetSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesGetSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServiceRoleInstancesListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesListSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/cloudServiceRoleInstancesListSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesListSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServiceRoleInstancesRebuildSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesRebuildSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/cloudServiceRoleInstancesRebuildSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesRebuildSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServiceRoleInstancesReimageSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesReimageSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/cloudServiceRoleInstancesReimageSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesReimageSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServiceRoleInstancesRestartSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesRestartSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/cloudServiceRoleInstancesRestartSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesRestartSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServiceRolesGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRolesGetSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/cloudServiceRolesGetSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRolesGetSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServiceRolesListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRolesListSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/cloudServiceRolesListSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRolesListSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesCreateOrUpdateSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesCreateOrUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesCreateOrUpdateSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesDeleteInstancesSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesDeleteInstancesSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesDeleteInstancesSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesDeleteInstancesSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesDeleteSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesDeleteSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesDeleteSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesGetInstanceViewSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesGetInstanceViewSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesGetInstanceViewSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesGetInstanceViewSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesGetSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesGetSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesGetSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesListAllSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesListAllSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesListAllSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesListAllSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesListSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesListSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesListSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesPowerOffSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesPowerOffSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesPowerOffSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesPowerOffSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesRebuildSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesRebuildSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesRebuildSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesRebuildSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesReimageSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesReimageSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesReimageSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesReimageSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesRestartSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesRestartSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesRestartSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesRestartSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesStartSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesStartSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesStartSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesStartSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesUpdateDomainGetUpdateDomainSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesUpdateDomainGetUpdateDomainSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesUpdateDomainGetUpdateDomainSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesUpdateDomainGetUpdateDomainSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesUpdateDomainListUpdateDomainsSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesUpdateDomainListUpdateDomainsSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesUpdateDomainListUpdateDomainsSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesUpdateDomainListUpdateDomainsSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesUpdateDomainWalkUpdateDomainSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesUpdateDomainWalkUpdateDomainSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesUpdateDomainWalkUpdateDomainSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesUpdateDomainWalkUpdateDomainSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesUpdateSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/cloudServicesUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesUpdateSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/communityGalleriesGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleriesGetSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/communityGalleriesGetSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleriesGetSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/communityGalleryImageVersionsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleryImageVersionsGetSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/communityGalleryImageVersionsGetSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleryImageVersionsGetSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/communityGalleryImageVersionsListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleryImageVersionsListSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/communityGalleryImageVersionsListSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleryImageVersionsListSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/communityGalleryImagesGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleryImagesGetSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/communityGalleryImagesGetSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleryImagesGetSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/communityGalleryImagesListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleryImagesListSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/communityGalleryImagesListSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleryImagesListSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostGroupsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsCreateOrUpdateSample.ts similarity index 96% rename from sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostGroupsCreateOrUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsCreateOrUpdateSample.ts index 5421e722850f..f6284abe60ce 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostGroupsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups please see [Dedicated Host Documentation] (https://go.microsoft.com/fwlink/?linkid=2082596) * * @summary Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups please see [Dedicated Host Documentation] (https://go.microsoft.com/fwlink/?linkid=2082596) - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroup_CreateOrUpdate_WithUltraSSD.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_CreateOrUpdate_WithUltraSSD.json */ async function createOrUpdateADedicatedHostGroupWithUltraSsdSupport() { const subscriptionId = @@ -51,7 +51,7 @@ async function createOrUpdateADedicatedHostGroupWithUltraSsdSupport() { * This sample demonstrates how to Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups please see [Dedicated Host Documentation] (https://go.microsoft.com/fwlink/?linkid=2082596) * * @summary Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups please see [Dedicated Host Documentation] (https://go.microsoft.com/fwlink/?linkid=2082596) - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroup_CreateOrUpdate.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_CreateOrUpdate.json */ async function createOrUpdateADedicatedHostGroup() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostGroupsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsDeleteSample.ts similarity index 80% rename from sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostGroupsDeleteSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsDeleteSample.ts index 77162916569f..24592428b02b 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostGroupsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsDeleteSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Delete a dedicated host group. * * @summary Delete a dedicated host group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroups_Delete_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_Delete_MaximumSet_Gen.json */ -async function dedicatedHostGroupsDeleteMaximumSetGen() { +async function dedicatedHostGroupDeleteMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -39,9 +39,9 @@ async function dedicatedHostGroupsDeleteMaximumSetGen() { * This sample demonstrates how to Delete a dedicated host group. * * @summary Delete a dedicated host group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroups_Delete_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_Delete_MinimumSet_Gen.json */ -async function dedicatedHostGroupsDeleteMinimumSetGen() { +async function dedicatedHostGroupDeleteMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -57,8 +57,8 @@ async function dedicatedHostGroupsDeleteMinimumSetGen() { } async function main() { - dedicatedHostGroupsDeleteMaximumSetGen(); - dedicatedHostGroupsDeleteMinimumSetGen(); + dedicatedHostGroupDeleteMaximumSetGen(); + dedicatedHostGroupDeleteMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostGroupsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsGetSample.ts similarity index 94% rename from sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostGroupsGetSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsGetSample.ts index 2997348f0b14..c7dec6ac7459 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostGroupsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves information about a dedicated host group. * * @summary Retrieves information about a dedicated host group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroup_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_Get.json */ async function createADedicatedHostGroup() { const subscriptionId = @@ -39,7 +39,7 @@ async function createADedicatedHostGroup() { * This sample demonstrates how to Retrieves information about a dedicated host group. * * @summary Retrieves information about a dedicated host group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroup_Get_UltraSSDEnabledDedicatedHostGroup.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_Get_UltraSSDEnabledDedicatedHostGroup.json */ async function createAnUltraSsdEnabledDedicatedHostGroup() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostGroupsListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsListByResourceGroupSample.ts similarity index 82% rename from sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostGroupsListByResourceGroupSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsListByResourceGroupSample.ts index 86bc6c5a23b4..d2d43b3d9258 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostGroupsListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsListByResourceGroupSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Lists all of the dedicated host groups in the specified resource group. Use the nextLink property in the response to get the next page of dedicated host groups. * * @summary Lists all of the dedicated host groups in the specified resource group. Use the nextLink property in the response to get the next page of dedicated host groups. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroups_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_ListByResourceGroup_MaximumSet_Gen.json */ -async function dedicatedHostGroupsListByResourceGroupMaximumSetGen() { +async function dedicatedHostGroupListByResourceGroupMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -40,9 +40,9 @@ async function dedicatedHostGroupsListByResourceGroupMaximumSetGen() { * This sample demonstrates how to Lists all of the dedicated host groups in the specified resource group. Use the nextLink property in the response to get the next page of dedicated host groups. * * @summary Lists all of the dedicated host groups in the specified resource group. Use the nextLink property in the response to get the next page of dedicated host groups. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroups_ListByResourceGroup_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_ListByResourceGroup_MinimumSet_Gen.json */ -async function dedicatedHostGroupsListByResourceGroupMinimumSetGen() { +async function dedicatedHostGroupListByResourceGroupMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -59,8 +59,8 @@ async function dedicatedHostGroupsListByResourceGroupMinimumSetGen() { } async function main() { - dedicatedHostGroupsListByResourceGroupMaximumSetGen(); - dedicatedHostGroupsListByResourceGroupMinimumSetGen(); + dedicatedHostGroupListByResourceGroupMaximumSetGen(); + dedicatedHostGroupListByResourceGroupMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostGroupsListBySubscriptionSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsListBySubscriptionSample.ts similarity index 80% rename from sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostGroupsListBySubscriptionSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsListBySubscriptionSample.ts index d95dc873fd19..534b07ceac32 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostGroupsListBySubscriptionSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsListBySubscriptionSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Lists all of the dedicated host groups in the subscription. Use the nextLink property in the response to get the next page of dedicated host groups. * * @summary Lists all of the dedicated host groups in the subscription. Use the nextLink property in the response to get the next page of dedicated host groups. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroups_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_ListBySubscription_MaximumSet_Gen.json */ -async function dedicatedHostGroupsListBySubscriptionMaximumSetGen() { +async function dedicatedHostGroupListBySubscriptionMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const credential = new DefaultAzureCredential(); @@ -36,9 +36,9 @@ async function dedicatedHostGroupsListBySubscriptionMaximumSetGen() { * This sample demonstrates how to Lists all of the dedicated host groups in the subscription. Use the nextLink property in the response to get the next page of dedicated host groups. * * @summary Lists all of the dedicated host groups in the subscription. Use the nextLink property in the response to get the next page of dedicated host groups. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroups_ListBySubscription_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_ListBySubscription_MinimumSet_Gen.json */ -async function dedicatedHostGroupsListBySubscriptionMinimumSetGen() { +async function dedicatedHostGroupListBySubscriptionMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const credential = new DefaultAzureCredential(); @@ -51,8 +51,8 @@ async function dedicatedHostGroupsListBySubscriptionMinimumSetGen() { } async function main() { - dedicatedHostGroupsListBySubscriptionMaximumSetGen(); - dedicatedHostGroupsListBySubscriptionMinimumSetGen(); + dedicatedHostGroupListBySubscriptionMaximumSetGen(); + dedicatedHostGroupListBySubscriptionMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostGroupsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsUpdateSample.ts similarity index 85% rename from sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostGroupsUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsUpdateSample.ts index 9bea8e964c3e..b6aaf32f8007 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostGroupsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsUpdateSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to Update an dedicated host group. * * @summary Update an dedicated host group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroups_Update_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_Update_MaximumSet_Gen.json */ -async function dedicatedHostGroupsUpdateMaximumSetGen() { +async function dedicatedHostGroupUpdateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -67,9 +67,9 @@ async function dedicatedHostGroupsUpdateMaximumSetGen() { * This sample demonstrates how to Update an dedicated host group. * * @summary Update an dedicated host group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHostGroups_Update_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHostGroup_Update_MinimumSet_Gen.json */ -async function dedicatedHostGroupsUpdateMinimumSetGen() { +async function dedicatedHostGroupUpdateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -87,8 +87,8 @@ async function dedicatedHostGroupsUpdateMinimumSetGen() { } async function main() { - dedicatedHostGroupsUpdateMaximumSetGen(); - dedicatedHostGroupsUpdateMinimumSetGen(); + dedicatedHostGroupUpdateMaximumSetGen(); + dedicatedHostGroupUpdateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsCreateOrUpdateSample.ts similarity index 96% rename from sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostsCreateOrUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsCreateOrUpdateSample.ts index a1ffe893e96d..0a96417f6a2e 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a dedicated host . * * @summary Create or update a dedicated host . - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHost_CreateOrUpdate.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_CreateOrUpdate.json */ async function createOrUpdateADedicatedHost() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsDeleteSample.ts similarity index 82% rename from sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostsDeleteSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsDeleteSample.ts index fda4b96b0274..82434b1c3193 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsDeleteSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Delete a dedicated host. * * @summary Delete a dedicated host. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHosts_Delete_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_Delete_MaximumSet_Gen.json */ -async function dedicatedHostsDeleteMaximumSetGen() { +async function dedicatedHostDeleteMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -41,9 +41,9 @@ async function dedicatedHostsDeleteMaximumSetGen() { * This sample demonstrates how to Delete a dedicated host. * * @summary Delete a dedicated host. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHosts_Delete_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_Delete_MinimumSet_Gen.json */ -async function dedicatedHostsDeleteMinimumSetGen() { +async function dedicatedHostDeleteMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -61,8 +61,8 @@ async function dedicatedHostsDeleteMinimumSetGen() { } async function main() { - dedicatedHostsDeleteMaximumSetGen(); - dedicatedHostsDeleteMinimumSetGen(); + dedicatedHostDeleteMaximumSetGen(); + dedicatedHostDeleteMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsGetSample.ts similarity index 81% rename from sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostsGetSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsGetSample.ts index d07578bb4b9c..ba3fd8ce2e60 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsGetSample.ts @@ -8,7 +8,10 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { ComputeManagementClient } from "@azure/arm-compute"; +import { + DedicatedHostsGetOptionalParams, + ComputeManagementClient +} from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -18,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves information about a dedicated host. * * @summary Retrieves information about a dedicated host. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHost_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_Get.json */ async function getADedicatedHost() { const subscriptionId = @@ -27,12 +30,15 @@ async function getADedicatedHost() { process.env["COMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; const hostGroupName = "myDedicatedHostGroup"; const hostName = "myHost"; + const expand = "instanceView"; + const options: DedicatedHostsGetOptionalParams = { expand }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.dedicatedHosts.get( resourceGroupName, hostGroupName, - hostName + hostName, + options ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsListAvailableSizesSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsListAvailableSizesSample.ts new file mode 100644 index 000000000000..9ed05d431610 --- /dev/null +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsListAvailableSizesSample.ts @@ -0,0 +1,47 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ComputeManagementClient } from "@azure/arm-compute"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists all available dedicated host sizes to which the specified dedicated host can be resized. NOTE: The dedicated host sizes provided can be used to only scale up the existing dedicated host. + * + * @summary Lists all available dedicated host sizes to which the specified dedicated host can be resized. NOTE: The dedicated host sizes provided can be used to only scale up the existing dedicated host. + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_ListAvailableSizes.json + */ +async function getAvailableDedicatedHostSizes() { + const subscriptionId = + process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}"; + const resourceGroupName = + process.env["COMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; + const hostGroupName = "myDedicatedHostGroup"; + const hostName = "myHost"; + const credential = new DefaultAzureCredential(); + const client = new ComputeManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dedicatedHosts.listAvailableSizes( + resourceGroupName, + hostGroupName, + hostName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + getAvailableDedicatedHostSizes(); +} + +main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostsListByHostGroupSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsListByHostGroupSample.ts similarity index 84% rename from sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostsListByHostGroupSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsListByHostGroupSample.ts index 66f94826fc33..e673cf65d906 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostsListByHostGroupSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsListByHostGroupSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink property in the response to get the next page of dedicated hosts. * * @summary Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink property in the response to get the next page of dedicated hosts. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHosts_ListByHostGroup_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_ListByHostGroup_MaximumSet_Gen.json */ -async function dedicatedHostsListByHostGroupMaximumSetGen() { +async function dedicatedHostListByHostGroupMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -42,9 +42,9 @@ async function dedicatedHostsListByHostGroupMaximumSetGen() { * This sample demonstrates how to Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink property in the response to get the next page of dedicated hosts. * * @summary Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink property in the response to get the next page of dedicated hosts. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHosts_ListByHostGroup_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_ListByHostGroup_MinimumSet_Gen.json */ -async function dedicatedHostsListByHostGroupMinimumSetGen() { +async function dedicatedHostListByHostGroupMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -63,8 +63,8 @@ async function dedicatedHostsListByHostGroupMinimumSetGen() { } async function main() { - dedicatedHostsListByHostGroupMaximumSetGen(); - dedicatedHostsListByHostGroupMinimumSetGen(); + dedicatedHostListByHostGroupMaximumSetGen(); + dedicatedHostListByHostGroupMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostsRestartSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsRestartSample.ts similarity index 96% rename from sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostsRestartSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsRestartSample.ts index d25225b82292..421207bed26d 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostsRestartSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsRestartSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Restart the dedicated host. The operation will complete successfully once the dedicated host has restarted and is running. To determine the health of VMs deployed on the dedicated host after the restart check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/azure/service-health/resource-health-overview for more details. * * @summary Restart the dedicated host. The operation will complete successfully once the dedicated host has restarted and is running. To determine the health of VMs deployed on the dedicated host after the restart check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/azure/service-health/resource-health-overview for more details. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHost_Restart.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_Restart.json */ async function restartDedicatedHost() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsUpdateSample.ts similarity index 60% rename from sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostsUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsUpdateSample.ts index 043ad20f29a5..0c6c5c215305 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/dedicatedHostsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsUpdateSample.ts @@ -18,12 +18,12 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Update an dedicated host . + * This sample demonstrates how to Update a dedicated host . * - * @summary Update an dedicated host . - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHosts_Update_MaximumSet_Gen.json + * @summary Update a dedicated host . + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_Update_MaximumSet_Gen.json */ -async function dedicatedHostsUpdateMaximumSetGen() { +async function dedicatedHostUpdateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -62,12 +62,12 @@ async function dedicatedHostsUpdateMaximumSetGen() { } /** - * This sample demonstrates how to Update an dedicated host . + * This sample demonstrates how to Update a dedicated host . * - * @summary Update an dedicated host . - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/dedicatedHostExamples/DedicatedHosts_Update_MinimumSet_Gen.json + * @summary Update a dedicated host . + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_Update_MinimumSet_Gen.json */ -async function dedicatedHostsUpdateMinimumSetGen() { +async function dedicatedHostUpdateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -86,9 +86,35 @@ async function dedicatedHostsUpdateMinimumSetGen() { console.log(result); } +/** + * This sample demonstrates how to Update a dedicated host . + * + * @summary Update a dedicated host . + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/dedicatedHostExamples/DedicatedHost_Update_Resize.json + */ +async function dedicatedHostUpdateResize() { + const subscriptionId = + process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; + const resourceGroupName = + process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; + const hostGroupName = "aaaaaaaaa"; + const hostName = "aaaaaaaaaaaaaaaaaaaaa"; + const parameters: DedicatedHostUpdate = { sku: { name: "DSv3-Type1" } }; + const credential = new DefaultAzureCredential(); + const client = new ComputeManagementClient(credential, subscriptionId); + const result = await client.dedicatedHosts.beginUpdateAndWait( + resourceGroupName, + hostGroupName, + hostName, + parameters + ); + console.log(result); +} + async function main() { - dedicatedHostsUpdateMaximumSetGen(); - dedicatedHostsUpdateMinimumSetGen(); + dedicatedHostUpdateMaximumSetGen(); + dedicatedHostUpdateMinimumSetGen(); + dedicatedHostUpdateResize(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/diskAccessesCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesCreateOrUpdateSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/diskAccessesCreateOrUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesCreateOrUpdateSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/diskAccessesDeleteAPrivateEndpointConnectionSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesDeleteAPrivateEndpointConnectionSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/diskAccessesDeleteAPrivateEndpointConnectionSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesDeleteAPrivateEndpointConnectionSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/diskAccessesDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesDeleteSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/diskAccessesDeleteSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesDeleteSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/diskAccessesGetAPrivateEndpointConnectionSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesGetAPrivateEndpointConnectionSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/diskAccessesGetAPrivateEndpointConnectionSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesGetAPrivateEndpointConnectionSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/diskAccessesGetPrivateLinkResourcesSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesGetPrivateLinkResourcesSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/diskAccessesGetPrivateLinkResourcesSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesGetPrivateLinkResourcesSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/diskAccessesGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesGetSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/diskAccessesGetSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesGetSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/diskAccessesListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesListByResourceGroupSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/diskAccessesListByResourceGroupSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesListByResourceGroupSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/diskAccessesListPrivateEndpointConnectionsSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesListPrivateEndpointConnectionsSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/diskAccessesListPrivateEndpointConnectionsSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesListPrivateEndpointConnectionsSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/diskAccessesListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesListSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/diskAccessesListSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesListSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/diskAccessesUpdateAPrivateEndpointConnectionSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesUpdateAPrivateEndpointConnectionSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/diskAccessesUpdateAPrivateEndpointConnectionSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesUpdateAPrivateEndpointConnectionSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/diskAccessesUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesUpdateSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/diskAccessesUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesUpdateSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/diskEncryptionSetsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsCreateOrUpdateSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/diskEncryptionSetsCreateOrUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsCreateOrUpdateSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/diskEncryptionSetsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsDeleteSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/diskEncryptionSetsDeleteSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsDeleteSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/diskEncryptionSetsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsGetSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/diskEncryptionSetsGetSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsGetSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/diskEncryptionSetsListAssociatedResourcesSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsListAssociatedResourcesSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/diskEncryptionSetsListAssociatedResourcesSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsListAssociatedResourcesSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/diskEncryptionSetsListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsListByResourceGroupSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/diskEncryptionSetsListByResourceGroupSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsListByResourceGroupSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/diskEncryptionSetsListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsListSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/diskEncryptionSetsListSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsListSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/diskEncryptionSetsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsUpdateSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/diskEncryptionSetsUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsUpdateSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/diskRestorePointGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskRestorePointGetSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/diskRestorePointGetSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/diskRestorePointGetSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/diskRestorePointGrantAccessSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskRestorePointGrantAccessSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/diskRestorePointGrantAccessSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/diskRestorePointGrantAccessSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/diskRestorePointListByRestorePointSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskRestorePointListByRestorePointSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/diskRestorePointListByRestorePointSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/diskRestorePointListByRestorePointSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/diskRestorePointRevokeAccessSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskRestorePointRevokeAccessSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/diskRestorePointRevokeAccessSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/diskRestorePointRevokeAccessSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/disksCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/disksCreateOrUpdateSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/disksCreateOrUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/disksCreateOrUpdateSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/disksDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/disksDeleteSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/disksDeleteSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/disksDeleteSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/disksGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/disksGetSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/disksGetSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/disksGetSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/disksGrantAccessSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/disksGrantAccessSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/disksGrantAccessSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/disksGrantAccessSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/disksListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/disksListByResourceGroupSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/disksListByResourceGroupSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/disksListByResourceGroupSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/disksListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/disksListSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/disksListSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/disksListSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/disksRevokeAccessSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/disksRevokeAccessSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/disksRevokeAccessSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/disksRevokeAccessSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/disksUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/disksUpdateSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/disksUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/disksUpdateSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/galleriesCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesCreateOrUpdateSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/galleriesCreateOrUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/galleriesCreateOrUpdateSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/galleriesDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesDeleteSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/galleriesDeleteSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/galleriesDeleteSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/galleriesGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesGetSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/galleriesGetSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/galleriesGetSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/galleriesListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesListByResourceGroupSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/galleriesListByResourceGroupSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/galleriesListByResourceGroupSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/galleriesListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesListSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/galleriesListSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/galleriesListSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/galleriesUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesUpdateSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/galleriesUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/galleriesUpdateSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/galleryApplicationVersionsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsCreateOrUpdateSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/galleryApplicationVersionsCreateOrUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsCreateOrUpdateSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/galleryApplicationVersionsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsDeleteSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/galleryApplicationVersionsDeleteSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsDeleteSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/galleryApplicationVersionsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsGetSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/galleryApplicationVersionsGetSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsGetSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/galleryApplicationVersionsListByGalleryApplicationSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsListByGalleryApplicationSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/galleryApplicationVersionsListByGalleryApplicationSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsListByGalleryApplicationSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/galleryApplicationVersionsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsUpdateSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/galleryApplicationVersionsUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsUpdateSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/galleryApplicationsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsCreateOrUpdateSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/galleryApplicationsCreateOrUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsCreateOrUpdateSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/galleryApplicationsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsDeleteSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/galleryApplicationsDeleteSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsDeleteSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/galleryApplicationsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsGetSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/galleryApplicationsGetSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsGetSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/galleryApplicationsListByGallerySample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsListByGallerySample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/galleryApplicationsListByGallerySample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsListByGallerySample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/galleryApplicationsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsUpdateSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/galleryApplicationsUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsUpdateSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/galleryImageVersionsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsCreateOrUpdateSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/galleryImageVersionsCreateOrUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsCreateOrUpdateSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/galleryImageVersionsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsDeleteSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/galleryImageVersionsDeleteSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsDeleteSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/galleryImageVersionsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsGetSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/galleryImageVersionsGetSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsGetSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/galleryImageVersionsListByGalleryImageSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsListByGalleryImageSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/galleryImageVersionsListByGalleryImageSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsListByGalleryImageSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/galleryImageVersionsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsUpdateSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/galleryImageVersionsUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsUpdateSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/galleryImagesCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesCreateOrUpdateSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/galleryImagesCreateOrUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesCreateOrUpdateSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/galleryImagesDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesDeleteSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/galleryImagesDeleteSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesDeleteSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/galleryImagesGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesGetSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/galleryImagesGetSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesGetSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/galleryImagesListByGallerySample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesListByGallerySample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/galleryImagesListByGallerySample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesListByGallerySample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/galleryImagesUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesUpdateSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/galleryImagesUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesUpdateSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/gallerySharingProfileUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/gallerySharingProfileUpdateSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/gallerySharingProfileUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/gallerySharingProfileUpdateSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/imagesCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/imagesCreateOrUpdateSample.ts similarity index 95% rename from sdk/compute/arm-compute/samples/v20/typescript/src/imagesCreateOrUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/imagesCreateOrUpdateSample.ts index 5a41e5ad1f06..6b7141ac0495 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/imagesCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/imagesCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create or update an image. * * @summary Create or update an image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_CreateFromABlobWithDiskEncryptionSet.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_CreateFromABlobWithDiskEncryptionSet.json */ async function createAVirtualMachineImageFromABlobWithDiskEncryptionSetResource() { const subscriptionId = @@ -55,7 +55,7 @@ async function createAVirtualMachineImageFromABlobWithDiskEncryptionSetResource( * This sample demonstrates how to Create or update an image. * * @summary Create or update an image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_CreateFromABlob.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_CreateFromABlob.json */ async function createAVirtualMachineImageFromABlob() { const subscriptionId = @@ -89,7 +89,7 @@ async function createAVirtualMachineImageFromABlob() { * This sample demonstrates how to Create or update an image. * * @summary Create or update an image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_CreateFromAManagedDiskWithDiskEncryptionSet.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_CreateFromAManagedDiskWithDiskEncryptionSet.json */ async function createAVirtualMachineImageFromAManagedDiskWithDiskEncryptionSetResource() { const subscriptionId = @@ -128,7 +128,7 @@ async function createAVirtualMachineImageFromAManagedDiskWithDiskEncryptionSetRe * This sample demonstrates how to Create or update an image. * * @summary Create or update an image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_CreateFromAManagedDisk.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_CreateFromAManagedDisk.json */ async function createAVirtualMachineImageFromAManagedDisk() { const subscriptionId = @@ -164,7 +164,7 @@ async function createAVirtualMachineImageFromAManagedDisk() { * This sample demonstrates how to Create or update an image. * * @summary Create or update an image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_CreateFromASnapshotWithDiskEncryptionSet.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_CreateFromASnapshotWithDiskEncryptionSet.json */ async function createAVirtualMachineImageFromASnapshotWithDiskEncryptionSetResource() { const subscriptionId = @@ -203,7 +203,7 @@ async function createAVirtualMachineImageFromASnapshotWithDiskEncryptionSetResou * This sample demonstrates how to Create or update an image. * * @summary Create or update an image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_CreateFromASnapshot.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_CreateFromASnapshot.json */ async function createAVirtualMachineImageFromASnapshot() { const subscriptionId = @@ -239,7 +239,7 @@ async function createAVirtualMachineImageFromASnapshot() { * This sample demonstrates how to Create or update an image. * * @summary Create or update an image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_CreateFromAVM.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_CreateFromAVM.json */ async function createAVirtualMachineImageFromAnExistingVirtualMachine() { const subscriptionId = @@ -268,7 +268,7 @@ async function createAVirtualMachineImageFromAnExistingVirtualMachine() { * This sample demonstrates how to Create or update an image. * * @summary Create or update an image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_Create_DataDiskFromABlobIncluded.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_Create_DataDiskFromABlobIncluded.json */ async function createAVirtualMachineImageThatIncludesADataDiskFromABlob() { const subscriptionId = @@ -309,7 +309,7 @@ async function createAVirtualMachineImageThatIncludesADataDiskFromABlob() { * This sample demonstrates how to Create or update an image. * * @summary Create or update an image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_Create_DataDiskFromAManagedDiskIncluded.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_Create_DataDiskFromAManagedDiskIncluded.json */ async function createAVirtualMachineImageThatIncludesADataDiskFromAManagedDisk() { const subscriptionId = @@ -354,7 +354,7 @@ async function createAVirtualMachineImageThatIncludesADataDiskFromAManagedDisk() * This sample demonstrates how to Create or update an image. * * @summary Create or update an image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_Create_DataDiskFromASnapshotIncluded.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_Create_DataDiskFromASnapshotIncluded.json */ async function createAVirtualMachineImageThatIncludesADataDiskFromASnapshot() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/imagesDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/imagesDeleteSample.ts similarity index 87% rename from sdk/compute/arm-compute/samples/v20/typescript/src/imagesDeleteSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/imagesDeleteSample.ts index a709652bb177..1054a08c2d9e 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/imagesDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/imagesDeleteSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Deletes an Image. * * @summary Deletes an Image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Images_Delete_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Images_Delete_MaximumSet_Gen.json */ -async function imagesDeleteMaximumSetGen() { +async function imageDeleteMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -39,9 +39,9 @@ async function imagesDeleteMaximumSetGen() { * This sample demonstrates how to Deletes an Image. * * @summary Deletes an Image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Images_Delete_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Images_Delete_MinimumSet_Gen.json */ -async function imagesDeleteMinimumSetGen() { +async function imageDeleteMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -57,8 +57,8 @@ async function imagesDeleteMinimumSetGen() { } async function main() { - imagesDeleteMaximumSetGen(); - imagesDeleteMinimumSetGen(); + imageDeleteMaximumSetGen(); + imageDeleteMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/imagesGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/imagesGetSample.ts similarity index 95% rename from sdk/compute/arm-compute/samples/v20/typescript/src/imagesGetSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/imagesGetSample.ts index 0eeb7e9e0a63..7292e058c677 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/imagesGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/imagesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets an image. * * @summary Gets an image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_Get.json */ async function getInformationAboutAVirtualMachineImage() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/imagesListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/imagesListByResourceGroupSample.ts similarity index 95% rename from sdk/compute/arm-compute/samples/v20/typescript/src/imagesListByResourceGroupSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/imagesListByResourceGroupSample.ts index 639c0e8318d5..2083494da63c 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/imagesListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/imagesListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the list of images under a resource group. * * @summary Gets the list of images under a resource group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_ListByResourceGroup.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_ListByResourceGroup.json */ async function listAllVirtualMachineImagesInAResourceGroup() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/imagesListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/imagesListSample.ts similarity index 95% rename from sdk/compute/arm-compute/samples/v20/typescript/src/imagesListSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/imagesListSample.ts index b92c2662fade..496173c53cf3 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/imagesListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/imagesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the list of Images in the subscription. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images. * * @summary Gets the list of Images in the subscription. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_ListBySubscription.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_ListBySubscription.json */ async function listAllVirtualMachineImagesInASubscription() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/imagesUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/imagesUpdateSample.ts similarity index 96% rename from sdk/compute/arm-compute/samples/v20/typescript/src/imagesUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/imagesUpdateSample.ts index ed5b408de7e3..15e9f268e95e 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/imagesUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/imagesUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Update an image. * * @summary Update an image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/imageExamples/Image_Update.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/imageExamples/Image_Update.json */ async function updatesTagsOfAnImage() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/logAnalyticsExportRequestRateByIntervalSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/logAnalyticsExportRequestRateByIntervalSample.ts similarity index 96% rename from sdk/compute/arm-compute/samples/v20/typescript/src/logAnalyticsExportRequestRateByIntervalSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/logAnalyticsExportRequestRateByIntervalSample.ts index e3073683b33a..dbe224fb7f90 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/logAnalyticsExportRequestRateByIntervalSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/logAnalyticsExportRequestRateByIntervalSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Export logs that show Api requests made by this subscription in the given time window to show throttling activities. * * @summary Export logs that show Api requests made by this subscription in the given time window to show throttling activities. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/logAnalyticExamples/LogAnalytics_RequestRateByInterval.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/logAnalyticExamples/LogAnalytics_RequestRateByInterval.json */ async function exportLogsWhichContainAllApiRequestsMadeToComputeResourceProviderWithinTheGivenTimePeriodBrokenDownByIntervals() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/logAnalyticsExportThrottledRequestsSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/logAnalyticsExportThrottledRequestsSample.ts similarity index 96% rename from sdk/compute/arm-compute/samples/v20/typescript/src/logAnalyticsExportThrottledRequestsSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/logAnalyticsExportThrottledRequestsSample.ts index 03c7f476ddac..90b2b4353749 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/logAnalyticsExportThrottledRequestsSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/logAnalyticsExportThrottledRequestsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Export logs that show total throttled Api requests for this subscription in the given time window. * * @summary Export logs that show total throttled Api requests for this subscription in the given time window. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/logAnalyticExamples/LogAnalytics_ThrottledRequests.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/logAnalyticExamples/LogAnalytics_ThrottledRequests.json */ async function exportLogsWhichContainAllThrottledApiRequestsMadeToComputeResourceProviderWithinTheGivenTimePeriod() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/operationsListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/operationsListSample.ts similarity index 93% rename from sdk/compute/arm-compute/samples/v20/typescript/src/operationsListSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/operationsListSample.ts index 355a8cc14a99..e88b129734b9 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/operationsListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/operationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of compute operations. * * @summary Gets a list of compute operations. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/computeRPCommonExamples/Operations_List_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/computeRPCommonExamples/Operations_List_MaximumSet_Gen.json */ async function operationsListMaximumSetGen() { const subscriptionId = @@ -37,7 +37,7 @@ async function operationsListMaximumSetGen() { * This sample demonstrates how to Gets a list of compute operations. * * @summary Gets a list of compute operations. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/computeRPCommonExamples/Operations_List_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/computeRPCommonExamples/Operations_List_MinimumSet_Gen.json */ async function operationsListMinimumSetGen() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/proximityPlacementGroupsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsCreateOrUpdateSample.ts similarity index 96% rename from sdk/compute/arm-compute/samples/v20/typescript/src/proximityPlacementGroupsCreateOrUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsCreateOrUpdateSample.ts index 405dd56c8ce5..f1fd3bb78f36 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/proximityPlacementGroupsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a proximity placement group. * * @summary Create or update a proximity placement group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_CreateOrUpdate.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_CreateOrUpdate.json */ async function createOrUpdateAProximityPlacementGroup() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/proximityPlacementGroupsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsDeleteSample.ts similarity index 89% rename from sdk/compute/arm-compute/samples/v20/typescript/src/proximityPlacementGroupsDeleteSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsDeleteSample.ts index 8d6988f29298..aad3c80a1a12 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/proximityPlacementGroupsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsDeleteSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Delete a proximity placement group. * * @summary Delete a proximity placement group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_Delete.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_Delete.json */ -async function createAProximityPlacementGroup() { +async function deleteAProximityPlacementGroup() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -36,7 +36,7 @@ async function createAProximityPlacementGroup() { } async function main() { - createAProximityPlacementGroup(); + deleteAProximityPlacementGroup(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/proximityPlacementGroupsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsGetSample.ts similarity index 89% rename from sdk/compute/arm-compute/samples/v20/typescript/src/proximityPlacementGroupsGetSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsGetSample.ts index 16a4f2dcc8a1..f64425a9fc5f 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/proximityPlacementGroupsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsGetSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Retrieves information about a proximity placement group . * * @summary Retrieves information about a proximity placement group . - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_Get.json */ -async function createAProximityPlacementGroup() { +async function getProximityPlacementGroups() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -36,7 +36,7 @@ async function createAProximityPlacementGroup() { } async function main() { - createAProximityPlacementGroup(); + getProximityPlacementGroups(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/proximityPlacementGroupsListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsListByResourceGroupSample.ts similarity index 89% rename from sdk/compute/arm-compute/samples/v20/typescript/src/proximityPlacementGroupsListByResourceGroupSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsListByResourceGroupSample.ts index fa5b0ff563d6..09c0f58db270 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/proximityPlacementGroupsListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsListByResourceGroupSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Lists all proximity placement groups in a resource group. * * @summary Lists all proximity placement groups in a resource group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_ListByResourceGroup.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_ListByResourceGroup.json */ -async function createAProximityPlacementGroup() { +async function listProximityPlacementGroup() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -37,7 +37,7 @@ async function createAProximityPlacementGroup() { } async function main() { - createAProximityPlacementGroup(); + listProximityPlacementGroup(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/proximityPlacementGroupsListBySubscriptionSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsListBySubscriptionSample.ts similarity index 89% rename from sdk/compute/arm-compute/samples/v20/typescript/src/proximityPlacementGroupsListBySubscriptionSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsListBySubscriptionSample.ts index 80d1a1ea3643..4c289e52c749 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/proximityPlacementGroupsListBySubscriptionSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsListBySubscriptionSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Lists all proximity placement groups in a subscription. * * @summary Lists all proximity placement groups in a subscription. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_ListBySubscription.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_ListBySubscription.json */ -async function createAProximityPlacementGroup() { +async function listProximityPlacementGroups() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const credential = new DefaultAzureCredential(); @@ -33,7 +33,7 @@ async function createAProximityPlacementGroup() { } async function main() { - createAProximityPlacementGroup(); + listProximityPlacementGroups(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/proximityPlacementGroupsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsUpdateSample.ts similarity index 90% rename from sdk/compute/arm-compute/samples/v20/typescript/src/proximityPlacementGroupsUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsUpdateSample.ts index c941530552e1..b8ea81fd685c 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/proximityPlacementGroupsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsUpdateSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to Update a proximity placement group. * * @summary Update a proximity placement group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_Patch.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_Patch.json */ -async function createAProximityPlacementGroup() { +async function updateAProximityPlacementGroup() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -43,7 +43,7 @@ async function createAProximityPlacementGroup() { } async function main() { - createAProximityPlacementGroup(); + updateAProximityPlacementGroup(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/resourceSkusListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/resourceSkusListSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/resourceSkusListSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/resourceSkusListSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/restorePointCollectionsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsCreateOrUpdateSample.ts similarity index 96% rename from sdk/compute/arm-compute/samples/v20/typescript/src/restorePointCollectionsCreateOrUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsCreateOrUpdateSample.ts index 224f2231ed45..106a570d7ee5 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/restorePointCollectionsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to create or update the restore point collection. Please refer to https://aka.ms/RestorePoints for more details. When updating a restore point collection, only tags may be modified. * * @summary The operation to create or update the restore point collection. Please refer to https://aka.ms/RestorePoints for more details. When updating a restore point collection, only tags may be modified. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollection_CreateOrUpdate_ForCrossRegionCopy.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePointCollection_CreateOrUpdate_ForCrossRegionCopy.json */ async function createOrUpdateARestorePointCollectionForCrossRegionCopy() { const subscriptionId = @@ -51,7 +51,7 @@ async function createOrUpdateARestorePointCollectionForCrossRegionCopy() { * This sample demonstrates how to The operation to create or update the restore point collection. Please refer to https://aka.ms/RestorePoints for more details. When updating a restore point collection, only tags may be modified. * * @summary The operation to create or update the restore point collection. Please refer to https://aka.ms/RestorePoints for more details. When updating a restore point collection, only tags may be modified. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollection_CreateOrUpdate.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePointCollection_CreateOrUpdate.json */ async function createOrUpdateARestorePointCollection() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/restorePointCollectionsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsDeleteSample.ts similarity index 83% rename from sdk/compute/arm-compute/samples/v20/typescript/src/restorePointCollectionsDeleteSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsDeleteSample.ts index 2722bdf3f1f6..387c815a21fd 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/restorePointCollectionsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsDeleteSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to The operation to delete the restore point collection. This operation will also delete all the contained restore points. * * @summary The operation to delete the restore point collection. This operation will also delete all the contained restore points. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollections_Delete_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePointCollection_Delete_MaximumSet_Gen.json */ -async function restorePointCollectionsDeleteMaximumSetGen() { +async function restorePointCollectionDeleteMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -39,9 +39,9 @@ async function restorePointCollectionsDeleteMaximumSetGen() { * This sample demonstrates how to The operation to delete the restore point collection. This operation will also delete all the contained restore points. * * @summary The operation to delete the restore point collection. This operation will also delete all the contained restore points. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollections_Delete_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePointCollection_Delete_MinimumSet_Gen.json */ -async function restorePointCollectionsDeleteMinimumSetGen() { +async function restorePointCollectionDeleteMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -57,8 +57,8 @@ async function restorePointCollectionsDeleteMinimumSetGen() { } async function main() { - restorePointCollectionsDeleteMaximumSetGen(); - restorePointCollectionsDeleteMinimumSetGen(); + restorePointCollectionDeleteMaximumSetGen(); + restorePointCollectionDeleteMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/restorePointCollectionsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsGetSample.ts similarity index 95% rename from sdk/compute/arm-compute/samples/v20/typescript/src/restorePointCollectionsGetSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsGetSample.ts index 69799fcabb1d..4fa6a318c082 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/restorePointCollectionsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to get the restore point collection. * * @summary The operation to get the restore point collection. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollection_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePointCollection_Get.json */ async function getARestorePointCollectionButNotTheRestorePointsContainedInTheRestorePointCollection() { const subscriptionId = @@ -39,7 +39,7 @@ async function getARestorePointCollectionButNotTheRestorePointsContainedInTheRes * This sample demonstrates how to The operation to get the restore point collection. * * @summary The operation to get the restore point collection. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollection_Get_WithContainedRestorePoints.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePointCollection_Get_WithContainedRestorePoints.json */ async function getARestorePointCollectionIncludingTheRestorePointsContainedInTheRestorePointCollection() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/restorePointCollectionsListAllSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsListAllSample.ts similarity index 96% rename from sdk/compute/arm-compute/samples/v20/typescript/src/restorePointCollectionsListAllSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsListAllSample.ts index 77bf6fc01e78..3ef3cce02815 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/restorePointCollectionsListAllSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsListAllSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the list of restore point collections in the subscription. Use nextLink property in the response to get the next page of restore point collections. Do this till nextLink is not null to fetch all the restore point collections. * * @summary Gets the list of restore point collections in the subscription. Use nextLink property in the response to get the next page of restore point collections. Do this till nextLink is not null to fetch all the restore point collections. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollection_ListBySubscription.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePointCollection_ListBySubscription.json */ async function getsTheListOfRestorePointCollectionsInASubscription() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/restorePointCollectionsListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsListSample.ts similarity index 95% rename from sdk/compute/arm-compute/samples/v20/typescript/src/restorePointCollectionsListSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsListSample.ts index 3366862b7a0b..e24fec2783ee 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/restorePointCollectionsListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the list of restore point collections in a resource group. * * @summary Gets the list of restore point collections in a resource group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollection_ListByResourceGroup.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePointCollection_ListByResourceGroup.json */ async function getsTheListOfRestorePointCollectionsInAResourceGroup() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/restorePointCollectionsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsUpdateSample.ts similarity index 83% rename from sdk/compute/arm-compute/samples/v20/typescript/src/restorePointCollectionsUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsUpdateSample.ts index 3d7013b400b1..71a4e7971f2b 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/restorePointCollectionsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsUpdateSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to The operation to update the restore point collection. * * @summary The operation to update the restore point collection. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollections_Update_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePointCollection_Update_MaximumSet_Gen.json */ -async function restorePointCollectionsUpdateMaximumSetGen() { +async function restorePointCollectionUpdateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -50,9 +50,9 @@ async function restorePointCollectionsUpdateMaximumSetGen() { * This sample demonstrates how to The operation to update the restore point collection. * * @summary The operation to update the restore point collection. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePointCollections_Update_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePointCollection_Update_MinimumSet_Gen.json */ -async function restorePointCollectionsUpdateMinimumSetGen() { +async function restorePointCollectionUpdateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -70,8 +70,8 @@ async function restorePointCollectionsUpdateMinimumSetGen() { } async function main() { - restorePointCollectionsUpdateMaximumSetGen(); - restorePointCollectionsUpdateMinimumSetGen(); + restorePointCollectionUpdateMaximumSetGen(); + restorePointCollectionUpdateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/restorePointsCreateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointsCreateSample.ts similarity index 96% rename from sdk/compute/arm-compute/samples/v20/typescript/src/restorePointsCreateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/restorePointsCreateSample.ts index cfaed65a048a..be8562868220 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/restorePointsCreateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointsCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to create the restore point. Updating properties of an existing restore point is not allowed * * @summary The operation to create the restore point. Updating properties of an existing restore point is not allowed - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePoint_Copy_BetweenRegions.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePoint_Copy_BetweenRegions.json */ async function copyARestorePointToADifferentRegion() { const subscriptionId = @@ -48,7 +48,7 @@ async function copyARestorePointToADifferentRegion() { * This sample demonstrates how to The operation to create the restore point. Updating properties of an existing restore point is not allowed * * @summary The operation to create the restore point. Updating properties of an existing restore point is not allowed - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePoint_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePoint_Create.json */ async function createARestorePoint() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/restorePointsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointsDeleteSample.ts similarity index 83% rename from sdk/compute/arm-compute/samples/v20/typescript/src/restorePointsDeleteSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/restorePointsDeleteSample.ts index dce16b22e09e..a552990eb26a 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/restorePointsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointsDeleteSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to The operation to delete the restore point. * * @summary The operation to delete the restore point. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePoints_Delete_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePoint_Delete_MaximumSet_Gen.json */ -async function restorePointsDeleteMaximumSetGen() { +async function restorePointDeleteMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -41,9 +41,9 @@ async function restorePointsDeleteMaximumSetGen() { * This sample demonstrates how to The operation to delete the restore point. * * @summary The operation to delete the restore point. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePoints_Delete_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePoint_Delete_MinimumSet_Gen.json */ -async function restorePointsDeleteMinimumSetGen() { +async function restorePointDeleteMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -61,8 +61,8 @@ async function restorePointsDeleteMinimumSetGen() { } async function main() { - restorePointsDeleteMaximumSetGen(); - restorePointsDeleteMinimumSetGen(); + restorePointDeleteMaximumSetGen(); + restorePointDeleteMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/restorePointsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointsGetSample.ts similarity index 94% rename from sdk/compute/arm-compute/samples/v20/typescript/src/restorePointsGetSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/restorePointsGetSample.ts index 98537f6b808e..2a6566f77890 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/restorePointsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to get the restore point. * * @summary The operation to get the restore point. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePoint_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePoint_Get.json */ async function getARestorePoint() { const subscriptionId = @@ -41,7 +41,7 @@ async function getARestorePoint() { * This sample demonstrates how to The operation to get the restore point. * * @summary The operation to get the restore point. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/restorePointExamples/RestorePoint_Get_WithInstanceView.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/restorePointExamples/RestorePoint_Get_WithInstanceView.json */ async function getRestorePointWithInstanceView() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/sharedGalleriesGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleriesGetSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/sharedGalleriesGetSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleriesGetSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/sharedGalleriesListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleriesListSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/sharedGalleriesListSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleriesListSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/sharedGalleryImageVersionsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleryImageVersionsGetSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/sharedGalleryImageVersionsGetSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleryImageVersionsGetSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/sharedGalleryImageVersionsListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleryImageVersionsListSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/sharedGalleryImageVersionsListSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleryImageVersionsListSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/sharedGalleryImagesGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleryImagesGetSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/sharedGalleryImagesGetSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleryImagesGetSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/sharedGalleryImagesListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleryImagesListSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/sharedGalleryImagesListSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleryImagesListSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/snapshotsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsCreateOrUpdateSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/snapshotsCreateOrUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsCreateOrUpdateSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/snapshotsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsDeleteSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/snapshotsDeleteSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsDeleteSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/snapshotsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsGetSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/snapshotsGetSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsGetSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/snapshotsGrantAccessSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsGrantAccessSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/snapshotsGrantAccessSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsGrantAccessSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/snapshotsListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsListByResourceGroupSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/snapshotsListByResourceGroupSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsListByResourceGroupSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/snapshotsListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsListSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/snapshotsListSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsListSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/snapshotsRevokeAccessSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsRevokeAccessSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/snapshotsRevokeAccessSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsRevokeAccessSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/snapshotsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsUpdateSample.ts similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/src/snapshotsUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsUpdateSample.ts diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/sshPublicKeysCreateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysCreateSample.ts similarity index 95% rename from sdk/compute/arm-compute/samples/v20/typescript/src/sshPublicKeysCreateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysCreateSample.ts index 8e8549e85e4e..f1d5e21f427c 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/sshPublicKeysCreateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysCreateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a new SSH public key resource. * * @summary Creates a new SSH public key resource. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKey_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_Create.json */ async function createANewSshPublicKeyResource() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/sshPublicKeysDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysDeleteSample.ts similarity index 81% rename from sdk/compute/arm-compute/samples/v20/typescript/src/sshPublicKeysDeleteSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysDeleteSample.ts index e779f2508d32..760eddf5bf4d 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/sshPublicKeysDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysDeleteSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Delete an SSH public key. * * @summary Delete an SSH public key. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKeys_Delete_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_Delete_MaximumSet_Gen.json */ -async function sshPublicKeysDeleteMaximumSetGen() { +async function sshPublicKeyDeleteMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -39,9 +39,9 @@ async function sshPublicKeysDeleteMaximumSetGen() { * This sample demonstrates how to Delete an SSH public key. * * @summary Delete an SSH public key. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKeys_Delete_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_Delete_MinimumSet_Gen.json */ -async function sshPublicKeysDeleteMinimumSetGen() { +async function sshPublicKeyDeleteMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -57,8 +57,8 @@ async function sshPublicKeysDeleteMinimumSetGen() { } async function main() { - sshPublicKeysDeleteMaximumSetGen(); - sshPublicKeysDeleteMinimumSetGen(); + sshPublicKeyDeleteMaximumSetGen(); + sshPublicKeyDeleteMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/sshPublicKeysGenerateKeyPairSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysGenerateKeyPairSample.ts similarity index 93% rename from sdk/compute/arm-compute/samples/v20/typescript/src/sshPublicKeysGenerateKeyPairSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysGenerateKeyPairSample.ts index cd823187fd2e..6656c7dac31d 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/sshPublicKeysGenerateKeyPairSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysGenerateKeyPairSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Generates and returns a public/private key pair and populates the SSH public key resource with the public key. The length of the key will be 3072 bits. This operation can only be performed once per SSH public key resource. * * @summary Generates and returns a public/private key pair and populates the SSH public key resource with the public key. The length of the key will be 3072 bits. This operation can only be performed once per SSH public key resource. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKeys_GenerateKeyPair.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_GenerateKeyPair.json */ async function generateAnSshKeyPair() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/sshPublicKeysGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysGetSample.ts similarity index 95% rename from sdk/compute/arm-compute/samples/v20/typescript/src/sshPublicKeysGetSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysGetSample.ts index 9317549dca87..1ccb6803e437 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/sshPublicKeysGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves information about an SSH public key. * * @summary Retrieves information about an SSH public key. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKey_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_Get.json */ async function getAnSshPublicKey() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/sshPublicKeysListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysListByResourceGroupSample.ts similarity index 82% rename from sdk/compute/arm-compute/samples/v20/typescript/src/sshPublicKeysListByResourceGroupSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysListByResourceGroupSample.ts index 8353e0b2b422..6c44483c715e 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/sshPublicKeysListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysListByResourceGroupSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Lists all of the SSH public keys in the specified resource group. Use the nextLink property in the response to get the next page of SSH public keys. * * @summary Lists all of the SSH public keys in the specified resource group. Use the nextLink property in the response to get the next page of SSH public keys. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKeys_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_ListByResourceGroup_MaximumSet_Gen.json */ -async function sshPublicKeysListByResourceGroupMaximumSetGen() { +async function sshPublicKeyListByResourceGroupMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -40,9 +40,9 @@ async function sshPublicKeysListByResourceGroupMaximumSetGen() { * This sample demonstrates how to Lists all of the SSH public keys in the specified resource group. Use the nextLink property in the response to get the next page of SSH public keys. * * @summary Lists all of the SSH public keys in the specified resource group. Use the nextLink property in the response to get the next page of SSH public keys. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKeys_ListByResourceGroup_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_ListByResourceGroup_MinimumSet_Gen.json */ -async function sshPublicKeysListByResourceGroupMinimumSetGen() { +async function sshPublicKeyListByResourceGroupMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -59,8 +59,8 @@ async function sshPublicKeysListByResourceGroupMinimumSetGen() { } async function main() { - sshPublicKeysListByResourceGroupMaximumSetGen(); - sshPublicKeysListByResourceGroupMinimumSetGen(); + sshPublicKeyListByResourceGroupMaximumSetGen(); + sshPublicKeyListByResourceGroupMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/sshPublicKeysListBySubscriptionSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysListBySubscriptionSample.ts similarity index 81% rename from sdk/compute/arm-compute/samples/v20/typescript/src/sshPublicKeysListBySubscriptionSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysListBySubscriptionSample.ts index da91c0aca05e..36bbc5f97d7b 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/sshPublicKeysListBySubscriptionSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysListBySubscriptionSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Lists all of the SSH public keys in the subscription. Use the nextLink property in the response to get the next page of SSH public keys. * * @summary Lists all of the SSH public keys in the subscription. Use the nextLink property in the response to get the next page of SSH public keys. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKeys_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_ListBySubscription_MaximumSet_Gen.json */ -async function sshPublicKeysListBySubscriptionMaximumSetGen() { +async function sshPublicKeyListBySubscriptionMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const credential = new DefaultAzureCredential(); @@ -36,9 +36,9 @@ async function sshPublicKeysListBySubscriptionMaximumSetGen() { * This sample demonstrates how to Lists all of the SSH public keys in the subscription. Use the nextLink property in the response to get the next page of SSH public keys. * * @summary Lists all of the SSH public keys in the subscription. Use the nextLink property in the response to get the next page of SSH public keys. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKeys_ListBySubscription_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_ListBySubscription_MinimumSet_Gen.json */ -async function sshPublicKeysListBySubscriptionMinimumSetGen() { +async function sshPublicKeyListBySubscriptionMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const credential = new DefaultAzureCredential(); @@ -51,8 +51,8 @@ async function sshPublicKeysListBySubscriptionMinimumSetGen() { } async function main() { - sshPublicKeysListBySubscriptionMaximumSetGen(); - sshPublicKeysListBySubscriptionMinimumSetGen(); + sshPublicKeyListBySubscriptionMaximumSetGen(); + sshPublicKeyListBySubscriptionMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/sshPublicKeysUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysUpdateSample.ts similarity index 83% rename from sdk/compute/arm-compute/samples/v20/typescript/src/sshPublicKeysUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysUpdateSample.ts index 896e1ace4301..2b7a705bd804 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/sshPublicKeysUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysUpdateSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to Updates a new SSH public key resource. * * @summary Updates a new SSH public key resource. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKeys_Update_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_Update_MaximumSet_Gen.json */ -async function sshPublicKeysUpdateMaximumSetGen() { +async function sshPublicKeyUpdateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -47,9 +47,9 @@ async function sshPublicKeysUpdateMaximumSetGen() { * This sample demonstrates how to Updates a new SSH public key resource. * * @summary Updates a new SSH public key resource. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/sshPublicKeyExamples/SshPublicKeys_Update_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/sshPublicKeyExamples/SshPublicKey_Update_MinimumSet_Gen.json */ -async function sshPublicKeysUpdateMinimumSetGen() { +async function sshPublicKeyUpdateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -67,8 +67,8 @@ async function sshPublicKeysUpdateMinimumSetGen() { } async function main() { - sshPublicKeysUpdateMaximumSetGen(); - sshPublicKeysUpdateMinimumSetGen(); + sshPublicKeyUpdateMaximumSetGen(); + sshPublicKeyUpdateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/usageListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/usageListSample.ts similarity index 94% rename from sdk/compute/arm-compute/samples/v20/typescript/src/usageListSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/usageListSample.ts index ea8fd6e133d0..cb079f7f35d8 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/usageListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/usageListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription. * * @summary Gets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/computeRPCommonExamples/Usage_List_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/computeRPCommonExamples/Usage_List_MaximumSet_Gen.json */ async function usageListMaximumSetGen() { const subscriptionId = @@ -37,7 +37,7 @@ async function usageListMaximumSetGen() { * This sample demonstrates how to Gets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription. * * @summary Gets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/computeRPCommonExamples/Usage_List_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/computeRPCommonExamples/Usage_List_MinimumSet_Gen.json */ async function usageListMinimumSetGen() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineExtensionImagesGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionImagesGetSample.ts similarity index 79% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineExtensionImagesGetSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionImagesGetSample.ts index d0569802bcc3..d14cadf19389 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineExtensionImagesGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionImagesGetSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Gets a virtual machine extension image. * * @summary Gets a virtual machine extension image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_Get_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_Get_MaximumSet_Gen.json */ -async function virtualMachineExtensionImagesGetMaximumSetGen() { +async function virtualMachineExtensionImageGetMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaaaaaaaaaaa"; @@ -42,9 +42,9 @@ async function virtualMachineExtensionImagesGetMaximumSetGen() { * This sample demonstrates how to Gets a virtual machine extension image. * * @summary Gets a virtual machine extension image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_Get_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_Get_MinimumSet_Gen.json */ -async function virtualMachineExtensionImagesGetMinimumSetGen() { +async function virtualMachineExtensionImageGetMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaaaaaaaaaaaa"; @@ -63,8 +63,8 @@ async function virtualMachineExtensionImagesGetMinimumSetGen() { } async function main() { - virtualMachineExtensionImagesGetMaximumSetGen(); - virtualMachineExtensionImagesGetMinimumSetGen(); + virtualMachineExtensionImageGetMaximumSetGen(); + virtualMachineExtensionImageGetMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineExtensionImagesListTypesSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionImagesListTypesSample.ts similarity index 76% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineExtensionImagesListTypesSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionImagesListTypesSample.ts index 4b37858f6553..578ffadc1374 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineExtensionImagesListTypesSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionImagesListTypesSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Gets a list of virtual machine extension image types. * * @summary Gets a list of virtual machine extension image types. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListTypes_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListTypes_MaximumSet_Gen.json */ -async function virtualMachineExtensionImagesListTypesMaximumSetGen() { +async function virtualMachineExtensionImageListTypesMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaaaaaaaaaaaaaaaaaaaaaaaa"; @@ -38,9 +38,9 @@ async function virtualMachineExtensionImagesListTypesMaximumSetGen() { * This sample demonstrates how to Gets a list of virtual machine extension image types. * * @summary Gets a list of virtual machine extension image types. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListTypes_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListTypes_MinimumSet_Gen.json */ -async function virtualMachineExtensionImagesListTypesMinimumSetGen() { +async function virtualMachineExtensionImageListTypesMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaa"; @@ -55,8 +55,8 @@ async function virtualMachineExtensionImagesListTypesMinimumSetGen() { } async function main() { - virtualMachineExtensionImagesListTypesMaximumSetGen(); - virtualMachineExtensionImagesListTypesMinimumSetGen(); + virtualMachineExtensionImageListTypesMaximumSetGen(); + virtualMachineExtensionImageListTypesMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineExtensionImagesListVersionsSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionImagesListVersionsSample.ts similarity index 79% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineExtensionImagesListVersionsSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionImagesListVersionsSample.ts index 4217118369bb..6f0463fdf8a7 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineExtensionImagesListVersionsSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionImagesListVersionsSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to Gets a list of virtual machine extension image versions. * * @summary Gets a list of virtual machine extension image versions. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListVersions_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListVersions_MaximumSet_Gen.json */ -async function virtualMachineExtensionImagesListVersionsMaximumSetGen() { +async function virtualMachineExtensionImageListVersionsMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaaaaaaaaaaaaaaaaaaaaaaaa"; @@ -52,9 +52,9 @@ async function virtualMachineExtensionImagesListVersionsMaximumSetGen() { * This sample demonstrates how to Gets a list of virtual machine extension image versions. * * @summary Gets a list of virtual machine extension image versions. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListVersions_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListVersions_MinimumSet_Gen.json */ -async function virtualMachineExtensionImagesListVersionsMinimumSetGen() { +async function virtualMachineExtensionImageListVersionsMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaaaaaaa"; @@ -71,8 +71,8 @@ async function virtualMachineExtensionImagesListVersionsMinimumSetGen() { } async function main() { - virtualMachineExtensionImagesListVersionsMaximumSetGen(); - virtualMachineExtensionImagesListVersionsMinimumSetGen(); + virtualMachineExtensionImageListVersionsMaximumSetGen(); + virtualMachineExtensionImageListVersionsMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineExtensionsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsCreateOrUpdateSample.ts similarity index 83% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineExtensionsCreateOrUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsCreateOrUpdateSample.ts index 292b2f998999..f67e12b845eb 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineExtensionsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsCreateOrUpdateSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to The operation to create or update the extension. * * @summary The operation to create or update the extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachineExtension_CreateOrUpdate_MaximumSet_Gen.json */ -async function virtualMachineExtensionsCreateOrUpdateMaximumSetGen() { +async function virtualMachineExtensionCreateOrUpdateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -81,15 +81,15 @@ async function virtualMachineExtensionsCreateOrUpdateMaximumSetGen() { * This sample demonstrates how to The operation to create or update the extension. * * @summary The operation to create or update the extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_CreateOrUpdate_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachineExtension_CreateOrUpdate_MinimumSet_Gen.json */ -async function virtualMachineExtensionsCreateOrUpdateMinimumSetGen() { +async function virtualMachineExtensionCreateOrUpdateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; - const vmName = "aaaa"; - const vmExtensionName = "aaaaaaaaaaaaaaaaaaaaaaaa"; + const vmName = "myVM"; + const vmExtensionName = "myVMExtension"; const extensionParameters: VirtualMachineExtension = { location: "westus" }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -103,8 +103,8 @@ async function virtualMachineExtensionsCreateOrUpdateMinimumSetGen() { } async function main() { - virtualMachineExtensionsCreateOrUpdateMaximumSetGen(); - virtualMachineExtensionsCreateOrUpdateMinimumSetGen(); + virtualMachineExtensionCreateOrUpdateMaximumSetGen(); + virtualMachineExtensionCreateOrUpdateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineExtensionsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsDeleteSample.ts similarity index 80% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineExtensionsDeleteSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsDeleteSample.ts index 9e8397b6b220..7ddb6274c0a6 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineExtensionsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsDeleteSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to The operation to delete the extension. * * @summary The operation to delete the extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_Delete_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachineExtension_Delete_MaximumSet_Gen.json */ -async function virtualMachineExtensionsDeleteMaximumSetGen() { +async function virtualMachineExtensionDeleteMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -41,9 +41,9 @@ async function virtualMachineExtensionsDeleteMaximumSetGen() { * This sample demonstrates how to The operation to delete the extension. * * @summary The operation to delete the extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_Delete_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachineExtension_Delete_MinimumSet_Gen.json */ -async function virtualMachineExtensionsDeleteMinimumSetGen() { +async function virtualMachineExtensionDeleteMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -61,8 +61,8 @@ async function virtualMachineExtensionsDeleteMinimumSetGen() { } async function main() { - virtualMachineExtensionsDeleteMaximumSetGen(); - virtualMachineExtensionsDeleteMinimumSetGen(); + virtualMachineExtensionDeleteMaximumSetGen(); + virtualMachineExtensionDeleteMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineExtensionsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsGetSample.ts similarity index 79% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineExtensionsGetSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsGetSample.ts index ca2d51116ab7..a1e029ca98c4 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineExtensionsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsGetSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to The operation to get the extension. * * @summary The operation to get the extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_Get_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachineExtension_Get_MaximumSet_Gen.json */ -async function virtualMachineExtensionsGetMaximumSetGen() { +async function virtualMachineExtensionGetMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -47,15 +47,15 @@ async function virtualMachineExtensionsGetMaximumSetGen() { * This sample demonstrates how to The operation to get the extension. * * @summary The operation to get the extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_Get_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachineExtension_Get_MinimumSet_Gen.json */ -async function virtualMachineExtensionsGetMinimumSetGen() { +async function virtualMachineExtensionGetMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; - const vmName = "a"; - const vmExtensionName = "aaaaaaaaaaaaaaaaaaaaaaaaaaaa"; + const vmName = "myVM"; + const vmExtensionName = "myVMExtension"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineExtensions.get( @@ -67,8 +67,8 @@ async function virtualMachineExtensionsGetMinimumSetGen() { } async function main() { - virtualMachineExtensionsGetMaximumSetGen(); - virtualMachineExtensionsGetMinimumSetGen(); + virtualMachineExtensionGetMaximumSetGen(); + virtualMachineExtensionGetMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineExtensionsListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsListSample.ts similarity index 81% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineExtensionsListSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsListSample.ts index ffe78dba2f42..0c12abde16e8 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineExtensionsListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsListSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to The operation to get all extensions of a Virtual Machine. * * @summary The operation to get all extensions of a Virtual Machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_List_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachineExtension_List_MaximumSet_Gen.json */ -async function virtualMachineExtensionsListMaximumSetGen() { +async function virtualMachineExtensionListMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -45,9 +45,9 @@ async function virtualMachineExtensionsListMaximumSetGen() { * This sample demonstrates how to The operation to get all extensions of a Virtual Machine. * * @summary The operation to get all extensions of a Virtual Machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_List_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachineExtension_List_MinimumSet_Gen.json */ -async function virtualMachineExtensionsListMinimumSetGen() { +async function virtualMachineExtensionListMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -63,8 +63,8 @@ async function virtualMachineExtensionsListMinimumSetGen() { } async function main() { - virtualMachineExtensionsListMaximumSetGen(); - virtualMachineExtensionsListMinimumSetGen(); + virtualMachineExtensionListMaximumSetGen(); + virtualMachineExtensionListMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineExtensionsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsUpdateSample.ts similarity index 94% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineExtensionsUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsUpdateSample.ts index d76160fcdc08..be18fa05a8fc 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineExtensionsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to update the extension. * * @summary The operation to update the extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachineExtensions_Update.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachineExtension_Update.json */ async function updateVMExtension() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineImagesEdgeZoneGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneGetSample.ts similarity index 95% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineImagesEdgeZoneGetSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneGetSample.ts index d8e955e4de05..a72abb207428 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineImagesEdgeZoneGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a virtual machine image in an edge zone. * * @summary Gets a virtual machine image in an edge zone. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_Get_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_Get_MaximumSet_Gen.json */ async function virtualMachineImagesEdgeZoneGetMaximumSetGen() { const subscriptionId = @@ -46,7 +46,7 @@ async function virtualMachineImagesEdgeZoneGetMaximumSetGen() { * This sample demonstrates how to Gets a virtual machine image in an edge zone. * * @summary Gets a virtual machine image in an edge zone. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_Get_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_Get_MinimumSet_Gen.json */ async function virtualMachineImagesEdgeZoneGetMinimumSetGen() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineImagesEdgeZoneListOffersSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListOffersSample.ts similarity index 95% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineImagesEdgeZoneListOffersSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListOffersSample.ts index 7188a8362a85..0377b89ad5c9 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineImagesEdgeZoneListOffersSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListOffersSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of virtual machine image offers for the specified location, edge zone and publisher. * * @summary Gets a list of virtual machine image offers for the specified location, edge zone and publisher. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListOffers_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListOffers_MaximumSet_Gen.json */ async function virtualMachineImagesEdgeZoneListOffersMaximumSetGen() { const subscriptionId = @@ -40,7 +40,7 @@ async function virtualMachineImagesEdgeZoneListOffersMaximumSetGen() { * This sample demonstrates how to Gets a list of virtual machine image offers for the specified location, edge zone and publisher. * * @summary Gets a list of virtual machine image offers for the specified location, edge zone and publisher. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListOffers_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListOffers_MinimumSet_Gen.json */ async function virtualMachineImagesEdgeZoneListOffersMinimumSetGen() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineImagesEdgeZoneListPublishersSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListPublishersSample.ts similarity index 95% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineImagesEdgeZoneListPublishersSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListPublishersSample.ts index fe25fbaf9c51..f211eac807b0 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineImagesEdgeZoneListPublishersSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListPublishersSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of virtual machine image publishers for the specified Azure location and edge zone. * * @summary Gets a list of virtual machine image publishers for the specified Azure location and edge zone. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListPublishers_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListPublishers_MaximumSet_Gen.json */ async function virtualMachineImagesEdgeZoneListPublishersMaximumSetGen() { const subscriptionId = @@ -38,7 +38,7 @@ async function virtualMachineImagesEdgeZoneListPublishersMaximumSetGen() { * This sample demonstrates how to Gets a list of virtual machine image publishers for the specified Azure location and edge zone. * * @summary Gets a list of virtual machine image publishers for the specified Azure location and edge zone. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListPublishers_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListPublishers_MinimumSet_Gen.json */ async function virtualMachineImagesEdgeZoneListPublishersMinimumSetGen() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineImagesEdgeZoneListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListSample.ts similarity index 96% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineImagesEdgeZoneListSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListSample.ts index f65308684b48..c0d50f6cf45d 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineImagesEdgeZoneListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of all virtual machine image versions for the specified location, edge zone, publisher, offer, and SKU. * * @summary Gets a list of all virtual machine image versions for the specified location, edge zone, publisher, offer, and SKU. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_List_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_List_MaximumSet_Gen.json */ async function virtualMachineImagesEdgeZoneListMaximumSetGen() { const subscriptionId = @@ -56,7 +56,7 @@ async function virtualMachineImagesEdgeZoneListMaximumSetGen() { * This sample demonstrates how to Gets a list of all virtual machine image versions for the specified location, edge zone, publisher, offer, and SKU. * * @summary Gets a list of all virtual machine image versions for the specified location, edge zone, publisher, offer, and SKU. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_List_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_List_MinimumSet_Gen.json */ async function virtualMachineImagesEdgeZoneListMinimumSetGen() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineImagesEdgeZoneListSkusSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListSkusSample.ts similarity index 95% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineImagesEdgeZoneListSkusSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListSkusSample.ts index 1250b6da3c8d..a5439f227b85 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineImagesEdgeZoneListSkusSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListSkusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of virtual machine image SKUs for the specified location, edge zone, publisher, and offer. * * @summary Gets a list of virtual machine image SKUs for the specified location, edge zone, publisher, and offer. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListSkus_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListSkus_MaximumSet_Gen.json */ async function virtualMachineImagesEdgeZoneListSkusMaximumSetGen() { const subscriptionId = @@ -42,7 +42,7 @@ async function virtualMachineImagesEdgeZoneListSkusMaximumSetGen() { * This sample demonstrates how to Gets a list of virtual machine image SKUs for the specified location, edge zone, publisher, and offer. * * @summary Gets a list of virtual machine image SKUs for the specified location, edge zone, publisher, and offer. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListSkus_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListSkus_MinimumSet_Gen.json */ async function virtualMachineImagesEdgeZoneListSkusMinimumSetGen() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineImagesGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesGetSample.ts similarity index 81% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineImagesGetSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesGetSample.ts index f75c0fd3f171..551134847b08 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineImagesGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesGetSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Gets a virtual machine image. * * @summary Gets a virtual machine image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_Get_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImage_Get_MaximumSet_Gen.json */ -async function virtualMachineImagesGetMaximumSetGen() { +async function virtualMachineImageGetMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaaaa"; @@ -44,9 +44,9 @@ async function virtualMachineImagesGetMaximumSetGen() { * This sample demonstrates how to Gets a virtual machine image. * * @summary Gets a virtual machine image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_Get_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImage_Get_MinimumSet_Gen.json */ -async function virtualMachineImagesGetMinimumSetGen() { +async function virtualMachineImageGetMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaaaaaaaaaa"; @@ -67,8 +67,8 @@ async function virtualMachineImagesGetMinimumSetGen() { } async function main() { - virtualMachineImagesGetMaximumSetGen(); - virtualMachineImagesGetMinimumSetGen(); + virtualMachineImageGetMaximumSetGen(); + virtualMachineImageGetMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineImagesListByEdgeZoneSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListByEdgeZoneSample.ts similarity index 94% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineImagesListByEdgeZoneSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListByEdgeZoneSample.ts index 06e235f69600..367d29e6dd1e 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineImagesListByEdgeZoneSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListByEdgeZoneSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of all virtual machine image versions for the specified edge zone * * @summary Gets a list of all virtual machine image versions for the specified edge zone - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListByEdgeZone_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListByEdgeZone_MaximumSet_Gen.json */ async function virtualMachineImagesEdgeZoneListByEdgeZoneMaximumSetGen() { const subscriptionId = @@ -39,7 +39,7 @@ async function virtualMachineImagesEdgeZoneListByEdgeZoneMaximumSetGen() { * This sample demonstrates how to Gets a list of all virtual machine image versions for the specified edge zone * * @summary Gets a list of all virtual machine image versions for the specified edge zone - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListByEdgeZone_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListByEdgeZone_MinimumSet_Gen.json */ async function virtualMachineImagesEdgeZoneListByEdgeZoneMinimumSetGen() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineImagesListOffersSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListOffersSample.ts similarity index 80% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineImagesListOffersSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListOffersSample.ts index 3eacf4807429..1f91c3c83f7b 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineImagesListOffersSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListOffersSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Gets a list of virtual machine image offers for the specified location and publisher. * * @summary Gets a list of virtual machine image offers for the specified location and publisher. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_ListOffers_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImage_ListOffers_MaximumSet_Gen.json */ -async function virtualMachineImagesListOffersMaximumSetGen() { +async function virtualMachineImageListOffersMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaaaaa"; @@ -38,9 +38,9 @@ async function virtualMachineImagesListOffersMaximumSetGen() { * This sample demonstrates how to Gets a list of virtual machine image offers for the specified location and publisher. * * @summary Gets a list of virtual machine image offers for the specified location and publisher. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_ListOffers_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImage_ListOffers_MinimumSet_Gen.json */ -async function virtualMachineImagesListOffersMinimumSetGen() { +async function virtualMachineImageListOffersMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaaaaaaaaaaaaaaa"; @@ -55,8 +55,8 @@ async function virtualMachineImagesListOffersMinimumSetGen() { } async function main() { - virtualMachineImagesListOffersMaximumSetGen(); - virtualMachineImagesListOffersMinimumSetGen(); + virtualMachineImageListOffersMaximumSetGen(); + virtualMachineImageListOffersMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineImagesListPublishersSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListPublishersSample.ts similarity index 78% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineImagesListPublishersSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListPublishersSample.ts index 86f4d154e052..d6eeb0e5773d 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineImagesListPublishersSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListPublishersSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Gets a list of virtual machine image publishers for the specified Azure location. * * @summary Gets a list of virtual machine image publishers for the specified Azure location. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_ListPublishers_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImage_ListPublishers_MaximumSet_Gen.json */ -async function virtualMachineImagesListPublishersMaximumSetGen() { +async function virtualMachineImageListPublishersMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaaa"; @@ -34,9 +34,9 @@ async function virtualMachineImagesListPublishersMaximumSetGen() { * This sample demonstrates how to Gets a list of virtual machine image publishers for the specified Azure location. * * @summary Gets a list of virtual machine image publishers for the specified Azure location. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_ListPublishers_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImage_ListPublishers_MinimumSet_Gen.json */ -async function virtualMachineImagesListPublishersMinimumSetGen() { +async function virtualMachineImageListPublishersMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaaaaaaaaaaaaaaaaaaaaaaaaa"; @@ -47,8 +47,8 @@ async function virtualMachineImagesListPublishersMinimumSetGen() { } async function main() { - virtualMachineImagesListPublishersMaximumSetGen(); - virtualMachineImagesListPublishersMinimumSetGen(); + virtualMachineImageListPublishersMaximumSetGen(); + virtualMachineImageListPublishersMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineImagesListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListSample.ts similarity index 84% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineImagesListSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListSample.ts index cc957f767c5c..42109dd33bd6 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineImagesListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU. * * @summary Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_List_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImage_List_MaximumSet_Gen.json */ -async function virtualMachineImagesListMaximumSetGen() { +async function virtualMachineImageListMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaaaaaaaaaaaaa"; @@ -54,9 +54,9 @@ async function virtualMachineImagesListMaximumSetGen() { * This sample demonstrates how to Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU. * * @summary Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_List_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImage_List_MinimumSet_Gen.json */ -async function virtualMachineImagesListMinimumSetGen() { +async function virtualMachineImageListMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaaaaa"; @@ -75,8 +75,8 @@ async function virtualMachineImagesListMinimumSetGen() { } async function main() { - virtualMachineImagesListMaximumSetGen(); - virtualMachineImagesListMinimumSetGen(); + virtualMachineImageListMaximumSetGen(); + virtualMachineImageListMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineImagesListSkusSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListSkusSample.ts similarity index 81% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineImagesListSkusSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListSkusSample.ts index 66951b0bb93d..6f9423d929e6 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineImagesListSkusSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListSkusSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Gets a list of virtual machine image SKUs for the specified location, publisher, and offer. * * @summary Gets a list of virtual machine image SKUs for the specified location, publisher, and offer. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_ListSkus_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImage_ListSkus_MaximumSet_Gen.json */ -async function virtualMachineImagesListSkusMaximumSetGen() { +async function virtualMachineImageListSkusMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaa"; @@ -40,9 +40,9 @@ async function virtualMachineImagesListSkusMaximumSetGen() { * This sample demonstrates how to Gets a list of virtual machine image SKUs for the specified location, publisher, and offer. * * @summary Gets a list of virtual machine image SKUs for the specified location, publisher, and offer. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_ListSkus_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineImageExamples/VirtualMachineImage_ListSkus_MinimumSet_Gen.json */ -async function virtualMachineImagesListSkusMinimumSetGen() { +async function virtualMachineImageListSkusMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const location = "aaaa"; @@ -59,8 +59,8 @@ async function virtualMachineImagesListSkusMinimumSetGen() { } async function main() { - virtualMachineImagesListSkusMaximumSetGen(); - virtualMachineImagesListSkusMinimumSetGen(); + virtualMachineImageListSkusMaximumSetGen(); + virtualMachineImageListSkusMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineRunCommandsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsCreateOrUpdateSample.ts similarity index 67% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineRunCommandsCreateOrUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsCreateOrUpdateSample.ts index 1a247119d8ee..db097099f5a8 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineRunCommandsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to create or update the run command. * * @summary The operation to create or update the run command. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineRunCommand_CreateOrUpdate.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineRunCommand_CreateOrUpdate.json */ async function createOrUpdateARunCommand() { const subscriptionId = @@ -32,15 +32,26 @@ async function createOrUpdateARunCommand() { const runCommandName = "myRunCommand"; const runCommand: VirtualMachineRunCommand = { asyncExecution: false, + errorBlobUri: + "https://mystorageaccount.blob.core.windows.net/mycontainer/MyScriptError.txt?sp=racw&st=2022-10-07T19:40:21Z&se=2022-10-08T03:40:21Z&spr=https&sv=2021-06-08&sr=b&sig=Yh7B%2Fy83olbYBdfsfbUREvd7ol8Dq5EVP3lAO4Kj4xDcN8%3D", location: "West US", + outputBlobManagedIdentity: { + clientId: "22d35efb-0c99-4041-8c5b-6d24db33a69a" + }, + outputBlobUri: + "https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/MyScriptoutput.txt", parameters: [ { name: "param1", value: "value1" }, { name: "param2", value: "value2" } ], runAsPassword: "", runAsUser: "user1", - source: { script: "Write-Host Hello World!" }, - timeoutInSeconds: 3600 + source: { + scriptUri: + "https://mystorageaccount.blob.core.windows.net/scriptcontainer/MyScript.ps1?sp=r&st=2022-10-07T19:52:54Z&se=2022-10-08T03:52:54Z&spr=https&sv=2021-06-08&sr=b&sig=zfYFYCgea1PqVERZuwJiewrte5gjTnKGtVJngcw5oc828%3D" + }, + timeoutInSeconds: 3600, + treatFailureAsDeploymentFailure: false }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineRunCommandsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsDeleteSample.ts similarity index 95% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineRunCommandsDeleteSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsDeleteSample.ts index 04c4e6d94e3a..80a5f8452b35 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineRunCommandsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to delete the run command. * * @summary The operation to delete the run command. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineRunCommand_Delete.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineRunCommand_Delete.json */ async function deleteARunCommand() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineRunCommandsGetByVirtualMachineSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsGetByVirtualMachineSample.ts similarity index 95% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineRunCommandsGetByVirtualMachineSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsGetByVirtualMachineSample.ts index 6343482a101a..b20a51b38126 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineRunCommandsGetByVirtualMachineSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsGetByVirtualMachineSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to get the run command. * * @summary The operation to get the run command. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineRunCommand_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineRunCommand_Get.json */ async function getARunCommand() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineRunCommandsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsGetSample.ts similarity index 95% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineRunCommandsGetSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsGetSample.ts index 5b7e88e4524e..413d77fb958c 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineRunCommandsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets specific run command for a subscription in a location. * * @summary Gets specific run command for a subscription in a location. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/RunCommand_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/RunCommand_Get.json */ async function virtualMachineRunCommandGet() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineRunCommandsListByVirtualMachineSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsListByVirtualMachineSample.ts similarity index 95% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineRunCommandsListByVirtualMachineSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsListByVirtualMachineSample.ts index 46b37eafff10..4d3470fe349a 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineRunCommandsListByVirtualMachineSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsListByVirtualMachineSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to get all run commands of a Virtual Machine. * * @summary The operation to get all run commands of a Virtual Machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineRunCommand_List.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineRunCommand_List.json */ async function listRunCommandsInAVirtualMachine() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineRunCommandsListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsListSample.ts similarity index 95% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineRunCommandsListSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsListSample.ts index a7ba2a78e7f1..89c36bf4aa89 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineRunCommandsListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all available run commands for a subscription in a location. * * @summary Lists all available run commands for a subscription in a location. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/RunCommand_List.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/RunCommand_List.json */ async function virtualMachineRunCommandList() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineRunCommandsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsUpdateSample.ts similarity index 63% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineRunCommandsUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsUpdateSample.ts index 71034e44cabf..898bf0eb23fe 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineRunCommandsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to update the run command. * * @summary The operation to update the run command. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineRunCommand_Update.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineRunCommand_Update.json */ async function updateARunCommand() { const subscriptionId = @@ -31,7 +31,24 @@ async function updateARunCommand() { const vmName = "myVM"; const runCommandName = "myRunCommand"; const runCommand: VirtualMachineRunCommandUpdate = { - source: { script: "Write-Host Script Source Updated!" } + asyncExecution: false, + errorBlobManagedIdentity: { + objectId: "4231e4d2-33e4-4e23-96b2-17888afa6072" + }, + errorBlobUri: + "https://mystorageaccount.blob.core.windows.net/mycontainer/MyScriptError.txt", + outputBlobUri: + "https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/MyScriptoutput.txt?sp=racw&st=2022-10-07T19:40:21Z&se=2022-10-08T03:40:21Z&spr=https&sv=2021-06-08&sr=b&sig=Yh7B%2Fy83olbYBdfsfbUREvd7ol8Dq5EVP3lAO4Kj4xDcN8%3D", + parameters: [ + { name: "param1", value: "value1" }, + { name: "param2", value: "value2" } + ], + runAsPassword: "", + runAsUser: "user1", + source: { + script: "Write-Host Hello World! ; Remove-Item C:\test\testFile.txt" + }, + timeoutInSeconds: 3600 }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetExtensionsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsCreateOrUpdateSample.ts similarity index 82% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetExtensionsCreateOrUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsCreateOrUpdateSample.ts index 601d6d925e49..09c40a9ec081 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetExtensionsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsCreateOrUpdateSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to The operation to create or update an extension. * * @summary The operation to create or update an extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_CreateOrUpdate_MaximumSet_Gen.json */ -async function virtualMachineScaleSetExtensionsCreateOrUpdateMaximumSetGen() { +async function virtualMachineScaleSetExtensionCreateOrUpdateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -58,9 +58,9 @@ async function virtualMachineScaleSetExtensionsCreateOrUpdateMaximumSetGen() { * This sample demonstrates how to The operation to create or update an extension. * * @summary The operation to create or update an extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_CreateOrUpdate_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_CreateOrUpdate_MinimumSet_Gen.json */ -async function virtualMachineScaleSetExtensionsCreateOrUpdateMinimumSetGen() { +async function virtualMachineScaleSetExtensionCreateOrUpdateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -80,8 +80,8 @@ async function virtualMachineScaleSetExtensionsCreateOrUpdateMinimumSetGen() { } async function main() { - virtualMachineScaleSetExtensionsCreateOrUpdateMaximumSetGen(); - virtualMachineScaleSetExtensionsCreateOrUpdateMinimumSetGen(); + virtualMachineScaleSetExtensionCreateOrUpdateMaximumSetGen(); + virtualMachineScaleSetExtensionCreateOrUpdateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetExtensionsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsDeleteSample.ts similarity index 79% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetExtensionsDeleteSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsDeleteSample.ts index 276d978b0e8c..3a23478b310f 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetExtensionsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsDeleteSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to The operation to delete the extension. * * @summary The operation to delete the extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_Delete_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Delete_MaximumSet_Gen.json */ -async function virtualMachineScaleSetExtensionsDeleteMaximumSetGen() { +async function virtualMachineScaleSetExtensionDeleteMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -41,9 +41,9 @@ async function virtualMachineScaleSetExtensionsDeleteMaximumSetGen() { * This sample demonstrates how to The operation to delete the extension. * * @summary The operation to delete the extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_Delete_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Delete_MinimumSet_Gen.json */ -async function virtualMachineScaleSetExtensionsDeleteMinimumSetGen() { +async function virtualMachineScaleSetExtensionDeleteMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -61,8 +61,8 @@ async function virtualMachineScaleSetExtensionsDeleteMinimumSetGen() { } async function main() { - virtualMachineScaleSetExtensionsDeleteMaximumSetGen(); - virtualMachineScaleSetExtensionsDeleteMinimumSetGen(); + virtualMachineScaleSetExtensionDeleteMaximumSetGen(); + virtualMachineScaleSetExtensionDeleteMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetExtensionsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsGetSample.ts similarity index 80% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetExtensionsGetSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsGetSample.ts index b35afbeeef02..b1b766afb629 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetExtensionsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsGetSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to The operation to get the extension. * * @summary The operation to get the extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_Get_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Get_MaximumSet_Gen.json */ -async function virtualMachineScaleSetExtensionsGetMaximumSetGen() { +async function virtualMachineScaleSetExtensionGetMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -47,9 +47,9 @@ async function virtualMachineScaleSetExtensionsGetMaximumSetGen() { * This sample demonstrates how to The operation to get the extension. * * @summary The operation to get the extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_Get_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Get_MinimumSet_Gen.json */ -async function virtualMachineScaleSetExtensionsGetMinimumSetGen() { +async function virtualMachineScaleSetExtensionGetMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -67,8 +67,8 @@ async function virtualMachineScaleSetExtensionsGetMinimumSetGen() { } async function main() { - virtualMachineScaleSetExtensionsGetMaximumSetGen(); - virtualMachineScaleSetExtensionsGetMinimumSetGen(); + virtualMachineScaleSetExtensionGetMaximumSetGen(); + virtualMachineScaleSetExtensionGetMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetExtensionsListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsListSample.ts similarity index 79% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetExtensionsListSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsListSample.ts index 72588d924182..cb2809d60ba6 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetExtensionsListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsListSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Gets a list of all extensions in a VM scale set. * * @summary Gets a list of all extensions in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_List_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_List_MaximumSet_Gen.json */ -async function virtualMachineScaleSetExtensionsListMaximumSetGen() { +async function virtualMachineScaleSetExtensionListMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -42,9 +42,9 @@ async function virtualMachineScaleSetExtensionsListMaximumSetGen() { * This sample demonstrates how to Gets a list of all extensions in a VM scale set. * * @summary Gets a list of all extensions in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_List_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_List_MinimumSet_Gen.json */ -async function virtualMachineScaleSetExtensionsListMinimumSetGen() { +async function virtualMachineScaleSetExtensionListMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -63,8 +63,8 @@ async function virtualMachineScaleSetExtensionsListMinimumSetGen() { } async function main() { - virtualMachineScaleSetExtensionsListMaximumSetGen(); - virtualMachineScaleSetExtensionsListMinimumSetGen(); + virtualMachineScaleSetExtensionListMaximumSetGen(); + virtualMachineScaleSetExtensionListMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetExtensionsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsUpdateSample.ts similarity index 83% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetExtensionsUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsUpdateSample.ts index 5c45e12c0398..d76111d205c2 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetExtensionsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsUpdateSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to The operation to update an extension. * * @summary The operation to update an extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_Update_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Update_MaximumSet_Gen.json */ -async function virtualMachineScaleSetExtensionsUpdateMaximumSetGen() { +async function virtualMachineScaleSetExtensionUpdateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -57,9 +57,9 @@ async function virtualMachineScaleSetExtensionsUpdateMaximumSetGen() { * This sample demonstrates how to The operation to update an extension. * * @summary The operation to update an extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtensions_Update_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Update_MinimumSet_Gen.json */ -async function virtualMachineScaleSetExtensionsUpdateMinimumSetGen() { +async function virtualMachineScaleSetExtensionUpdateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -79,8 +79,8 @@ async function virtualMachineScaleSetExtensionsUpdateMinimumSetGen() { } async function main() { - virtualMachineScaleSetExtensionsUpdateMaximumSetGen(); - virtualMachineScaleSetExtensionsUpdateMinimumSetGen(); + virtualMachineScaleSetExtensionUpdateMaximumSetGen(); + virtualMachineScaleSetExtensionUpdateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetRollingUpgradesCancelSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesCancelSample.ts similarity index 77% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetRollingUpgradesCancelSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesCancelSample.ts index b578029be06b..be00b7309332 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetRollingUpgradesCancelSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesCancelSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Cancels the current virtual machine scale set rolling upgrade. * * @summary Cancels the current virtual machine scale set rolling upgrade. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrades_Cancel_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_Cancel_MaximumSet_Gen.json */ -async function virtualMachineScaleSetRollingUpgradesCancelMaximumSetGen() { +async function virtualMachineScaleSetRollingUpgradeCancelMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -39,9 +39,9 @@ async function virtualMachineScaleSetRollingUpgradesCancelMaximumSetGen() { * This sample demonstrates how to Cancels the current virtual machine scale set rolling upgrade. * * @summary Cancels the current virtual machine scale set rolling upgrade. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrades_Cancel_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_Cancel_MinimumSet_Gen.json */ -async function virtualMachineScaleSetRollingUpgradesCancelMinimumSetGen() { +async function virtualMachineScaleSetRollingUpgradeCancelMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -57,8 +57,8 @@ async function virtualMachineScaleSetRollingUpgradesCancelMinimumSetGen() { } async function main() { - virtualMachineScaleSetRollingUpgradesCancelMaximumSetGen(); - virtualMachineScaleSetRollingUpgradesCancelMinimumSetGen(); + virtualMachineScaleSetRollingUpgradeCancelMaximumSetGen(); + virtualMachineScaleSetRollingUpgradeCancelMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetRollingUpgradesGetLatestSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesGetLatestSample.ts similarity index 77% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetRollingUpgradesGetLatestSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesGetLatestSample.ts index 72a4188fdf2e..aba2c4dda623 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetRollingUpgradesGetLatestSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesGetLatestSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Gets the status of the latest virtual machine scale set rolling upgrade. * * @summary Gets the status of the latest virtual machine scale set rolling upgrade. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrades_GetLatest_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_GetLatest_MaximumSet_Gen.json */ -async function virtualMachineScaleSetRollingUpgradesGetLatestMaximumSetGen() { +async function virtualMachineScaleSetRollingUpgradeGetLatestMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -39,9 +39,9 @@ async function virtualMachineScaleSetRollingUpgradesGetLatestMaximumSetGen() { * This sample demonstrates how to Gets the status of the latest virtual machine scale set rolling upgrade. * * @summary Gets the status of the latest virtual machine scale set rolling upgrade. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrades_GetLatest_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_GetLatest_MinimumSet_Gen.json */ -async function virtualMachineScaleSetRollingUpgradesGetLatestMinimumSetGen() { +async function virtualMachineScaleSetRollingUpgradeGetLatestMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -57,8 +57,8 @@ async function virtualMachineScaleSetRollingUpgradesGetLatestMinimumSetGen() { } async function main() { - virtualMachineScaleSetRollingUpgradesGetLatestMaximumSetGen(); - virtualMachineScaleSetRollingUpgradesGetLatestMinimumSetGen(); + virtualMachineScaleSetRollingUpgradeGetLatestMaximumSetGen(); + virtualMachineScaleSetRollingUpgradeGetLatestMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSample.ts similarity index 96% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSample.ts index 9495e2823e48..24802385388e 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Starts a rolling upgrade to move all extensions for all virtual machine scale set instances to the latest available extension version. Instances which are already running the latest extension versions are not affected. * * @summary Starts a rolling upgrade to move all extensions for all virtual machine scale set instances to the latest available extension version. Instances which are already running the latest extension versions are not affected. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_RollingUpgrade.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_RollingUpgrade.json */ async function startAnExtensionRollingUpgrade() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetRollingUpgradesStartOSUpgradeSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesStartOSUpgradeSample.ts similarity index 80% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetRollingUpgradesStartOSUpgradeSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesStartOSUpgradeSample.ts index 3442ea907f67..ec03a960fe86 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetRollingUpgradesStartOSUpgradeSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesStartOSUpgradeSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Starts a rolling upgrade to move all virtual machine scale set instances to the latest available Platform Image OS version. Instances which are already running the latest available OS version are not affected. * * @summary Starts a rolling upgrade to move all virtual machine scale set instances to the latest available Platform Image OS version. Instances which are already running the latest available OS version are not affected. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrades_StartOSUpgrade_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_StartOSUpgrade_MaximumSet_Gen.json */ -async function virtualMachineScaleSetRollingUpgradesStartOSUpgradeMaximumSetGen() { +async function virtualMachineScaleSetRollingUpgradeStartOSUpgradeMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -39,9 +39,9 @@ async function virtualMachineScaleSetRollingUpgradesStartOSUpgradeMaximumSetGen( * This sample demonstrates how to Starts a rolling upgrade to move all virtual machine scale set instances to the latest available Platform Image OS version. Instances which are already running the latest available OS version are not affected. * * @summary Starts a rolling upgrade to move all virtual machine scale set instances to the latest available Platform Image OS version. Instances which are already running the latest available OS version are not affected. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrades_StartOSUpgrade_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_StartOSUpgrade_MinimumSet_Gen.json */ -async function virtualMachineScaleSetRollingUpgradesStartOSUpgradeMinimumSetGen() { +async function virtualMachineScaleSetRollingUpgradeStartOSUpgradeMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -57,8 +57,8 @@ async function virtualMachineScaleSetRollingUpgradesStartOSUpgradeMinimumSetGen( } async function main() { - virtualMachineScaleSetRollingUpgradesStartOSUpgradeMaximumSetGen(); - virtualMachineScaleSetRollingUpgradesStartOSUpgradeMinimumSetGen(); + virtualMachineScaleSetRollingUpgradeStartOSUpgradeMaximumSetGen(); + virtualMachineScaleSetRollingUpgradeStartOSUpgradeMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMExtensionsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsCreateOrUpdateSample.ts similarity index 93% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMExtensionsCreateOrUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsCreateOrUpdateSample.ts index de536462fc5e..a578f74a125f 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMExtensionsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to create or update the VMSS VM extension. * * @summary The operation to create or update the VMSS VM extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtensions_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Create.json */ async function createVirtualMachineScaleSetVMExtension() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMExtensionsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsDeleteSample.ts similarity index 91% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMExtensionsDeleteSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsDeleteSample.ts index 94292ac9c593..7e1b6cd23062 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMExtensionsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to delete the VMSS VM extension. * * @summary The operation to delete the VMSS VM extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtensions_Delete.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Delete.json */ async function deleteVirtualMachineScaleSetVMExtension() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMExtensionsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsGetSample.ts similarity index 91% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMExtensionsGetSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsGetSample.ts index d4244e662fd4..5ee7d4c1ec5f 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMExtensionsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to get the VMSS VM extension. * * @summary The operation to get the VMSS VM extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtensions_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Get.json */ async function getVirtualMachineScaleSetVMExtension() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMExtensionsListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsListSample.ts similarity index 91% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMExtensionsListSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsListSample.ts index 9e93d61362c0..207c5f4ba735 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMExtensionsListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to get all extensions of an instance in Virtual Machine Scaleset. * * @summary The operation to get all extensions of an instance in Virtual Machine Scaleset. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtensions_List.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_List.json */ async function listExtensionsInVmssInstance() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMExtensionsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsUpdateSample.ts similarity index 93% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMExtensionsUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsUpdateSample.ts index dffa0e58eb14..528ba69de381 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMExtensionsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to update the VMSS VM extension. * * @summary The operation to update the VMSS VM extension. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtensions_Update.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Update.json */ async function updateVirtualMachineScaleSetVMExtension() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMRunCommandsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsCreateOrUpdateSample.ts similarity index 72% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMRunCommandsCreateOrUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsCreateOrUpdateSample.ts index 5ff15f3122cf..08e5c1e7c8b7 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMRunCommandsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to create or update the VMSS VM run command. * * @summary The operation to create or update the VMSS VM run command. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_CreateOrUpdate.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_CreateOrUpdate.json */ async function createVirtualMachineScaleSetVMRunCommand() { const subscriptionId = @@ -33,15 +33,30 @@ async function createVirtualMachineScaleSetVMRunCommand() { const runCommandName = "myRunCommand"; const runCommand: VirtualMachineRunCommand = { asyncExecution: false, + errorBlobManagedIdentity: {}, + errorBlobUri: + "https://mystorageaccount.blob.core.windows.net/mycontainer/MyScriptError.txt", location: "West US", + outputBlobManagedIdentity: { + clientId: "22d35efb-0c99-4041-8c5b-6d24db33a69a" + }, + outputBlobUri: + "https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/MyScriptoutput.txt", parameters: [ { name: "param1", value: "value1" }, { name: "param2", value: "value2" } ], runAsPassword: "", runAsUser: "user1", - source: { script: "Write-Host Hello World!" }, - timeoutInSeconds: 3600 + source: { + scriptUri: + "https://mystorageaccount.blob.core.windows.net/scriptcontainer/MyScript.ps1", + scriptUriManagedIdentity: { + objectId: "4231e4d2-33e4-4e23-96b2-17888afa6072" + } + }, + timeoutInSeconds: 3600, + treatFailureAsDeploymentFailure: true }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMRunCommandsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsDeleteSample.ts similarity index 95% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMRunCommandsDeleteSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsDeleteSample.ts index ae4399edac18..f793ea60eab4 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMRunCommandsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to delete the VMSS VM run command. * * @summary The operation to delete the VMSS VM run command. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Delete.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Delete.json */ async function deleteVirtualMachineScaleSetVMRunCommand() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMRunCommandsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsGetSample.ts similarity index 95% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMRunCommandsGetSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsGetSample.ts index e1f82f9401b7..b76dc597821c 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMRunCommandsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to get the VMSS VM run command. * * @summary The operation to get the VMSS VM run command. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Get.json */ async function getVirtualMachineScaleSetVMRunCommands() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMRunCommandsListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsListSample.ts similarity index 96% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMRunCommandsListSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsListSample.ts index c08f613bf4d1..c34080b61021 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMRunCommandsListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to get all run commands of an instance in Virtual Machine Scaleset. * * @summary The operation to get all run commands of an instance in Virtual Machine Scaleset. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_List.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_List.json */ async function listRunCommandsInVmssInstance() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMRunCommandsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsUpdateSample.ts similarity index 85% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMRunCommandsUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsUpdateSample.ts index 9d5bd9fc5f63..4190e75df605 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMRunCommandsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to update the VMSS VM run command. * * @summary The operation to update the VMSS VM run command. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Update.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Update.json */ async function updateVirtualMachineScaleSetVMRunCommand() { const subscriptionId = @@ -32,7 +32,13 @@ async function updateVirtualMachineScaleSetVMRunCommand() { const instanceId = "0"; const runCommandName = "myRunCommand"; const runCommand: VirtualMachineRunCommandUpdate = { - source: { script: "Write-Host Script Source Updated!" } + source: { + scriptUri: + "https://mystorageaccount.blob.core.windows.net/scriptcontainer/MyScript.ps1", + scriptUriManagedIdentity: { + objectId: "4231e4d2-33e4-4e23-96b2-17888afa6072" + } + } }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSDeallocateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSDeallocateSample.ts similarity index 84% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSDeallocateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSDeallocateSample.ts index a1f4da145347..1507d548c760 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSDeallocateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSDeallocateSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the compute resources it uses. You are not billed for the compute resources of this virtual machine once it is deallocated. * * @summary Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the compute resources it uses. You are not billed for the compute resources of this virtual machine once it is deallocated. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Deallocate_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Deallocate_MaximumSet_Gen.json */ -async function virtualMachineScaleSetVMSDeallocateMaximumSetGen() { +async function virtualMachineScaleSetVMDeallocateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -41,9 +41,9 @@ async function virtualMachineScaleSetVMSDeallocateMaximumSetGen() { * This sample demonstrates how to Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the compute resources it uses. You are not billed for the compute resources of this virtual machine once it is deallocated. * * @summary Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the compute resources it uses. You are not billed for the compute resources of this virtual machine once it is deallocated. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Deallocate_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Deallocate_MinimumSet_Gen.json */ -async function virtualMachineScaleSetVMSDeallocateMinimumSetGen() { +async function virtualMachineScaleSetVMDeallocateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -61,8 +61,8 @@ async function virtualMachineScaleSetVMSDeallocateMinimumSetGen() { } async function main() { - virtualMachineScaleSetVMSDeallocateMaximumSetGen(); - virtualMachineScaleSetVMSDeallocateMinimumSetGen(); + virtualMachineScaleSetVMDeallocateMaximumSetGen(); + virtualMachineScaleSetVMDeallocateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSDeleteSample.ts similarity index 96% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSDeleteSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSDeleteSample.ts index e41f21a24c5d..f01f49b105c6 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSDeleteSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a virtual machine from a VM scale set. * * @summary Deletes a virtual machine from a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Delete_Force.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Delete_Force.json */ async function forceDeleteAVirtualMachineFromAVMScaleSet() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSGetInstanceViewSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSGetInstanceViewSample.ts similarity index 96% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSGetInstanceViewSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSGetInstanceViewSample.ts index ccae2cc89b04..d14c43e6884d 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSGetInstanceViewSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSGetInstanceViewSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the status of a virtual machine from a VM scale set. * * @summary Gets the status of a virtual machine from a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_InstanceViewAutoPlacedOnDedicatedHostGroup.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_InstanceViewAutoPlacedOnDedicatedHostGroup.json */ async function getInstanceViewOfAVirtualMachineFromAVMScaleSetPlacedOnADedicatedHostGroupThroughAutomaticPlacement() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSGetSample.ts similarity index 94% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSGetSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSGetSample.ts index b98966f144f8..28cb929c7c66 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a virtual machine from a VM scale set. * * @summary Gets a virtual machine from a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithUserData.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithUserData.json */ async function getVMScaleSetVMWithUserData() { const subscriptionId = @@ -41,7 +41,7 @@ async function getVMScaleSetVMWithUserData() { * This sample demonstrates how to Gets a virtual machine from a VM scale set. * * @summary Gets a virtual machine from a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithVMSizeProperties.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithVMSizeProperties.json */ async function getVMScaleSetVMWithVMSizeProperties() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSListSample.ts similarity index 83% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSListSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSListSample.ts index d85611f40541..d90443d48dd0 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSListSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to Gets a list of all virtual machines in a VM scale sets. * * @summary Gets a list of all virtual machines in a VM scale sets. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_List_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_List_MaximumSet_Gen.json */ -async function virtualMachineScaleSetVMSListMaximumSetGen() { +async function virtualMachineScaleSetVMListMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -54,9 +54,9 @@ async function virtualMachineScaleSetVMSListMaximumSetGen() { * This sample demonstrates how to Gets a list of all virtual machines in a VM scale sets. * * @summary Gets a list of all virtual machines in a VM scale sets. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_List_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_List_MinimumSet_Gen.json */ -async function virtualMachineScaleSetVMSListMinimumSetGen() { +async function virtualMachineScaleSetVMListMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -75,8 +75,8 @@ async function virtualMachineScaleSetVMSListMinimumSetGen() { } async function main() { - virtualMachineScaleSetVMSListMaximumSetGen(); - virtualMachineScaleSetVMSListMinimumSetGen(); + virtualMachineScaleSetVMListMaximumSetGen(); + virtualMachineScaleSetVMListMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSPerformMaintenanceSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSPerformMaintenanceSample.ts similarity index 78% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSPerformMaintenanceSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSPerformMaintenanceSample.ts index 2f6477132aea..d1ab7e3f9665 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSPerformMaintenanceSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSPerformMaintenanceSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Performs maintenance on a virtual machine in a VM scale set. * * @summary Performs maintenance on a virtual machine in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_PerformMaintenance_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PerformMaintenance_MaximumSet_Gen.json */ -async function virtualMachineScaleSetVMSPerformMaintenanceMaximumSetGen() { +async function virtualMachineScaleSetVMPerformMaintenanceMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -41,9 +41,9 @@ async function virtualMachineScaleSetVMSPerformMaintenanceMaximumSetGen() { * This sample demonstrates how to Performs maintenance on a virtual machine in a VM scale set. * * @summary Performs maintenance on a virtual machine in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_PerformMaintenance_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PerformMaintenance_MinimumSet_Gen.json */ -async function virtualMachineScaleSetVMSPerformMaintenanceMinimumSetGen() { +async function virtualMachineScaleSetVMPerformMaintenanceMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -61,8 +61,8 @@ async function virtualMachineScaleSetVMSPerformMaintenanceMinimumSetGen() { } async function main() { - virtualMachineScaleSetVMSPerformMaintenanceMaximumSetGen(); - virtualMachineScaleSetVMSPerformMaintenanceMinimumSetGen(); + virtualMachineScaleSetVMPerformMaintenanceMaximumSetGen(); + virtualMachineScaleSetVMPerformMaintenanceMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSPowerOffSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSPowerOffSample.ts similarity index 84% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSPowerOffSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSPowerOffSample.ts index aabc3c93becf..869e864a01d2 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSPowerOffSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSPowerOffSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. * * @summary Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_PowerOff_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PowerOff_MaximumSet_Gen.json */ -async function virtualMachineScaleSetVMSPowerOffMaximumSetGen() { +async function virtualMachineScaleSetVMPowerOffMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -49,9 +49,9 @@ async function virtualMachineScaleSetVMSPowerOffMaximumSetGen() { * This sample demonstrates how to Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. * * @summary Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_PowerOff_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PowerOff_MinimumSet_Gen.json */ -async function virtualMachineScaleSetVMSPowerOffMinimumSetGen() { +async function virtualMachineScaleSetVMPowerOffMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -69,8 +69,8 @@ async function virtualMachineScaleSetVMSPowerOffMinimumSetGen() { } async function main() { - virtualMachineScaleSetVMSPowerOffMaximumSetGen(); - virtualMachineScaleSetVMSPowerOffMinimumSetGen(); + virtualMachineScaleSetVMPowerOffMaximumSetGen(); + virtualMachineScaleSetVMPowerOffMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSRedeploySample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRedeploySample.ts similarity index 82% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSRedeploySample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRedeploySample.ts index ca553fe3d291..70e3edc956f3 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSRedeploySample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRedeploySample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on. * * @summary Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Redeploy_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Redeploy_MaximumSet_Gen.json */ -async function virtualMachineScaleSetVMSRedeployMaximumSetGen() { +async function virtualMachineScaleSetVMRedeployMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -41,9 +41,9 @@ async function virtualMachineScaleSetVMSRedeployMaximumSetGen() { * This sample demonstrates how to Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on. * * @summary Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Redeploy_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Redeploy_MinimumSet_Gen.json */ -async function virtualMachineScaleSetVMSRedeployMinimumSetGen() { +async function virtualMachineScaleSetVMRedeployMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -61,8 +61,8 @@ async function virtualMachineScaleSetVMSRedeployMinimumSetGen() { } async function main() { - virtualMachineScaleSetVMSRedeployMaximumSetGen(); - virtualMachineScaleSetVMSRedeployMinimumSetGen(); + virtualMachineScaleSetVMRedeployMaximumSetGen(); + virtualMachineScaleSetVMRedeployMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSReimageAllSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSReimageAllSample.ts similarity index 82% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSReimageAllSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSReimageAllSample.ts index e7f8d8ee0782..b120a27c3e6f 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSReimageAllSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSReimageAllSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This operation is only supported for managed disks. * * @summary Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This operation is only supported for managed disks. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_ReimageAll_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_ReimageAll_MaximumSet_Gen.json */ -async function virtualMachineScaleSetVMSReimageAllMaximumSetGen() { +async function virtualMachineScaleSetVMReimageAllMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -41,9 +41,9 @@ async function virtualMachineScaleSetVMSReimageAllMaximumSetGen() { * This sample demonstrates how to Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This operation is only supported for managed disks. * * @summary Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This operation is only supported for managed disks. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_ReimageAll_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_ReimageAll_MinimumSet_Gen.json */ -async function virtualMachineScaleSetVMSReimageAllMinimumSetGen() { +async function virtualMachineScaleSetVMReimageAllMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -61,8 +61,8 @@ async function virtualMachineScaleSetVMSReimageAllMinimumSetGen() { } async function main() { - virtualMachineScaleSetVMSReimageAllMaximumSetGen(); - virtualMachineScaleSetVMSReimageAllMinimumSetGen(); + virtualMachineScaleSetVMReimageAllMaximumSetGen(); + virtualMachineScaleSetVMReimageAllMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSReimageSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSReimageSample.ts similarity index 83% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSReimageSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSReimageSample.ts index e9359e68c4b4..0a33559b4fe5 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSReimageSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSReimageSample.ts @@ -22,9 +22,9 @@ dotenv.config(); * This sample demonstrates how to Reimages (upgrade the operating system) a specific virtual machine in a VM scale set. * * @summary Reimages (upgrade the operating system) a specific virtual machine in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Reimage_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Reimage_MaximumSet_Gen.json */ -async function virtualMachineScaleSetVMSReimageMaximumSetGen() { +async function virtualMachineScaleSetVMReimageMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -52,9 +52,9 @@ async function virtualMachineScaleSetVMSReimageMaximumSetGen() { * This sample demonstrates how to Reimages (upgrade the operating system) a specific virtual machine in a VM scale set. * * @summary Reimages (upgrade the operating system) a specific virtual machine in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Reimage_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Reimage_MinimumSet_Gen.json */ -async function virtualMachineScaleSetVMSReimageMinimumSetGen() { +async function virtualMachineScaleSetVMReimageMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -72,8 +72,8 @@ async function virtualMachineScaleSetVMSReimageMinimumSetGen() { } async function main() { - virtualMachineScaleSetVMSReimageMaximumSetGen(); - virtualMachineScaleSetVMSReimageMinimumSetGen(); + virtualMachineScaleSetVMReimageMaximumSetGen(); + virtualMachineScaleSetVMReimageMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSRestartSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRestartSample.ts similarity index 80% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSRestartSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRestartSample.ts index cc71bc0f5620..5f707e87ff32 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSRestartSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRestartSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Restarts a virtual machine in a VM scale set. * * @summary Restarts a virtual machine in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Restart_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Restart_MaximumSet_Gen.json */ -async function virtualMachineScaleSetVMSRestartMaximumSetGen() { +async function virtualMachineScaleSetVMRestartMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -41,9 +41,9 @@ async function virtualMachineScaleSetVMSRestartMaximumSetGen() { * This sample demonstrates how to Restarts a virtual machine in a VM scale set. * * @summary Restarts a virtual machine in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Restart_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Restart_MinimumSet_Gen.json */ -async function virtualMachineScaleSetVMSRestartMinimumSetGen() { +async function virtualMachineScaleSetVMRestartMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -61,8 +61,8 @@ async function virtualMachineScaleSetVMSRestartMinimumSetGen() { } async function main() { - virtualMachineScaleSetVMSRestartMaximumSetGen(); - virtualMachineScaleSetVMSRestartMinimumSetGen(); + virtualMachineScaleSetVMRestartMaximumSetGen(); + virtualMachineScaleSetVMRestartMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.ts similarity index 96% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.ts index 6b25c70f2a41..b67b39562e63 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to retrieve SAS URIs of boot diagnostic logs for a virtual machine in a VM scale set. * * @summary The operation to retrieve SAS URIs of boot diagnostic logs for a virtual machine in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_RetrieveBootDiagnosticsData.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_RetrieveBootDiagnosticsData.json */ async function retrieveBootDiagnosticsDataOfAVirtualMachine() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSRunCommandSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRunCommandSample.ts similarity index 96% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSRunCommandSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRunCommandSample.ts index 30605bc93dd7..4b7543025bb0 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSRunCommandSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRunCommandSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Run command on a virtual machine in a VM scale set. * * @summary Run command on a virtual machine in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand.json */ async function virtualMachineScaleSetVMSRunCommand() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSSimulateEvictionSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSSimulateEvictionSample.ts similarity index 95% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSSimulateEvictionSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSSimulateEvictionSample.ts index 4fd3ee6597be..fb3526f39fa9 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSSimulateEvictionSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSSimulateEvictionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to simulate the eviction of spot virtual machine in a VM scale set. * * @summary The operation to simulate the eviction of spot virtual machine in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_SimulateEviction.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_SimulateEviction.json */ async function simulateEvictionAVirtualMachine() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSStartSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSStartSample.ts similarity index 80% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSStartSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSStartSample.ts index d57f2644fdda..79c75f16b036 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSStartSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSStartSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Starts a virtual machine in a VM scale set. * * @summary Starts a virtual machine in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Start_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Start_MaximumSet_Gen.json */ -async function virtualMachineScaleSetVMSStartMaximumSetGen() { +async function virtualMachineScaleSetVMStartMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -41,9 +41,9 @@ async function virtualMachineScaleSetVMSStartMaximumSetGen() { * This sample demonstrates how to Starts a virtual machine in a VM scale set. * * @summary Starts a virtual machine in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Start_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Start_MinimumSet_Gen.json */ -async function virtualMachineScaleSetVMSStartMinimumSetGen() { +async function virtualMachineScaleSetVMStartMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -61,8 +61,8 @@ async function virtualMachineScaleSetVMSStartMinimumSetGen() { } async function main() { - virtualMachineScaleSetVMSStartMaximumSetGen(); - virtualMachineScaleSetVMSStartMinimumSetGen(); + virtualMachineScaleSetVMStartMaximumSetGen(); + virtualMachineScaleSetVMStartMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSUpdateSample.ts similarity index 96% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSUpdateSample.ts index c19f4a27a339..1fdfc072339d 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetVMSUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSUpdateSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to Updates a virtual machine of a VM scale set. * * @summary Updates a virtual machine of a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Update_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Update_MaximumSet_Gen.json */ -async function virtualMachineScaleSetVMSUpdateMaximumSetGen() { +async function virtualMachineScaleSetVMUpdateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -257,7 +257,6 @@ async function virtualMachineScaleSetVMSUpdateMaximumSetGen() { enableAcceleratedNetworking: true, enableFpga: true, enableIPForwarding: true, - id: "aaaaaaaa", ipConfigurations: [ { name: "vmsstestnetconfig9693", @@ -273,7 +272,6 @@ async function virtualMachineScaleSetVMSUpdateMaximumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" } ], - id: "aaaaaaaaa", loadBalancerBackendAddressPools: [ { id: @@ -470,9 +468,9 @@ async function virtualMachineScaleSetVMSUpdateMaximumSetGen() { * This sample demonstrates how to Updates a virtual machine of a VM scale set. * * @summary Updates a virtual machine of a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMs_Update_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Update_MinimumSet_Gen.json */ -async function virtualMachineScaleSetVMSUpdateMinimumSetGen() { +async function virtualMachineScaleSetVMUpdateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -492,8 +490,8 @@ async function virtualMachineScaleSetVMSUpdateMinimumSetGen() { } async function main() { - virtualMachineScaleSetVMSUpdateMaximumSetGen(); - virtualMachineScaleSetVMSUpdateMinimumSetGen(); + virtualMachineScaleSetVMUpdateMaximumSetGen(); + virtualMachineScaleSetVMUpdateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsConvertToSinglePlacementGroupSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsConvertToSinglePlacementGroupSample.ts similarity index 79% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsConvertToSinglePlacementGroupSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsConvertToSinglePlacementGroupSample.ts index f325f4273f1e..1b55b090ac54 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsConvertToSinglePlacementGroupSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsConvertToSinglePlacementGroupSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to Converts SinglePlacementGroup property to false for a existing virtual machine scale set. * * @summary Converts SinglePlacementGroup property to false for a existing virtual machine scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ConvertToSinglePlacementGroup_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ConvertToSinglePlacementGroup_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsConvertToSinglePlacementGroupMaximumSetGen() { +async function virtualMachineScaleSetConvertToSinglePlacementGroupMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -46,9 +46,9 @@ async function virtualMachineScaleSetsConvertToSinglePlacementGroupMaximumSetGen * This sample demonstrates how to Converts SinglePlacementGroup property to false for a existing virtual machine scale set. * * @summary Converts SinglePlacementGroup property to false for a existing virtual machine scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ConvertToSinglePlacementGroup_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ConvertToSinglePlacementGroup_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsConvertToSinglePlacementGroupMinimumSetGen() { +async function virtualMachineScaleSetConvertToSinglePlacementGroupMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -66,8 +66,8 @@ async function virtualMachineScaleSetsConvertToSinglePlacementGroupMinimumSetGen } async function main() { - virtualMachineScaleSetsConvertToSinglePlacementGroupMaximumSetGen(); - virtualMachineScaleSetsConvertToSinglePlacementGroupMinimumSetGen(); + virtualMachineScaleSetConvertToSinglePlacementGroupMaximumSetGen(); + virtualMachineScaleSetConvertToSinglePlacementGroupMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsCreateOrUpdateSample.ts similarity index 95% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsCreateOrUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsCreateOrUpdateSample.ts index c1c63640b667..e6c42d853e5b 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithExtensionsSuppressFailuresEnabled.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithExtensionsSuppressFailuresEnabled.json */ async function createAVmssWithAnExtensionThatHasSuppressFailuresEnabled() { const subscriptionId = @@ -107,7 +107,7 @@ async function createAVmssWithAnExtensionThatHasSuppressFailuresEnabled() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithProtectedSettingsFromKeyVault.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithProtectedSettingsFromKeyVault.json */ async function createAVmssWithAnExtensionWithProtectedSettingsFromKeyVault() { const subscriptionId = @@ -200,7 +200,7 @@ async function createAVmssWithAnExtensionWithProtectedSettingsFromKeyVault() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_CustomImageFromAnUnmanagedGeneralizedOsImage.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_CustomImageFromAnUnmanagedGeneralizedOsImage.json */ async function createACustomImageScaleSetFromAnUnmanagedGeneralizedOSImage() { const subscriptionId = @@ -264,7 +264,7 @@ async function createACustomImageScaleSetFromAnUnmanagedGeneralizedOSImage() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_PlatformImageWithUnmanagedOsDisks.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_PlatformImageWithUnmanagedOsDisks.json */ async function createAPlatformImageScaleSetWithUnmanagedOSDisks() { const subscriptionId = @@ -337,7 +337,7 @@ async function createAPlatformImageScaleSetWithUnmanagedOSDisks() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromACustomImage.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromACustomImage.json */ async function createAScaleSetFromACustomImage() { const subscriptionId = @@ -401,7 +401,7 @@ async function createAScaleSetFromACustomImage() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromAGeneralizedSharedImage.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromAGeneralizedSharedImage.json */ async function createAScaleSetFromAGeneralizedSharedImage() { const subscriptionId = @@ -465,7 +465,7 @@ async function createAScaleSetFromAGeneralizedSharedImage() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromASpecializedSharedImage.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromASpecializedSharedImage.json */ async function createAScaleSetFromASpecializedSharedImage() { const subscriptionId = @@ -524,7 +524,7 @@ async function createAScaleSetFromASpecializedSharedImage() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromWithDisableTcpStateTrackingNetworkInterface.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromWithDisableTcpStateTrackingNetworkInterface.json */ async function createAScaleSetWhereNicConfigHasDisableTcpStateTrackingProperty() { const subscriptionId = @@ -608,7 +608,7 @@ async function createAScaleSetWhereNicConfigHasDisableTcpStateTrackingProperty() * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithApplicationProfile.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithApplicationProfile.json */ async function createAScaleSetWithApplicationProfile() { const subscriptionId = @@ -692,7 +692,7 @@ async function createAScaleSetWithApplicationProfile() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithDiskControllerType.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithDiskControllerType.json */ async function createAScaleSetWithDiskControllerType() { const subscriptionId = @@ -763,7 +763,7 @@ async function createAScaleSetWithDiskControllerType() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithDiskEncryptionSetResource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithDiskEncryptionSetResource.json */ async function createAScaleSetWithDiskEncryptionSetResourceInOSDiskAndDataDisk() { const subscriptionId = @@ -848,7 +848,7 @@ async function createAScaleSetWithDiskEncryptionSetResourceInOSDiskAndDataDisk() * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromWithFpgaNetworkInterface.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromWithFpgaNetworkInterface.json */ async function createAScaleSetWithFpgaNetworkInterfaces() { const subscriptionId = @@ -930,7 +930,7 @@ async function createAScaleSetWithFpgaNetworkInterfaces() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithEncryptionAtHost.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithEncryptionAtHost.json */ async function createAScaleSetWithHostEncryptionUsingEncryptionAtHostProperty() { const subscriptionId = @@ -1002,7 +1002,7 @@ async function createAScaleSetWithHostEncryptionUsingEncryptionAtHostProperty() * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithOSImageScheduledEventEnabled.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithOSImageScheduledEventEnabled.json */ async function createAScaleSetWithOSImageScheduledEventsEnabled() { const subscriptionId = @@ -1071,7 +1071,80 @@ async function createAScaleSetWithOSImageScheduledEventsEnabled() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSecurityTypeConfidentialVM.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSecurityPostureReference.json + */ +async function createAScaleSetWithSecurityPostureReference() { + const subscriptionId = + process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; + const resourceGroupName = + process.env["COMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; + const vmScaleSetName = "{vmss-name}"; + const parameters: VirtualMachineScaleSet = { + location: "eastus2euap", + overprovision: true, + sku: { name: "Standard_A1", capacity: 3, tier: "Standard" }, + upgradePolicy: { + automaticOSUpgradePolicy: { enableAutomaticOSUpgrade: true }, + mode: "Automatic" + }, + virtualMachineProfile: { + networkProfile: { + networkInterfaceConfigurations: [ + { + name: "{vmss-name}", + enableIPForwarding: true, + ipConfigurations: [ + { + name: "{vmss-name}", + subnet: { + id: + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" + } + } + ], + primary: true + } + ] + }, + osProfile: { + adminPassword: "{your-password}", + adminUsername: "{your-username}", + computerNamePrefix: "{vmss-name}" + }, + securityPostureReference: { + id: + "/CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest" + }, + storageProfile: { + imageReference: { + offer: "WindowsServer", + publisher: "MicrosoftWindowsServer", + sku: "2022-Datacenter", + version: "latest" + }, + osDisk: { + name: "osDisk", + caching: "ReadWrite", + createOption: "FromImage" + } + } + } + }; + const credential = new DefaultAzureCredential(); + const client = new ComputeManagementClient(credential, subscriptionId); + const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters + ); + console.log(result); +} + +/** + * This sample demonstrates how to Create or update a VM scale set. + * + * @summary Create or update a VM scale set. + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSecurityTypeConfidentialVM.json */ async function createAScaleSetWithSecurityTypeAsConfidentialVM() { const subscriptionId = @@ -1144,7 +1217,7 @@ async function createAScaleSetWithSecurityTypeAsConfidentialVM() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithServiceArtifactReference.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithServiceArtifactReference.json */ async function createAScaleSetWithServiceArtifactReference() { const subscriptionId = @@ -1217,7 +1290,7 @@ async function createAScaleSetWithServiceArtifactReference() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithUefiSettings.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithUefiSettings.json */ async function createAScaleSetWithUefiSettingsOfSecureBootAndVTpm() { const subscriptionId = @@ -1287,7 +1360,7 @@ async function createAScaleSetWithUefiSettingsOfSecureBootAndVTpm() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAMarketplaceImagePlan.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAMarketplaceImagePlan.json */ async function createAScaleSetWithAMarketplaceImagePlan() { const subscriptionId = @@ -1358,7 +1431,7 @@ async function createAScaleSetWithAMarketplaceImagePlan() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAzureApplicationGateway.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAzureApplicationGateway.json */ async function createAScaleSetWithAnAzureApplicationGateway() { const subscriptionId = @@ -1430,7 +1503,7 @@ async function createAScaleSetWithAnAzureApplicationGateway() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAzureLoadBalancer.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAzureLoadBalancer.json */ async function createAScaleSetWithAnAzureLoadBalancer() { const subscriptionId = @@ -1512,7 +1585,7 @@ async function createAScaleSetWithAnAzureLoadBalancer() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAutomaticRepairs.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAutomaticRepairs.json */ async function createAScaleSetWithAutomaticRepairsEnabled() { const subscriptionId = @@ -1579,7 +1652,7 @@ async function createAScaleSetWithAutomaticRepairsEnabled() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithBootDiagnostics.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithBootDiagnostics.json */ async function createAScaleSetWithBootDiagnostics() { const subscriptionId = @@ -1652,7 +1725,7 @@ async function createAScaleSetWithBootDiagnostics() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithEmptyDataDisksOnEachVm.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithEmptyDataDisksOnEachVm.json */ async function createAScaleSetWithEmptyDataDisksOnEachVM() { const subscriptionId = @@ -1723,7 +1796,7 @@ async function createAScaleSetWithEmptyDataDisksOnEachVM() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_CreateA_WithDiffOsDiskUsingDiffDiskPlacement.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_CreateA_WithDiffOsDiskUsingDiffDiskPlacement.json */ async function createAScaleSetWithEphemeralOSDisksUsingPlacementProperty() { const subscriptionId = @@ -1795,7 +1868,7 @@ async function createAScaleSetWithEphemeralOSDisksUsingPlacementProperty() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithDiffOsDisk.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithDiffOsDisk.json */ async function createAScaleSetWithEphemeralOSDisks() { const subscriptionId = @@ -1867,7 +1940,7 @@ async function createAScaleSetWithEphemeralOSDisks() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithExtensionsTimeBudget.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithExtensionsTimeBudget.json */ async function createAScaleSetWithExtensionTimeBudget() { const subscriptionId = @@ -1953,7 +2026,7 @@ async function createAScaleSetWithExtensionTimeBudget() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithManagedBootDiagnostics.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithManagedBootDiagnostics.json */ async function createAScaleSetWithManagedBootDiagnostics() { const subscriptionId = @@ -2020,7 +2093,7 @@ async function createAScaleSetWithManagedBootDiagnostics() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPasswordAuthentication.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPasswordAuthentication.json */ async function createAScaleSetWithPasswordAuthentication() { const subscriptionId = @@ -2086,7 +2159,7 @@ async function createAScaleSetWithPasswordAuthentication() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPremiumStorage.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPremiumStorage.json */ async function createAScaleSetWithPremiumStorage() { const subscriptionId = @@ -2152,7 +2225,7 @@ async function createAScaleSetWithPremiumStorage() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPriorityMixPolicy.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPriorityMixPolicy.json */ async function createAScaleSetWithPriorityMixPolicy() { const subscriptionId = @@ -2225,7 +2298,7 @@ async function createAScaleSetWithPriorityMixPolicy() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithScaleInPolicy.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithScaleInPolicy.json */ async function createAScaleSetWithScaleInPolicy() { const subscriptionId = @@ -2292,7 +2365,7 @@ async function createAScaleSetWithScaleInPolicy() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSpotRestorePolicy.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSpotRestorePolicy.json */ async function createAScaleSetWithSpotRestorePolicy() { const subscriptionId = @@ -2362,7 +2435,7 @@ async function createAScaleSetWithSpotRestorePolicy() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSshAuthentication.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSshAuthentication.json */ async function createAScaleSetWithSshAuthentication() { const subscriptionId = @@ -2439,7 +2512,7 @@ async function createAScaleSetWithSshAuthentication() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithTerminateScheduledEventEnabled.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithTerminateScheduledEventEnabled.json */ async function createAScaleSetWithTerminateScheduledEventsEnabled() { const subscriptionId = @@ -2508,7 +2581,7 @@ async function createAScaleSetWithTerminateScheduledEventsEnabled() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithUserData.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithUserData.json */ async function createAScaleSetWithUserData() { const subscriptionId = @@ -2575,7 +2648,7 @@ async function createAScaleSetWithUserData() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithVMsInDifferentZones.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithVMsInDifferentZones.json */ async function createAScaleSetWithVirtualMachinesInDifferentZones() { const subscriptionId = @@ -2647,7 +2720,7 @@ async function createAScaleSetWithVirtualMachinesInDifferentZones() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithVMSizeProperties.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithVMSizeProperties.json */ async function createAScaleSetWithVMSizeProperties() { const subscriptionId = @@ -2717,7 +2790,7 @@ async function createAScaleSetWithVMSizeProperties() { * This sample demonstrates how to Create or update a VM scale set. * * @summary Create or update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithCapacityReservation.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithCapacityReservation.json */ async function createOrUpdateAScaleSetWithCapacityReservation() { const subscriptionId = @@ -2800,6 +2873,7 @@ async function main() { createAScaleSetWithFpgaNetworkInterfaces(); createAScaleSetWithHostEncryptionUsingEncryptionAtHostProperty(); createAScaleSetWithOSImageScheduledEventsEnabled(); + createAScaleSetWithSecurityPostureReference(); createAScaleSetWithSecurityTypeAsConfidentialVM(); createAScaleSetWithServiceArtifactReference(); createAScaleSetWithUefiSettingsOfSecureBootAndVTpm(); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsDeallocateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsDeallocateSample.ts similarity index 84% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsDeallocateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsDeallocateSample.ts index 17a148eb1ffd..d766bc398c7a 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsDeallocateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsDeallocateSample.ts @@ -22,18 +22,20 @@ dotenv.config(); * This sample demonstrates how to Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual machine scale set deallocates. * * @summary Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual machine scale set deallocates. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Deallocate_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Deallocate_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsDeallocateMaximumSetGen() { +async function virtualMachineScaleSetDeallocateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaaaaaa"; + const hibernate = true; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceIDs = { instanceIds: ["aaaaaaaaaaaaaaaaa"] }; const options: VirtualMachineScaleSetsDeallocateOptionalParams = { + hibernate, vmInstanceIDs }; const credential = new DefaultAzureCredential(); @@ -50,9 +52,9 @@ async function virtualMachineScaleSetsDeallocateMaximumSetGen() { * This sample demonstrates how to Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual machine scale set deallocates. * * @summary Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual machine scale set deallocates. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Deallocate_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Deallocate_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsDeallocateMinimumSetGen() { +async function virtualMachineScaleSetDeallocateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -68,8 +70,8 @@ async function virtualMachineScaleSetsDeallocateMinimumSetGen() { } async function main() { - virtualMachineScaleSetsDeallocateMaximumSetGen(); - virtualMachineScaleSetsDeallocateMinimumSetGen(); + virtualMachineScaleSetDeallocateMaximumSetGen(); + virtualMachineScaleSetDeallocateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsDeleteInstancesSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsDeleteInstancesSample.ts similarity index 82% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsDeleteInstancesSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsDeleteInstancesSample.ts index bdb04ea040ae..5496520f6b0a 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsDeleteInstancesSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsDeleteInstancesSample.ts @@ -22,9 +22,9 @@ dotenv.config(); * This sample demonstrates how to Deletes virtual machines in a VM scale set. * * @summary Deletes virtual machines in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_DeleteInstances_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_DeleteInstances_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsDeleteInstancesMaximumSetGen() { +async function virtualMachineScaleSetDeleteInstancesMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -52,9 +52,9 @@ async function virtualMachineScaleSetsDeleteInstancesMaximumSetGen() { * This sample demonstrates how to Deletes virtual machines in a VM scale set. * * @summary Deletes virtual machines in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_DeleteInstances_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_DeleteInstances_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsDeleteInstancesMinimumSetGen() { +async function virtualMachineScaleSetDeleteInstancesMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -74,8 +74,8 @@ async function virtualMachineScaleSetsDeleteInstancesMinimumSetGen() { } async function main() { - virtualMachineScaleSetsDeleteInstancesMaximumSetGen(); - virtualMachineScaleSetsDeleteInstancesMinimumSetGen(); + virtualMachineScaleSetDeleteInstancesMaximumSetGen(); + virtualMachineScaleSetDeleteInstancesMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsDeleteSample.ts similarity index 95% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsDeleteSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsDeleteSample.ts index 0034c0b9985b..d6d97f24c4b9 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsDeleteSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a VM scale set. * * @summary Deletes a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Delete_Force.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Delete_Force.json */ async function forceDeleteAVMScaleSet() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSample.ts similarity index 75% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSample.ts index 8e544696f341..5662fbf21abc 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Manual platform update domain walk to update virtual machines in a service fabric virtual machine scale set. * * @summary Manual platform update domain walk to update virtual machines in a service fabric virtual machine scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ForceRecoveryServiceFabricPlatformUpdateDomainWalk_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ForceRecoveryServiceFabricPlatformUpdateDomainWalk_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkMaximumSetGen() { +async function virtualMachineScaleSetForceRecoveryServiceFabricPlatformUpdateDomainWalkMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -41,9 +41,9 @@ async function virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDo * This sample demonstrates how to Manual platform update domain walk to update virtual machines in a service fabric virtual machine scale set. * * @summary Manual platform update domain walk to update virtual machines in a service fabric virtual machine scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ForceRecoveryServiceFabricPlatformUpdateDomainWalk_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ForceRecoveryServiceFabricPlatformUpdateDomainWalk_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkMinimumSetGen() { +async function virtualMachineScaleSetForceRecoveryServiceFabricPlatformUpdateDomainWalkMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -61,8 +61,8 @@ async function virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDo } async function main() { - virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkMaximumSetGen(); - virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkMinimumSetGen(); + virtualMachineScaleSetForceRecoveryServiceFabricPlatformUpdateDomainWalkMaximumSetGen(); + virtualMachineScaleSetForceRecoveryServiceFabricPlatformUpdateDomainWalkMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsGetInstanceViewSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsGetInstanceViewSample.ts similarity index 78% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsGetInstanceViewSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsGetInstanceViewSample.ts index 38d9ad906ad3..e929aa02b924 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsGetInstanceViewSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsGetInstanceViewSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Gets the status of a VM scale set instance. * * @summary Gets the status of a VM scale set instance. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_GetInstanceView_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetInstanceView_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsGetInstanceViewMaximumSetGen() { +async function virtualMachineScaleSetGetInstanceViewMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -39,9 +39,9 @@ async function virtualMachineScaleSetsGetInstanceViewMaximumSetGen() { * This sample demonstrates how to Gets the status of a VM scale set instance. * * @summary Gets the status of a VM scale set instance. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_GetInstanceView_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetInstanceView_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsGetInstanceViewMinimumSetGen() { +async function virtualMachineScaleSetGetInstanceViewMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -57,8 +57,8 @@ async function virtualMachineScaleSetsGetInstanceViewMinimumSetGen() { } async function main() { - virtualMachineScaleSetsGetInstanceViewMaximumSetGen(); - virtualMachineScaleSetsGetInstanceViewMinimumSetGen(); + virtualMachineScaleSetGetInstanceViewMaximumSetGen(); + virtualMachineScaleSetGetInstanceViewMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsGetOSUpgradeHistorySample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsGetOSUpgradeHistorySample.ts similarity index 78% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsGetOSUpgradeHistorySample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsGetOSUpgradeHistorySample.ts index 765dabb1685d..9c4e9455c14e 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsGetOSUpgradeHistorySample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsGetOSUpgradeHistorySample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Gets list of OS upgrades on a VM scale set instance. * * @summary Gets list of OS upgrades on a VM scale set instance. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_GetOSUpgradeHistory_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetOSUpgradeHistory_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsGetOSUpgradeHistoryMaximumSetGen() { +async function virtualMachineScaleSetGetOSUpgradeHistoryMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -42,9 +42,9 @@ async function virtualMachineScaleSetsGetOSUpgradeHistoryMaximumSetGen() { * This sample demonstrates how to Gets list of OS upgrades on a VM scale set instance. * * @summary Gets list of OS upgrades on a VM scale set instance. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_GetOSUpgradeHistory_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetOSUpgradeHistory_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsGetOSUpgradeHistoryMinimumSetGen() { +async function virtualMachineScaleSetGetOSUpgradeHistoryMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -63,8 +63,8 @@ async function virtualMachineScaleSetsGetOSUpgradeHistoryMinimumSetGen() { } async function main() { - virtualMachineScaleSetsGetOSUpgradeHistoryMaximumSetGen(); - virtualMachineScaleSetsGetOSUpgradeHistoryMinimumSetGen(); + virtualMachineScaleSetGetOSUpgradeHistoryMaximumSetGen(); + virtualMachineScaleSetGetOSUpgradeHistoryMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsGetSample.ts similarity index 94% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsGetSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsGetSample.ts index d58e9438bf96..3869c6a1c57d 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsGetSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Display information about a virtual machine scale set. * * @summary Display information about a virtual machine scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get_WithDiskControllerType.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get_WithDiskControllerType.json */ async function getVMScaleSetVMWithDiskControllerType() { const subscriptionId = @@ -45,7 +45,7 @@ async function getVMScaleSetVMWithDiskControllerType() { * This sample demonstrates how to Display information about a virtual machine scale set. * * @summary Display information about a virtual machine scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get.json */ async function getAVirtualMachineScaleSet() { const subscriptionId = @@ -66,7 +66,7 @@ async function getAVirtualMachineScaleSet() { * This sample demonstrates how to Display information about a virtual machine scale set. * * @summary Display information about a virtual machine scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get_AutoPlacedOnDedicatedHostGroup.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get_AutoPlacedOnDedicatedHostGroup.json */ async function getAVirtualMachineScaleSetPlacedOnADedicatedHostGroupThroughAutomaticPlacement() { const subscriptionId = @@ -87,7 +87,7 @@ async function getAVirtualMachineScaleSetPlacedOnADedicatedHostGroupThroughAutom * This sample demonstrates how to Display information about a virtual machine scale set. * * @summary Display information about a virtual machine scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get_WithUserData.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get_WithUserData.json */ async function getAVirtualMachineScaleSetWithUserData() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsListAllSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsListAllSample.ts similarity index 83% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsListAllSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsListAllSample.ts index c99adce3305a..2a7d5e647756 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsListAllSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsListAllSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this till nextLink is null to fetch all the VM Scale Sets. * * @summary Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this till nextLink is null to fetch all the VM Scale Sets. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ListAll_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListAll_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsListAllMaximumSetGen() { +async function virtualMachineScaleSetListAllMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const credential = new DefaultAzureCredential(); @@ -36,9 +36,9 @@ async function virtualMachineScaleSetsListAllMaximumSetGen() { * This sample demonstrates how to Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this till nextLink is null to fetch all the VM Scale Sets. * * @summary Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this till nextLink is null to fetch all the VM Scale Sets. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ListAll_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListAll_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsListAllMinimumSetGen() { +async function virtualMachineScaleSetListAllMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const credential = new DefaultAzureCredential(); @@ -51,8 +51,8 @@ async function virtualMachineScaleSetsListAllMinimumSetGen() { } async function main() { - virtualMachineScaleSetsListAllMaximumSetGen(); - virtualMachineScaleSetsListAllMinimumSetGen(); + virtualMachineScaleSetListAllMaximumSetGen(); + virtualMachineScaleSetListAllMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsListByLocationSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsListByLocationSample.ts similarity index 90% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsListByLocationSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsListByLocationSample.ts index 8825ea47a480..998d77ef759f 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsListByLocationSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsListByLocationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all the VM scale sets under the specified subscription for the specified location. * * @summary Gets all the VM scale sets under the specified subscription for the specified location. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ListBySubscription_ByLocation.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListBySubscription_ByLocation.json */ async function listsAllTheVMScaleSetsUnderTheSpecifiedSubscriptionForTheSpecifiedLocation() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsListSample.ts similarity index 80% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsListSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsListSample.ts index 98449ebb61f1..07f421cb6599 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsListSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Gets a list of all VM scale sets under a resource group. * * @summary Gets a list of all VM scale sets under a resource group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_List_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_List_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsListMaximumSetGen() { +async function virtualMachineScaleSetListMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -40,9 +40,9 @@ async function virtualMachineScaleSetsListMaximumSetGen() { * This sample demonstrates how to Gets a list of all VM scale sets under a resource group. * * @summary Gets a list of all VM scale sets under a resource group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_List_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_List_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsListMinimumSetGen() { +async function virtualMachineScaleSetListMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -59,8 +59,8 @@ async function virtualMachineScaleSetsListMinimumSetGen() { } async function main() { - virtualMachineScaleSetsListMaximumSetGen(); - virtualMachineScaleSetsListMinimumSetGen(); + virtualMachineScaleSetListMaximumSetGen(); + virtualMachineScaleSetListMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsListSkusSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsListSkusSample.ts similarity index 82% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsListSkusSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsListSkusSample.ts index 8fd0a88343c7..19211e35f6d9 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsListSkusSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsListSkusSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU. * * @summary Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ListSkus_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListSkus_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsListSkusMaximumSetGen() { +async function virtualMachineScaleSetListSkusMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -42,9 +42,9 @@ async function virtualMachineScaleSetsListSkusMaximumSetGen() { * This sample demonstrates how to Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU. * * @summary Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ListSkus_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListSkus_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsListSkusMinimumSetGen() { +async function virtualMachineScaleSetListSkusMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -63,8 +63,8 @@ async function virtualMachineScaleSetsListSkusMinimumSetGen() { } async function main() { - virtualMachineScaleSetsListSkusMaximumSetGen(); - virtualMachineScaleSetsListSkusMinimumSetGen(); + virtualMachineScaleSetListSkusMaximumSetGen(); + virtualMachineScaleSetListSkusMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsPerformMaintenanceSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsPerformMaintenanceSample.ts similarity index 85% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsPerformMaintenanceSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsPerformMaintenanceSample.ts index e26c3e3ce5fd..4833a8e91718 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsPerformMaintenanceSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsPerformMaintenanceSample.ts @@ -22,9 +22,9 @@ dotenv.config(); * This sample demonstrates how to Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices for more details: https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications * * @summary Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices for more details: https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_PerformMaintenance_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PerformMaintenance_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsPerformMaintenanceMaximumSetGen() { +async function virtualMachineScaleSetPerformMaintenanceMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -50,9 +50,9 @@ async function virtualMachineScaleSetsPerformMaintenanceMaximumSetGen() { * This sample demonstrates how to Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices for more details: https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications * * @summary Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices for more details: https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_PerformMaintenance_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PerformMaintenance_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsPerformMaintenanceMinimumSetGen() { +async function virtualMachineScaleSetPerformMaintenanceMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -68,8 +68,8 @@ async function virtualMachineScaleSetsPerformMaintenanceMinimumSetGen() { } async function main() { - virtualMachineScaleSetsPerformMaintenanceMaximumSetGen(); - virtualMachineScaleSetsPerformMaintenanceMinimumSetGen(); + virtualMachineScaleSetPerformMaintenanceMaximumSetGen(); + virtualMachineScaleSetPerformMaintenanceMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsPowerOffSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsPowerOffSample.ts similarity index 85% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsPowerOffSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsPowerOffSample.ts index 88a62baacb5d..da68c753e53b 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsPowerOffSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsPowerOffSample.ts @@ -22,9 +22,9 @@ dotenv.config(); * This sample demonstrates how to Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. * * @summary Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_PowerOff_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PowerOff_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsPowerOffMaximumSetGen() { +async function virtualMachineScaleSetPowerOffMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -52,9 +52,9 @@ async function virtualMachineScaleSetsPowerOffMaximumSetGen() { * This sample demonstrates how to Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. * * @summary Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_PowerOff_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PowerOff_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsPowerOffMinimumSetGen() { +async function virtualMachineScaleSetPowerOffMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -70,8 +70,8 @@ async function virtualMachineScaleSetsPowerOffMinimumSetGen() { } async function main() { - virtualMachineScaleSetsPowerOffMaximumSetGen(); - virtualMachineScaleSetsPowerOffMinimumSetGen(); + virtualMachineScaleSetPowerOffMaximumSetGen(); + virtualMachineScaleSetPowerOffMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsReapplySample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsReapplySample.ts new file mode 100644 index 000000000000..e2d564c6c210 --- /dev/null +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsReapplySample.ts @@ -0,0 +1,68 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ComputeManagementClient } from "@azure/arm-compute"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Reapplies the Virtual Machine Scale Set Virtual Machine Profile to the Virtual Machine Instances + * + * @summary Reapplies the Virtual Machine Scale Set Virtual Machine Profile to the Virtual Machine Instances + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Reapply_MaximumSet_Gen.json + */ +async function virtualMachineScaleSetsReapplyMaximumSetGen() { + const subscriptionId = + process.env["COMPUTE_SUBSCRIPTION_ID"] || + "b4f1213b-cacc-4816-8bfb-f30f90643de8"; + const resourceGroupName = + process.env["COMPUTE_RESOURCE_GROUP"] || + "VirtualMachineScaleSetReapplyTestRG"; + const vmScaleSetName = "VMSSReapply-Test-ScaleSet"; + const credential = new DefaultAzureCredential(); + const client = new ComputeManagementClient(credential, subscriptionId); + const result = await client.virtualMachineScaleSets.beginReapplyAndWait( + resourceGroupName, + vmScaleSetName + ); + console.log(result); +} + +/** + * This sample demonstrates how to Reapplies the Virtual Machine Scale Set Virtual Machine Profile to the Virtual Machine Instances + * + * @summary Reapplies the Virtual Machine Scale Set Virtual Machine Profile to the Virtual Machine Instances + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Reapply_MinimumSet_Gen.json + */ +async function virtualMachineScaleSetsReapplyMinimumSetGen() { + const subscriptionId = + process.env["COMPUTE_SUBSCRIPTION_ID"] || + "b4f1213b-cacc-4816-8bfb-f30f90643de8"; + const resourceGroupName = + process.env["COMPUTE_RESOURCE_GROUP"] || + "VirtualMachineScaleSetReapplyTestRG"; + const vmScaleSetName = "VMSSReapply-Test-ScaleSet"; + const credential = new DefaultAzureCredential(); + const client = new ComputeManagementClient(credential, subscriptionId); + const result = await client.virtualMachineScaleSets.beginReapplyAndWait( + resourceGroupName, + vmScaleSetName + ); + console.log(result); +} + +async function main() { + virtualMachineScaleSetsReapplyMaximumSetGen(); + virtualMachineScaleSetsReapplyMinimumSetGen(); +} + +main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsRedeploySample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsRedeploySample.ts similarity index 83% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsRedeploySample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsRedeploySample.ts index a08d15d912b9..ee6af01b7e81 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsRedeploySample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsRedeploySample.ts @@ -22,9 +22,9 @@ dotenv.config(); * This sample demonstrates how to Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and powers them back on. * * @summary Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and powers them back on. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Redeploy_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Redeploy_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsRedeployMaximumSetGen() { +async function virtualMachineScaleSetRedeployMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -50,9 +50,9 @@ async function virtualMachineScaleSetsRedeployMaximumSetGen() { * This sample demonstrates how to Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and powers them back on. * * @summary Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and powers them back on. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Redeploy_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Redeploy_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsRedeployMinimumSetGen() { +async function virtualMachineScaleSetRedeployMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -68,8 +68,8 @@ async function virtualMachineScaleSetsRedeployMinimumSetGen() { } async function main() { - virtualMachineScaleSetsRedeployMaximumSetGen(); - virtualMachineScaleSetsRedeployMinimumSetGen(); + virtualMachineScaleSetRedeployMaximumSetGen(); + virtualMachineScaleSetRedeployMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsReimageAllSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsReimageAllSample.ts similarity index 83% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsReimageAllSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsReimageAllSample.ts index ab710f717a43..d66d8198a255 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsReimageAllSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsReimageAllSample.ts @@ -22,9 +22,9 @@ dotenv.config(); * This sample demonstrates how to Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation is only supported for managed disks. * * @summary Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation is only supported for managed disks. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ReimageAll_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ReimageAll_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsReimageAllMaximumSetGen() { +async function virtualMachineScaleSetReimageAllMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -50,9 +50,9 @@ async function virtualMachineScaleSetsReimageAllMaximumSetGen() { * This sample demonstrates how to Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation is only supported for managed disks. * * @summary Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation is only supported for managed disks. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ReimageAll_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ReimageAll_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsReimageAllMinimumSetGen() { +async function virtualMachineScaleSetReimageAllMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -68,8 +68,8 @@ async function virtualMachineScaleSetsReimageAllMinimumSetGen() { } async function main() { - virtualMachineScaleSetsReimageAllMaximumSetGen(); - virtualMachineScaleSetsReimageAllMinimumSetGen(); + virtualMachineScaleSetReimageAllMaximumSetGen(); + virtualMachineScaleSetReimageAllMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsReimageSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsReimageSample.ts similarity index 85% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsReimageSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsReimageSample.ts index 50e250c37116..546373bc32ff 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsReimageSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsReimageSample.ts @@ -22,9 +22,9 @@ dotenv.config(); * This sample demonstrates how to Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. * * @summary Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Reimage_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Reimage_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsReimageMaximumSetGen() { +async function virtualMachineScaleSetReimageMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -51,9 +51,9 @@ async function virtualMachineScaleSetsReimageMaximumSetGen() { * This sample demonstrates how to Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. * * @summary Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Reimage_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Reimage_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsReimageMinimumSetGen() { +async function virtualMachineScaleSetReimageMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -69,8 +69,8 @@ async function virtualMachineScaleSetsReimageMinimumSetGen() { } async function main() { - virtualMachineScaleSetsReimageMaximumSetGen(); - virtualMachineScaleSetsReimageMinimumSetGen(); + virtualMachineScaleSetReimageMaximumSetGen(); + virtualMachineScaleSetReimageMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsRestartSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsRestartSample.ts similarity index 82% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsRestartSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsRestartSample.ts index 6ae382b126e2..cda6cfdc05d4 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsRestartSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsRestartSample.ts @@ -22,9 +22,9 @@ dotenv.config(); * This sample demonstrates how to Restarts one or more virtual machines in a VM scale set. * * @summary Restarts one or more virtual machines in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Restart_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Restart_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsRestartMaximumSetGen() { +async function virtualMachineScaleSetRestartMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -50,9 +50,9 @@ async function virtualMachineScaleSetsRestartMaximumSetGen() { * This sample demonstrates how to Restarts one or more virtual machines in a VM scale set. * * @summary Restarts one or more virtual machines in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Restart_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Restart_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsRestartMinimumSetGen() { +async function virtualMachineScaleSetRestartMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -68,8 +68,8 @@ async function virtualMachineScaleSetsRestartMinimumSetGen() { } async function main() { - virtualMachineScaleSetsRestartMaximumSetGen(); - virtualMachineScaleSetsRestartMinimumSetGen(); + virtualMachineScaleSetRestartMaximumSetGen(); + virtualMachineScaleSetRestartMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsSetOrchestrationServiceStateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsSetOrchestrationServiceStateSample.ts similarity index 78% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsSetOrchestrationServiceStateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsSetOrchestrationServiceStateSample.ts index 3d3dba14bef4..c9c4fe5265f3 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsSetOrchestrationServiceStateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsSetOrchestrationServiceStateSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to Changes ServiceState property for a given service * * @summary Changes ServiceState property for a given service - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_SetOrchestrationServiceState_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_SetOrchestrationServiceState_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsSetOrchestrationServiceStateMaximumSetGen() { +async function virtualMachineScaleSetOrchestrationServiceStateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -47,9 +47,9 @@ async function virtualMachineScaleSetsSetOrchestrationServiceStateMaximumSetGen( * This sample demonstrates how to Changes ServiceState property for a given service * * @summary Changes ServiceState property for a given service - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_SetOrchestrationServiceState_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_SetOrchestrationServiceState_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsSetOrchestrationServiceStateMinimumSetGen() { +async function virtualMachineScaleSetOrchestrationServiceStateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -70,8 +70,8 @@ async function virtualMachineScaleSetsSetOrchestrationServiceStateMinimumSetGen( } async function main() { - virtualMachineScaleSetsSetOrchestrationServiceStateMaximumSetGen(); - virtualMachineScaleSetsSetOrchestrationServiceStateMinimumSetGen(); + virtualMachineScaleSetOrchestrationServiceStateMaximumSetGen(); + virtualMachineScaleSetOrchestrationServiceStateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsStartSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsStartSample.ts similarity index 82% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsStartSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsStartSample.ts index f54d0075b348..6db8891df8d3 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsStartSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsStartSample.ts @@ -22,9 +22,9 @@ dotenv.config(); * This sample demonstrates how to Starts one or more virtual machines in a VM scale set. * * @summary Starts one or more virtual machines in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Start_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Start_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsStartMaximumSetGen() { +async function virtualMachineScaleSetStartMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -48,9 +48,9 @@ async function virtualMachineScaleSetsStartMaximumSetGen() { * This sample demonstrates how to Starts one or more virtual machines in a VM scale set. * * @summary Starts one or more virtual machines in a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Start_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Start_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsStartMinimumSetGen() { +async function virtualMachineScaleSetStartMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -66,8 +66,8 @@ async function virtualMachineScaleSetsStartMinimumSetGen() { } async function main() { - virtualMachineScaleSetsStartMaximumSetGen(); - virtualMachineScaleSetsStartMinimumSetGen(); + virtualMachineScaleSetStartMaximumSetGen(); + virtualMachineScaleSetStartMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsUpdateInstancesSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsUpdateInstancesSample.ts similarity index 82% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsUpdateInstancesSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsUpdateInstancesSample.ts index 8fd13d399f13..aa7a3eebc5fc 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsUpdateInstancesSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsUpdateInstancesSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to Upgrades one or more virtual machines to the latest SKU set in the VM scale set model. * * @summary Upgrades one or more virtual machines to the latest SKU set in the VM scale set model. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_UpdateInstances_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_UpdateInstances_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsUpdateInstancesMaximumSetGen() { +async function virtualMachineScaleSetUpdateInstancesMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -46,9 +46,9 @@ async function virtualMachineScaleSetsUpdateInstancesMaximumSetGen() { * This sample demonstrates how to Upgrades one or more virtual machines to the latest SKU set in the VM scale set model. * * @summary Upgrades one or more virtual machines to the latest SKU set in the VM scale set model. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_UpdateInstances_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_UpdateInstances_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsUpdateInstancesMinimumSetGen() { +async function virtualMachineScaleSetUpdateInstancesMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -68,8 +68,8 @@ async function virtualMachineScaleSetsUpdateInstancesMinimumSetGen() { } async function main() { - virtualMachineScaleSetsUpdateInstancesMaximumSetGen(); - virtualMachineScaleSetsUpdateInstancesMinimumSetGen(); + virtualMachineScaleSetUpdateInstancesMaximumSetGen(); + virtualMachineScaleSetUpdateInstancesMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsUpdateSample.ts similarity index 94% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsUpdateSample.ts index b9f48e00d2d6..9f9b504a6e7c 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineScaleSetsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsUpdateSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to Update a VM scale set. * * @summary Update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Update_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Update_MaximumSet_Gen.json */ -async function virtualMachineScaleSetsUpdateMaximumSetGen() { +async function virtualMachineScaleSetUpdateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -111,7 +111,6 @@ async function virtualMachineScaleSetsUpdateMaximumSetGen() { enableAcceleratedNetworking: true, enableFpga: true, enableIPForwarding: true, - id: "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", ipConfigurations: [ { name: "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa", @@ -127,7 +126,6 @@ async function virtualMachineScaleSetsUpdateMaximumSetGen() { "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" } ], - id: "aaaaaaaaaaaaaaaa", loadBalancerBackendAddressPools: [ { id: @@ -288,9 +286,9 @@ async function virtualMachineScaleSetsUpdateMaximumSetGen() { * This sample demonstrates how to Update a VM scale set. * * @summary Update a VM scale set. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_Update_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Update_MinimumSet_Gen.json */ -async function virtualMachineScaleSetsUpdateMinimumSetGen() { +async function virtualMachineScaleSetUpdateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -308,8 +306,8 @@ async function virtualMachineScaleSetsUpdateMinimumSetGen() { } async function main() { - virtualMachineScaleSetsUpdateMaximumSetGen(); - virtualMachineScaleSetsUpdateMinimumSetGen(); + virtualMachineScaleSetUpdateMaximumSetGen(); + virtualMachineScaleSetUpdateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineSizesListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineSizesListSample.ts similarity index 94% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineSizesListSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineSizesListSample.ts index 6825cc9342ca..d4e1a94aab8f 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachineSizesListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineSizesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to This API is deprecated. Use [Resources Skus](https://docs.microsoft.com/rest/api/compute/resourceskus/list) * * @summary This API is deprecated. Use [Resources Skus](https://docs.microsoft.com/rest/api/compute/resourceskus/list) - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/computeRPCommonExamples/VirtualMachineSizes_List_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/computeRPCommonExamples/VirtualMachineSizes_List_MaximumSet_Gen.json */ async function virtualMachineSizesListMaximumSetGen() { const subscriptionId = @@ -37,7 +37,7 @@ async function virtualMachineSizesListMaximumSetGen() { * This sample demonstrates how to This API is deprecated. Use [Resources Skus](https://docs.microsoft.com/rest/api/compute/resourceskus/list) * * @summary This API is deprecated. Use [Resources Skus](https://docs.microsoft.com/rest/api/compute/resourceskus/list) - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/computeRPCommonExamples/VirtualMachineSizes_List_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/computeRPCommonExamples/VirtualMachineSizes_List_MinimumSet_Gen.json */ async function virtualMachineSizesListMinimumSetGen() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesAssessPatchesSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesAssessPatchesSample.ts similarity index 95% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesAssessPatchesSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesAssessPatchesSample.ts index f3ca4277cb64..eb18d30fbd0a 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesAssessPatchesSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesAssessPatchesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Assess patches on the VM. * * @summary Assess patches on the VM. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_AssessPatches.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_AssessPatches.json */ async function assessPatchStateOfAVirtualMachine() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesCaptureSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesCaptureSample.ts similarity index 85% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesCaptureSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesCaptureSample.ts index 8f70829bed30..2ce98eb1c5ff 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesCaptureSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesCaptureSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs. * * @summary Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Capture_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Capture_MaximumSet_Gen.json */ -async function virtualMachinesCaptureMaximumSetGen() { +async function virtualMachineCaptureMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -48,9 +48,9 @@ async function virtualMachinesCaptureMaximumSetGen() { * This sample demonstrates how to Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs. * * @summary Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Capture_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Capture_MinimumSet_Gen.json */ -async function virtualMachinesCaptureMinimumSetGen() { +async function virtualMachineCaptureMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -72,8 +72,8 @@ async function virtualMachinesCaptureMinimumSetGen() { } async function main() { - virtualMachinesCaptureMaximumSetGen(); - virtualMachinesCaptureMinimumSetGen(); + virtualMachineCaptureMaximumSetGen(); + virtualMachineCaptureMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesConvertToManagedDisksSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesConvertToManagedDisksSample.ts similarity index 81% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesConvertToManagedDisksSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesConvertToManagedDisksSample.ts index 2c55942ddee4..171d697a51e9 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesConvertToManagedDisksSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesConvertToManagedDisksSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop-deallocated before invoking this operation. * * @summary Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop-deallocated before invoking this operation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_ConvertToManagedDisks_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_ConvertToManagedDisks_MaximumSet_Gen.json */ -async function virtualMachinesConvertToManagedDisksMaximumSetGen() { +async function virtualMachineConvertToManagedDisksMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -39,9 +39,9 @@ async function virtualMachinesConvertToManagedDisksMaximumSetGen() { * This sample demonstrates how to Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop-deallocated before invoking this operation. * * @summary Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop-deallocated before invoking this operation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_ConvertToManagedDisks_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_ConvertToManagedDisks_MinimumSet_Gen.json */ -async function virtualMachinesConvertToManagedDisksMinimumSetGen() { +async function virtualMachineConvertToManagedDisksMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -57,8 +57,8 @@ async function virtualMachinesConvertToManagedDisksMinimumSetGen() { } async function main() { - virtualMachinesConvertToManagedDisksMaximumSetGen(); - virtualMachinesConvertToManagedDisksMinimumSetGen(); + virtualMachineConvertToManagedDisksMaximumSetGen(); + virtualMachineConvertToManagedDisksMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesCreateOrUpdateSample.ts similarity index 96% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesCreateOrUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesCreateOrUpdateSample.ts index 3b59fd611a5e..26d309fc0bc4 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithPatchSettingAssessmentModeOfImageDefault.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithPatchSettingAssessmentModeOfImageDefault.json */ async function createALinuxVMWithAPatchSettingAssessmentModeOfImageDefault() { const subscriptionId = @@ -76,7 +76,7 @@ async function createALinuxVMWithAPatchSettingAssessmentModeOfImageDefault() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithAutomaticByPlatformSettings.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithAutomaticByPlatformSettings.json */ async function createALinuxVMWithAPatchSettingPatchModeOfAutomaticByPlatformAndAutomaticByPlatformSettings() { const subscriptionId = @@ -103,7 +103,10 @@ async function createALinuxVMWithAPatchSettingPatchModeOfAutomaticByPlatformAndA linuxConfiguration: { patchSettings: { assessmentMode: "AutomaticByPlatform", - automaticByPlatformSettings: { rebootSetting: "Never" }, + automaticByPlatformSettings: { + bypassPlatformSafetyChecksOnUserSchedule: true, + rebootSetting: "Never" + }, patchMode: "AutomaticByPlatform" }, provisionVMAgent: true @@ -138,7 +141,7 @@ async function createALinuxVMWithAPatchSettingPatchModeOfAutomaticByPlatformAndA * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithPatchSettingModeOfImageDefault.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithPatchSettingModeOfImageDefault.json */ async function createALinuxVMWithAPatchSettingPatchModeOfImageDefault() { const subscriptionId = @@ -196,7 +199,7 @@ async function createALinuxVMWithAPatchSettingPatchModeOfImageDefault() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithPatchSettingModesOfAutomaticByPlatform.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithPatchSettingModesOfAutomaticByPlatform.json */ async function createALinuxVMWithAPatchSettingsPatchModeAndAssessmentModeSetToAutomaticByPlatform() { const subscriptionId = @@ -257,7 +260,7 @@ async function createALinuxVMWithAPatchSettingsPatchModeAndAssessmentModeSetToAu * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_FromACommunityGalleryImage.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_FromACommunityGalleryImage.json */ async function createAVMFromACommunityGalleryImage() { const subscriptionId = @@ -309,7 +312,7 @@ async function createAVMFromACommunityGalleryImage() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_FromASharedGalleryImage.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_FromASharedGalleryImage.json */ async function createAVMFromASharedGalleryImage() { const subscriptionId = @@ -361,7 +364,7 @@ async function createAVMFromASharedGalleryImage() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithDiskControllerType.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithDiskControllerType.json */ async function createAVMWithDiskControllerType() { const subscriptionId = @@ -424,7 +427,7 @@ async function createAVMWithDiskControllerType() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithHibernationEnabled.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithHibernationEnabled.json */ async function createAVMWithHibernationEnabled() { const subscriptionId = @@ -486,7 +489,7 @@ async function createAVMWithHibernationEnabled() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithUefiSettings.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithUefiSettings.json */ async function createAVMWithUefiSettingsOfSecureBootAndVTpm() { const subscriptionId = @@ -544,7 +547,7 @@ async function createAVMWithUefiSettingsOfSecureBootAndVTpm() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithUserData.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithUserData.json */ async function createAVMWithUserData() { const subscriptionId = @@ -606,7 +609,7 @@ async function createAVMWithUserData() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_CreateWithVMSizeProperties.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithVMSizeProperties.json */ async function createAVMWithVMSizeProperties() { const subscriptionId = @@ -671,7 +674,7 @@ async function createAVMWithVMSizeProperties() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithNetworkInterfaceConfiguration.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithNetworkInterfaceConfiguration.json */ async function createAVMWithNetworkInterfaceConfiguration() { const subscriptionId = @@ -738,7 +741,7 @@ async function createAVMWithNetworkInterfaceConfiguration() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithSecurityTypeConfidentialVMWithCustomerManagedKeys.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithSecurityTypeConfidentialVMWithCustomerManagedKeys.json */ async function createAVMWithSecurityTypeConfidentialVMWithCustomerManagedKeys() { const subscriptionId = @@ -805,7 +808,7 @@ async function createAVMWithSecurityTypeConfidentialVMWithCustomerManagedKeys() * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithSecurityTypeConfidentialVM.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithSecurityTypeConfidentialVM.json */ async function createAVMWithSecurityTypeConfidentialVMWithPlatformManagedKeys() { const subscriptionId = @@ -866,7 +869,7 @@ async function createAVMWithSecurityTypeConfidentialVMWithPlatformManagedKeys() * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingAssessmentModeOfImageDefault.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingAssessmentModeOfImageDefault.json */ async function createAWindowsVMWithAPatchSettingAssessmentModeOfImageDefault() { const subscriptionId = @@ -925,7 +928,7 @@ async function createAWindowsVMWithAPatchSettingAssessmentModeOfImageDefault() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModeOfAutomaticByOS.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModeOfAutomaticByOS.json */ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByOS() { const subscriptionId = @@ -984,7 +987,7 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByOS() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithAutomaticByPlatformSettings.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithAutomaticByPlatformSettings.json */ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByPlatformAndAutomaticByPlatformSettings() { const subscriptionId = @@ -1012,7 +1015,10 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByPlatformAn enableAutomaticUpdates: true, patchSettings: { assessmentMode: "AutomaticByPlatform", - automaticByPlatformSettings: { rebootSetting: "Never" }, + automaticByPlatformSettings: { + bypassPlatformSafetyChecksOnUserSchedule: false, + rebootSetting: "Never" + }, patchMode: "AutomaticByPlatform" }, provisionVMAgent: true @@ -1047,7 +1053,7 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByPlatformAn * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModeOfAutomaticByPlatformAndEnableHotPatchingTrue.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModeOfAutomaticByPlatformAndEnableHotPatchingTrue.json */ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByPlatformAndEnableHotpatchingSetToTrue() { const subscriptionId = @@ -1109,7 +1115,7 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByPlatformAn * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModeOfManual.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModeOfManual.json */ async function createAWindowsVMWithAPatchSettingPatchModeOfManual() { const subscriptionId = @@ -1168,7 +1174,7 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfManual() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModesOfAutomaticByPlatform.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModesOfAutomaticByPlatform.json */ async function createAWindowsVMWithPatchSettingsPatchModeAndAssessmentModeSetToAutomaticByPlatform() { const subscriptionId = @@ -1230,7 +1236,7 @@ async function createAWindowsVMWithPatchSettingsPatchModeAndAssessmentModeSetToA * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_CustomImageVmFromAnUnmanagedGeneralizedOsImage.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_CustomImageVmFromAnUnmanagedGeneralizedOsImage.json */ async function createACustomImageVMFromAnUnmanagedGeneralizedOSImage() { const subscriptionId = @@ -1286,7 +1292,7 @@ async function createACustomImageVMFromAnUnmanagedGeneralizedOSImage() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_PlatformImageVmWithUnmanagedOsAndDataDisks.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_PlatformImageVmWithUnmanagedOsAndDataDisks.json */ async function createAPlatformImageVMWithUnmanagedOSAndDataDisks() { const subscriptionId = @@ -1363,7 +1369,7 @@ async function createAPlatformImageVMWithUnmanagedOSAndDataDisks() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_FromACustomImage.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_FromACustomImage.json */ async function createAVMFromACustomImage() { const subscriptionId = @@ -1415,7 +1421,7 @@ async function createAVMFromACustomImage() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_FromAGeneralizedSharedImage.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_FromAGeneralizedSharedImage.json */ async function createAVMFromAGeneralizedSharedImage() { const subscriptionId = @@ -1467,7 +1473,7 @@ async function createAVMFromAGeneralizedSharedImage() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_FromASpecializedSharedImage.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_FromASpecializedSharedImage.json */ async function createAVMFromASpecializedSharedImage() { const subscriptionId = @@ -1514,7 +1520,7 @@ async function createAVMFromASpecializedSharedImage() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_InAVmssWithCustomerAssignedPlatformFaultDomain.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_InAVmssWithCustomerAssignedPlatformFaultDomain.json */ async function createAVMInAVirtualMachineScaleSetWithCustomerAssignedPlatformFaultDomain() { const subscriptionId = @@ -1573,7 +1579,7 @@ async function createAVMInAVirtualMachineScaleSetWithCustomerAssignedPlatformFau * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_InAnAvailabilitySet.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_InAnAvailabilitySet.json */ async function createAVMInAnAvailabilitySet() { const subscriptionId = @@ -1631,7 +1637,7 @@ async function createAVMInAnAvailabilitySet() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithApplicationProfile.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithApplicationProfile.json */ async function createAVMWithApplicationProfile() { const subscriptionId = @@ -1703,7 +1709,7 @@ async function createAVMWithApplicationProfile() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithDiskEncryptionSetResource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithDiskEncryptionSetResource.json */ async function createAVMWithDiskEncryptionSetResourceIdInTheOSDiskAndDataDisk() { const subscriptionId = @@ -1791,7 +1797,7 @@ async function createAVMWithDiskEncryptionSetResourceIdInTheOSDiskAndDataDisk() * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithEncryptionAtHost.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithEncryptionAtHost.json */ async function createAVMWithHostEncryptionUsingEncryptionAtHostProperty() { const subscriptionId = @@ -1851,7 +1857,7 @@ async function createAVMWithHostEncryptionUsingEncryptionAtHostProperty() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithScheduledEventsProfile.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithScheduledEventsProfile.json */ async function createAVMWithScheduledEventsProfile() { const subscriptionId = @@ -1916,7 +1922,7 @@ async function createAVMWithScheduledEventsProfile() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithAMarketplaceImagePlan.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithAMarketplaceImagePlan.json */ async function createAVMWithAMarketplaceImagePlan() { const subscriptionId = @@ -1975,7 +1981,7 @@ async function createAVMWithAMarketplaceImagePlan() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithExtensionsTimeBudget.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithExtensionsTimeBudget.json */ async function createAVMWithAnExtensionsTimeBudget() { const subscriptionId = @@ -2037,7 +2043,7 @@ async function createAVMWithAnExtensionsTimeBudget() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithBootDiagnostics.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithBootDiagnostics.json */ async function createAVMWithBootDiagnostics() { const subscriptionId = @@ -2098,7 +2104,7 @@ async function createAVMWithBootDiagnostics() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithEmptyDataDisks.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithEmptyDataDisks.json */ async function createAVMWithEmptyDataDisks() { const subscriptionId = @@ -2156,7 +2162,7 @@ async function createAVMWithEmptyDataDisks() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDiskUsingDiffDiskPlacementAsCacheDisk.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDiskUsingDiffDiskPlacementAsCacheDisk.json */ async function createAVMWithEphemeralOSDiskProvisioningInCacheDiskUsingPlacementProperty() { const subscriptionId = @@ -2216,7 +2222,7 @@ async function createAVMWithEphemeralOSDiskProvisioningInCacheDiskUsingPlacement * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDiskUsingDiffDiskPlacementAsResourceDisk.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDiskUsingDiffDiskPlacementAsResourceDisk.json */ async function createAVMWithEphemeralOSDiskProvisioningInResourceDiskUsingPlacementProperty() { const subscriptionId = @@ -2276,7 +2282,7 @@ async function createAVMWithEphemeralOSDiskProvisioningInResourceDiskUsingPlacem * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDisk.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDisk.json */ async function createAVMWithEphemeralOSDisk() { const subscriptionId = @@ -2336,7 +2342,7 @@ async function createAVMWithEphemeralOSDisk() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithManagedBootDiagnostics.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithManagedBootDiagnostics.json */ async function createAVMWithManagedBootDiagnostics() { const subscriptionId = @@ -2391,7 +2397,7 @@ async function createAVMWithManagedBootDiagnostics() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithPasswordAuthentication.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithPasswordAuthentication.json */ async function createAVMWithPasswordAuthentication() { const subscriptionId = @@ -2445,7 +2451,7 @@ async function createAVMWithPasswordAuthentication() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithPremiumStorage.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithPremiumStorage.json */ async function createAVMWithPremiumStorage() { const subscriptionId = @@ -2499,7 +2505,7 @@ async function createAVMWithPremiumStorage() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithSshAuthentication.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithSshAuthentication.json */ async function createAVMWithSshAuthentication() { const subscriptionId = @@ -2564,7 +2570,7 @@ async function createAVMWithSshAuthentication() { * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. * * @summary The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithCapacityReservation.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Create_WithCapacityReservation.json */ async function createOrUpdateAVMWithCapacityReservation() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesDeallocateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesDeallocateSample.ts similarity index 84% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesDeallocateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesDeallocateSample.ts index 9d53261bcd02..df62f033a391 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesDeallocateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesDeallocateSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses. * * @summary Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Deallocate_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Deallocate_MaximumSet_Gen.json */ -async function virtualMachinesDeallocateMaximumSetGen() { +async function virtualMachineDeallocateMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -45,9 +45,9 @@ async function virtualMachinesDeallocateMaximumSetGen() { * This sample demonstrates how to Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses. * * @summary Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Deallocate_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Deallocate_MinimumSet_Gen.json */ -async function virtualMachinesDeallocateMinimumSetGen() { +async function virtualMachineDeallocateMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -63,8 +63,8 @@ async function virtualMachinesDeallocateMinimumSetGen() { } async function main() { - virtualMachinesDeallocateMaximumSetGen(); - virtualMachinesDeallocateMinimumSetGen(); + virtualMachineDeallocateMaximumSetGen(); + virtualMachineDeallocateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesDeleteSample.ts similarity index 95% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesDeleteSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesDeleteSample.ts index 06e19f097630..8e0eede6da48 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesDeleteSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to delete a virtual machine. * * @summary The operation to delete a virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Delete_Force.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Delete_Force.json */ async function forceDeleteAVM() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesGeneralizeSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesGeneralizeSample.ts similarity index 64% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesGeneralizeSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesGeneralizeSample.ts index 639e77fbee25..ca3e5b400f53 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesGeneralizeSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesGeneralizeSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual machine before performing this operation.
For Windows, please refer to [Create a managed image of a generalized VM in Azure](https://docs.microsoft.com/azure/virtual-machines/windows/capture-image-resource).
For Linux, please refer to [How to create an image of a virtual machine or VHD](https://docs.microsoft.com/azure/virtual-machines/linux/capture-image). + * This sample demonstrates how to Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual machine before performing this operation. For Windows, please refer to [Create a managed image of a generalized VM in Azure](https://docs.microsoft.com/azure/virtual-machines/windows/capture-image-resource). For Linux, please refer to [How to create an image of a virtual machine or VHD](https://docs.microsoft.com/azure/virtual-machines/linux/capture-image). * - * @summary Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual machine before performing this operation.
For Windows, please refer to [Create a managed image of a generalized VM in Azure](https://docs.microsoft.com/azure/virtual-machines/windows/capture-image-resource).
For Linux, please refer to [How to create an image of a virtual machine or VHD](https://docs.microsoft.com/azure/virtual-machines/linux/capture-image). - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Generalize.json + * @summary Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual machine before performing this operation. For Windows, please refer to [Create a managed image of a generalized VM in Azure](https://docs.microsoft.com/azure/virtual-machines/windows/capture-image-resource). For Linux, please refer to [How to create an image of a virtual machine or VHD](https://docs.microsoft.com/azure/virtual-machines/linux/capture-image). + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Generalize.json */ async function generalizeAVirtualMachine() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesGetSample.ts similarity index 94% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesGetSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesGetSample.ts index e8ec66e341f8..6d8041f04986 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesGetSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves information about the model view or the instance view of a virtual machine. * * @summary Retrieves information about the model view or the instance view of a virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Get.json */ async function getAVirtualMachine() { const subscriptionId = @@ -45,7 +45,7 @@ async function getAVirtualMachine() { * This sample demonstrates how to Retrieves information about the model view or the instance view of a virtual machine. * * @summary Retrieves information about the model view or the instance view of a virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Get_AutoPlacedOnDedicatedHostGroup.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Get_AutoPlacedOnDedicatedHostGroup.json */ async function getAVirtualMachinePlacedOnADedicatedHostGroupThroughAutomaticPlacement() { const subscriptionId = @@ -63,7 +63,7 @@ async function getAVirtualMachinePlacedOnADedicatedHostGroupThroughAutomaticPlac * This sample demonstrates how to Retrieves information about the model view or the instance view of a virtual machine. * * @summary Retrieves information about the model view or the instance view of a virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Get_WithDiskControllerType.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Get_WithDiskControllerType.json */ async function getAVirtualMachineWithDiskControllerTypeProperties() { const subscriptionId = @@ -87,7 +87,7 @@ async function getAVirtualMachineWithDiskControllerTypeProperties() { * This sample demonstrates how to Retrieves information about the model view or the instance view of a virtual machine. * * @summary Retrieves information about the model view or the instance view of a virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Get_WithVMSizeProperties.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Get_WithVMSizeProperties.json */ async function getAVirtualMachineWithVMSizeProperties() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesInstallPatchesSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesInstallPatchesSample.ts similarity index 96% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesInstallPatchesSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesInstallPatchesSample.ts index 517e055c6ef1..e465ebd5d287 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesInstallPatchesSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesInstallPatchesSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Installs patches on the VM. * * @summary Installs patches on the VM. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_InstallPatches.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_InstallPatches.json */ async function installPatchStateOfAVirtualMachine() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesInstanceViewSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesInstanceViewSample.ts similarity index 94% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesInstanceViewSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesInstanceViewSample.ts index 7c6e6ab09640..0d692d3eb582 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesInstanceViewSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesInstanceViewSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves information about the run-time state of a virtual machine. * * @summary Retrieves information about the run-time state of a virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Get_InstanceView.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Get_InstanceView.json */ async function getVirtualMachineInstanceView() { const subscriptionId = @@ -39,7 +39,7 @@ async function getVirtualMachineInstanceView() { * This sample demonstrates how to Retrieves information about the run-time state of a virtual machine. * * @summary Retrieves information about the run-time state of a virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Get_InstanceViewAutoPlacedOnDedicatedHostGroup.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Get_InstanceViewAutoPlacedOnDedicatedHostGroup.json */ async function getInstanceViewOfAVirtualMachinePlacedOnADedicatedHostGroupThroughAutomaticPlacement() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesListAllSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesListAllSample.ts similarity index 84% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesListAllSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesListAllSample.ts index 9b57dc2ad887..30a2991b57dd 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesListAllSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesListAllSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines. * * @summary Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_ListAll_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_ListAll_MaximumSet_Gen.json */ -async function virtualMachinesListAllMaximumSetGen() { +async function virtualMachineListAllMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const statusOnly = "aaaaaa"; @@ -42,9 +42,9 @@ async function virtualMachinesListAllMaximumSetGen() { * This sample demonstrates how to Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines. * * @summary Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_ListAll_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_ListAll_MinimumSet_Gen.json */ -async function virtualMachinesListAllMinimumSetGen() { +async function virtualMachineListAllMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const credential = new DefaultAzureCredential(); @@ -57,8 +57,8 @@ async function virtualMachinesListAllMinimumSetGen() { } async function main() { - virtualMachinesListAllMaximumSetGen(); - virtualMachinesListAllMinimumSetGen(); + virtualMachineListAllMaximumSetGen(); + virtualMachineListAllMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesListAvailableSizesSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesListAvailableSizesSample.ts similarity index 93% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesListAvailableSizesSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesListAvailableSizesSample.ts index 58f072b7cd28..99a44b08b780 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesListAvailableSizesSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesListAvailableSizesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all available virtual machine sizes to which the specified virtual machine can be resized. * * @summary Lists all available virtual machine sizes to which the specified virtual machine can be resized. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_ListAvailableVmSizes.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_ListAvailableVmSizes.json */ async function listsAllAvailableVirtualMachineSizesToWhichTheSpecifiedVirtualMachineCanBeResized() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesListByLocationSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesListByLocationSample.ts similarity index 91% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesListByLocationSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesListByLocationSample.ts index 36e3a6a8e168..0ca277dcc2ee 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesListByLocationSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesListByLocationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all the virtual machines under the specified subscription for the specified location. * * @summary Gets all the virtual machines under the specified subscription for the specified location. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_ListBySubscription_ByLocation.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_ListBySubscription_ByLocation.json */ async function listsAllTheVirtualMachinesUnderTheSpecifiedSubscriptionForTheSpecifiedLocation() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesListSample.ts similarity index 85% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesListSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesListSample.ts index 75f8c66505b4..51c1bea6d992 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesListSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines. * * @summary Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_List_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_List_MaximumSet_Gen.json */ -async function virtualMachinesListMaximumSetGen() { +async function virtualMachineListMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -46,9 +46,9 @@ async function virtualMachinesListMaximumSetGen() { * This sample demonstrates how to Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines. * * @summary Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_List_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_List_MinimumSet_Gen.json */ -async function virtualMachinesListMinimumSetGen() { +async function virtualMachineListMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -63,8 +63,8 @@ async function virtualMachinesListMinimumSetGen() { } async function main() { - virtualMachinesListMaximumSetGen(); - virtualMachinesListMinimumSetGen(); + virtualMachineListMaximumSetGen(); + virtualMachineListMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesPerformMaintenanceSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesPerformMaintenanceSample.ts similarity index 79% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesPerformMaintenanceSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesPerformMaintenanceSample.ts index 8c6985d5a6c2..1d30c5a0d283 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesPerformMaintenanceSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesPerformMaintenanceSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to The operation to perform maintenance on a virtual machine. * * @summary The operation to perform maintenance on a virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_PerformMaintenance_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_PerformMaintenance_MaximumSet_Gen.json */ -async function virtualMachinesPerformMaintenanceMaximumSetGen() { +async function virtualMachinePerformMaintenanceMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -39,9 +39,9 @@ async function virtualMachinesPerformMaintenanceMaximumSetGen() { * This sample demonstrates how to The operation to perform maintenance on a virtual machine. * * @summary The operation to perform maintenance on a virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_PerformMaintenance_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_PerformMaintenance_MinimumSet_Gen.json */ -async function virtualMachinesPerformMaintenanceMinimumSetGen() { +async function virtualMachinePerformMaintenanceMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -57,8 +57,8 @@ async function virtualMachinesPerformMaintenanceMinimumSetGen() { } async function main() { - virtualMachinesPerformMaintenanceMaximumSetGen(); - virtualMachinesPerformMaintenanceMinimumSetGen(); + virtualMachinePerformMaintenanceMaximumSetGen(); + virtualMachinePerformMaintenanceMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesPowerOffSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesPowerOffSample.ts similarity index 85% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesPowerOffSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesPowerOffSample.ts index 0c0849976eaf..64c01d16bfc0 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesPowerOffSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesPowerOffSample.ts @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine. * * @summary The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_PowerOff_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_PowerOff_MaximumSet_Gen.json */ -async function virtualMachinesPowerOffMaximumSetGen() { +async function virtualMachinePowerOffMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -45,9 +45,9 @@ async function virtualMachinesPowerOffMaximumSetGen() { * This sample demonstrates how to The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine. * * @summary The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_PowerOff_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_PowerOff_MinimumSet_Gen.json */ -async function virtualMachinesPowerOffMinimumSetGen() { +async function virtualMachinePowerOffMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -63,8 +63,8 @@ async function virtualMachinesPowerOffMinimumSetGen() { } async function main() { - virtualMachinesPowerOffMaximumSetGen(); - virtualMachinesPowerOffMinimumSetGen(); + virtualMachinePowerOffMaximumSetGen(); + virtualMachinePowerOffMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesReapplySample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesReapplySample.ts similarity index 95% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesReapplySample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesReapplySample.ts index 44e23bcbd7c0..0f8cade87d6d 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesReapplySample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesReapplySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to reapply a virtual machine's state. * * @summary The operation to reapply a virtual machine's state. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Reapply.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Reapply.json */ async function reapplyTheStateOfAVirtualMachine() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesRedeploySample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRedeploySample.ts similarity index 82% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesRedeploySample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRedeploySample.ts index 6146f846dfd3..219d29a5958e 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesRedeploySample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRedeploySample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Shuts down the virtual machine, moves it to a new node, and powers it back on. * * @summary Shuts down the virtual machine, moves it to a new node, and powers it back on. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Redeploy_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Redeploy_MaximumSet_Gen.json */ -async function virtualMachinesRedeployMaximumSetGen() { +async function virtualMachineRedeployMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -39,9 +39,9 @@ async function virtualMachinesRedeployMaximumSetGen() { * This sample demonstrates how to Shuts down the virtual machine, moves it to a new node, and powers it back on. * * @summary Shuts down the virtual machine, moves it to a new node, and powers it back on. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Redeploy_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Redeploy_MinimumSet_Gen.json */ -async function virtualMachinesRedeployMinimumSetGen() { +async function virtualMachineRedeployMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -57,8 +57,8 @@ async function virtualMachinesRedeployMinimumSetGen() { } async function main() { - virtualMachinesRedeployMaximumSetGen(); - virtualMachinesRedeployMinimumSetGen(); + virtualMachineRedeployMaximumSetGen(); + virtualMachineRedeployMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesReimageSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesReimageSample.ts similarity index 97% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesReimageSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesReimageSample.ts index da0fd08de818..19043f1fdeb9 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesReimageSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesReimageSample.ts @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. NOTE: The retaining of old OS disk depends on the value of deleteOption of OS disk. If deleteOption is detach, the old OS disk will be preserved after reimage. If deleteOption is delete, the old OS disk will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage. * * @summary Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. NOTE: The retaining of old OS disk depends on the value of deleteOption of OS disk. If deleteOption is detach, the old OS disk will be preserved after reimage. If deleteOption is delete, the old OS disk will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Reimage_NonEphemeralVMs.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Reimage_NonEphemeralVMs.json */ async function reimageANonEphemeralVirtualMachine() { const subscriptionId = @@ -53,7 +53,7 @@ async function reimageANonEphemeralVirtualMachine() { * This sample demonstrates how to Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. NOTE: The retaining of old OS disk depends on the value of deleteOption of OS disk. If deleteOption is detach, the old OS disk will be preserved after reimage. If deleteOption is delete, the old OS disk will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage. * * @summary Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. NOTE: The retaining of old OS disk depends on the value of deleteOption of OS disk. If deleteOption is detach, the old OS disk will be preserved after reimage. If deleteOption is delete, the old OS disk will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Reimage.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Reimage.json */ async function reimageAVirtualMachine() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesRestartSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRestartSample.ts similarity index 81% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesRestartSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRestartSample.ts index c4d833345503..cbae525b69cd 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesRestartSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRestartSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to The operation to restart a virtual machine. * * @summary The operation to restart a virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Restart_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Restart_MaximumSet_Gen.json */ -async function virtualMachinesRestartMaximumSetGen() { +async function virtualMachineRestartMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -39,9 +39,9 @@ async function virtualMachinesRestartMaximumSetGen() { * This sample demonstrates how to The operation to restart a virtual machine. * * @summary The operation to restart a virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Restart_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Restart_MinimumSet_Gen.json */ -async function virtualMachinesRestartMinimumSetGen() { +async function virtualMachineRestartMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -57,8 +57,8 @@ async function virtualMachinesRestartMinimumSetGen() { } async function main() { - virtualMachinesRestartMaximumSetGen(); - virtualMachinesRestartMinimumSetGen(); + virtualMachineRestartMaximumSetGen(); + virtualMachineRestartMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesRetrieveBootDiagnosticsDataSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRetrieveBootDiagnosticsDataSample.ts similarity index 96% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesRetrieveBootDiagnosticsDataSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRetrieveBootDiagnosticsDataSample.ts index ef8d1e28e6f1..32bf673080a7 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesRetrieveBootDiagnosticsDataSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRetrieveBootDiagnosticsDataSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to retrieve SAS URIs for a virtual machine's boot diagnostic logs. * * @summary The operation to retrieve SAS URIs for a virtual machine's boot diagnostic logs. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_RetrieveBootDiagnosticsData.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_RetrieveBootDiagnosticsData.json */ async function retrieveBootDiagnosticsDataOfAVirtualMachine() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesRunCommandSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRunCommandSample.ts similarity index 95% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesRunCommandSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRunCommandSample.ts index 50a1f4079a63..ab577d880fe3 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesRunCommandSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRunCommandSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Run command on the VM. * * @summary Run command on the VM. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/runCommandExamples/VirtualMachineRunCommand.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/runCommandExamples/VirtualMachineRunCommand.json */ async function virtualMachineRunCommand() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesSimulateEvictionSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesSimulateEvictionSample.ts similarity index 95% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesSimulateEvictionSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesSimulateEvictionSample.ts index a3200f53af30..c1a496602181 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesSimulateEvictionSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesSimulateEvictionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to simulate the eviction of spot virtual machine. * * @summary The operation to simulate the eviction of spot virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_SimulateEviction.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_SimulateEviction.json */ async function simulateEvictionAVirtualMachine() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesStartSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesStartSample.ts similarity index 81% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesStartSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesStartSample.ts index 8475ef38f199..5f52ff199eef 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesStartSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesStartSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to The operation to start a virtual machine. * * @summary The operation to start a virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Start_MaximumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Start_MaximumSet_Gen.json */ -async function virtualMachinesStartMaximumSetGen() { +async function virtualMachineStartMaximumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -39,9 +39,9 @@ async function virtualMachinesStartMaximumSetGen() { * This sample demonstrates how to The operation to start a virtual machine. * * @summary The operation to start a virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachines_Start_MinimumSet_Gen.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Start_MinimumSet_Gen.json */ -async function virtualMachinesStartMinimumSetGen() { +async function virtualMachineStartMinimumSetGen() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const resourceGroupName = @@ -57,8 +57,8 @@ async function virtualMachinesStartMinimumSetGen() { } async function main() { - virtualMachinesStartMaximumSetGen(); - virtualMachinesStartMinimumSetGen(); + virtualMachineStartMaximumSetGen(); + virtualMachineStartMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesUpdateSample.ts similarity index 97% rename from sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesUpdateSample.ts rename to sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesUpdateSample.ts index 69400567e419..1e91c48a85b8 100644 --- a/sdk/compute/arm-compute/samples/v20/typescript/src/virtualMachinesUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to update a virtual machine. * * @summary The operation to update a virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Update_DetachDataDiskUsingToBeDetachedProperty.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Update_DetachDataDiskUsingToBeDetachedProperty.json */ async function updateAVMByDetachingDataDisk() { const subscriptionId = @@ -78,7 +78,7 @@ async function updateAVMByDetachingDataDisk() { * This sample demonstrates how to The operation to update a virtual machine. * * @summary The operation to update a virtual machine. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineExamples/VirtualMachine_Update_ForceDetachDataDisk.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/examples/virtualMachineExamples/VirtualMachine_Update_ForceDetachDataDisk.json */ async function updateAVMByForceDetachingDataDisk() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v20/typescript/tsconfig.json b/sdk/compute/arm-compute/samples/v21/typescript/tsconfig.json similarity index 100% rename from sdk/compute/arm-compute/samples/v20/typescript/tsconfig.json rename to sdk/compute/arm-compute/samples/v21/typescript/tsconfig.json diff --git a/sdk/compute/arm-compute/src/computeManagementClient.ts b/sdk/compute/arm-compute/src/computeManagementClient.ts index 17bdc7369edb..c4da3dbe4af3 100644 --- a/sdk/compute/arm-compute/src/computeManagementClient.ts +++ b/sdk/compute/arm-compute/src/computeManagementClient.ts @@ -145,7 +145,7 @@ export class ComputeManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-compute/20.0.1`; + const packageDetails = `azsdk-js-arm-compute/21.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` diff --git a/sdk/compute/arm-compute/src/lroImpl.ts b/sdk/compute/arm-compute/src/lroImpl.ts index 518d5f053b4e..dd803cd5e28c 100644 --- a/sdk/compute/arm-compute/src/lroImpl.ts +++ b/sdk/compute/arm-compute/src/lroImpl.ts @@ -6,29 +6,37 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { AbortSignalLike } from "@azure/abort-controller"; import { LongRunningOperation, LroResponse } from "@azure/core-lro"; -export class LroImpl implements LongRunningOperation { - constructor( - private sendOperationFn: (args: any, spec: any) => Promise>, - private args: Record, - private spec: { - readonly requestBody?: unknown; - readonly path?: string; - readonly httpMethod: string; - } & Record, - public requestPath: string = spec.path!, - public requestMethod: string = spec.httpMethod - ) {} - public async sendInitialRequest(): Promise> { - return this.sendOperationFn(this.args, this.spec); - } - public async sendPollRequest(path: string): Promise> { - const { requestBody, ...restSpec } = this.spec; - return this.sendOperationFn(this.args, { - ...restSpec, - path, - httpMethod: "GET" - }); - } +export function createLroSpec(inputs: { + sendOperationFn: (args: any, spec: any) => Promise>; + args: Record; + spec: { + readonly requestBody?: unknown; + readonly path?: string; + readonly httpMethod: string; + } & Record; +}): LongRunningOperation { + const { args, spec, sendOperationFn } = inputs; + return { + requestMethod: spec.httpMethod, + requestPath: spec.path!, + sendInitialRequest: () => sendOperationFn(args, spec), + sendPollRequest: ( + path: string, + options?: { abortSignal?: AbortSignalLike } + ) => { + const { requestBody, ...restSpec } = spec; + return sendOperationFn(args, { + ...restSpec, + httpMethod: "GET", + path, + abortSignal: options?.abortSignal + }); + } + }; } diff --git a/sdk/compute/arm-compute/src/models/index.ts b/sdk/compute/arm-compute/src/models/index.ts index 02d8d385ea82..dd03e7a76d6c 100644 --- a/sdk/compute/arm-compute/src/models/index.ts +++ b/sdk/compute/arm-compute/src/models/index.ts @@ -201,7 +201,7 @@ export interface RollingUpgradePolicy { /** The configuration parameters used for performing automatic OS upgrade. */ export interface AutomaticOSUpgradePolicy { - /** Indicates whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the OS image becomes available. Default value is false.

If this is set to true for Windows based scale sets, [enableAutomaticUpdates](https://docs.microsoft.com/dotnet/api/microsoft.azure.management.compute.models.windowsconfiguration.enableautomaticupdates?view=azure-dotnet) is automatically set to false and cannot be set to true. */ + /** Indicates whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the OS image becomes available. Default value is false. If this is set to true for Windows based scale sets, [enableAutomaticUpdates](https://docs.microsoft.com/dotnet/api/microsoft.azure.management.compute.models.windowsconfiguration.enableautomaticupdates?view=azure-dotnet) is automatically set to false and cannot be set to true. */ enableAutomaticOSUpgrade?: boolean; /** Whether OS image rollback feature should be disabled. Default value is false. */ disableAutomaticRollback?: boolean; @@ -229,30 +229,32 @@ export interface VirtualMachineScaleSetVMProfile { networkProfile?: VirtualMachineScaleSetNetworkProfile; /** Specifies the Security related profile settings for the virtual machines in the scale set. */ securityProfile?: SecurityProfile; - /** Specifies the boot diagnostic settings state.

Minimum api-version: 2015-06-15. */ + /** Specifies the boot diagnostic settings state. Minimum api-version: 2015-06-15. */ diagnosticsProfile?: DiagnosticsProfile; /** Specifies a collection of settings for extensions installed on virtual machines in the scale set. */ extensionProfile?: VirtualMachineScaleSetExtensionProfile; /** Specifies that the image or disk that is being used was licensed on-premises.

Possible values for Windows Server operating system are:

Windows_Client

Windows_Server

Possible values for Linux Server operating system are:

RHEL_BYOS (for RHEL)

SLES_BYOS (for SUSE)

For more information, see [Azure Hybrid Use Benefit for Windows Server](https://docs.microsoft.com/azure/virtual-machines/windows/hybrid-use-benefit-licensing)

[Azure Hybrid Use Benefit for Linux Server](https://docs.microsoft.com/azure/virtual-machines/linux/azure-hybrid-benefit-linux)

Minimum api-version: 2015-06-15 */ licenseType?: string; - /** Specifies the priority for the virtual machines in the scale set.

Minimum api-version: 2017-10-30-preview */ + /** Specifies the priority for the virtual machines in the scale set. Minimum api-version: 2017-10-30-preview. */ priority?: VirtualMachinePriorityTypes; - /** Specifies the eviction policy for the Azure Spot virtual machine and Azure Spot scale set.

For Azure Spot virtual machines, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2019-03-01.

For Azure Spot scale sets, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2017-10-30-preview. */ + /** Specifies the eviction policy for the Azure Spot virtual machine and Azure Spot scale set. For Azure Spot virtual machines, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2019-03-01. For Azure Spot scale sets, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2017-10-30-preview. */ evictionPolicy?: VirtualMachineEvictionPolicyTypes; - /** Specifies the billing related details of a Azure Spot VMSS.

Minimum api-version: 2019-03-01. */ + /** Specifies the billing related details of a Azure Spot VMSS. Minimum api-version: 2019-03-01. */ billingProfile?: BillingProfile; /** Specifies Scheduled Event related configurations. */ scheduledEventsProfile?: ScheduledEventsProfile; - /** UserData for the virtual machines in the scale set, which must be base-64 encoded. Customer should not pass any secrets in here.

Minimum api-version: 2021-03-01 */ + /** UserData for the virtual machines in the scale set, which must be base-64 encoded. Customer should not pass any secrets in here. Minimum api-version: 2021-03-01. */ userData?: string; - /** Specifies the capacity reservation related details of a scale set.

Minimum api-version: 2021-04-01. */ + /** Specifies the capacity reservation related details of a scale set. Minimum api-version: 2021-04-01. */ capacityReservation?: CapacityReservationProfile; /** Specifies the gallery applications that should be made available to the VM/VMSS */ applicationProfile?: ApplicationProfile; - /** Specifies the hardware profile related details of a scale set.

Minimum api-version: 2021-11-01. */ + /** Specifies the hardware profile related details of a scale set. Minimum api-version: 2021-11-01. */ hardwareProfile?: VirtualMachineScaleSetHardwareProfile; /** 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 */ serviceArtifactReference?: ServiceArtifactReference; + /** Specifies the security posture to be used for all virtual machines in the scale set. Minimum api-version: 2023-03-01 */ + securityPostureReference?: SecurityPostureReference; } /** Describes a virtual machine scale set OS profile. */ @@ -263,15 +265,15 @@ export interface VirtualMachineScaleSetOSProfile { adminUsername?: string; /** Specifies the password of the administrator account.

**Minimum-length (Windows):** 8 characters

**Minimum-length (Linux):** 6 characters

**Max-length (Windows):** 123 characters

**Max-length (Linux):** 72 characters

**Complexity requirements:** 3 out of 4 conditions below need to be fulfilled
Has lower characters
Has upper characters
Has a digit
Has a special character (Regex match [\W_])

**Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!"

For resetting the password, see [How to reset the Remote Desktop service or its login password in a Windows VM](https://docs.microsoft.com/troubleshoot/azure/virtual-machines/reset-rdp)

For resetting root password, see [Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess Extension](https://docs.microsoft.com/troubleshoot/azure/virtual-machines/troubleshoot-ssh-connection) */ adminPassword?: string; - /** Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes.

For using cloud-init for your VM, see [Using cloud-init to customize a Linux VM during creation](https://docs.microsoft.com/azure/virtual-machines/linux/using-cloud-init) */ + /** Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. For using cloud-init for your VM, see [Using cloud-init to customize a Linux VM during creation](https://docs.microsoft.com/azure/virtual-machines/linux/using-cloud-init) */ customData?: string; /** Specifies Windows operating system settings on the virtual machine. */ windowsConfiguration?: WindowsConfiguration; - /** Specifies the Linux operating system settings on the virtual machine.

For a list of supported Linux distributions, see [Linux on Azure-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros). */ + /** Specifies the Linux operating system settings on the virtual machine. For a list of supported Linux distributions, see [Linux on Azure-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros). */ linuxConfiguration?: LinuxConfiguration; /** Specifies set of certificates that should be installed onto the virtual machines in the scale set. To install certificates on a virtual machine it is recommended to use the [Azure Key Vault virtual machine extension for Linux](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-linux) or the [Azure Key Vault virtual machine extension for Windows](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows). */ secrets?: VaultSecretGroup[]; - /** Specifies whether extension operations should be allowed on the virtual machine scale set.

This may only be set to False when no extensions are present on the virtual machine scale set. */ + /** Specifies whether extension operations should be allowed on the virtual machine scale set. This may only be set to False when no extensions are present on the virtual machine scale set. */ allowExtensionOperations?: boolean; /** Optional property which must either be set to True or omitted. */ requireGuestProvisionSignal?: boolean; @@ -279,11 +281,11 @@ export interface VirtualMachineScaleSetOSProfile { /** Specifies Windows operating system settings on the virtual machine. */ export interface WindowsConfiguration { - /** Indicates whether virtual machine agent should be provisioned on the virtual machine.

When this property is not specified in the request body, default behavior is to set it to true. This will ensure that VM Agent is installed on the VM so that extensions can be added to the VM later. */ + /** Indicates whether virtual machine agent should be provisioned on the virtual machine. When this property is not specified in the request body, it is set to true by default. This will ensure that VM Agent is installed on the VM so that extensions can be added to the VM later. */ provisionVMAgent?: boolean; - /** Indicates whether Automatic Updates is enabled for the Windows virtual machine. Default value is true.

For virtual machine scale sets, this property can be updated and updates will take effect on OS reprovisioning. */ + /** Indicates whether Automatic Updates is enabled for the Windows virtual machine. Default value is true. For virtual machine scale sets, this property can be updated and updates will take effect on OS reprovisioning. */ enableAutomaticUpdates?: boolean; - /** Specifies the time zone of the virtual machine. e.g. "Pacific Standard Time".

Possible values can be [TimeZoneInfo.Id](https://docs.microsoft.com/dotnet/api/system.timezoneinfo.id?#System_TimeZoneInfo_Id) value from time zones returned by [TimeZoneInfo.GetSystemTimeZones](https://docs.microsoft.com/dotnet/api/system.timezoneinfo.getsystemtimezones). */ + /** Specifies the time zone of the virtual machine. e.g. "Pacific Standard Time". Possible values can be [TimeZoneInfo.Id](https://docs.microsoft.com/dotnet/api/system.timezoneinfo.id?#System_TimeZoneInfo_Id) value from time zones returned by [TimeZoneInfo.GetSystemTimeZones](https://docs.microsoft.com/dotnet/api/system.timezoneinfo.getsystemtimezones). */ timeZone?: string; /** Specifies additional base-64 encoded XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. */ additionalUnattendContent?: AdditionalUnattendContent[]; @@ -323,6 +325,8 @@ export interface PatchSettings { export interface WindowsVMGuestPatchAutomaticByPlatformSettings { /** Specifies the reboot setting for all AutomaticByPlatform patch installation operations. */ rebootSetting?: WindowsVMGuestPatchAutomaticByPlatformRebootSetting; + /** Enables customer to schedule patching without accidental upgrades */ + bypassPlatformSafetyChecksOnUserSchedule?: boolean; } /** Describes Windows Remote Management configuration of the VM */ @@ -333,19 +337,19 @@ export interface WinRMConfiguration { /** Describes Protocol and thumbprint of Windows Remote Management listener */ export interface WinRMListener { - /** Specifies the protocol of WinRM listener.

Possible values are:
**http**

**https** */ + /** Specifies the protocol of WinRM listener. Possible values are: **http,** **https.** */ protocol?: ProtocolTypes; - /** This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see [Add a key or secret to the key vault](https://docs.microsoft.com/azure/key-vault/key-vault-get-started/#add). In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded in UTF-8:

{
"data":"",
"dataType":"pfx",
"password":""
}
To install certificates on a virtual machine it is recommended to use the [Azure Key Vault virtual machine extension for Linux](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-linux) or the [Azure Key Vault virtual machine extension for Windows](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows). */ + /** This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see [Add a key or secret to the key vault](https://docs.microsoft.com/azure/key-vault/key-vault-get-started/#add). In this case, your certificate needs to be the Base64 encoding of the following JSON Object which is encoded in UTF-8:

{
"data":"",
"dataType":"pfx",
"password":""
}
To install certificates on a virtual machine it is recommended to use the [Azure Key Vault virtual machine extension for Linux](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-linux) or the [Azure Key Vault virtual machine extension for Windows](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows). */ certificateUrl?: string; } -/** Specifies the Linux operating system settings on the virtual machine.

For a list of supported Linux distributions, see [Linux on Azure-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros). */ +/** Specifies the Linux operating system settings on the virtual machine. For a list of supported Linux distributions, see [Linux on Azure-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros). */ export interface LinuxConfiguration { /** Specifies whether password authentication should be disabled. */ disablePasswordAuthentication?: boolean; /** Specifies the ssh key configuration for a Linux OS. */ ssh?: SshConfiguration; - /** Indicates whether virtual machine agent should be provisioned on the virtual machine.

When this property is not specified in the request body, default behavior is to set it to true. This will ensure that VM Agent is installed on the VM so that extensions can be added to the VM later. */ + /** Indicates whether virtual machine agent should be provisioned on the virtual machine. When this property is not specified in the request body, default behavior is to set it to true. This will ensure that VM Agent is installed on the VM so that extensions can be added to the VM later. */ provisionVMAgent?: boolean; /** [Preview Feature] Specifies settings related to VM Guest Patching on Linux. */ patchSettings?: LinuxPatchSettings; @@ -363,7 +367,7 @@ export interface SshConfiguration { export interface SshPublicKey { /** Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: /home/user/.ssh/authorized_keys */ path?: string; - /** SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format.

For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure]https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed). */ + /** SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure]https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed). */ keyData?: string; } @@ -381,6 +385,8 @@ export interface LinuxPatchSettings { export interface LinuxVMGuestPatchAutomaticByPlatformSettings { /** Specifies the reboot setting for all AutomaticByPlatform patch installation operations. */ rebootSetting?: LinuxVMGuestPatchAutomaticByPlatformRebootSetting; + /** Enables customer to schedule patching without accidental upgrades */ + bypassPlatformSafetyChecksOnUserSchedule?: boolean; } /** Describes a set of certificates which are all in the same Key Vault. */ @@ -400,7 +406,7 @@ export interface SubResource { export interface VaultCertificate { /** This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see [Add a key or secret to the key vault](https://docs.microsoft.com/azure/key-vault/key-vault-get-started/#add). In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded in UTF-8:

{
"data":"",
"dataType":"pfx",
"password":""
}
To install certificates on a virtual machine it is recommended to use the [Azure Key Vault virtual machine extension for Linux](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-linux) or the [Azure Key Vault virtual machine extension for Windows](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows). */ certificateUrl?: string; - /** For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly in the LocalMachine account.

For Linux VMs, the certificate file is placed under the /var/lib/waagent directory, with the file name <UppercaseThumbprint>.crt for the X509 certificate file and <UppercaseThumbprint>.prv for private key. Both of these files are .pem formatted. */ + /** For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly in the LocalMachine account. For Linux VMs, the certificate file is placed under the /var/lib/waagent directory, with the file name <UppercaseThumbprint>.crt for the X509 certificate file and <UppercaseThumbprint>.prv for private key. Both of these files are .pem formatted. */ certificateStore?: string; } @@ -408,9 +414,9 @@ export interface VaultCertificate { export interface VirtualMachineScaleSetStorageProfile { /** 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. */ imageReference?: ImageReference; - /** Specifies information about the operating system disk used by the virtual machines in the scale set.

For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview). */ + /** Specifies information about the operating system disk used by the virtual machines in the scale set. For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview). */ osDisk?: VirtualMachineScaleSetOSDisk; - /** Specifies the parameters that are used to add data disks to the virtual machines in the scale set.

For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview). */ + /** Specifies the parameters that are used to add data disks to the virtual machines in the scale set. For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview). */ dataDisks?: VirtualMachineScaleSetDataDisk[]; diskControllerType?: string; } @@ -419,17 +425,17 @@ export interface VirtualMachineScaleSetStorageProfile { export interface VirtualMachineScaleSetOSDisk { /** The disk name. */ name?: string; - /** Specifies the caching requirements.

Possible values are:

**None**

**ReadOnly**

**ReadWrite**

Default: **None for Standard storage. ReadOnly for Premium storage** */ + /** Specifies the caching requirements. Possible values are: **None,** **ReadOnly,** **ReadWrite.** The default values are: **None for Standard storage. ReadOnly for Premium storage.** */ caching?: CachingTypes; /** Specifies whether writeAccelerator should be enabled or disabled on the disk. */ writeAcceleratorEnabled?: boolean; - /** Specifies how the virtual machines in the scale set should be created.

The only allowed value is: **FromImage** \u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described. */ + /** Specifies how the virtual machines in the scale set should be created. The only allowed value is: **FromImage.** This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described. */ createOption: DiskCreateOptionTypes; /** Specifies the ephemeral disk Settings for the operating system disk used by the virtual machine scale set. */ diffDiskSettings?: DiffDiskSettings; - /** Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image.

diskSizeGB is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023 */ + /** Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. The property 'diskSizeGB' is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023. */ diskSizeGB?: number; - /** 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** */ + /** 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.** */ osType?: OperatingSystemTypes; /** Specifies information about the unmanaged user image to base the scale set on. */ image?: VirtualHardDisk; @@ -441,11 +447,11 @@ export interface VirtualMachineScaleSetOSDisk { deleteOption?: DiskDeleteOptionTypes; } -/** 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. */ +/** 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. */ export interface DiffDiskSettings { /** Specifies the ephemeral disk settings for operating system disk. */ option?: DiffDiskOptions; - /** Specifies the ephemeral disk placement for operating system disk.

Possible values are:

**CacheDisk**

**ResourceDisk**

Default: **CacheDisk** if one is configured for the VM size otherwise **ResourceDisk** is used.

Refer to VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. */ + /** Specifies the ephemeral disk placement for operating system disk. Possible values are: **CacheDisk,** **ResourceDisk.** The defaulting behavior is: **CacheDisk** if one is configured for the VM size otherwise **ResourceDisk** is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. */ placement?: DiffDiskPlacement; } @@ -465,9 +471,9 @@ export interface VirtualMachineScaleSetManagedDiskParameters { securityProfile?: VMDiskSecurityProfile; } -/** Specifies the security profile settings for the managed disk.

NOTE: It can only be set for Confidential VMs */ +/** Specifies the security profile settings for the managed disk. **Note:** It can only be set for Confidential VMs. */ export interface VMDiskSecurityProfile { - /** Specifies the EncryptionType of the managed disk.
It is set to DiskWithVMGuestState for encryption of the managed disk along with VMGuestState blob, and VMGuestStateOnly for encryption of just the VMGuestState blob.

NOTE: It can be set for only Confidential VMs. */ + /** Specifies the EncryptionType of the managed disk. It is set to DiskWithVMGuestState for encryption of the managed disk along with VMGuestState blob, and VMGuestStateOnly for encryption of just the VMGuestState blob. **Note:** It can be set for only Confidential VMs. */ securityEncryptionType?: SecurityEncryptionTypes; /** Specifies the customer managed disk encryption set resource id for the managed disk that is used for Customer Managed Key encrypted ConfidentialVM OS Disk and VMGuest blob. */ diskEncryptionSet?: DiskEncryptionSetParameters; @@ -479,13 +485,13 @@ export interface VirtualMachineScaleSetDataDisk { name?: string; /** Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. */ lun: number; - /** Specifies the caching requirements.

Possible values are:

**None**

**ReadOnly**

**ReadWrite**

Default: **None for Standard storage. ReadOnly for Premium storage** */ + /** Specifies the caching requirements. Possible values are: **None,** **ReadOnly,** **ReadWrite.** The default values are: **None for Standard storage. ReadOnly for Premium storage.** */ caching?: CachingTypes; /** Specifies whether writeAccelerator should be enabled or disabled on the disk. */ writeAcceleratorEnabled?: boolean; /** The create option. */ createOption: DiskCreateOptionTypes; - /** Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image.

diskSizeGB is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023 */ + /** Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. The property diskSizeGB is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023. */ diskSizeGB?: number; /** The managed disk parameters. */ managedDisk?: VirtualMachineScaleSetManagedDiskParameters; @@ -513,12 +519,58 @@ export interface ApiEntityReference { id?: string; } +/** Describes a virtual machine scale set network profile's network configurations. */ +export interface VirtualMachineScaleSetNetworkConfiguration { + /** The network configuration name. */ + name: string; + /** Specifies the primary network interface in case the virtual machine has more than 1 network interface. */ + primary?: boolean; + /** Specifies whether the network interface is accelerated networking-enabled. */ + enableAcceleratedNetworking?: boolean; + /** Specifies whether the network interface is disabled for tcp state tracking. */ + disableTcpStateTracking?: boolean; + /** Specifies whether the network interface is FPGA networking-enabled. */ + enableFpga?: boolean; + /** The network security group. */ + networkSecurityGroup?: SubResource; + /** The dns settings to be applied on the network interfaces. */ + dnsSettings?: VirtualMachineScaleSetNetworkConfigurationDnsSettings; + /** Specifies the IP configurations of the network interface. */ + ipConfigurations?: VirtualMachineScaleSetIPConfiguration[]; + /** Whether IP forwarding enabled on this NIC. */ + enableIPForwarding?: boolean; + /** Specify what happens to the network interface when the VM is deleted */ + deleteOption?: DeleteOptions; +} + /** Describes a virtual machines scale sets network configuration's DNS settings. */ export interface VirtualMachineScaleSetNetworkConfigurationDnsSettings { /** List of DNS servers IP addresses */ dnsServers?: string[]; } +/** Describes a virtual machine scale set network profile's IP configuration. */ +export interface VirtualMachineScaleSetIPConfiguration { + /** The IP configuration name. */ + name: string; + /** Specifies the identifier of the subnet. */ + subnet?: ApiEntityReference; + /** Specifies the primary network interface in case the virtual machine has more than 1 network interface. */ + primary?: boolean; + /** The publicIPAddressConfiguration. */ + publicIPAddressConfiguration?: VirtualMachineScaleSetPublicIPAddressConfiguration; + /** 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'. */ + privateIPAddressVersion?: IPVersion; + /** Specifies an array of references to backend address pools of application gateways. A scale set can reference backend address pools of multiple application gateways. Multiple scale sets cannot use the same application gateway. */ + applicationGatewayBackendAddressPools?: SubResource[]; + /** Specifies an array of references to application security group. */ + applicationSecurityGroups?: SubResource[]; + /** Specifies an array of references to backend address pools of load balancers. A scale set can reference backend address pools of one public and one internal load balancer. Multiple scale sets cannot use the same basic sku load balancer. */ + loadBalancerBackendAddressPools?: SubResource[]; + /** Specifies an array of references to inbound Nat pools of the load balancers. A scale set can reference inbound nat pools of one public and one internal load balancer. Multiple scale sets cannot use the same basic sku load balancer. */ + loadBalancerInboundNatPools?: SubResource[]; +} + /** Describes a virtual machines scale set IP Configuration's PublicIPAddress configuration */ export interface VirtualMachineScaleSetPublicIPAddressConfiguration { /** The publicIP address configuration name. */ @@ -563,33 +615,33 @@ export interface PublicIPAddressSku { /** Specifies the Security profile settings for the virtual machine or virtual machine scale set. */ export interface SecurityProfile { - /** Specifies the security settings like secure boot and vTPM used while creating the virtual machine.

Minimum api-version: 2020-12-01 */ + /** Specifies the security settings like secure boot and vTPM used while creating the virtual machine. Minimum api-version: 2020-12-01. */ uefiSettings?: UefiSettings; - /** This property can be used by user in the request to enable or disable the Host Encryption for the virtual machine or virtual machine scale set. This will enable the encryption for all the disks including Resource/Temp disk at host itself.

Default: The Encryption at host will be disabled unless this property is set to true for the resource. */ + /** This property can be used by user in the request to enable or disable the Host Encryption for the virtual machine or virtual machine scale set. This will enable the encryption for all the disks including Resource/Temp disk at host itself. The default behavior is: The Encryption at host will be disabled unless this property is set to true for the resource. */ encryptionAtHost?: boolean; - /** Specifies the SecurityType of the virtual machine. It has to be set to any specified value to enable UefiSettings.

Default: UefiSettings will not be enabled unless this property is set. */ + /** 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. */ securityType?: SecurityTypes; } -/** Specifies the security settings like secure boot and vTPM used while creating the virtual machine.

Minimum api-version: 2020-12-01 */ +/** Specifies the security settings like secure boot and vTPM used while creating the virtual machine. Minimum api-version: 2020-12-01. */ export interface UefiSettings { - /** Specifies whether secure boot should be enabled on the virtual machine.

Minimum api-version: 2020-12-01 */ + /** Specifies whether secure boot should be enabled on the virtual machine. Minimum api-version: 2020-12-01. */ secureBootEnabled?: boolean; - /** Specifies whether vTPM should be enabled on the virtual machine.

Minimum api-version: 2020-12-01 */ + /** Specifies whether vTPM should be enabled on the virtual machine. Minimum api-version: 2020-12-01. */ vTpmEnabled?: boolean; } -/** Specifies the boot diagnostic settings state.

Minimum api-version: 2015-06-15. */ +/** Specifies the boot diagnostic settings state. Minimum api-version: 2015-06-15. */ export interface DiagnosticsProfile { - /** Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status.
**NOTE**: If storageUri is being specified then ensure that the storage account is in the same region and subscription as the VM.

You can easily view the output of your console log.

Azure also enables you to see a screenshot of the VM from the hypervisor. */ + /** Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. **NOTE**: If storageUri is being specified then ensure that the storage account is in the same region and subscription as the VM. You can easily view the output of your console log. Azure also enables you to see a screenshot of the VM from the hypervisor. */ bootDiagnostics?: 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. */ +/** 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. */ export interface BootDiagnostics { /** Whether boot diagnostics should be enabled on the Virtual Machine. */ enabled?: boolean; - /** Uri of the storage account to use for placing the console output and screenshot.

If storageUri is not specified while enabling boot diagnostics, managed storage will be used. */ + /** Uri of the storage account to use for placing the console output and screenshot. If storageUri is not specified while enabling boot diagnostics, managed storage will be used. */ storageUri?: string; } @@ -597,7 +649,7 @@ export interface BootDiagnostics { export interface VirtualMachineScaleSetExtensionProfile { /** The virtual machine scale set child extension resources. */ extensions?: VirtualMachineScaleSetExtension[]; - /** Specifies the time alloted for all extensions to start. The time duration should be between 15 minutes and 120 minutes (inclusive) and should be specified in ISO 8601 format. The default value is 90 minutes (PT1H30M).

Minimum api-version: 2020-06-01 */ + /** Specifies the time alloted for all extensions to start. The time duration should be between 15 minutes and 120 minutes (inclusive) and should be specified in ISO 8601 format. The default value is 90 minutes (PT1H30M). Minimum api-version: 2020-06-01. */ extensionsTimeBudget?: string; } @@ -617,7 +669,7 @@ export interface SubResourceReadOnly { readonly id?: string; } -/** Specifies the billing related details of a Azure Spot VM or VMSS.

Minimum api-version: 2019-03-01. */ +/** Specifies the billing related details of a Azure Spot VM or VMSS. Minimum api-version: 2019-03-01. */ export interface BillingProfile { /** Specifies the maximum price you are willing to pay for a Azure Spot VM/VMSS. This price is in US Dollars.

This price will be compared with the current Azure Spot price for the VM size. Also, the prices are compared at the time of create/update of Azure Spot VM/VMSS and the operation will only succeed if the maxPrice is greater than the current Azure Spot price.

The maxPrice will also be used for evicting a Azure Spot VM/VMSS if the current Azure Spot price goes beyond the maxPrice after creation of VM/VMSS.

Possible values are:

- Any decimal value greater than zero. Example: 0.01538

-1 – indicates default price to be up-to on-demand.

You can set the maxPrice to -1 to indicate that the Azure Spot VM/VMSS should not be evicted for price reasons. Also, the default max price is -1 if it is not provided by you.

Minimum api-version: 2019-03-01. */ maxPrice?: number; @@ -638,7 +690,7 @@ export interface TerminateNotificationProfile { } export interface OSImageNotificationProfile { - /** Length of time a Virtual Machine being reimaged or having its OS upgraded will have to potentially approve the OS Image Scheduled Event before the event is auto approved (timed out). The configuration is specified in ISO 8601 format, with the value set to 15 minutes (PT15M) */ + /** Length of time a Virtual Machine being reimaged or having its OS upgraded will have to potentially approve the OS Image Scheduled Event before the event is auto approved (timed out). The configuration is specified in ISO 8601 format, and the value must be 15 minutes (PT15M) */ notBeforeTimeout?: string; /** Specifies whether the OS Image Scheduled event is enabled or disabled. */ enable?: boolean; @@ -674,15 +726,15 @@ export interface VMGalleryApplication { /** Specifies the hardware settings for the virtual machine scale set. */ export interface VirtualMachineScaleSetHardwareProfile { - /** Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2021-11-01.

Please follow the instructions in [VM Customization](https://aka.ms/vmcustomization) for more details. */ + /** Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2021-11-01. Please follow the instructions in [VM Customization](https://aka.ms/vmcustomization) for more details. */ vmSizeProperties?: VMSizeProperties; } /** Specifies VM Size Property settings on the virtual machine. */ export interface VMSizeProperties { - /** Specifies the number of vCPUs available for the VM.

When this property is not specified in the request body the default behavior is to set it to the value of vCPUs available for that VM size exposed in api response of [List all available virtual machine sizes in a region](https://docs.microsoft.com/en-us/rest/api/compute/resource-skus/list) . */ + /** Specifies the number of vCPUs available for the VM. When this property is not specified in the request body the default behavior is to set it to the value of vCPUs available for that VM size exposed in api response of [List all available virtual machine sizes in a region](https://docs.microsoft.com/en-us/rest/api/compute/resource-skus/list). */ vCPUsAvailable?: number; - /** Specifies the vCPU to physical core ratio.

When this property is not specified in the request body the default behavior is set to the value of vCPUsPerCore for the VM Size exposed in api response of [List all available virtual machine sizes in a region](https://docs.microsoft.com/en-us/rest/api/compute/resource-skus/list)

Setting this property to 1 also means that hyper-threading is disabled. */ + /** Specifies the vCPU to physical core ratio. When this property is not specified in the request body the default behavior is set to the value of vCPUsPerCore for the VM Size exposed in api response of [List all available virtual machine sizes in a region](https://docs.microsoft.com/en-us/rest/api/compute/resource-skus/list). **Setting this property to 1 also means that hyper-threading is disabled.** */ vCPUsPerCore?: number; } @@ -692,6 +744,65 @@ export interface ServiceArtifactReference { id?: string; } +/** Specifies the security posture to be used for all virtual machines in the scale set. Minimum api-version: 2023-03-01 */ +export interface SecurityPostureReference { + /** The security posture reference id in the form of /CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest */ + id?: string; + /** List of virtual machine extensions to exclude when applying the Security Posture. */ + excludeExtensions?: VirtualMachineExtension[]; +} + +/** The instance view of a virtual machine extension. */ +export interface VirtualMachineExtensionInstanceView { + /** The virtual machine extension name. */ + name?: string; + /** Specifies the type of the extension; an example is "CustomScriptExtension". */ + type?: string; + /** Specifies the version of the script handler. */ + typeHandlerVersion?: string; + /** The resource status information. */ + substatuses?: InstanceViewStatus[]; + /** The resource status information. */ + statuses?: InstanceViewStatus[]; +} + +/** Instance view status. */ +export interface InstanceViewStatus { + /** The status code. */ + code?: string; + /** The level code. */ + level?: StatusLevelTypes; + /** The short localizable label for the status. */ + displayStatus?: string; + /** The detailed status message, including for alerts and error messages. */ + message?: string; + /** The time of the status. */ + time?: Date; +} + +/** The Resource model definition with location property as optional. */ +export interface ResourceWithOptionalLocation { + /** Resource location */ + location?: string; + /** + * Resource Id + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * Resource name + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * Resource type + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** Resource tags */ + tags?: { [propertyName: string]: string }; +} + /** Enables or disables a capability on the virtual machine or virtual machine scale set. */ export interface AdditionalCapabilities { /** The flag that enables or disables a capability to have one or more managed data disks with UltraSSD_LRS storage account type on the VM or VMSS. Managed disks with storage account type UltraSSD_LRS can be added to a virtual machine or virtual machine scale set only if this property is enabled. */ @@ -708,7 +819,7 @@ export interface ScaleInPolicy { forceDeletion?: boolean; } -/** Specifies the Spot-Try-Restore properties for the virtual machine scale set.

With this property customer can enable or disable automatic restore of the evicted Spot VMSS VM instances opportunistically based on capacity availability and pricing constraint. */ +/** Specifies the Spot-Try-Restore properties for the virtual machine scale set. With this property customer can enable or disable automatic restore of the evicted Spot VMSS VM instances opportunistically based on capacity availability and pricing constraint. */ export interface SpotRestorePolicy { /** Enables the Spot-Try-Restore feature where evicted VMSS SPOT instances will be tried to be restored opportunistically based on capacity availability and pricing constraints */ enabled?: boolean; @@ -716,7 +827,7 @@ export interface SpotRestorePolicy { restoreTimeout?: string; } -/** Specifies the target splits for Spot and Regular priority VMs within a scale set with flexible orchestration mode.

With this property the customer is able to specify the base number of regular priority VMs created as the VMSS flex instance scales out and the split between Spot and Regular priority VMs after this base target has been reached. */ +/** Specifies the target splits for Spot and Regular priority VMs within a scale set with flexible orchestration mode. With this property the customer is able to specify the base number of regular priority VMs created as the VMSS flex instance scales out and the split between Spot and Regular priority VMs after this base target has been reached. */ export interface PriorityMixPolicy { /** The base number of regular priority VMs that will be created in this scale set as it scales out. */ baseRegularPriorityCount?: number; @@ -804,13 +915,13 @@ export interface VirtualMachineScaleSetUpdateVMProfile { extensionProfile?: VirtualMachineScaleSetExtensionProfile; /** The license type, which is for bring your own license scenario. */ licenseType?: string; - /** Specifies the billing related details of a Azure Spot VMSS.

Minimum api-version: 2019-03-01. */ + /** Specifies the billing related details of a Azure Spot VMSS. Minimum api-version: 2019-03-01. */ billingProfile?: BillingProfile; /** Specifies Scheduled Event related configurations. */ scheduledEventsProfile?: ScheduledEventsProfile; /** UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here.

Minimum api-version: 2021-03-01 */ userData?: string; - /** Specifies the hardware profile related details of a scale set.

Minimum api-version: 2021-11-01. */ + /** Specifies the hardware profile related details of a scale set. Minimum api-version: 2021-11-01. */ hardwareProfile?: VirtualMachineScaleSetHardwareProfile; } @@ -865,6 +976,52 @@ export interface VirtualMachineScaleSetUpdateNetworkProfile { networkApiVersion?: NetworkApiVersion; } +/** Describes a virtual machine scale set network profile's network configurations. */ +export interface VirtualMachineScaleSetUpdateNetworkConfiguration { + /** The network configuration name. */ + name?: string; + /** Whether this is a primary NIC on a virtual machine. */ + primary?: boolean; + /** Specifies whether the network interface is accelerated networking-enabled. */ + enableAcceleratedNetworking?: boolean; + /** Specifies whether the network interface is disabled for tcp state tracking. */ + disableTcpStateTracking?: boolean; + /** Specifies whether the network interface is FPGA networking-enabled. */ + enableFpga?: boolean; + /** The network security group. */ + networkSecurityGroup?: SubResource; + /** The dns settings to be applied on the network interfaces. */ + dnsSettings?: VirtualMachineScaleSetNetworkConfigurationDnsSettings; + /** The virtual machine scale set IP Configuration. */ + ipConfigurations?: VirtualMachineScaleSetUpdateIPConfiguration[]; + /** Whether IP forwarding enabled on this NIC. */ + enableIPForwarding?: boolean; + /** Specify what happens to the network interface when the VM is deleted */ + deleteOption?: DeleteOptions; +} + +/** Describes a virtual machine scale set network profile's IP configuration. NOTE: The subnet of a scale set may be modified as long as the original subnet and the new subnet are in the same virtual network */ +export interface VirtualMachineScaleSetUpdateIPConfiguration { + /** The IP configuration name. */ + name?: string; + /** The subnet. */ + subnet?: ApiEntityReference; + /** Specifies the primary IP Configuration in case the network interface has more than one IP Configuration. */ + primary?: boolean; + /** The publicIPAddressConfiguration. */ + publicIPAddressConfiguration?: VirtualMachineScaleSetUpdatePublicIPAddressConfiguration; + /** 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'. */ + privateIPAddressVersion?: IPVersion; + /** The application gateway backend address pools. */ + applicationGatewayBackendAddressPools?: SubResource[]; + /** Specifies an array of references to application security group. */ + applicationSecurityGroups?: SubResource[]; + /** The load balancer backend address pools. */ + loadBalancerBackendAddressPools?: SubResource[]; + /** The load balancer inbound nat pools. */ + loadBalancerInboundNatPools?: SubResource[]; +} + /** Describes a virtual machines scale set IP Configuration's PublicIPAddress configuration */ export interface VirtualMachineScaleSetUpdatePublicIPAddressConfiguration { /** The publicIP address configuration name. */ @@ -955,20 +1112,6 @@ export interface VirtualMachineScaleSetVMExtensionsSummary { readonly statusesSummary?: VirtualMachineStatusCodeCount[]; } -/** Instance view status. */ -export interface InstanceViewStatus { - /** The status code. */ - code?: string; - /** The level code. */ - level?: StatusLevelTypes; - /** The short localizable label for the status. */ - displayStatus?: string; - /** The detailed status message, including for alerts and error messages. */ - message?: string; - /** The time of the status. */ - time?: Date; -} - /** Summary for an orchestration service of a virtual machine scale set. */ export interface OrchestrationServiceSummary { /** @@ -1187,7 +1330,7 @@ export interface VirtualMachineReimageParameters { export interface OSProfileProvisioningData { /** Specifies the password of the administrator account.

**Minimum-length (Windows):** 8 characters

**Minimum-length (Linux):** 6 characters

**Max-length (Windows):** 123 characters

**Max-length (Linux):** 72 characters

**Complexity requirements:** 3 out of 4 conditions below need to be fulfilled
Has lower characters
Has upper characters
Has a digit
Has a special character (Regex match [\W_])

**Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!"

For resetting the password, see [How to reset the Remote Desktop service or its login password in a Windows VM](https://docs.microsoft.com/troubleshoot/azure/virtual-machines/reset-rdp)

For resetting root password, see [Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess Extension](https://docs.microsoft.com/troubleshoot/azure/virtual-machines/troubleshoot-ssh-connection) */ adminPassword?: string; - /** Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes.

**Note: Do not pass any secrets or passwords in customData property**

This property cannot be updated after the VM is created.

customData is passed to the VM to be saved as a file, for more information see [Custom Data on Azure VMs](https://azure.microsoft.com/blog/custom-data-and-cloud-init-on-windows-azure/)

For using cloud-init for your Linux VM, see [Using cloud-init to customize a Linux VM during creation](https://docs.microsoft.com/azure/virtual-machines/linux/using-cloud-init) */ + /** Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. **Note: Do not pass any secrets or passwords in customData property.** This property cannot be updated after the VM is created. The property customData is passed to the VM to be saved as a file, for more information see [Custom Data on Azure VMs](https://azure.microsoft.com/blog/custom-data-and-cloud-init-on-windows-azure/). If using cloud-init for your Linux VM, see [Using cloud-init to customize a Linux VM during creation](https://docs.microsoft.com/azure/virtual-machines/linux/using-cloud-init). */ customData?: string; } @@ -1242,20 +1385,6 @@ export interface OrchestrationServiceStateInput { action: OrchestrationServiceStateAction; } -/** The instance view of a virtual machine extension. */ -export interface VirtualMachineExtensionInstanceView { - /** The virtual machine extension name. */ - name?: string; - /** Specifies the type of the extension; an example is "CustomScriptExtension". */ - type?: string; - /** Specifies the version of the script handler. */ - typeHandlerVersion?: string; - /** The resource status information. */ - substatuses?: InstanceViewStatus[]; - /** The resource status information. */ - statuses?: InstanceViewStatus[]; -} - /** The List VMSS VM Extension operation response */ export interface VirtualMachineScaleSetVMExtensionsListResult { /** The list of VMSS VM extensions */ @@ -1283,17 +1412,25 @@ export interface VirtualMachineScaleSetVMInstanceView { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly vmHealth?: VirtualMachineHealthStatus; - /** 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. */ + /** 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. */ bootDiagnostics?: BootDiagnosticsInstanceView; /** The resource status information. */ statuses?: InstanceViewStatus[]; /** - * Resource id of the dedicated host, on which the virtual machine is allocated through automatic placement, when the virtual machine is associated with a dedicated host group that has automatic placement enabled.

Minimum api-version: 2020-06-01. + * Resource id of the dedicated host, on which the virtual machine is allocated through automatic placement, when the virtual machine is associated with a dedicated host group that has automatic placement enabled. Minimum api-version: 2020-06-01. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly assignedHost?: string; /** The placement group in which the VM is running. If the VM is deallocated it will not have a placementGroupId. */ placementGroupId?: string; + /** Specifies the host OS name of the virtual machine.

This name cannot be updated after the VM is created.

**Max-length (Windows):** 15 characters

**Max-length (Linux):** 64 characters.

For naming conventions and restrictions see [Azure infrastructure services implementation guidelines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-infrastructure-subscription-accounts-guidelines?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#1-naming-conventions). */ + computerName?: string; + /** The Operating System running on the hybrid machine. */ + osName?: string; + /** The version of Operating System running on the hybrid machine. */ + osVersion?: string; + /** The hypervisor generation of the Virtual Machine [V1, V2] */ + hyperVGeneration?: HyperVGeneration; } /** The instance view of the VM Agent running on the virtual machine. */ @@ -1374,17 +1511,17 @@ export interface VirtualMachineHealthStatus { /** The instance view of a virtual machine boot diagnostics. */ export interface BootDiagnosticsInstanceView { /** - * The console screenshot blob URI.

NOTE: This will **not** be set if boot diagnostics is currently enabled with managed storage. + * The console screenshot blob URI. **Note:** This will **not** be set if boot diagnostics is currently enabled with managed storage. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly consoleScreenshotBlobUri?: string; /** - * The serial console log blob Uri.

NOTE: This will **not** be set if boot diagnostics is currently enabled with managed storage. + * The serial console log blob Uri. **Note:** This will **not** be set if boot diagnostics is currently enabled with managed storage. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly serialConsoleLogBlobUri?: string; /** - * The boot diagnostics status information for the VM.

NOTE: It will be set only if there are errors encountered in enabling boot diagnostics. + * The boot diagnostics status information for the VM. **Note:** It will be set only if there are errors encountered in enabling boot diagnostics. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: InstanceViewStatus; @@ -1392,9 +1529,9 @@ export interface BootDiagnosticsInstanceView { /** Specifies the hardware settings for the virtual machine. */ export interface HardwareProfile { - /** Specifies the size of the virtual machine.

The enum data type is currently deprecated and will be removed by December 23rd 2023.

Recommended way to get the list of available sizes is using these APIs:

[List all available virtual machine sizes in an availability set](https://docs.microsoft.com/rest/api/compute/availabilitysets/listavailablesizes)

[List all available virtual machine sizes in a region]( https://docs.microsoft.com/rest/api/compute/resourceskus/list)

[List all available virtual machine sizes for resizing](https://docs.microsoft.com/rest/api/compute/virtualmachines/listavailablesizes). For more information about virtual machine sizes, see [Sizes for virtual machines](https://docs.microsoft.com/azure/virtual-machines/sizes).

The available VM sizes depend on region and availability set. */ + /** Specifies the size of the virtual machine. The enum data type is currently deprecated and will be removed by December 23rd 2023. The recommended way to get the list of available sizes is using these APIs: [List all available virtual machine sizes in an availability set](https://docs.microsoft.com/rest/api/compute/availabilitysets/listavailablesizes), [List all available virtual machine sizes in a region]( https://docs.microsoft.com/rest/api/compute/resourceskus/list), [List all available virtual machine sizes for resizing](https://docs.microsoft.com/rest/api/compute/virtualmachines/listavailablesizes). For more information about virtual machine sizes, see [Sizes for virtual machines](https://docs.microsoft.com/azure/virtual-machines/sizes). The available VM sizes depend on region and availability set. */ vmSize?: VirtualMachineSizeTypes; - /** Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2021-07-01.

This feature is still in preview mode and is not supported for VirtualMachineScaleSet.

Please follow the instructions in [VM Customization](https://aka.ms/vmcustomization) for more details. */ + /** Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2021-07-01. This feature is still in preview mode and is not supported for VirtualMachineScaleSet. Please follow the instructions in [VM Customization](https://aka.ms/vmcustomization) for more details. */ vmSizeProperties?: VMSizeProperties; } @@ -1402,19 +1539,19 @@ export interface HardwareProfile { export interface StorageProfile { /** 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. */ imageReference?: ImageReference; - /** Specifies information about the operating system disk used by the virtual machine.

For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview). */ + /** Specifies information about the operating system disk used by the virtual machine. For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview). */ osDisk?: OSDisk; - /** Specifies the parameters that are used to add a data disk to a virtual machine.

For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview). */ + /** Specifies the parameters that are used to add a data disk to a virtual machine. For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview). */ dataDisks?: DataDisk[]; - /** Specifies the disk controller type configured for the VM.

NOTE: This property will be set to the default disk controller type if not specified provided virtual machine is being created as a hyperVGeneration: V2 based on the capabilities of the operating system disk and VM size from the the specified minimum api version.
You need to deallocate the VM before updating its disk controller type unless you are updating the VM size in the VM configuration which implicitly deallocates and reallocates the VM.

Minimum api-version: 2022-08-01 */ + /** Specifies the disk controller type configured for the VM. **Note:** This property will be set to the default disk controller type if not specified provided virtual machine is being created with 'hyperVGeneration' set to V2 based on the capabilities of the operating system disk and VM size from the the specified minimum api version. You need to deallocate the VM before updating its disk controller type unless you are updating the VM size in the VM configuration which implicitly deallocates and reallocates the VM. Minimum api-version: 2022-08-01. */ diskControllerType?: DiskControllerTypes; } -/** Specifies information about the operating system disk used by the virtual machine.

For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview). */ +/** Specifies information about the operating system disk used by the virtual machine. For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview). */ export interface OSDisk { - /** 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** */ + /** 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.** */ osType?: OperatingSystemTypes; - /** Specifies the encryption settings for the OS Disk.

Minimum api-version: 2015-06-15 */ + /** Specifies the encryption settings for the OS Disk. Minimum api-version: 2015-06-15. */ encryptionSettings?: DiskEncryptionSettings; /** The disk name. */ name?: string; @@ -1422,19 +1559,19 @@ export interface OSDisk { vhd?: VirtualHardDisk; /** The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist. */ image?: VirtualHardDisk; - /** Specifies the caching requirements.

Possible values are:

**None**

**ReadOnly**

**ReadWrite**

Default: **None** for Standard storage. **ReadOnly** for Premium storage. */ + /** Specifies the caching requirements. Possible values are: **None,** **ReadOnly,** **ReadWrite.** The defaulting behavior is: **None for Standard storage. ReadOnly for Premium storage.** */ caching?: CachingTypes; /** Specifies whether writeAccelerator should be enabled or disabled on the disk. */ writeAcceleratorEnabled?: boolean; /** Specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine. */ diffDiskSettings?: DiffDiskSettings; - /** Specifies how the virtual machine should be created.

Possible values are:

**Attach** \u2013 This value is used when you are using a specialized disk to create the virtual machine.

**FromImage** \u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described. */ + /** Specifies how the virtual machine should be created. Possible values are: **Attach.** This value is used when you are using a specialized disk to create the virtual machine. **FromImage.** This value is used when you are using an image to create the virtual machine. If you are using a platform image, you should also use the imageReference element described above. If you are using a marketplace image, you should also use the plan element previously described. */ createOption: DiskCreateOptionTypes; - /** Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image.

diskSizeGB is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023 */ + /** Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. The property 'diskSizeGB' is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023. */ diskSizeGB?: number; /** The managed disk parameters. */ managedDisk?: ManagedDiskParameters; - /** Specifies whether OS Disk should be deleted or detached upon VM deletion.

Possible values:

**Delete** If this value is used, the OS disk is deleted when VM is deleted.

**Detach** If this value is used, the os disk is retained after VM is deleted.

The default value is set to **detach**. For an ephemeral OS Disk, the default value is set to **Delete**. User cannot change the delete option for ephemeral OS Disk. */ + /** Specifies whether OS Disk should be deleted or detached upon VM deletion. Possible values are: **Delete.** If this value is used, the OS disk is deleted when VM is deleted. **Detach.** If this value is used, the os disk is retained after VM is deleted. The default value is set to **Detach**. For an ephemeral OS Disk, the default value is set to **Delete**. The user cannot change the delete option for an ephemeral OS Disk. */ deleteOption?: DiskDeleteOptionTypes; } @@ -1448,13 +1585,13 @@ export interface DataDisk { vhd?: VirtualHardDisk; /** The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist. */ image?: VirtualHardDisk; - /** Specifies the caching requirements.

Possible values are:

**None**

**ReadOnly**

**ReadWrite**

Default: **None for Standard storage. ReadOnly for Premium storage** */ + /** Specifies the caching requirements. Possible values are: **None,** **ReadOnly,** **ReadWrite.** The defaulting behavior is: **None for Standard storage. ReadOnly for Premium storage.** */ caching?: CachingTypes; /** Specifies whether writeAccelerator should be enabled or disabled on the disk. */ writeAcceleratorEnabled?: boolean; - /** Specifies how the virtual machine should be created.

Possible values are:

**Attach** \u2013 This value is used when you are using a specialized disk to create the virtual machine.

**FromImage** \u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described. */ + /** Specifies how the virtual machine should be created. Possible values are: **Attach.** This value is used when you are using a specialized disk to create the virtual machine. **FromImage.** This value is used when you are using an image to create the virtual machine. If you are using a platform image, you should also use the imageReference element described above. If you are using a marketplace image, you should also use the plan element previously described. */ createOption: DiskCreateOptionTypes; - /** Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image.

diskSizeGB is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023 */ + /** Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. The property 'diskSizeGB' is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023. */ diskSizeGB?: number; /** The managed disk parameters. */ managedDisk?: ManagedDiskParameters; @@ -1470,29 +1607,29 @@ export interface DataDisk { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly diskMBpsReadWrite?: number; - /** Specifies the detach behavior to be used while detaching a disk or which is already in the process of detachment from the virtual machine. Supported values: **ForceDetach**.

detachOption: **ForceDetach** is applicable only for managed data disks. If a previous detachment attempt of the data disk did not complete due to an unexpected failure from the virtual machine and the disk is still not released then use force-detach as a last resort option to detach the disk forcibly from the VM. All writes might not have been flushed when using this detach behavior.

This feature is still in preview mode and is not supported for VirtualMachineScaleSet. To force-detach a data disk update toBeDetached to 'true' along with setting detachOption: 'ForceDetach'. */ + /** Specifies the detach behavior to be used while detaching a disk or which is already in the process of detachment from the virtual machine. Supported values: **ForceDetach.** detachOption: **ForceDetach** is applicable only for managed data disks. If a previous detachment attempt of the data disk did not complete due to an unexpected failure from the virtual machine and the disk is still not released then use force-detach as a last resort option to detach the disk forcibly from the VM. All writes might not have been flushed when using this detach behavior. **This feature is still in preview** mode and is not supported for VirtualMachineScaleSet. To force-detach a data disk update toBeDetached to 'true' along with setting detachOption: 'ForceDetach'. */ detachOption?: DiskDetachOptionTypes; - /** Specifies whether data disk should be deleted or detached upon VM deletion.

Possible values:

**Delete** If this value is used, the data disk is deleted when VM is deleted.

**Detach** If this value is used, the data disk is retained after VM is deleted.

The default value is set to **detach** */ + /** Specifies whether data disk should be deleted or detached upon VM deletion. Possible values are: **Delete.** If this value is used, the data disk is deleted when VM is deleted. **Detach.** If this value is used, the data disk is retained after VM is deleted. The default value is set to **Detach**. */ deleteOption?: DiskDeleteOptionTypes; } /** Specifies the operating system settings for the virtual machine. Some of the settings cannot be changed once VM is provisioned. */ export interface OSProfile { - /** Specifies the host OS name of the virtual machine.

This name cannot be updated after the VM is created.

**Max-length (Windows):** 15 characters

**Max-length (Linux):** 64 characters.

For naming conventions and restrictions see [Azure infrastructure services implementation guidelines](https://docs.microsoft.com/azure/azure-resource-manager/management/resource-name-rules). */ + /** Specifies the host OS name of the virtual machine. This name cannot be updated after the VM is created. **Max-length (Windows):** 15 characters. **Max-length (Linux):** 64 characters. For naming conventions and restrictions see [Azure infrastructure services implementation guidelines](https://docs.microsoft.com/azure/azure-resource-manager/management/resource-name-rules). */ computerName?: string; /** Specifies the name of the administrator account.

This property cannot be updated after the VM is created.

**Windows-only restriction:** Cannot end in "."

**Disallowed values:** "administrator", "admin", "user", "user1", "test", "user2", "test1", "user3", "admin1", "1", "123", "a", "actuser", "adm", "admin2", "aspnet", "backup", "console", "david", "guest", "john", "owner", "root", "server", "sql", "support", "support_388945a0", "sys", "test2", "test3", "user4", "user5".

**Minimum-length (Linux):** 1 character

**Max-length (Linux):** 64 characters

**Max-length (Windows):** 20 characters. */ adminUsername?: string; /** Specifies the password of the administrator account.

**Minimum-length (Windows):** 8 characters

**Minimum-length (Linux):** 6 characters

**Max-length (Windows):** 123 characters

**Max-length (Linux):** 72 characters

**Complexity requirements:** 3 out of 4 conditions below need to be fulfilled
Has lower characters
Has upper characters
Has a digit
Has a special character (Regex match [\W_])

**Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!"

For resetting the password, see [How to reset the Remote Desktop service or its login password in a Windows VM](https://docs.microsoft.com/troubleshoot/azure/virtual-machines/reset-rdp)

For resetting root password, see [Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess Extension](https://docs.microsoft.com/troubleshoot/azure/virtual-machines/troubleshoot-ssh-connection) */ adminPassword?: string; - /** Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes.

**Note: Do not pass any secrets or passwords in customData property**

This property cannot be updated after the VM is created.

customData is passed to the VM to be saved as a file, for more information see [Custom Data on Azure VMs](https://azure.microsoft.com/blog/custom-data-and-cloud-init-on-windows-azure/)

For using cloud-init for your Linux VM, see [Using cloud-init to customize a Linux VM during creation](https://docs.microsoft.com/azure/virtual-machines/linux/using-cloud-init) */ + /** Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. **Note: Do not pass any secrets or passwords in customData property.** This property cannot be updated after the VM is created. The property 'customData' is passed to the VM to be saved as a file, for more information see [Custom Data on Azure VMs](https://azure.microsoft.com/blog/custom-data-and-cloud-init-on-windows-azure/). For using cloud-init for your Linux VM, see [Using cloud-init to customize a Linux VM during creation](https://docs.microsoft.com/azure/virtual-machines/linux/using-cloud-init). */ customData?: string; /** Specifies Windows operating system settings on the virtual machine. */ windowsConfiguration?: WindowsConfiguration; - /** Specifies the Linux operating system settings on the virtual machine.

For a list of supported Linux distributions, see [Linux on Azure-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros). */ + /** Specifies the Linux operating system settings on the virtual machine. For a list of supported Linux distributions, see [Linux on Azure-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros). */ linuxConfiguration?: LinuxConfiguration; /** Specifies set of certificates that should be installed onto the virtual machine. To install certificates on a virtual machine it is recommended to use the [Azure Key Vault virtual machine extension for Linux](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-linux) or the [Azure Key Vault virtual machine extension for Windows](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows). */ secrets?: VaultSecretGroup[]; - /** Specifies whether extension operations should be allowed on the virtual machine.

This may only be set to False when no extensions are present on the virtual machine. */ + /** Specifies whether extension operations should be allowed on the virtual machine. This may only be set to False when no extensions are present on the virtual machine. */ allowExtensionOperations?: boolean; /** Optional property which must either be set to True or omitted. */ requireGuestProvisionSignal?: boolean; @@ -1609,29 +1746,6 @@ export interface VirtualMachineScaleSetVMProtectionPolicy { protectFromScaleSetActions?: boolean; } -/** The Resource model definition with location property as optional. */ -export interface ResourceWithOptionalLocation { - /** Resource location */ - location?: string; - /** - * Resource Id - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * Resource name - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * Resource type - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** Resource tags */ - tags?: { [propertyName: string]: string }; -} - /** Identity for the virtual machine. */ export interface VirtualMachineIdentity { /** @@ -1717,10 +1831,10 @@ export interface VirtualMachineInstanceView { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly vmHealth?: VirtualMachineHealthStatus; - /** 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. */ + /** 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. */ bootDiagnostics?: BootDiagnosticsInstanceView; /** - * Resource id of the dedicated host, on which the virtual machine is allocated through automatic placement, when the virtual machine is associated with a dedicated host group that has automatic placement enabled.

Minimum api-version: 2020-06-01. + * Resource id of the dedicated host, on which the virtual machine is allocated through automatic placement, when the virtual machine is associated with a dedicated host group that has automatic placement enabled. Minimum api-version: 2020-06-01. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly assignedHost?: string; @@ -2215,9 +2329,9 @@ export interface DedicatedHostAllocatableVM { count?: number; } -/** Enables or disables a capability on the dedicated host group.

Minimum api-version: 2022-03-01. */ +/** Enables or disables a capability on the dedicated host group. Minimum api-version: 2022-03-01. */ export interface DedicatedHostGroupPropertiesAdditionalCapabilities { - /** The flag that enables or disables a capability to have UltraSSD Enabled Virtual Machines on Dedicated Hosts of the Dedicated Host Group. For the Virtual Machines to be UltraSSD Enabled, UltraSSDEnabled flag for the resource needs to be set true as well. The value is defaulted to 'false' when not provided. Please refer to https://docs.microsoft.com/en-us/azure/virtual-machines/disks-enable-ultra-ssd for more details on Ultra SSD feature.

NOTE: The ultraSSDEnabled setting can only be enabled for Host Groups that are created as zonal.

Minimum api-version: 2022-03-01. */ + /** The flag that enables or disables a capability to have UltraSSD Enabled Virtual Machines on Dedicated Hosts of the Dedicated Host Group. For the Virtual Machines to be UltraSSD Enabled, UltraSSDEnabled flag for the resource needs to be set true as well. The value is defaulted to 'false' when not provided. Please refer to https://docs.microsoft.com/en-us/azure/virtual-machines/disks-enable-ultra-ssd for more details on Ultra SSD feature. **Note:** The ultraSSDEnabled setting can only be enabled for Host Groups that are created as zonal. Minimum api-version: 2022-03-01. */ ultraSSDEnabled?: boolean; } @@ -2237,6 +2351,12 @@ export interface DedicatedHostListResult { nextLink?: string; } +/** The List Dedicated Host sizes operation response. */ +export interface DedicatedHostSizeListResult { + /** The list of dedicated host sizes. */ + value?: string[]; +} + /** The list SSH public keys operation response. */ export interface SshPublicKeysGroupListResult { /** The list of SSH public keys */ @@ -2273,9 +2393,9 @@ export interface ImageDisk { managedDisk?: SubResource; /** The Virtual Hard Disk. */ blobUri?: string; - /** Specifies the caching requirements.

Possible values are:

**None**

**ReadOnly**

**ReadWrite**

Default: **None for Standard storage. ReadOnly for Premium storage** */ + /** Specifies the caching requirements. Possible values are: **None,** **ReadOnly,** **ReadWrite.** The default values are: **None for Standard storage. ReadOnly for Premium storage.** */ caching?: CachingTypes; - /** Specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image.

This value cannot be larger than 1023 GB */ + /** Specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image. This value cannot be larger than 1023 GB. */ diskSizeGB?: number; /** Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. */ storageAccountType?: StorageAccountTypes; @@ -2304,24 +2424,53 @@ export interface RestorePointCollectionSourceProperties { /** Describes the properties of the Virtual Machine for which the restore point was created. The properties provided are a subset and the snapshot of the overall Virtual Machine properties captured at the time of the restore point creation. */ export interface RestorePointSourceMetadata { - /** Gets the hardware profile. */ - hardwareProfile?: HardwareProfile; + /** + * Gets the hardware profile. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly hardwareProfile?: HardwareProfile; /** Gets the storage profile. */ storageProfile?: RestorePointSourceVMStorageProfile; - /** Gets the OS profile. */ - osProfile?: OSProfile; - /** Gets the diagnostics profile. */ - diagnosticsProfile?: DiagnosticsProfile; - /** Gets the license type, which is for bring your own license scenario. */ - licenseType?: string; - /** Gets the virtual machine unique id. */ - vmId?: string; - /** Gets the security profile. */ - securityProfile?: SecurityProfile; - /** Location of the VM from which the restore point was created. */ - location?: string; - /** UserData associated with the source VM for which restore point is captured, which is a base-64 encoded value. */ - userData?: string; + /** + * Gets the OS profile. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly osProfile?: OSProfile; + /** + * Gets the diagnostics profile. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly diagnosticsProfile?: DiagnosticsProfile; + /** + * Gets the license type, which is for bring your own license scenario. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly licenseType?: string; + /** + * Gets the virtual machine unique id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly vmId?: string; + /** + * Gets the security profile. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly securityProfile?: SecurityProfile; + /** + * Location of the VM from which the restore point was created. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly location?: string; + /** + * UserData associated with the source VM for which restore point is captured, which is a base-64 encoded value. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly userData?: string; + /** + * HyperVGeneration of the source VM for which restore point is captured. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly hyperVGeneration?: HyperVGenerationTypes; } /** Describes the storage profile. */ @@ -2334,36 +2483,81 @@ export interface RestorePointSourceVMStorageProfile { /** Describes an Operating System disk. */ export interface RestorePointSourceVmosDisk { - /** Gets the Operating System type. */ - osType?: OperatingSystemType; - /** Gets the disk encryption settings. */ - encryptionSettings?: DiskEncryptionSettings; - /** Gets the disk name. */ - name?: string; - /** Gets the caching type. */ - caching?: CachingTypes; - /** Gets the disk size in GB. */ - diskSizeGB?: number; + /** + * Gets the Operating System type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly osType?: OperatingSystemType; + /** + * Gets the disk encryption settings. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly encryptionSettings?: DiskEncryptionSettings; + /** + * Gets the disk name. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * Gets the caching type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly caching?: CachingTypes; + /** + * Gets the disk size in GB. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly diskSizeGB?: number; /** Gets the managed disk details */ managedDisk?: ManagedDiskParameters; - /** Gets the disk restore point Id. */ - diskRestorePoint?: ApiEntityReference; + /** Contains Disk Restore Point properties. */ + diskRestorePoint?: DiskRestorePointAttributes; + /** + * Shows true if the disk is write-accelerator enabled. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly writeAcceleratorEnabled?: boolean; +} + +/** Encryption at rest settings for disk restore point. It is an optional property that can be specified in the input while creating a restore point. */ +export interface RestorePointEncryption { + /** 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. */ + diskEncryptionSet?: DiskEncryptionSetParameters; + /** The type of key used to encrypt the data of the disk restore point. */ + type?: RestorePointEncryptionType; } /** Describes a data disk. */ export interface RestorePointSourceVMDataDisk { - /** Gets the logical unit number. */ - lun?: number; - /** Gets the disk name. */ - name?: string; - /** Gets the caching type. */ - caching?: CachingTypes; - /** Gets the initial disk size in GB for blank data disks, and the new desired size for existing OS and Data disks. */ - diskSizeGB?: number; - /** Gets the managed disk details */ + /** + * Gets the logical unit number. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lun?: number; + /** + * Gets the disk name. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * Gets the caching type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly caching?: CachingTypes; + /** + * Gets the initial disk size in GB for blank data disks, and the new desired size for existing OS and Data disks. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly diskSizeGB?: number; + /** Contains the managed disk details. */ managedDisk?: ManagedDiskParameters; - /** Gets the disk restore point Id. */ - diskRestorePoint?: ApiEntityReference; + /** Contains Disk Restore Point properties. */ + diskRestorePoint?: DiskRestorePointAttributes; + /** + * Shows true if the disk is write-accelerator enabled. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly writeAcceleratorEnabled?: boolean; } /** The instance view of a restore point. */ @@ -2436,7 +2630,7 @@ export interface CapacityReservationInstanceView { /** Represents the capacity reservation utilization in terms of resources allocated. */ export interface CapacityReservationUtilization { /** - * The value provides the current capacity of the VM size which was reserved successfully and for which the customer is getting billed.

Minimum api-version: 2022-08-01. + * The value provides the current capacity of the VM size which was reserved successfully and for which the customer is getting billed. Minimum api-version: 2022-08-01. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly currentCapacity?: number; @@ -2558,14 +2752,24 @@ export interface RunCommandResult { value?: InstanceViewStatus[]; } -/** Describes the script sources for run command. */ +/** Describes the script sources for run command. Use only one of script, scriptUri, commandId. */ export interface VirtualMachineRunCommandScriptSource { /** Specifies the script content to be executed on the VM. */ script?: string; - /** Specifies the script download location. */ + /** Specifies the script download location. It can be either SAS URI of an Azure storage blob with read access or public URI. */ scriptUri?: string; /** Specifies a commandId of predefined built-in script. */ commandId?: string; + /** User-assigned managed identity that has access to scriptUri in case of Azure storage blob. Use an empty object in case of system-assigned identity. Make sure the Azure storage blob exists, and managed identity has been given access to blob's container with 'Storage Blob Data Reader' role assignment. In case of user-assigned identity, make sure you add it under VM's identity. For more info on managed identity and Run Command, refer https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged. */ + scriptUriManagedIdentity?: RunCommandManagedIdentity; +} + +/** Contains clientId or objectId (use only one, not both) of a user-assigned managed identity that has access to storage blob used in Run Command. Use an empty RunCommandManagedIdentity object in case of system-assigned identity. Make sure the Azure storage blob exists in case of scriptUri, and managed identity has been given access to blob's container with 'Storage Blob Data Reader' role assignment with scriptUri blob and 'Storage Blob Data Contributor' for Append blobs(outputBlobUri, errorBlobUri). In case of user assigned identity, make sure you add it under VM's identity. For more info on managed identity and Run Command, refer https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged. */ +export interface RunCommandManagedIdentity { + /** Client Id (GUID value) of the user-assigned managed identity. ObjectId should not be used if this is provided. */ + clientId?: string; + /** Object Id (GUID value) of the user-assigned managed identity. ClientId should not be used if this is provided. */ + objectId?: string; } /** The instance view of a virtual machine run command. */ @@ -4422,148 +4626,53 @@ export interface OSFamilyListResult { /** The list of resources. */ value: OSFamily[]; /** The URI to fetch the next page of resources. Use this to get the next page of resources. Do this till nextLink is null to fetch all the resources. */ - nextLink?: string; -} - -/** The source image from which the Image Version is going to be created. */ -export interface GalleryArtifactSource { - /** The managed artifact. */ - managedImage: ManagedArtifact; -} - -/** The managed artifact. */ -export interface ManagedArtifact { - /** The managed artifact id. */ - id: string; -} - -/** The gallery image version with latest version in a particular region. */ -export interface LatestGalleryImageVersion { - /** The name of the latest version in the region. */ - latestVersionName?: string; - /** region of the Gallery Image Version. */ - location?: string; -} - -/** 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. */ -export interface ImageReference extends SubResource { - /** The image publisher. */ - publisher?: string; - /** Specifies the offer of the platform image or marketplace image used to create the virtual machine. */ - offer?: string; - /** The image SKU. */ - sku?: string; - /** Specifies the version of the platform image or marketplace image used to create the virtual machine. The allowed formats are Major.Minor.Build or 'latest'. Major, Minor, and Build are decimal numbers. Specify 'latest' to use the latest version of an image available at deploy time. Even if you use 'latest', the VM image will not automatically update after deploy time even if a new version becomes available. Please do not use field 'version' for gallery image deployment, gallery image should always use 'id' field for deployment, to use 'latest' version of gallery image, just set '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageName}' in the 'id' field without version input. */ - version?: string; - /** - * Specifies in decimal numbers, the version of platform image or marketplace image used to create the virtual machine. This readonly field differs from 'version', only if the value specified in 'version' field is 'latest'. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly exactVersion?: string; - /** Specified the shared gallery image unique id for vm deployment. This can be fetched from shared gallery image GET call. */ - sharedGalleryImageId?: string; - /** Specified the community gallery image unique id for vm deployment. This can be fetched from community gallery image GET call. */ - communityGalleryImageId?: string; -} - -/** 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. */ -export interface DiskEncryptionSetParameters extends SubResource {} - -/** Describes a virtual machine scale set network profile's IP configuration. */ -export interface VirtualMachineScaleSetIPConfiguration extends SubResource { - /** The IP configuration name. */ - name: string; - /** Specifies the identifier of the subnet. */ - subnet?: ApiEntityReference; - /** Specifies the primary network interface in case the virtual machine has more than 1 network interface. */ - primary?: boolean; - /** The publicIPAddressConfiguration. */ - publicIPAddressConfiguration?: VirtualMachineScaleSetPublicIPAddressConfiguration; - /** 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'. */ - privateIPAddressVersion?: IPVersion; - /** Specifies an array of references to backend address pools of application gateways. A scale set can reference backend address pools of multiple application gateways. Multiple scale sets cannot use the same application gateway. */ - applicationGatewayBackendAddressPools?: SubResource[]; - /** Specifies an array of references to application security group. */ - applicationSecurityGroups?: SubResource[]; - /** Specifies an array of references to backend address pools of load balancers. A scale set can reference backend address pools of one public and one internal load balancer. Multiple scale sets cannot use the same basic sku load balancer. */ - loadBalancerBackendAddressPools?: SubResource[]; - /** Specifies an array of references to inbound Nat pools of the load balancers. A scale set can reference inbound nat pools of one public and one internal load balancer. Multiple scale sets cannot use the same basic sku load balancer. */ - loadBalancerInboundNatPools?: SubResource[]; -} - -/** Describes a virtual machine scale set network profile's network configurations. */ -export interface VirtualMachineScaleSetNetworkConfiguration - extends SubResource { - /** The network configuration name. */ - name: string; - /** Specifies the primary network interface in case the virtual machine has more than 1 network interface. */ - primary?: boolean; - /** Specifies whether the network interface is accelerated networking-enabled. */ - enableAcceleratedNetworking?: boolean; - /** Specifies whether the network interface is disabled for tcp state tracking. */ - disableTcpStateTracking?: boolean; - /** Specifies whether the network interface is FPGA networking-enabled. */ - enableFpga?: boolean; - /** The network security group. */ - networkSecurityGroup?: SubResource; - /** The dns settings to be applied on the network interfaces. */ - dnsSettings?: VirtualMachineScaleSetNetworkConfigurationDnsSettings; - /** Specifies the IP configurations of the network interface. */ - ipConfigurations?: VirtualMachineScaleSetIPConfiguration[]; - /** Whether IP forwarding enabled on this NIC. */ - enableIPForwarding?: boolean; - /** Specify what happens to the network interface when the VM is deleted */ - deleteOption?: DeleteOptions; + nextLink?: string; } -/** Describes a virtual machine scale set network profile's IP configuration. NOTE: The subnet of a scale set may be modified as long as the original subnet and the new subnet are in the same virtual network */ -export interface VirtualMachineScaleSetUpdateIPConfiguration - extends SubResource { - /** The IP configuration name. */ - name?: string; - /** The subnet. */ - subnet?: ApiEntityReference; - /** Specifies the primary IP Configuration in case the network interface has more than one IP Configuration. */ - primary?: boolean; - /** The publicIPAddressConfiguration. */ - publicIPAddressConfiguration?: VirtualMachineScaleSetUpdatePublicIPAddressConfiguration; - /** 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'. */ - privateIPAddressVersion?: IPVersion; - /** The application gateway backend address pools. */ - applicationGatewayBackendAddressPools?: SubResource[]; - /** Specifies an array of references to application security group. */ - applicationSecurityGroups?: SubResource[]; - /** The load balancer backend address pools. */ - loadBalancerBackendAddressPools?: SubResource[]; - /** The load balancer inbound nat pools. */ - loadBalancerInboundNatPools?: SubResource[]; +/** The source image from which the Image Version is going to be created. */ +export interface GalleryArtifactSource { + /** The managed artifact. */ + managedImage: ManagedArtifact; } -/** Describes a virtual machine scale set network profile's network configurations. */ -export interface VirtualMachineScaleSetUpdateNetworkConfiguration - extends SubResource { - /** The network configuration name. */ - name?: string; - /** Whether this is a primary NIC on a virtual machine. */ - primary?: boolean; - /** Specifies whether the network interface is accelerated networking-enabled. */ - enableAcceleratedNetworking?: boolean; - /** Specifies whether the network interface is disabled for tcp state tracking. */ - disableTcpStateTracking?: boolean; - /** Specifies whether the network interface is FPGA networking-enabled. */ - enableFpga?: boolean; - /** The network security group. */ - networkSecurityGroup?: SubResource; - /** The dns settings to be applied on the network interfaces. */ - dnsSettings?: VirtualMachineScaleSetNetworkConfigurationDnsSettings; - /** The virtual machine scale set IP Configuration. */ - ipConfigurations?: VirtualMachineScaleSetUpdateIPConfiguration[]; - /** Whether IP forwarding enabled on this NIC. */ - enableIPForwarding?: boolean; - /** Specify what happens to the network interface when the VM is deleted */ - deleteOption?: DeleteOptions; +/** The managed artifact. */ +export interface ManagedArtifact { + /** The managed artifact id. */ + id: string; +} + +/** The gallery image version with latest version in a particular region. */ +export interface LatestGalleryImageVersion { + /** The name of the latest version in the region. */ + latestVersionName?: string; + /** region of the Gallery Image Version. */ + location?: string; +} + +/** 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. */ +export interface ImageReference extends SubResource { + /** The image publisher. */ + publisher?: string; + /** Specifies the offer of the platform image or marketplace image used to create the virtual machine. */ + offer?: string; + /** The image SKU. */ + sku?: string; + /** Specifies the version of the platform image or marketplace image used to create the virtual machine. The allowed formats are Major.Minor.Build or 'latest'. Major, Minor, and Build are decimal numbers. Specify 'latest' to use the latest version of an image available at deploy time. Even if you use 'latest', the VM image will not automatically update after deploy time even if a new version becomes available. Please do not use field 'version' for gallery image deployment, gallery image should always use 'id' field for deployment, to use 'latest' version of gallery image, just set '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageName}' in the 'id' field without version input. */ + version?: string; + /** + * Specifies in decimal numbers, the version of platform image or marketplace image used to create the virtual machine. This readonly field differs from 'version', only if the value specified in 'version' field is 'latest'. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly exactVersion?: string; + /** Specified the shared gallery image unique id for vm deployment. This can be fetched from shared gallery image GET call. */ + sharedGalleryImageId?: string; + /** Specified the community gallery image unique id for vm deployment. This can be fetched from community gallery image GET call. */ + communityGalleryImageId?: string; } +/** 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. */ +export interface DiskEncryptionSetParameters extends SubResource {} + /** The parameters of a managed disk. */ export interface ManagedDiskParameters extends SubResource { /** Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. */ @@ -4715,6 +4824,8 @@ export interface VirtualMachineScaleSetVMExtension extends SubResourceReadOnly { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly type?: string; + /** The location of the extension. */ + location?: string; /** How the extension handler should be forced to update even if the extension configuration has not changed. */ forceUpdateTag?: string; /** The name of the extension handler publisher. */ @@ -4742,6 +4853,8 @@ export interface VirtualMachineScaleSetVMExtension extends SubResourceReadOnly { suppressFailures?: boolean; /** The extensions protected settings that are passed by reference, and consumed from key vault */ protectedSettingsFromKeyVault?: KeyVaultSecretReference; + /** Collection of extension names after which this extension needs to be provisioned. */ + provisionAfterExtensions?: string[]; } /** Describes a VMSS VM Extension. */ @@ -4779,6 +4892,47 @@ export interface VirtualMachineScaleSetVMExtensionUpdate protectedSettingsFromKeyVault?: KeyVaultSecretReference; } +/** Disk Restore Point details. */ +export interface DiskRestorePointAttributes extends SubResourceReadOnly { + /** Encryption at rest settings for disk restore point. It is an optional property that can be specified in the input while creating a restore point. */ + encryption?: RestorePointEncryption; + /** Resource Id of the source disk restore point. */ + sourceDiskRestorePoint?: ApiEntityReference; +} + +/** Describes a Virtual Machine Extension. */ +export interface VirtualMachineExtension extends ResourceWithOptionalLocation { + /** How the extension handler should be forced to update even if the extension configuration has not changed. */ + forceUpdateTag?: string; + /** The name of the extension handler publisher. */ + publisher?: string; + /** Specifies the type of the extension; an example is "CustomScriptExtension". */ + typePropertiesType?: string; + /** Specifies the version of the script handler. */ + typeHandlerVersion?: string; + /** Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. */ + autoUpgradeMinorVersion?: boolean; + /** Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available. */ + enableAutomaticUpgrade?: boolean; + /** Json formatted public settings for the extension. */ + settings?: any; + /** The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. */ + protectedSettings?: any; + /** + * The provisioning state, which only appears in the response. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; + /** The virtual machine extension instance view. */ + instanceView?: VirtualMachineExtensionInstanceView; + /** Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false. */ + suppressFailures?: boolean; + /** The extensions protected settings that are passed by reference, and consumed from key vault */ + protectedSettingsFromKeyVault?: KeyVaultSecretReference; + /** Collection of extension names after which this extension needs to be provisioned. */ + provisionAfterExtensions?: string[]; +} + /** Describes a Virtual Machine Scale Set. */ export interface VirtualMachineScaleSet extends Resource { /** The virtual machine scale set sku. */ @@ -4817,9 +4971,9 @@ export interface VirtualMachineScaleSet extends Resource { zoneBalance?: boolean; /** Fault Domain count for each placement group. */ platformFaultDomainCount?: number; - /** Specifies information about the proximity placement group that the virtual machine scale set should be assigned to.

Minimum api-version: 2018-04-01. */ + /** Specifies information about the proximity placement group that the virtual machine scale set should be assigned to. Minimum api-version: 2018-04-01. */ proximityPlacementGroup?: SubResource; - /** Specifies information about the dedicated host group that the virtual machine scale set resides in.

Minimum api-version: 2020-06-01. */ + /** Specifies information about the dedicated host group that the virtual machine scale set resides in. Minimum api-version: 2020-06-01. */ hostGroup?: SubResource; /** 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. */ additionalCapabilities?: AdditionalCapabilities; @@ -4832,7 +4986,7 @@ export interface VirtualMachineScaleSet extends Resource { /** Specifies the desired targets for mixing Spot and Regular priority VMs within the same VMSS Flex instance. */ priorityMixPolicy?: PriorityMixPolicy; /** - * Specifies the time at which the Virtual Machine Scale Set resource was created.

Minimum api-version: 2021-11-01. + * Specifies the time at which the Virtual Machine Scale Set resource was created. Minimum api-version: 2021-11-01. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly timeCreated?: Date; @@ -4919,9 +5073,9 @@ export interface VirtualMachineScaleSetVM extends Resource { networkProfile?: NetworkProfile; /** Specifies the network profile configuration of the virtual machine. */ networkProfileConfiguration?: VirtualMachineScaleSetVMNetworkProfileConfiguration; - /** Specifies the boot diagnostic settings state.

Minimum api-version: 2015-06-15. */ + /** Specifies the boot diagnostic settings state. Minimum api-version: 2015-06-15. */ diagnosticsProfile?: DiagnosticsProfile; - /** Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Availability sets overview](https://docs.microsoft.com/azure/virtual-machines/availability-set-overview).

For more information on Azure planned maintenance, see [Maintenance and updates for Virtual Machines in Azure](https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates)

Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. */ + /** Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Availability sets overview](https://docs.microsoft.com/azure/virtual-machines/availability-set-overview). For more information on Azure planned maintenance, see [Maintenance and updates for Virtual Machines in Azure](https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates). Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. */ availabilitySet?: SubResource; /** * The provisioning state, which only appears in the response. @@ -4968,23 +5122,23 @@ export interface VirtualMachine extends Resource { networkProfile?: NetworkProfile; /** Specifies the Security related profile settings for the virtual machine. */ securityProfile?: SecurityProfile; - /** Specifies the boot diagnostic settings state.

Minimum api-version: 2015-06-15. */ + /** Specifies the boot diagnostic settings state. Minimum api-version: 2015-06-15. */ diagnosticsProfile?: DiagnosticsProfile; - /** Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Availability sets overview](https://docs.microsoft.com/azure/virtual-machines/availability-set-overview).

For more information on Azure planned maintenance, see [Maintenance and updates for Virtual Machines in Azure](https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates)

Currently, a VM can only be added to availability set at creation time. The availability set to which the VM is being added should be under the same resource group as the availability set resource. An existing VM cannot be added to an availability set.

This property cannot exist along with a non-null properties.virtualMachineScaleSet reference. */ + /** Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Availability sets overview](https://docs.microsoft.com/azure/virtual-machines/availability-set-overview). For more information on Azure planned maintenance, see [Maintenance and updates for Virtual Machines in Azure](https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates). Currently, a VM can only be added to availability set at creation time. The availability set to which the VM is being added should be under the same resource group as the availability set resource. An existing VM cannot be added to an availability set. This property cannot exist along with a non-null properties.virtualMachineScaleSet reference. */ availabilitySet?: SubResource; - /** Specifies information about the virtual machine scale set that the virtual machine should be assigned to. Virtual machines specified in the same virtual machine scale set are allocated to different nodes to maximize availability. Currently, a VM can only be added to virtual machine scale set at creation time. An existing VM cannot be added to a virtual machine scale set.

This property cannot exist along with a non-null properties.availabilitySet reference.

Minimum api‐version: 2019‐03‐01 */ + /** Specifies information about the virtual machine scale set that the virtual machine should be assigned to. Virtual machines specified in the same virtual machine scale set are allocated to different nodes to maximize availability. Currently, a VM can only be added to virtual machine scale set at creation time. An existing VM cannot be added to a virtual machine scale set. This property cannot exist along with a non-null properties.availabilitySet reference. Minimum api‐version: 2019‐03‐01. */ virtualMachineScaleSet?: SubResource; - /** Specifies information about the proximity placement group that the virtual machine should be assigned to.

Minimum api-version: 2018-04-01. */ + /** Specifies information about the proximity placement group that the virtual machine should be assigned to. Minimum api-version: 2018-04-01. */ proximityPlacementGroup?: SubResource; - /** Specifies the priority for the virtual machine.

Minimum api-version: 2019-03-01 */ + /** Specifies the priority for the virtual machine. Minimum api-version: 2019-03-01 */ priority?: VirtualMachinePriorityTypes; - /** Specifies the eviction policy for the Azure Spot virtual machine and Azure Spot scale set.

For Azure Spot virtual machines, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2019-03-01.

For Azure Spot scale sets, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2017-10-30-preview. */ + /** Specifies the eviction policy for the Azure Spot virtual machine and Azure Spot scale set. For Azure Spot virtual machines, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2019-03-01. For Azure Spot scale sets, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2017-10-30-preview. */ evictionPolicy?: VirtualMachineEvictionPolicyTypes; - /** Specifies the billing related details of a Azure Spot virtual machine.

Minimum api-version: 2019-03-01. */ + /** Specifies the billing related details of a Azure Spot virtual machine. Minimum api-version: 2019-03-01. */ billingProfile?: BillingProfile; - /** Specifies information about the dedicated host that the virtual machine resides in.

Minimum api-version: 2018-10-01. */ + /** Specifies information about the dedicated host that the virtual machine resides in. Minimum api-version: 2018-10-01. */ host?: SubResource; - /** Specifies information about the dedicated host group that the virtual machine resides in.

Minimum api-version: 2020-06-01.

NOTE: User cannot specify both host and hostGroup properties. */ + /** Specifies information about the dedicated host group that the virtual machine resides in. **Note:** User cannot specify both host and hostGroup properties. Minimum api-version: 2020-06-01. */ hostGroup?: SubResource; /** * The provisioning state, which only appears in the response. @@ -5003,20 +5157,20 @@ export interface VirtualMachine extends Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly vmId?: string; - /** Specifies the time alloted for all extensions to start. The time duration should be between 15 minutes and 120 minutes (inclusive) and should be specified in ISO 8601 format. The default value is 90 minutes (PT1H30M).

Minimum api-version: 2020-06-01 */ + /** Specifies the time alloted for all extensions to start. The time duration should be between 15 minutes and 120 minutes (inclusive) and should be specified in ISO 8601 format. The default value is 90 minutes (PT1H30M). Minimum api-version: 2020-06-01. */ extensionsTimeBudget?: string; - /** Specifies the scale set logical fault domain into which the Virtual Machine will be created. By default, the Virtual Machine will by automatically assigned to a fault domain that best maintains balance across available fault domains.
  • This is applicable only if the 'virtualMachineScaleSet' property of this Virtual Machine is set.
  • The Virtual Machine Scale Set that is referenced, must have 'platformFaultDomainCount' > 1.
  • This property cannot be updated once the Virtual Machine is created.
  • Fault domain assignment can be viewed in the Virtual Machine Instance View.

    Minimum api‐version: 2020‐12‐01 */ + /** Specifies the scale set logical fault domain into which the Virtual Machine will be created. By default, the Virtual Machine will by automatically assigned to a fault domain that best maintains balance across available fault domains. This is applicable only if the 'virtualMachineScaleSet' property of this Virtual Machine is set. The Virtual Machine Scale Set that is referenced, must have 'platformFaultDomainCount' greater than 1. This property cannot be updated once the Virtual Machine is created. Fault domain assignment can be viewed in the Virtual Machine Instance View. Minimum api‐version: 2020‐12‐01. */ platformFaultDomain?: number; /** Specifies Scheduled Event related configurations. */ scheduledEventsProfile?: ScheduledEventsProfile; - /** UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here.

    Minimum api-version: 2021-03-01 */ + /** UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here. Minimum api-version: 2021-03-01. */ userData?: string; - /** Specifies information about the capacity reservation that is used to allocate virtual machine.

    Minimum api-version: 2021-04-01. */ + /** Specifies information about the capacity reservation that is used to allocate virtual machine. Minimum api-version: 2021-04-01. */ capacityReservation?: CapacityReservationProfile; - /** Specifies the gallery applications that should be made available to the VM/VMSS */ + /** Specifies the gallery applications that should be made available to the VM/VMSS. */ applicationProfile?: ApplicationProfile; /** - * Specifies the time at which the Virtual Machine resource was created.

    Minimum api-version: 2021-11-01. + * Specifies the time at which the Virtual Machine resource was created. Minimum api-version: 2021-11-01. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly timeCreated?: Date; @@ -5036,7 +5190,7 @@ export interface VirtualMachineExtensionImage extends Resource { supportsMultipleExtensions?: boolean; } -/** Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Availability sets overview](https://docs.microsoft.com/azure/virtual-machines/availability-set-overview).

    For more information on Azure planned maintenance, see [Maintenance and updates for Virtual Machines in Azure](https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates)

    Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. */ +/** Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Availability sets overview](https://docs.microsoft.com/azure/virtual-machines/availability-set-overview). For more information on Azure planned maintenance, see [Maintenance and updates for Virtual Machines in Azure](https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates). Currently, a VM can only be added to an availability set at creation time. An existing VM cannot be added to an availability set. */ export interface AvailabilitySet extends Resource { /** Sku of the availability set, only name is required to be set. See AvailabilitySetSkuTypes for possible set of values. Use 'Aligned' for virtual machines with managed disks and 'Classic' for virtual machines with unmanaged disks. Default value is 'Classic'. */ sku?: Sku; @@ -5046,7 +5200,7 @@ export interface AvailabilitySet extends Resource { platformFaultDomainCount?: number; /** A list of references to all virtual machines in the availability set. */ virtualMachines?: SubResource[]; - /** Specifies information about the proximity placement group that the availability set should be assigned to.

    Minimum api-version: 2018-04-01. */ + /** Specifies information about the proximity placement group that the availability set should be assigned to. Minimum api-version: 2018-04-01. */ proximityPlacementGroup?: SubResource; /** * The resource status information. @@ -5059,7 +5213,7 @@ export interface AvailabilitySet extends Resource { export interface ProximityPlacementGroup extends Resource { /** Specifies the Availability Zone where virtual machine, virtual machine scale set or availability set associated with the proximity placement group can be created. */ zones?: string[]; - /** Specifies the type of the proximity placement group.

    Possible values are:

    **Standard** : Co-locate resources within an Azure region or Availability Zone.

    **Ultra** : For future use. */ + /** Specifies the type of the proximity placement group. Possible values are: **Standard** : Co-locate resources within an Azure region or Availability Zone. **Ultra** : For future use. */ proximityPlacementGroupType?: ProximityPlacementGroupType; /** * A list of references to all virtual machines in the proximity placement group. @@ -5082,7 +5236,7 @@ export interface ProximityPlacementGroup extends Resource { intent?: ProximityPlacementGroupPropertiesIntent; } -/** Specifies information about the dedicated host group that the dedicated hosts should be assigned to.

    Currently, a dedicated host can only be added to a dedicated host group at creation time. An existing dedicated host cannot be added to another dedicated host group. */ +/** Specifies information about the dedicated host group that the dedicated hosts should be assigned to. Currently, a dedicated host can only be added to a dedicated host group at creation time. An existing dedicated host cannot be added to another dedicated host group. */ export interface DedicatedHostGroup extends Resource { /** Availability Zone to use for this host group. Only single zone is supported. The zone can be assigned only during creation. If not provided, the group supports all zones in the region. If provided, enforces each host in the group to be in the same zone. */ zones?: string[]; @@ -5098,9 +5252,9 @@ export interface DedicatedHostGroup extends Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly instanceView?: DedicatedHostGroupInstanceView; - /** Specifies whether virtual machines or virtual machine scale sets can be placed automatically on the dedicated host group. Automatic placement means resources are allocated on dedicated hosts, that are chosen by Azure, under the dedicated host group. The value is defaulted to 'false' when not provided.

    Minimum api-version: 2020-06-01. */ + /** Specifies whether virtual machines or virtual machine scale sets can be placed automatically on the dedicated host group. Automatic placement means resources are allocated on dedicated hosts, that are chosen by Azure, under the dedicated host group. The value is defaulted to 'false' when not provided. Minimum api-version: 2020-06-01. */ supportAutomaticPlacement?: boolean; - /** Enables or disables a capability on the dedicated host group.

    Minimum api-version: 2022-03-01. */ + /** Enables or disables a capability on the dedicated host group. Minimum api-version: 2022-03-01. */ additionalCapabilities?: DedicatedHostGroupPropertiesAdditionalCapabilities; } @@ -5113,7 +5267,7 @@ export interface DedicatedHost extends Resource { /** Specifies whether the dedicated host should be replaced automatically in case of a failure. The value is defaulted to 'true' when not provided. */ autoReplaceOnFailure?: boolean; /** - * A unique id generated and assigned to the dedicated host by the platform.

    Does not change throughout the lifetime of the host. + * A unique id generated and assigned to the dedicated host by the platform. Does not change throughout the lifetime of the host. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly hostId?: string; @@ -5122,7 +5276,7 @@ export interface DedicatedHost extends Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly virtualMachines?: SubResourceReadOnly[]; - /** Specifies the software license type that will be applied to the VMs deployed on the dedicated host.

    Possible values are:

    **None**

    **Windows_Server_Hybrid**

    **Windows_Server_Perpetual**

    Default: **None** */ + /** Specifies the software license type that will be applied to the VMs deployed on the dedicated host. Possible values are: **None,** **Windows_Server_Hybrid,** **Windows_Server_Perpetual.** The default value is: **None.** */ licenseType?: DedicatedHostLicenseTypes; /** * The date when the host was first provisioned. @@ -5140,7 +5294,7 @@ export interface DedicatedHost extends Resource { */ readonly instanceView?: DedicatedHostInstanceView; /** - * Specifies the time at which the Dedicated Host resource was created.

    Minimum api-version: 2021-11-01. + * Specifies the time at which the Dedicated Host resource was created. Minimum api-version: 2021-11-01. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly timeCreated?: Date; @@ -5190,7 +5344,7 @@ export interface RestorePointCollection extends Resource { readonly restorePoints?: RestorePoint[]; } -/** Specifies information about the capacity reservation group that the capacity reservations should be assigned to.

    Currently, a capacity reservation can only be added to a capacity reservation group at creation time. An existing capacity reservation cannot be added or moved to another capacity reservation group. */ +/** Specifies information about the capacity reservation group that the capacity reservations should be assigned to. Currently, a capacity reservation can only be added to a capacity reservation group at creation time. An existing capacity reservation cannot be added or moved to another capacity reservation group. */ export interface CapacityReservationGroup extends Resource { /** Availability Zones to use for this capacity reservation group. The zones can be assigned only during creation. If not provided, the group supports only regional resources in the region. If provided, enforces each capacity reservation in the group to be in one of the zones. */ zones?: string[]; @@ -5223,7 +5377,7 @@ export interface CapacityReservation extends Resource { */ readonly reservationId?: string; /** - * Specifies the value of fault domain count that Capacity Reservation supports for requested VM size.
    NOTE: The fault domain count specified for a resource (like virtual machines scale set) must be less than or equal to this value if it deploys using capacity reservation.

    Minimum api-version: 2022-08-01. + * Specifies the value of fault domain count that Capacity Reservation supports for requested VM size. **Note:** The fault domain count specified for a resource (like virtual machines scale set) must be less than or equal to this value if it deploys using capacity reservation. Minimum api-version: 2022-08-01. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly platformFaultDomainCount?: number; @@ -5248,7 +5402,7 @@ export interface CapacityReservation extends Resource { */ readonly instanceView?: CapacityReservationInstanceView; /** - * Specifies the time at which the Capacity Reservation resource was created.

    Minimum api-version: 2021-11-01. + * Specifies the time at which the Capacity Reservation resource was created. Minimum api-version: 2021-11-01. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly timeCreated?: Date; @@ -5270,12 +5424,16 @@ export interface VirtualMachineRunCommand extends Resource { runAsPassword?: string; /** The timeout in seconds to execute the run command. */ timeoutInSeconds?: number; - /** Specifies the Azure storage blob where script output stream will be uploaded. */ + /** Specifies the Azure storage blob where script output stream will be uploaded. Use a SAS URI with read, append, create, write access OR use managed identity to provide the VM access to the blob. Refer outputBlobManagedIdentity parameter. */ outputBlobUri?: string; - /** Specifies the Azure storage blob where script error stream will be uploaded. */ + /** Specifies the Azure storage blob where script error stream will be uploaded. Use a SAS URI with read, append, create, write access OR use managed identity to provide the VM access to the blob. Refer errorBlobManagedIdentity parameter. */ errorBlobUri?: string; + /** User-assigned managed identity that has access to outputBlobUri storage blob. Use an empty object in case of system-assigned identity. Make sure managed identity has been given access to blob's container with 'Storage Blob Data Contributor' role assignment. In case of user-assigned identity, make sure you add it under VM's identity. For more info on managed identity and Run Command, refer https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged */ + outputBlobManagedIdentity?: RunCommandManagedIdentity; + /** User-assigned managed identity that has access to errorBlobUri storage blob. Use an empty object in case of system-assigned identity. Make sure managed identity has been given access to blob's container with 'Storage Blob Data Contributor' role assignment. In case of user-assigned identity, make sure you add it under VM's identity. For more info on managed identity and Run Command, refer https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged */ + errorBlobManagedIdentity?: RunCommandManagedIdentity; /** - * The provisioning state, which only appears in the response. + * The provisioning state, which only appears in the response. If treatFailureAsDeploymentFailure set to true, any failure in the script will fail the deployment and ProvisioningState will be marked as Failed. If treatFailureAsDeploymentFailure set to false, ProvisioningState would only reflect whether the run command was run or not by the extensions platform, it would not indicate whether script failed in case of script failures. See instance view of run command in case of script failures to see executionMessage, output, error: https://aka.ms/runcommandmanaged#get-execution-status-and-results * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: string; @@ -5284,6 +5442,8 @@ export interface VirtualMachineRunCommand extends Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly instanceView?: VirtualMachineRunCommandInstanceView; + /** Optional. If set to true, any failure in the script will fail the deployment and ProvisioningState will be marked as Failed. If set to false, ProvisioningState would only reflect whether the run command was run or not by the extensions platform, it would not indicate whether script failed in case of script failures. See instance view of run command in case of script failures to see executionMessage, output, error: https://aka.ms/runcommandmanaged#get-execution-status-and-results */ + treatFailureAsDeploymentFailure?: boolean; } /** Disk resource. */ @@ -5665,6 +5825,10 @@ export interface VirtualMachineScaleSetUpdate extends UpdateResource { scaleInPolicy?: ScaleInPolicy; /** Specifies information about the proximity placement group that the virtual machine scale set should be assigned to.

    Minimum api-version: 2018-04-01. */ proximityPlacementGroup?: SubResource; + /** Specifies the desired targets for mixing Spot and Regular priority VMs within the same VMSS Flex instance. */ + priorityMixPolicy?: PriorityMixPolicy; + /** Specifies the Spot Restore properties for the virtual machine scale set. */ + spotRestorePolicy?: SpotRestorePolicy; } /** Describes a Virtual Machine Extension. */ @@ -5711,23 +5875,23 @@ export interface VirtualMachineUpdate extends UpdateResource { networkProfile?: NetworkProfile; /** Specifies the Security related profile settings for the virtual machine. */ securityProfile?: SecurityProfile; - /** Specifies the boot diagnostic settings state.

    Minimum api-version: 2015-06-15. */ + /** Specifies the boot diagnostic settings state. Minimum api-version: 2015-06-15. */ diagnosticsProfile?: DiagnosticsProfile; - /** Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Availability sets overview](https://docs.microsoft.com/azure/virtual-machines/availability-set-overview).

    For more information on Azure planned maintenance, see [Maintenance and updates for Virtual Machines in Azure](https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates)

    Currently, a VM can only be added to availability set at creation time. The availability set to which the VM is being added should be under the same resource group as the availability set resource. An existing VM cannot be added to an availability set.

    This property cannot exist along with a non-null properties.virtualMachineScaleSet reference. */ + /** Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Availability sets overview](https://docs.microsoft.com/azure/virtual-machines/availability-set-overview). For more information on Azure planned maintenance, see [Maintenance and updates for Virtual Machines in Azure](https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates). Currently, a VM can only be added to availability set at creation time. The availability set to which the VM is being added should be under the same resource group as the availability set resource. An existing VM cannot be added to an availability set. This property cannot exist along with a non-null properties.virtualMachineScaleSet reference. */ availabilitySet?: SubResource; - /** Specifies information about the virtual machine scale set that the virtual machine should be assigned to. Virtual machines specified in the same virtual machine scale set are allocated to different nodes to maximize availability. Currently, a VM can only be added to virtual machine scale set at creation time. An existing VM cannot be added to a virtual machine scale set.

    This property cannot exist along with a non-null properties.availabilitySet reference.

    Minimum api‐version: 2019‐03‐01 */ + /** Specifies information about the virtual machine scale set that the virtual machine should be assigned to. Virtual machines specified in the same virtual machine scale set are allocated to different nodes to maximize availability. Currently, a VM can only be added to virtual machine scale set at creation time. An existing VM cannot be added to a virtual machine scale set. This property cannot exist along with a non-null properties.availabilitySet reference. Minimum api‐version: 2019‐03‐01. */ virtualMachineScaleSet?: SubResource; - /** Specifies information about the proximity placement group that the virtual machine should be assigned to.

    Minimum api-version: 2018-04-01. */ + /** Specifies information about the proximity placement group that the virtual machine should be assigned to. Minimum api-version: 2018-04-01. */ proximityPlacementGroup?: SubResource; - /** Specifies the priority for the virtual machine.

    Minimum api-version: 2019-03-01 */ + /** Specifies the priority for the virtual machine. Minimum api-version: 2019-03-01 */ priority?: VirtualMachinePriorityTypes; - /** Specifies the eviction policy for the Azure Spot virtual machine and Azure Spot scale set.

    For Azure Spot virtual machines, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2019-03-01.

    For Azure Spot scale sets, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2017-10-30-preview. */ + /** Specifies the eviction policy for the Azure Spot virtual machine and Azure Spot scale set. For Azure Spot virtual machines, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2019-03-01. For Azure Spot scale sets, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2017-10-30-preview. */ evictionPolicy?: VirtualMachineEvictionPolicyTypes; - /** Specifies the billing related details of a Azure Spot virtual machine.

    Minimum api-version: 2019-03-01. */ + /** Specifies the billing related details of a Azure Spot virtual machine. Minimum api-version: 2019-03-01. */ billingProfile?: BillingProfile; - /** Specifies information about the dedicated host that the virtual machine resides in.

    Minimum api-version: 2018-10-01. */ + /** Specifies information about the dedicated host that the virtual machine resides in. Minimum api-version: 2018-10-01. */ host?: SubResource; - /** Specifies information about the dedicated host group that the virtual machine resides in.

    Minimum api-version: 2020-06-01.

    NOTE: User cannot specify both host and hostGroup properties. */ + /** Specifies information about the dedicated host group that the virtual machine resides in. **Note:** User cannot specify both host and hostGroup properties. Minimum api-version: 2020-06-01. */ hostGroup?: SubResource; /** * The provisioning state, which only appears in the response. @@ -5746,20 +5910,20 @@ export interface VirtualMachineUpdate extends UpdateResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly vmId?: string; - /** Specifies the time alloted for all extensions to start. The time duration should be between 15 minutes and 120 minutes (inclusive) and should be specified in ISO 8601 format. The default value is 90 minutes (PT1H30M).

    Minimum api-version: 2020-06-01 */ + /** Specifies the time alloted for all extensions to start. The time duration should be between 15 minutes and 120 minutes (inclusive) and should be specified in ISO 8601 format. The default value is 90 minutes (PT1H30M). Minimum api-version: 2020-06-01. */ extensionsTimeBudget?: string; - /** Specifies the scale set logical fault domain into which the Virtual Machine will be created. By default, the Virtual Machine will by automatically assigned to a fault domain that best maintains balance across available fault domains.
  • This is applicable only if the 'virtualMachineScaleSet' property of this Virtual Machine is set.
  • The Virtual Machine Scale Set that is referenced, must have 'platformFaultDomainCount' > 1.
  • This property cannot be updated once the Virtual Machine is created.
  • Fault domain assignment can be viewed in the Virtual Machine Instance View.

    Minimum api‐version: 2020‐12‐01 */ + /** Specifies the scale set logical fault domain into which the Virtual Machine will be created. By default, the Virtual Machine will by automatically assigned to a fault domain that best maintains balance across available fault domains. This is applicable only if the 'virtualMachineScaleSet' property of this Virtual Machine is set. The Virtual Machine Scale Set that is referenced, must have 'platformFaultDomainCount' greater than 1. This property cannot be updated once the Virtual Machine is created. Fault domain assignment can be viewed in the Virtual Machine Instance View. Minimum api‐version: 2020‐12‐01. */ platformFaultDomain?: number; /** Specifies Scheduled Event related configurations. */ scheduledEventsProfile?: ScheduledEventsProfile; - /** UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here.

    Minimum api-version: 2021-03-01 */ + /** UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here. Minimum api-version: 2021-03-01. */ userData?: string; - /** Specifies information about the capacity reservation that is used to allocate virtual machine.

    Minimum api-version: 2021-04-01. */ + /** Specifies information about the capacity reservation that is used to allocate virtual machine. Minimum api-version: 2021-04-01. */ capacityReservation?: CapacityReservationProfile; - /** Specifies the gallery applications that should be made available to the VM/VMSS */ + /** Specifies the gallery applications that should be made available to the VM/VMSS. */ applicationProfile?: ApplicationProfile; /** - * Specifies the time at which the Virtual Machine resource was created.

    Minimum api-version: 2021-11-01. + * Specifies the time at which the Virtual Machine resource was created. Minimum api-version: 2021-11-01. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly timeCreated?: Date; @@ -5775,7 +5939,7 @@ export interface AvailabilitySetUpdate extends UpdateResource { platformFaultDomainCount?: number; /** A list of references to all virtual machines in the availability set. */ virtualMachines?: SubResource[]; - /** Specifies information about the proximity placement group that the availability set should be assigned to.

    Minimum api-version: 2018-04-01. */ + /** Specifies information about the proximity placement group that the availability set should be assigned to. Minimum api-version: 2018-04-01. */ proximityPlacementGroup?: SubResource; /** * The resource status information. @@ -5803,20 +5967,22 @@ export interface DedicatedHostGroupUpdate extends UpdateResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly instanceView?: DedicatedHostGroupInstanceView; - /** Specifies whether virtual machines or virtual machine scale sets can be placed automatically on the dedicated host group. Automatic placement means resources are allocated on dedicated hosts, that are chosen by Azure, under the dedicated host group. The value is defaulted to 'false' when not provided.

    Minimum api-version: 2020-06-01. */ + /** Specifies whether virtual machines or virtual machine scale sets can be placed automatically on the dedicated host group. Automatic placement means resources are allocated on dedicated hosts, that are chosen by Azure, under the dedicated host group. The value is defaulted to 'false' when not provided. Minimum api-version: 2020-06-01. */ supportAutomaticPlacement?: boolean; - /** Enables or disables a capability on the dedicated host group.

    Minimum api-version: 2022-03-01. */ + /** Enables or disables a capability on the dedicated host group. Minimum api-version: 2022-03-01. */ additionalCapabilities?: DedicatedHostGroupPropertiesAdditionalCapabilities; } /** Specifies information about the dedicated host. Only tags, autoReplaceOnFailure and licenseType may be updated. */ export interface DedicatedHostUpdate extends UpdateResource { + /** [List all available dedicated host sizes for resizing] (https://docs.microsoft.com/rest/api/compute/dedicated-hosts/listavailablesizes). Resizing can be only used to scale up DedicatedHost. Only name is required to be set. */ + sku?: Sku; /** Fault domain of the dedicated host within a dedicated host group. */ platformFaultDomain?: number; /** Specifies whether the dedicated host should be replaced automatically in case of a failure. The value is defaulted to 'true' when not provided. */ autoReplaceOnFailure?: boolean; /** - * A unique id generated and assigned to the dedicated host by the platform.

    Does not change throughout the lifetime of the host. + * A unique id generated and assigned to the dedicated host by the platform. Does not change throughout the lifetime of the host. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly hostId?: string; @@ -5825,7 +5991,7 @@ export interface DedicatedHostUpdate extends UpdateResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly virtualMachines?: SubResourceReadOnly[]; - /** Specifies the software license type that will be applied to the VMs deployed on the dedicated host.

    Possible values are:

    **None**

    **Windows_Server_Hybrid**

    **Windows_Server_Perpetual**

    Default: **None** */ + /** Specifies the software license type that will be applied to the VMs deployed on the dedicated host. Possible values are: **None,** **Windows_Server_Hybrid,** **Windows_Server_Perpetual.** The default value is: **None.** */ licenseType?: DedicatedHostLicenseTypes; /** * The date when the host was first provisioned. @@ -5843,7 +6009,7 @@ export interface DedicatedHostUpdate extends UpdateResource { */ readonly instanceView?: DedicatedHostInstanceView; /** - * Specifies the time at which the Dedicated Host resource was created.

    Minimum api-version: 2021-11-01. + * Specifies the time at which the Dedicated Host resource was created. Minimum api-version: 2021-11-01. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly timeCreated?: Date; @@ -5920,7 +6086,7 @@ export interface CapacityReservationUpdate extends UpdateResource { */ readonly reservationId?: string; /** - * Specifies the value of fault domain count that Capacity Reservation supports for requested VM size.
    NOTE: The fault domain count specified for a resource (like virtual machines scale set) must be less than or equal to this value if it deploys using capacity reservation.

    Minimum api-version: 2022-08-01. + * Specifies the value of fault domain count that Capacity Reservation supports for requested VM size. **Note:** The fault domain count specified for a resource (like virtual machines scale set) must be less than or equal to this value if it deploys using capacity reservation. Minimum api-version: 2022-08-01. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly platformFaultDomainCount?: number; @@ -5945,7 +6111,7 @@ export interface CapacityReservationUpdate extends UpdateResource { */ readonly instanceView?: CapacityReservationInstanceView; /** - * Specifies the time at which the Capacity Reservation resource was created.

    Minimum api-version: 2021-11-01. + * Specifies the time at which the Capacity Reservation resource was created. Minimum api-version: 2021-11-01. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly timeCreated?: Date; @@ -5967,12 +6133,16 @@ export interface VirtualMachineRunCommandUpdate extends UpdateResource { runAsPassword?: string; /** The timeout in seconds to execute the run command. */ timeoutInSeconds?: number; - /** Specifies the Azure storage blob where script output stream will be uploaded. */ + /** Specifies the Azure storage blob where script output stream will be uploaded. Use a SAS URI with read, append, create, write access OR use managed identity to provide the VM access to the blob. Refer outputBlobManagedIdentity parameter. */ outputBlobUri?: string; - /** Specifies the Azure storage blob where script error stream will be uploaded. */ + /** Specifies the Azure storage blob where script error stream will be uploaded. Use a SAS URI with read, append, create, write access OR use managed identity to provide the VM access to the blob. Refer errorBlobManagedIdentity parameter. */ errorBlobUri?: string; + /** User-assigned managed identity that has access to outputBlobUri storage blob. Use an empty object in case of system-assigned identity. Make sure managed identity has been given access to blob's container with 'Storage Blob Data Contributor' role assignment. In case of user-assigned identity, make sure you add it under VM's identity. For more info on managed identity and Run Command, refer https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged */ + outputBlobManagedIdentity?: RunCommandManagedIdentity; + /** User-assigned managed identity that has access to errorBlobUri storage blob. Use an empty object in case of system-assigned identity. Make sure managed identity has been given access to blob's container with 'Storage Blob Data Contributor' role assignment. In case of user-assigned identity, make sure you add it under VM's identity. For more info on managed identity and Run Command, refer https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged */ + errorBlobManagedIdentity?: RunCommandManagedIdentity; /** - * The provisioning state, which only appears in the response. + * The provisioning state, which only appears in the response. If treatFailureAsDeploymentFailure set to true, any failure in the script will fail the deployment and ProvisioningState will be marked as Failed. If treatFailureAsDeploymentFailure set to false, ProvisioningState would only reflect whether the run command was run or not by the extensions platform, it would not indicate whether script failed in case of script failures. See instance view of run command in case of script failures to see executionMessage, output, error: https://aka.ms/runcommandmanaged#get-execution-status-and-results * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: string; @@ -5981,43 +6151,14 @@ export interface VirtualMachineRunCommandUpdate extends UpdateResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly instanceView?: VirtualMachineRunCommandInstanceView; + /** Optional. If set to true, any failure in the script will fail the deployment and ProvisioningState will be marked as Failed. If set to false, ProvisioningState would only reflect whether the run command was run or not by the extensions platform, it would not indicate whether script failed in case of script failures. See instance view of run command in case of script failures to see executionMessage, output, error: https://aka.ms/runcommandmanaged#get-execution-status-and-results */ + treatFailureAsDeploymentFailure?: boolean; } /** Describes a Virtual Machine Scale Set VM Reimage Parameters. */ export interface VirtualMachineScaleSetVMReimageParameters extends VirtualMachineReimageParameters {} -/** Describes a Virtual Machine Extension. */ -export interface VirtualMachineExtension extends ResourceWithOptionalLocation { - /** How the extension handler should be forced to update even if the extension configuration has not changed. */ - forceUpdateTag?: string; - /** The name of the extension handler publisher. */ - publisher?: string; - /** Specifies the type of the extension; an example is "CustomScriptExtension". */ - typePropertiesType?: string; - /** Specifies the version of the script handler. */ - typeHandlerVersion?: string; - /** Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. */ - autoUpgradeMinorVersion?: boolean; - /** Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available. */ - enableAutomaticUpgrade?: boolean; - /** Json formatted public settings for the extension. */ - settings?: any; - /** The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. */ - protectedSettings?: any; - /** - * The provisioning state, which only appears in the response. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: string; - /** The virtual machine extension instance view. */ - instanceView?: VirtualMachineExtensionInstanceView; - /** Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false. */ - suppressFailures?: boolean; - /** The extensions protected settings that are passed by reference, and consumed from key vault */ - protectedSettingsFromKeyVault?: KeyVaultSecretReference; -} - /** The instance view of a dedicated host that includes the name of the dedicated host. It is used for the response to the instance view of a dedicated host group. */ export interface DedicatedHostInstanceViewWithName extends DedicatedHostInstanceView { @@ -6030,7 +6171,7 @@ export interface DedicatedHostInstanceViewWithName /** Describes an Operating System disk. */ export interface ImageOSDisk extends ImageDisk { - /** This property allows you to specify the type of the OS that is included in the disk if creating a VM from a custom image.

    Possible values are:

    **Windows**

    **Linux** */ + /** This property allows you to specify the type of the OS that is included in the disk if creating a VM from a custom image. Possible values are: **Windows,** **Linux.** */ osType: OperatingSystemTypes; /** The OS State. For managed images, use Generalized. */ osState: OperatingSystemStateTypes; @@ -6046,11 +6187,8 @@ export interface ImageDataDisk extends ImageDisk { export interface RestorePoint extends ProxyResource { /** List of disk resource ids that the customer wishes to exclude from the restore point. If no disks are specified, all disks will be included. */ excludeDisks?: ApiEntityReference[]; - /** - * Gets the details of the VM captured at the time of the restore point creation. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly sourceMetadata?: RestorePointSourceMetadata; + /** Gets the details of the VM captured at the time of the restore point creation. */ + sourceMetadata?: RestorePointSourceMetadata; /** * Gets the provisioning state of the restore point. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -6478,6 +6616,11 @@ export interface SharedGalleryImageVersion extends PirSharedGalleryResource { storageProfile?: SharedGalleryImageVersionStorageProfile; } +/** Defines headers for VirtualMachineScaleSets_reapply operation. */ +export interface VirtualMachineScaleSetsReapplyHeaders { + location?: string; +} + /** Known values of {@link RepairAction} that the service accepts. */ export enum KnownRepairAction { /** Replace */ @@ -7015,6 +7158,24 @@ export enum KnownOrchestrationServiceStateAction { */ export type OrchestrationServiceStateAction = string; +/** Known values of {@link HyperVGeneration} that the service accepts. */ +export enum KnownHyperVGeneration { + /** V1 */ + V1 = "V1", + /** V2 */ + V2 = "V2" +} + +/** + * Defines values for HyperVGeneration. \ + * {@link KnownHyperVGeneration} can be used interchangeably with HyperVGeneration, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **V1** \ + * **V2** + */ +export type HyperVGeneration = string; + /** Known values of {@link VirtualMachineSizeTypes} that the service accepts. */ export enum KnownVirtualMachineSizeTypes { /** BasicA0 */ @@ -7639,6 +7800,36 @@ export enum KnownPatchOperationStatus { */ export type PatchOperationStatus = string; +/** Known values of {@link ExpandTypeForListVMs} that the service accepts. */ +export enum KnownExpandTypeForListVMs { + /** InstanceView */ + InstanceView = "instanceView" +} + +/** + * Defines values for ExpandTypeForListVMs. \ + * {@link KnownExpandTypeForListVMs} can be used interchangeably with ExpandTypeForListVMs, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **instanceView** + */ +export type ExpandTypeForListVMs = string; + +/** Known values of {@link ExpandTypesForListVMs} that the service accepts. */ +export enum KnownExpandTypesForListVMs { + /** InstanceView */ + InstanceView = "instanceView" +} + +/** + * Defines values for ExpandTypesForListVMs. \ + * {@link KnownExpandTypesForListVMs} can be used interchangeably with ExpandTypesForListVMs, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **instanceView** + */ +export type ExpandTypesForListVMs = string; + /** Known values of {@link VMGuestPatchRebootBehavior} that the service accepts. */ export enum KnownVMGuestPatchRebootBehavior { /** Unknown */ @@ -7951,6 +8142,27 @@ export enum KnownOperatingSystemType { */ export type OperatingSystemType = string; +/** Known values of {@link RestorePointEncryptionType} that the service accepts. */ +export enum KnownRestorePointEncryptionType { + /** Disk Restore Point is encrypted at rest with Platform managed key. */ + EncryptionAtRestWithPlatformKey = "EncryptionAtRestWithPlatformKey", + /** Disk Restore Point is encrypted at rest with Customer managed key that can be changed and revoked by a customer. */ + EncryptionAtRestWithCustomerKey = "EncryptionAtRestWithCustomerKey", + /** Disk Restore Point is encrypted at rest with 2 layers of encryption. One of the keys is Customer managed and the other key is Platform managed. */ + EncryptionAtRestWithPlatformAndCustomerKeys = "EncryptionAtRestWithPlatformAndCustomerKeys" +} + +/** + * Defines values for RestorePointEncryptionType. \ + * {@link KnownRestorePointEncryptionType} can be used interchangeably with RestorePointEncryptionType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **EncryptionAtRestWithPlatformKey**: Disk Restore Point is encrypted at rest with Platform managed key. \ + * **EncryptionAtRestWithCustomerKey**: Disk Restore Point is encrypted at rest with Customer managed key that can be changed and revoked by a customer. \ + * **EncryptionAtRestWithPlatformAndCustomerKeys**: Disk Restore Point is encrypted at rest with 2 layers of encryption. One of the keys is Customer managed and the other key is Platform managed. + */ +export type RestorePointEncryptionType = string; + /** Known values of {@link ConsistencyModeTypes} that the service accepts. */ export enum KnownConsistencyModeTypes { /** CrashConsistent */ @@ -8089,13 +8301,13 @@ export enum KnownDiskStorageAccountTypes { StandardLRS = "Standard_LRS", /** Premium SSD locally redundant storage. Best for production and performance sensitive workloads. */ PremiumLRS = "Premium_LRS", - /** Standard SSD locally redundant storage. Best for web servers, lightly used enterprise applications and dev/test. */ + /** Standard SSD locally redundant storage. Best for web servers, lightly used enterprise applications and dev\/test. */ StandardSSDLRS = "StandardSSD_LRS", /** Ultra SSD locally redundant storage. Best for IO-intensive workloads such as SAP HANA, top tier databases (for example, SQL, Oracle), and other transaction-heavy workloads. */ UltraSSDLRS = "UltraSSD_LRS", /** Premium SSD zone redundant storage. Best for the production workloads that need storage resiliency against zone failures. */ PremiumZRS = "Premium_ZRS", - /** Standard SSD zone redundant storage. Best for web servers, lightly used enterprise applications and dev/test that need storage resiliency against zone failures. */ + /** Standard SSD zone redundant storage. Best for web servers, lightly used enterprise applications and dev\/test that need storage resiliency against zone failures. */ StandardSSDZRS = "StandardSSD_ZRS", /** Premium SSD v2 locally redundant storage. Best for production and performance-sensitive workloads that consistently require low latency and high IOPS and throughput. */ PremiumV2LRS = "PremiumV2_LRS" @@ -8116,24 +8328,6 @@ export enum KnownDiskStorageAccountTypes { */ export type DiskStorageAccountTypes = string; -/** Known values of {@link HyperVGeneration} that the service accepts. */ -export enum KnownHyperVGeneration { - /** V1 */ - V1 = "V1", - /** V2 */ - V2 = "V2" -} - -/** - * Defines values for HyperVGeneration. \ - * {@link KnownHyperVGeneration} can be used interchangeably with HyperVGeneration, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **V1** \ - * **V2** - */ -export type HyperVGeneration = string; - /** Known values of {@link Architecture} that the service accepts. */ export enum KnownArchitecture { /** X64 */ @@ -8316,9 +8510,9 @@ export type PublicNetworkAccess = string; /** Known values of {@link DataAccessAuthMode} that the service accepts. */ export enum KnownDataAccessAuthMode { - /** When export/upload URL is used, the system checks if the user has an identity in Azure Active Directory and has necessary permissions to export/upload the data. Please refer to aka.ms/DisksAzureADAuth. */ + /** When export\/upload URL is used, the system checks if the user has an identity in Azure Active Directory and has necessary permissions to export\/upload the data. Please refer to aka.ms\/DisksAzureADAuth. */ AzureActiveDirectory = "AzureActiveDirectory", - /** No additional authentication would be performed when accessing export/upload URL. */ + /** No additional authentication would be performed when accessing export\/upload URL. */ None = "None" } @@ -8624,7 +8818,9 @@ export enum KnownStorageAccountType { /** StandardZRS */ StandardZRS = "Standard_ZRS", /** PremiumLRS */ - PremiumLRS = "Premium_LRS" + PremiumLRS = "Premium_LRS", + /** StandardSSDLRS */ + StandardSSDLRS = "StandardSSD_LRS" } /** @@ -8634,7 +8830,8 @@ export enum KnownStorageAccountType { * ### Known values supported by the service * **Standard_LRS** \ * **Standard_ZRS** \ - * **Premium_LRS** + * **Premium_LRS** \ + * **StandardSSD_LRS** */ export type StorageAccountType = string; @@ -8908,14 +9105,14 @@ export type ProtocolTypes = "Http" | "Https"; export type CachingTypes = "None" | "ReadOnly" | "ReadWrite"; /** Defines values for OperatingSystemTypes. */ export type OperatingSystemTypes = "Windows" | "Linux"; +/** Defines values for StatusLevelTypes. */ +export type StatusLevelTypes = "Info" | "Warning" | "Error"; /** Defines values for ResourceIdentityType. */ export type ResourceIdentityType = | "SystemAssigned" | "UserAssigned" | "SystemAssigned, UserAssigned" | "None"; -/** Defines values for StatusLevelTypes. */ -export type StatusLevelTypes = "Info" | "Warning" | "Error"; /** Defines values for VirtualMachineScaleSetSkuScaleType. */ export type VirtualMachineScaleSetSkuScaleType = "Automatic" | "None"; /** Defines values for UpgradeState. */ @@ -9055,6 +9252,8 @@ export interface VirtualMachineScaleSetsDeallocateOptionalParams extends coreClient.OperationOptions { /** A list of virtual machine instance IDs from the VM scale set. */ vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; + /** Optional parameter to hibernate a virtual machine from the VM scale set. (This feature is available for VMSS with Flexible OrchestrationMode only) */ + hibernate?: boolean; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -9142,6 +9341,15 @@ export interface VirtualMachineScaleSetsStartOptionalParams resumeFrom?: string; } +/** Optional parameters. */ +export interface VirtualMachineScaleSetsReapplyOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + /** Optional parameters. */ export interface VirtualMachineScaleSetsRedeployOptionalParams extends coreClient.OperationOptions { @@ -9523,7 +9731,7 @@ export interface VirtualMachineScaleSetVMsRedeployOptionalParams /** Optional parameters. */ export interface VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataOptionalParams extends coreClient.OperationOptions { - /** Expiration duration in minutes for the SAS URIs with a value between 1 to 1440 minutes.

    NOTE: If not specified, SAS URIs will be generated with a default expiration duration of 120 minutes. */ + /** Expiration duration in minutes for the SAS URIs with a value between 1 to 1440 minutes. **Note:** If not specified, SAS URIs will be generated with a default expiration duration of 120 minutes. */ sasUriExpirationTimeInMinutes?: number; } @@ -9715,6 +9923,8 @@ export interface VirtualMachinesListOptionalParams extends coreClient.OperationOptions { /** The system query option to filter VMs returned in the response. Allowed value is 'virtualMachineScaleSet/id' eq /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmssName}' */ filter?: string; + /** The expand expression to apply on operation. 'instanceView' enables fetching run time status of all Virtual Machines, this can only be specified if a valid $filter option is specified */ + expand?: ExpandTypeForListVMs; } /** Contains response data for the list operation. */ @@ -9727,6 +9937,8 @@ export interface VirtualMachinesListAllOptionalParams filter?: string; /** statusOnly=true enables fetching run time status of all Virtual Machines in the subscription. */ statusOnly?: string; + /** The expand expression to apply on operation. 'instanceView' enables fetching run time status of all Virtual Machines, this can only be specified if a valid $filter option is specified */ + expand?: ExpandTypesForListVMs; } /** Contains response data for the listAll operation. */ @@ -9800,7 +10012,7 @@ export interface VirtualMachinesReimageOptionalParams /** Optional parameters. */ export interface VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams extends coreClient.OperationOptions { - /** Expiration duration in minutes for the SAS URIs with a value between 1 to 1440 minutes.

    NOTE: If not specified, SAS URIs will be generated with a default expiration duration of 120 minutes. */ + /** Expiration duration in minutes for the SAS URIs with a value between 1 to 1440 minutes. **Note:** If not specified, SAS URIs will be generated with a default expiration duration of 120 minutes. */ sasUriExpirationTimeInMinutes?: number; } @@ -10226,6 +10438,13 @@ export interface DedicatedHostsRestartOptionalParams resumeFrom?: string; } +/** Optional parameters. */ +export interface DedicatedHostsListAvailableSizesOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAvailableSizes operation. */ +export type DedicatedHostsListAvailableSizesResponse = DedicatedHostSizeListResult; + /** Optional parameters. */ export interface DedicatedHostsListByHostGroupNextOptionalParams extends coreClient.OperationOptions {} diff --git a/sdk/compute/arm-compute/src/models/mappers.ts b/sdk/compute/arm-compute/src/models/mappers.ts index d52741bcda2e..9c23d1e4f938 100644 --- a/sdk/compute/arm-compute/src/models/mappers.ts +++ b/sdk/compute/arm-compute/src/models/mappers.ts @@ -697,6 +697,13 @@ export const VirtualMachineScaleSetVMProfile: coreClient.CompositeMapper = { name: "Composite", className: "ServiceArtifactReference" } + }, + securityPostureReference: { + serializedName: "securityPostureReference", + type: { + name: "Composite", + className: "SecurityPostureReference" + } } } } @@ -914,6 +921,12 @@ export const WindowsVMGuestPatchAutomaticByPlatformSettings: coreClient.Composit type: { name: "String" } + }, + bypassPlatformSafetyChecksOnUserSchedule: { + serializedName: "bypassPlatformSafetyChecksOnUserSchedule", + type: { + name: "Boolean" + } } } } @@ -1083,6 +1096,12 @@ export const LinuxVMGuestPatchAutomaticByPlatformSettings: coreClient.CompositeM type: { name: "String" } + }, + bypassPlatformSafetyChecksOnUserSchedule: { + serializedName: "bypassPlatformSafetyChecksOnUserSchedule", + type: { + name: "Boolean" + } } } } @@ -1488,6 +1507,84 @@ export const ApiEntityReference: coreClient.CompositeMapper = { } }; +export const VirtualMachineScaleSetNetworkConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetNetworkConfiguration", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String" + } + }, + primary: { + serializedName: "properties.primary", + type: { + name: "Boolean" + } + }, + enableAcceleratedNetworking: { + serializedName: "properties.enableAcceleratedNetworking", + type: { + name: "Boolean" + } + }, + disableTcpStateTracking: { + serializedName: "properties.disableTcpStateTracking", + type: { + name: "Boolean" + } + }, + enableFpga: { + serializedName: "properties.enableFpga", + type: { + name: "Boolean" + } + }, + networkSecurityGroup: { + serializedName: "properties.networkSecurityGroup", + type: { + name: "Composite", + className: "SubResource" + } + }, + dnsSettings: { + serializedName: "properties.dnsSettings", + type: { + name: "Composite", + className: "VirtualMachineScaleSetNetworkConfigurationDnsSettings" + } + }, + ipConfigurations: { + serializedName: "properties.ipConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetIPConfiguration" + } + } + } + }, + enableIPForwarding: { + serializedName: "properties.enableIPForwarding", + type: { + name: "Boolean" + } + }, + deleteOption: { + serializedName: "properties.deleteOption", + type: { + name: "String" + } + } + } + } +}; + export const VirtualMachineScaleSetNetworkConfigurationDnsSettings: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1508,6 +1605,96 @@ export const VirtualMachineScaleSetNetworkConfigurationDnsSettings: coreClient.C } }; +export const VirtualMachineScaleSetIPConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetIPConfiguration", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String" + } + }, + subnet: { + serializedName: "properties.subnet", + type: { + name: "Composite", + className: "ApiEntityReference" + } + }, + primary: { + serializedName: "properties.primary", + type: { + name: "Boolean" + } + }, + publicIPAddressConfiguration: { + serializedName: "properties.publicIPAddressConfiguration", + type: { + name: "Composite", + className: "VirtualMachineScaleSetPublicIPAddressConfiguration" + } + }, + privateIPAddressVersion: { + serializedName: "properties.privateIPAddressVersion", + type: { + name: "String" + } + }, + applicationGatewayBackendAddressPools: { + serializedName: "properties.applicationGatewayBackendAddressPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + }, + applicationSecurityGroups: { + serializedName: "properties.applicationSecurityGroups", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + }, + loadBalancerBackendAddressPools: { + serializedName: "properties.loadBalancerBackendAddressPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + }, + loadBalancerInboundNatPools: { + serializedName: "properties.loadBalancerInboundNatPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + } + } + } +}; + export const VirtualMachineScaleSetPublicIPAddressConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", @@ -2001,68 +2188,229 @@ export const ServiceArtifactReference: coreClient.CompositeMapper = { } }; -export const AdditionalCapabilities: coreClient.CompositeMapper = { +export const SecurityPostureReference: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AdditionalCapabilities", + className: "SecurityPostureReference", modelProperties: { - ultraSSDEnabled: { - serializedName: "ultraSSDEnabled", + id: { + serializedName: "id", type: { - name: "Boolean" + name: "String" } }, - hibernationEnabled: { - serializedName: "hibernationEnabled", + excludeExtensions: { + serializedName: "excludeExtensions", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineExtension" + } + } } } } } }; -export const ScaleInPolicy: coreClient.CompositeMapper = { +export const VirtualMachineExtensionInstanceView: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScaleInPolicy", + className: "VirtualMachineExtensionInstanceView", modelProperties: { - rules: { - serializedName: "rules", + name: { + serializedName: "name", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "String" + } + }, + typeHandlerVersion: { + serializedName: "typeHandlerVersion", + type: { + name: "String" + } + }, + substatuses: { + serializedName: "substatuses", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "InstanceViewStatus" } } } }, - forceDeletion: { - serializedName: "forceDeletion", + statuses: { + serializedName: "statuses", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InstanceViewStatus" + } + } } } } } }; -export const SpotRestorePolicy: coreClient.CompositeMapper = { +export const InstanceViewStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SpotRestorePolicy", + className: "InstanceViewStatus", modelProperties: { - enabled: { - serializedName: "enabled", + code: { + serializedName: "code", type: { - name: "Boolean" + name: "String" } }, - restoreTimeout: { - serializedName: "restoreTimeout", + level: { + serializedName: "level", type: { - name: "String" + name: "Enum", + allowedValues: ["Info", "Warning", "Error"] + } + }, + displayStatus: { + serializedName: "displayStatus", + type: { + name: "String" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + }, + time: { + serializedName: "time", + type: { + name: "DateTime" + } + } + } + } +}; + +export const ResourceWithOptionalLocation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceWithOptionalLocation", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + }, + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String" + } + }, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const AdditionalCapabilities: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AdditionalCapabilities", + modelProperties: { + ultraSSDEnabled: { + serializedName: "ultraSSDEnabled", + type: { + name: "Boolean" + } + }, + hibernationEnabled: { + serializedName: "hibernationEnabled", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ScaleInPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScaleInPolicy", + modelProperties: { + rules: { + serializedName: "rules", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + forceDeletion: { + serializedName: "forceDeletion", + type: { + name: "Boolean" + } + } + } + } +}; + +export const SpotRestorePolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SpotRestorePolicy", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" + } + }, + restoreTimeout: { + serializedName: "restoreTimeout", + type: { + name: "String" } } } @@ -2491,10 +2839,10 @@ export const VirtualMachineScaleSetUpdateNetworkProfile: coreClient.CompositeMap } }; -export const VirtualMachineScaleSetUpdatePublicIPAddressConfiguration: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetUpdateNetworkConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetUpdatePublicIPAddressConfiguration", + className: "VirtualMachineScaleSetUpdateNetworkConfiguration", modelProperties: { name: { serializedName: "name", @@ -2502,112 +2850,278 @@ export const VirtualMachineScaleSetUpdatePublicIPAddressConfiguration: coreClien name: "String" } }, - idleTimeoutInMinutes: { - serializedName: "properties.idleTimeoutInMinutes", + primary: { + serializedName: "properties.primary", type: { - name: "Number" + name: "Boolean" } }, - dnsSettings: { - serializedName: "properties.dnsSettings", + enableAcceleratedNetworking: { + serializedName: "properties.enableAcceleratedNetworking", type: { - name: "Composite", - className: - "VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings" + name: "Boolean" } }, - publicIPPrefix: { - serializedName: "properties.publicIPPrefix", + disableTcpStateTracking: { + serializedName: "properties.disableTcpStateTracking", type: { - name: "Composite", - className: "SubResource" + name: "Boolean" } }, - deleteOption: { - serializedName: "properties.deleteOption", + enableFpga: { + serializedName: "properties.enableFpga", type: { - name: "String" + name: "Boolean" } - } - } - } -}; - -export const UpdateResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UpdateResource", - modelProperties: { - tags: { - serializedName: "tags", + }, + networkSecurityGroup: { + serializedName: "properties.networkSecurityGroup", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Composite", + className: "SubResource" } - } - } - } -}; - -export const VirtualMachineScaleSetVMInstanceIDs: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetVMInstanceIDs", - modelProperties: { - instanceIds: { - serializedName: "instanceIds", + }, + dnsSettings: { + serializedName: "properties.dnsSettings", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "VirtualMachineScaleSetNetworkConfigurationDnsSettings" } - } - } - } -}; - -export const VirtualMachineScaleSetVMInstanceRequiredIDs: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetVMInstanceRequiredIDs", - modelProperties: { - instanceIds: { - serializedName: "instanceIds", - required: true, + }, + ipConfigurations: { + serializedName: "properties.ipConfigurations", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "VirtualMachineScaleSetUpdateIPConfiguration" } } } + }, + enableIPForwarding: { + serializedName: "properties.enableIPForwarding", + type: { + name: "Boolean" + } + }, + deleteOption: { + serializedName: "properties.deleteOption", + type: { + name: "String" + } } } } }; -export const VirtualMachineScaleSetInstanceView: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetUpdateIPConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetInstanceView", + className: "VirtualMachineScaleSetUpdateIPConfiguration", modelProperties: { - virtualMachine: { - serializedName: "virtualMachine", + name: { + serializedName: "name", + type: { + name: "String" + } + }, + subnet: { + serializedName: "properties.subnet", type: { name: "Composite", - className: "VirtualMachineScaleSetInstanceViewStatusesSummary" + className: "ApiEntityReference" } }, - extensions: { - serializedName: "extensions", - readOnly: true, + primary: { + serializedName: "properties.primary", type: { - name: "Sequence", - element: { + name: "Boolean" + } + }, + publicIPAddressConfiguration: { + serializedName: "properties.publicIPAddressConfiguration", + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdatePublicIPAddressConfiguration" + } + }, + privateIPAddressVersion: { + serializedName: "properties.privateIPAddressVersion", + type: { + name: "String" + } + }, + applicationGatewayBackendAddressPools: { + serializedName: "properties.applicationGatewayBackendAddressPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + }, + applicationSecurityGroups: { + serializedName: "properties.applicationSecurityGroups", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + }, + loadBalancerBackendAddressPools: { + serializedName: "properties.loadBalancerBackendAddressPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + }, + loadBalancerInboundNatPools: { + serializedName: "properties.loadBalancerInboundNatPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + } + } + } +}; + +export const VirtualMachineScaleSetUpdatePublicIPAddressConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdatePublicIPAddressConfiguration", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + idleTimeoutInMinutes: { + serializedName: "properties.idleTimeoutInMinutes", + type: { + name: "Number" + } + }, + dnsSettings: { + serializedName: "properties.dnsSettings", + type: { + name: "Composite", + className: + "VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings" + } + }, + publicIPPrefix: { + serializedName: "properties.publicIPPrefix", + type: { + name: "Composite", + className: "SubResource" + } + }, + deleteOption: { + serializedName: "properties.deleteOption", + type: { + name: "String" + } + } + } + } +}; + +export const UpdateResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UpdateResource", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const VirtualMachineScaleSetVMInstanceIDs: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMInstanceIDs", + modelProperties: { + instanceIds: { + serializedName: "instanceIds", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const VirtualMachineScaleSetVMInstanceRequiredIDs: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMInstanceRequiredIDs", + modelProperties: { + instanceIds: { + serializedName: "instanceIds", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const VirtualMachineScaleSetInstanceView: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetInstanceView", + modelProperties: { + virtualMachine: { + serializedName: "virtualMachine", + type: { + name: "Composite", + className: "VirtualMachineScaleSetInstanceViewStatusesSummary" + } + }, + extensions: { + serializedName: "extensions", + readOnly: true, + type: { + name: "Sequence", + element: { type: { name: "Composite", className: "VirtualMachineScaleSetVMExtensionsSummary" @@ -2718,46 +3232,6 @@ export const VirtualMachineScaleSetVMExtensionsSummary: coreClient.CompositeMapp } }; -export const InstanceViewStatus: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "InstanceViewStatus", - modelProperties: { - code: { - serializedName: "code", - type: { - name: "String" - } - }, - level: { - serializedName: "level", - type: { - name: "Enum", - allowedValues: ["Info", "Warning", "Error"] - } - }, - displayStatus: { - serializedName: "displayStatus", - type: { - name: "String" - } - }, - message: { - serializedName: "message", - type: { - name: "String" - } - }, - time: { - serializedName: "time", - type: { - name: "DateTime" - } - } - } - } -}; - export const OrchestrationServiceSummary: coreClient.CompositeMapper = { type: { name: "Composite", @@ -3290,70 +3764,19 @@ export const OrchestrationServiceStateInput: coreClient.CompositeMapper = { } }; -export const VirtualMachineExtensionInstanceView: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetVMExtensionsListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineExtensionInstanceView", + className: "VirtualMachineScaleSetVMExtensionsListResult", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - type: { - serializedName: "type", - type: { - name: "String" - } - }, - typeHandlerVersion: { - serializedName: "typeHandlerVersion", - type: { - name: "String" - } - }, - substatuses: { - serializedName: "substatuses", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - }, - statuses: { - serializedName: "statuses", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } -}; - -export const VirtualMachineScaleSetVMExtensionsListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetVMExtensionsListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetVMExtension" + className: "VirtualMachineScaleSetVMExtension" } } } @@ -3461,6 +3884,30 @@ export const VirtualMachineScaleSetVMInstanceView: coreClient.CompositeMapper = type: { name: "String" } + }, + computerName: { + serializedName: "computerName", + type: { + name: "String" + } + }, + osName: { + serializedName: "osName", + type: { + name: "String" + } + }, + osVersion: { + serializedName: "osVersion", + type: { + name: "String" + } + }, + hyperVGeneration: { + serializedName: "hyperVGeneration", + type: { + name: "String" + } } } } @@ -4425,49 +4872,6 @@ export const VirtualMachineScaleSetVMProtectionPolicy: coreClient.CompositeMappe } }; -export const ResourceWithOptionalLocation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceWithOptionalLocation", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - }, - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } -}; - export const VirtualMachineIdentity: coreClient.CompositeMapper = { type: { name: "Composite", @@ -5845,6 +6249,26 @@ export const DedicatedHostListResult: coreClient.CompositeMapper = { } }; +export const DedicatedHostSizeListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DedicatedHostSizeListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + export const SshPublicKeysGroupListResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -6077,12 +6501,14 @@ export const RestorePointSourceMetadata: coreClient.CompositeMapper = { }, licenseType: { serializedName: "licenseType", + readOnly: true, type: { name: "String" } }, vmId: { serializedName: "vmId", + readOnly: true, type: { name: "String" } @@ -6096,12 +6522,21 @@ export const RestorePointSourceMetadata: coreClient.CompositeMapper = { }, location: { serializedName: "location", + readOnly: true, type: { name: "String" } }, userData: { serializedName: "userData", + readOnly: true, + type: { + name: "String" + } + }, + hyperVGeneration: { + serializedName: "hyperVGeneration", + readOnly: true, type: { name: "String" } @@ -6145,6 +6580,7 @@ export const RestorePointSourceVmosDisk: coreClient.CompositeMapper = { modelProperties: { osType: { serializedName: "osType", + readOnly: true, type: { name: "String" } @@ -6158,12 +6594,14 @@ export const RestorePointSourceVmosDisk: coreClient.CompositeMapper = { }, name: { serializedName: "name", + readOnly: true, type: { name: "String" } }, caching: { serializedName: "caching", + readOnly: true, type: { name: "Enum", allowedValues: ["None", "ReadOnly", "ReadWrite"] @@ -6171,6 +6609,7 @@ export const RestorePointSourceVmosDisk: coreClient.CompositeMapper = { }, diskSizeGB: { serializedName: "diskSizeGB", + readOnly: true, type: { name: "Number" } @@ -6186,7 +6625,36 @@ export const RestorePointSourceVmosDisk: coreClient.CompositeMapper = { serializedName: "diskRestorePoint", type: { name: "Composite", - className: "ApiEntityReference" + className: "DiskRestorePointAttributes" + } + }, + writeAcceleratorEnabled: { + serializedName: "writeAcceleratorEnabled", + readOnly: true, + type: { + name: "Boolean" + } + } + } + } +}; + +export const RestorePointEncryption: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RestorePointEncryption", + modelProperties: { + diskEncryptionSet: { + serializedName: "diskEncryptionSet", + type: { + name: "Composite", + className: "DiskEncryptionSetParameters" + } + }, + type: { + serializedName: "type", + type: { + name: "String" } } } @@ -6200,18 +6668,21 @@ export const RestorePointSourceVMDataDisk: coreClient.CompositeMapper = { modelProperties: { lun: { serializedName: "lun", + readOnly: true, type: { name: "Number" } }, name: { serializedName: "name", + readOnly: true, type: { name: "String" } }, caching: { serializedName: "caching", + readOnly: true, type: { name: "Enum", allowedValues: ["None", "ReadOnly", "ReadWrite"] @@ -6219,6 +6690,7 @@ export const RestorePointSourceVMDataDisk: coreClient.CompositeMapper = { }, diskSizeGB: { serializedName: "diskSizeGB", + readOnly: true, type: { name: "Number" } @@ -6234,7 +6706,14 @@ export const RestorePointSourceVMDataDisk: coreClient.CompositeMapper = { serializedName: "diskRestorePoint", type: { name: "Composite", - className: "ApiEntityReference" + className: "DiskRestorePointAttributes" + } + }, + writeAcceleratorEnabled: { + serializedName: "writeAcceleratorEnabled", + readOnly: true, + type: { + name: "Boolean" } } } @@ -6816,6 +7295,34 @@ export const VirtualMachineRunCommandScriptSource: coreClient.CompositeMapper = type: { name: "String" } + }, + scriptUriManagedIdentity: { + serializedName: "scriptUriManagedIdentity", + type: { + name: "Composite", + className: "RunCommandManagedIdentity" + } + } + } + } +}; + +export const RunCommandManagedIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RunCommandManagedIdentity", + modelProperties: { + clientId: { + serializedName: "clientId", + type: { + name: "String" + } + }, + objectId: { + serializedName: "objectId", + type: { + name: "String" + } } } } @@ -11474,89 +11981,93 @@ export const DiskEncryptionSetParameters: coreClient.CompositeMapper = { } }; -export const VirtualMachineScaleSetIPConfiguration: coreClient.CompositeMapper = { +export const ManagedDiskParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetIPConfiguration", + className: "ManagedDiskParameters", modelProperties: { ...SubResource.type.modelProperties, - name: { - serializedName: "name", - required: true, + storageAccountType: { + serializedName: "storageAccountType", type: { name: "String" } }, - subnet: { - serializedName: "properties.subnet", + diskEncryptionSet: { + serializedName: "diskEncryptionSet", type: { name: "Composite", - className: "ApiEntityReference" + className: "DiskEncryptionSetParameters" } }, + securityProfile: { + serializedName: "securityProfile", + type: { + name: "Composite", + className: "VMDiskSecurityProfile" + } + } + } + } +}; + +export const NetworkInterfaceReference: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkInterfaceReference", + modelProperties: { + ...SubResource.type.modelProperties, primary: { serializedName: "properties.primary", type: { name: "Boolean" } }, - publicIPAddressConfiguration: { - serializedName: "properties.publicIPAddressConfiguration", + deleteOption: { + serializedName: "properties.deleteOption", type: { - name: "Composite", - className: "VirtualMachineScaleSetPublicIPAddressConfiguration" + name: "String" } - }, - privateIPAddressVersion: { - serializedName: "properties.privateIPAddressVersion", + } + } + } +}; + +export const VirtualMachineCaptureResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineCaptureResult", + modelProperties: { + ...SubResource.type.modelProperties, + schema: { + serializedName: "$schema", + readOnly: true, type: { name: "String" } }, - applicationGatewayBackendAddressPools: { - serializedName: "properties.applicationGatewayBackendAddressPools", + contentVersion: { + serializedName: "contentVersion", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } - } - }, - applicationSecurityGroups: { - serializedName: "properties.applicationSecurityGroups", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } + name: "String" } }, - loadBalancerBackendAddressPools: { - serializedName: "properties.loadBalancerBackendAddressPools", + parameters: { + serializedName: "parameters", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } + name: "any" } }, - loadBalancerInboundNatPools: { - serializedName: "properties.loadBalancerInboundNatPools", + resources: { + serializedName: "resources", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "SubResource" + name: "any" } } } @@ -11565,10 +12076,10 @@ export const VirtualMachineScaleSetIPConfiguration: coreClient.CompositeMapper = } }; -export const VirtualMachineScaleSetNetworkConfiguration: coreClient.CompositeMapper = { +export const VirtualMachineImageResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetNetworkConfiguration", + className: "VirtualMachineImageResource", modelProperties: { ...SubResource.type.modelProperties, name: { @@ -11578,398 +12089,159 @@ export const VirtualMachineScaleSetNetworkConfiguration: coreClient.CompositeMap name: "String" } }, - primary: { - serializedName: "properties.primary", - type: { - name: "Boolean" - } - }, - enableAcceleratedNetworking: { - serializedName: "properties.enableAcceleratedNetworking", - type: { - name: "Boolean" - } - }, - disableTcpStateTracking: { - serializedName: "properties.disableTcpStateTracking", - type: { - name: "Boolean" - } - }, - enableFpga: { - serializedName: "properties.enableFpga", + location: { + serializedName: "location", + required: true, type: { - name: "Boolean" + name: "String" } }, - networkSecurityGroup: { - serializedName: "properties.networkSecurityGroup", + tags: { + serializedName: "tags", type: { - name: "Composite", - className: "SubResource" + name: "Dictionary", + value: { type: { name: "String" } } } }, - dnsSettings: { - serializedName: "properties.dnsSettings", + extendedLocation: { + serializedName: "extendedLocation", type: { name: "Composite", - className: "VirtualMachineScaleSetNetworkConfigurationDnsSettings" - } - }, - ipConfigurations: { - serializedName: "properties.ipConfigurations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetIPConfiguration" - } - } - } - }, - enableIPForwarding: { - serializedName: "properties.enableIPForwarding", - type: { - name: "Boolean" - } - }, - deleteOption: { - serializedName: "properties.deleteOption", - type: { - name: "String" + className: "ExtendedLocation" } } } } }; -export const VirtualMachineScaleSetUpdateIPConfiguration: coreClient.CompositeMapper = { +export const SubResourceWithColocationStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetUpdateIPConfiguration", + className: "SubResourceWithColocationStatus", modelProperties: { ...SubResource.type.modelProperties, - name: { - serializedName: "name", - type: { - name: "String" - } - }, - subnet: { - serializedName: "properties.subnet", - type: { - name: "Composite", - className: "ApiEntityReference" - } - }, - primary: { - serializedName: "properties.primary", - type: { - name: "Boolean" - } - }, - publicIPAddressConfiguration: { - serializedName: "properties.publicIPAddressConfiguration", + colocationStatus: { + serializedName: "colocationStatus", type: { name: "Composite", - className: "VirtualMachineScaleSetUpdatePublicIPAddressConfiguration" - } - }, - privateIPAddressVersion: { - serializedName: "properties.privateIPAddressVersion", - type: { - name: "String" - } - }, - applicationGatewayBackendAddressPools: { - serializedName: "properties.applicationGatewayBackendAddressPools", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } - } - }, - applicationSecurityGroups: { - serializedName: "properties.applicationSecurityGroups", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } - } - }, - loadBalancerBackendAddressPools: { - serializedName: "properties.loadBalancerBackendAddressPools", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } - } - }, - loadBalancerInboundNatPools: { - serializedName: "properties.loadBalancerInboundNatPools", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } + className: "InstanceViewStatus" } } } } }; -export const VirtualMachineScaleSetUpdateNetworkConfiguration: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetExtension: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetUpdateNetworkConfiguration", + className: "VirtualMachineScaleSetExtension", modelProperties: { - ...SubResource.type.modelProperties, + ...SubResourceReadOnly.type.modelProperties, name: { serializedName: "name", type: { name: "String" } }, - primary: { - serializedName: "properties.primary", - type: { - name: "Boolean" - } - }, - enableAcceleratedNetworking: { - serializedName: "properties.enableAcceleratedNetworking", - type: { - name: "Boolean" - } - }, - disableTcpStateTracking: { - serializedName: "properties.disableTcpStateTracking", - type: { - name: "Boolean" - } - }, - enableFpga: { - serializedName: "properties.enableFpga", - type: { - name: "Boolean" - } - }, - networkSecurityGroup: { - serializedName: "properties.networkSecurityGroup", - type: { - name: "Composite", - className: "SubResource" - } - }, - dnsSettings: { - serializedName: "properties.dnsSettings", + type: { + serializedName: "type", + readOnly: true, type: { - name: "Composite", - className: "VirtualMachineScaleSetNetworkConfigurationDnsSettings" + name: "String" } }, - ipConfigurations: { - serializedName: "properties.ipConfigurations", + forceUpdateTag: { + serializedName: "properties.forceUpdateTag", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateIPConfiguration" - } - } + name: "String" } }, - enableIPForwarding: { - serializedName: "properties.enableIPForwarding", + publisher: { + serializedName: "properties.publisher", type: { - name: "Boolean" + name: "String" } }, - deleteOption: { - serializedName: "properties.deleteOption", + typePropertiesType: { + serializedName: "properties.type", type: { name: "String" } - } - } - } -}; - -export const ManagedDiskParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedDiskParameters", - modelProperties: { - ...SubResource.type.modelProperties, - storageAccountType: { - serializedName: "storageAccountType", + }, + typeHandlerVersion: { + serializedName: "properties.typeHandlerVersion", type: { name: "String" } }, - diskEncryptionSet: { - serializedName: "diskEncryptionSet", + autoUpgradeMinorVersion: { + serializedName: "properties.autoUpgradeMinorVersion", type: { - name: "Composite", - className: "DiskEncryptionSetParameters" + name: "Boolean" } }, - securityProfile: { - serializedName: "securityProfile", - type: { - name: "Composite", - className: "VMDiskSecurityProfile" - } - } - } - } -}; - -export const NetworkInterfaceReference: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NetworkInterfaceReference", - modelProperties: { - ...SubResource.type.modelProperties, - primary: { - serializedName: "properties.primary", + enableAutomaticUpgrade: { + serializedName: "properties.enableAutomaticUpgrade", type: { name: "Boolean" } }, - deleteOption: { - serializedName: "properties.deleteOption", - type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineCaptureResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineCaptureResult", - modelProperties: { - ...SubResource.type.modelProperties, - schema: { - serializedName: "$schema", - readOnly: true, + settings: { + serializedName: "properties.settings", type: { - name: "String" + name: "any" } }, - contentVersion: { - serializedName: "contentVersion", - readOnly: true, + protectedSettings: { + serializedName: "properties.protectedSettings", type: { - name: "String" + name: "any" } }, - parameters: { - serializedName: "parameters", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { - name: "any" + name: "String" } }, - resources: { - serializedName: "resources", - readOnly: true, + provisionAfterExtensions: { + serializedName: "properties.provisionAfterExtensions", type: { name: "Sequence", element: { type: { - name: "any" + name: "String" } } } - } - } - } -}; - -export const VirtualMachineImageResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineImageResource", - modelProperties: { - ...SubResource.type.modelProperties, - name: { - serializedName: "name", - required: true, - type: { - name: "String" - } }, - location: { - serializedName: "location", - required: true, - type: { - name: "String" - } - }, - tags: { - serializedName: "tags", + suppressFailures: { + serializedName: "properties.suppressFailures", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Boolean" } }, - extendedLocation: { - serializedName: "extendedLocation", - type: { - name: "Composite", - className: "ExtendedLocation" - } - } - } - } -}; - -export const SubResourceWithColocationStatus: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SubResourceWithColocationStatus", - modelProperties: { - ...SubResource.type.modelProperties, - colocationStatus: { - serializedName: "colocationStatus", + protectedSettingsFromKeyVault: { + serializedName: "properties.protectedSettingsFromKeyVault", type: { name: "Composite", - className: "InstanceViewStatus" + className: "KeyVaultSecretReference" } } } } }; -export const VirtualMachineScaleSetExtension: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetExtensionUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetExtension", + className: "VirtualMachineScaleSetExtensionUpdate", modelProperties: { ...SubResourceReadOnly.type.modelProperties, name: { serializedName: "name", + readOnly: true, type: { name: "String" } @@ -12064,10 +12336,10 @@ export const VirtualMachineScaleSetExtension: coreClient.CompositeMapper = { } }; -export const VirtualMachineScaleSetExtensionUpdate: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetVMExtension: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetExtensionUpdate", + className: "VirtualMachineScaleSetVMExtension", modelProperties: { ...SubResourceReadOnly.type.modelProperties, name: { @@ -12084,6 +12356,12 @@ export const VirtualMachineScaleSetExtensionUpdate: coreClient.CompositeMapper = name: "String" } }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, forceUpdateTag: { serializedName: "properties.forceUpdateTag", type: { @@ -12139,15 +12417,11 @@ export const VirtualMachineScaleSetExtensionUpdate: coreClient.CompositeMapper = name: "String" } }, - provisionAfterExtensions: { - serializedName: "properties.provisionAfterExtensions", + instanceView: { + serializedName: "properties.instanceView", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "VirtualMachineExtensionInstanceView" } }, suppressFailures: { @@ -12162,15 +12436,26 @@ export const VirtualMachineScaleSetExtensionUpdate: coreClient.CompositeMapper = name: "Composite", className: "KeyVaultSecretReference" } + }, + provisionAfterExtensions: { + serializedName: "properties.provisionAfterExtensions", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } } } } }; -export const VirtualMachineScaleSetVMExtension: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetVMExtensionUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetVMExtension", + className: "VirtualMachineScaleSetVMExtensionUpdate", modelProperties: { ...SubResourceReadOnly.type.modelProperties, name: { @@ -12235,20 +12520,6 @@ export const VirtualMachineScaleSetVMExtension: coreClient.CompositeMapper = { name: "any" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - instanceView: { - serializedName: "properties.instanceView", - type: { - name: "Composite", - className: "VirtualMachineExtensionInstanceView" - } - }, suppressFailures: { serializedName: "properties.suppressFailures", type: { @@ -12266,26 +12537,36 @@ export const VirtualMachineScaleSetVMExtension: coreClient.CompositeMapper = { } }; -export const VirtualMachineScaleSetVMExtensionUpdate: coreClient.CompositeMapper = { +export const DiskRestorePointAttributes: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetVMExtensionUpdate", + className: "DiskRestorePointAttributes", modelProperties: { ...SubResourceReadOnly.type.modelProperties, - name: { - serializedName: "name", - readOnly: true, + encryption: { + serializedName: "encryption", type: { - name: "String" + name: "Composite", + className: "RestorePointEncryption" } }, - type: { - serializedName: "type", - readOnly: true, + sourceDiskRestorePoint: { + serializedName: "sourceDiskRestorePoint", type: { - name: "String" + name: "Composite", + className: "ApiEntityReference" } - }, + } + } + } +}; + +export const VirtualMachineExtension: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineExtension", + modelProperties: { + ...ResourceWithOptionalLocation.type.modelProperties, forceUpdateTag: { serializedName: "properties.forceUpdateTag", type: { @@ -12334,6 +12615,20 @@ export const VirtualMachineScaleSetVMExtensionUpdate: coreClient.CompositeMapper name: "any" } }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + instanceView: { + serializedName: "properties.instanceView", + type: { + name: "Composite", + className: "VirtualMachineExtensionInstanceView" + } + }, suppressFailures: { serializedName: "properties.suppressFailures", type: { @@ -12346,6 +12641,17 @@ export const VirtualMachineScaleSetVMExtensionUpdate: coreClient.CompositeMapper name: "Composite", className: "KeyVaultSecretReference" } + }, + provisionAfterExtensions: { + serializedName: "properties.provisionAfterExtensions", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } } } } @@ -13625,6 +13931,20 @@ export const VirtualMachineRunCommand: coreClient.CompositeMapper = { name: "String" } }, + outputBlobManagedIdentity: { + serializedName: "properties.outputBlobManagedIdentity", + type: { + name: "Composite", + className: "RunCommandManagedIdentity" + } + }, + errorBlobManagedIdentity: { + serializedName: "properties.errorBlobManagedIdentity", + type: { + name: "Composite", + className: "RunCommandManagedIdentity" + } + }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, @@ -13638,6 +13958,13 @@ export const VirtualMachineRunCommand: coreClient.CompositeMapper = { name: "Composite", className: "VirtualMachineRunCommandInstanceView" } + }, + treatFailureAsDeploymentFailure: { + defaultValue: false, + serializedName: "properties.treatFailureAsDeploymentFailure", + type: { + name: "Boolean" + } } } } @@ -14599,6 +14926,20 @@ export const VirtualMachineScaleSetUpdate: coreClient.CompositeMapper = { name: "Composite", className: "SubResource" } + }, + priorityMixPolicy: { + serializedName: "properties.priorityMixPolicy", + type: { + name: "Composite", + className: "PriorityMixPolicy" + } + }, + spotRestorePolicy: { + serializedName: "properties.spotRestorePolicy", + type: { + name: "Composite", + className: "SpotRestorePolicy" + } } } } @@ -15026,6 +15367,13 @@ export const DedicatedHostUpdate: coreClient.CompositeMapper = { className: "DedicatedHostUpdate", modelProperties: { ...UpdateResource.type.modelProperties, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, platformFaultDomain: { constraints: { InclusiveMinimum: 0 @@ -15390,86 +15738,18 @@ export const VirtualMachineRunCommandUpdate: coreClient.CompositeMapper = { name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - instanceView: { - serializedName: "properties.instanceView", + outputBlobManagedIdentity: { + serializedName: "properties.outputBlobManagedIdentity", type: { name: "Composite", - className: "VirtualMachineRunCommandInstanceView" - } - } - } - } -}; - -export const VirtualMachineScaleSetVMReimageParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetVMReimageParameters", - modelProperties: { - ...VirtualMachineReimageParameters.type.modelProperties - } - } -}; - -export const VirtualMachineExtension: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineExtension", - modelProperties: { - ...ResourceWithOptionalLocation.type.modelProperties, - forceUpdateTag: { - serializedName: "properties.forceUpdateTag", - type: { - name: "String" - } - }, - publisher: { - serializedName: "properties.publisher", - type: { - name: "String" - } - }, - typePropertiesType: { - serializedName: "properties.type", - type: { - name: "String" + className: "RunCommandManagedIdentity" } }, - typeHandlerVersion: { - serializedName: "properties.typeHandlerVersion", - type: { - name: "String" - } - }, - autoUpgradeMinorVersion: { - serializedName: "properties.autoUpgradeMinorVersion", - type: { - name: "Boolean" - } - }, - enableAutomaticUpgrade: { - serializedName: "properties.enableAutomaticUpgrade", - type: { - name: "Boolean" - } - }, - settings: { - serializedName: "properties.settings", - type: { - name: "any" - } - }, - protectedSettings: { - serializedName: "properties.protectedSettings", + errorBlobManagedIdentity: { + serializedName: "properties.errorBlobManagedIdentity", type: { - name: "any" + name: "Composite", + className: "RunCommandManagedIdentity" } }, provisioningState: { @@ -15483,26 +15763,30 @@ export const VirtualMachineExtension: coreClient.CompositeMapper = { serializedName: "properties.instanceView", type: { name: "Composite", - className: "VirtualMachineExtensionInstanceView" + className: "VirtualMachineRunCommandInstanceView" } }, - suppressFailures: { - serializedName: "properties.suppressFailures", + treatFailureAsDeploymentFailure: { + defaultValue: false, + serializedName: "properties.treatFailureAsDeploymentFailure", type: { name: "Boolean" } - }, - protectedSettingsFromKeyVault: { - serializedName: "properties.protectedSettingsFromKeyVault", - type: { - name: "Composite", - className: "KeyVaultSecretReference" - } } } } }; +export const VirtualMachineScaleSetVMReimageParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMReimageParameters", + modelProperties: { + ...VirtualMachineReimageParameters.type.modelProperties + } + } +}; + export const DedicatedHostInstanceViewWithName: coreClient.CompositeMapper = { type: { name: "Composite", @@ -16761,3 +17045,18 @@ export const SharedGalleryImageVersion: coreClient.CompositeMapper = { } } }; + +export const VirtualMachineScaleSetsReapplyHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetsReapplyHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; diff --git a/sdk/compute/arm-compute/src/models/parameters.ts b/sdk/compute/arm-compute/src/models/parameters.ts index 39a727868c15..cd45c7e60b2a 100644 --- a/sdk/compute/arm-compute/src/models/parameters.ts +++ b/sdk/compute/arm-compute/src/models/parameters.ts @@ -110,7 +110,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2022-11-01", + defaultValue: "2023-03-01", isConstant: true, serializedName: "api-version", type: { @@ -225,6 +225,16 @@ export const vmInstanceIDs: OperationParameter = { mapper: VirtualMachineScaleSetVMInstanceIDsMapper }; +export const hibernate: OperationQueryParameter = { + parameterPath: ["options", "hibernate"], + mapper: { + serializedName: "hibernate", + type: { + name: "Boolean" + } + } +}; + export const vmInstanceIDs1: OperationParameter = { parameterPath: "vmInstanceIDs", mapper: VirtualMachineScaleSetVMInstanceRequiredIDsMapper @@ -465,12 +475,12 @@ export const parameters8: OperationParameter = { mapper: VirtualMachineUpdateMapper }; -export const hibernate: OperationQueryParameter = { - parameterPath: ["options", "hibernate"], +export const expand3: OperationQueryParameter = { + parameterPath: ["options", "expand"], mapper: { - serializedName: "hibernate", + serializedName: "$expand", type: { - name: "Boolean" + name: "String" } } }; @@ -485,6 +495,16 @@ export const statusOnly: OperationQueryParameter = { } }; +export const expand4: OperationQueryParameter = { + parameterPath: ["options", "expand"], + mapper: { + serializedName: "$expand", + type: { + name: "String" + } + } +}; + export const parameters9: OperationParameter = { parameterPath: ["options", "parameters"], mapper: VirtualMachineReimageParametersMapper @@ -686,6 +706,34 @@ export const parameters17: OperationParameter = { mapper: DedicatedHostUpdateMapper }; +export const hostGroupName1: OperationURLParameter = { + parameterPath: "hostGroupName", + mapper: { + constraints: { + Pattern: new RegExp("^[-\\w\\._]+$") + }, + serializedName: "hostGroupName", + required: true, + type: { + name: "String" + } + } +}; + +export const hostName1: OperationURLParameter = { + parameterPath: "hostName", + mapper: { + constraints: { + Pattern: new RegExp("^[-\\w\\._]+$") + }, + serializedName: "hostName", + required: true, + type: { + name: "String" + } + } +}; + export const parameters18: OperationParameter = { parameterPath: "parameters", mapper: SshPublicKeyResourceMapper @@ -749,7 +797,7 @@ export const parameters23: OperationParameter = { mapper: RestorePointCollectionUpdateMapper }; -export const expand3: OperationQueryParameter = { +export const expand5: OperationQueryParameter = { parameterPath: ["options", "expand"], mapper: { serializedName: "$expand", @@ -775,7 +823,7 @@ export const restorePointName: OperationURLParameter = { } }; -export const expand4: OperationQueryParameter = { +export const expand6: OperationQueryParameter = { parameterPath: ["options", "expand"], mapper: { serializedName: "$expand", @@ -806,7 +854,7 @@ export const parameters26: OperationParameter = { mapper: CapacityReservationGroupUpdateMapper }; -export const expand5: OperationQueryParameter = { +export const expand7: OperationQueryParameter = { parameterPath: ["options", "expand"], mapper: { serializedName: "$expand", @@ -816,7 +864,7 @@ export const expand5: OperationQueryParameter = { } }; -export const expand6: OperationQueryParameter = { +export const expand8: OperationQueryParameter = { parameterPath: ["options", "expand"], mapper: { serializedName: "$expand", @@ -847,7 +895,7 @@ export const parameters28: OperationParameter = { mapper: CapacityReservationUpdateMapper }; -export const expand7: OperationQueryParameter = { +export const expand9: OperationQueryParameter = { parameterPath: ["options", "expand"], mapper: { serializedName: "$expand", @@ -1103,7 +1151,7 @@ export const select1: OperationQueryParameter = { } }; -export const expand8: OperationQueryParameter = { +export const expand10: OperationQueryParameter = { parameterPath: ["options", "expand"], mapper: { serializedName: "$expand", @@ -1155,7 +1203,7 @@ export const galleryImageVersion1: OperationParameter = { mapper: GalleryImageVersionUpdateMapper }; -export const expand9: OperationQueryParameter = { +export const expand11: OperationQueryParameter = { parameterPath: ["options", "expand"], mapper: { serializedName: "$expand", diff --git a/sdk/compute/arm-compute/src/operations/capacityReservationGroups.ts b/sdk/compute/arm-compute/src/operations/capacityReservationGroups.ts index 83e4a5f2e5bc..dd348128ffd6 100644 --- a/sdk/compute/arm-compute/src/operations/capacityReservationGroups.ts +++ b/sdk/compute/arm-compute/src/operations/capacityReservationGroups.ts @@ -399,7 +399,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion, Parameters.expand5], + queryParameters: [Parameters.apiVersion, Parameters.expand7], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -421,7 +421,7 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion, Parameters.expand6], + queryParameters: [Parameters.apiVersion, Parameters.expand8], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -442,7 +442,7 @@ const listBySubscriptionOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion, Parameters.expand6], + queryParameters: [Parameters.apiVersion, Parameters.expand8], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer diff --git a/sdk/compute/arm-compute/src/operations/capacityReservations.ts b/sdk/compute/arm-compute/src/operations/capacityReservations.ts index afa2242d0a9c..1f44d46446ad 100644 --- a/sdk/compute/arm-compute/src/operations/capacityReservations.ts +++ b/sdk/compute/arm-compute/src/operations/capacityReservations.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ComputeManagementClient } from "../computeManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { CapacityReservation, CapacityReservationsListByCapacityReservationGroupNextOptionalParams, @@ -146,8 +150,8 @@ export class CapacityReservationsImpl implements CapacityReservations { parameters: CapacityReservation, options?: CapacityReservationsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, CapacityReservationsCreateOrUpdateResponse > > { @@ -157,7 +161,7 @@ export class CapacityReservationsImpl implements CapacityReservations { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -190,19 +194,22 @@ export class CapacityReservationsImpl implements CapacityReservations { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, capacityReservationGroupName, capacityReservationName, parameters, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + CapacityReservationsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -251,8 +258,8 @@ export class CapacityReservationsImpl implements CapacityReservations { parameters: CapacityReservationUpdate, options?: CapacityReservationsUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, CapacityReservationsUpdateResponse > > { @@ -262,7 +269,7 @@ export class CapacityReservationsImpl implements CapacityReservations { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -295,19 +302,22 @@ export class CapacityReservationsImpl implements CapacityReservations { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, capacityReservationGroupName, capacityReservationName, parameters, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + CapacityReservationsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -353,14 +363,14 @@ export class CapacityReservationsImpl implements CapacityReservations { capacityReservationGroupName: string, capacityReservationName: string, options?: CapacityReservationsDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -393,18 +403,18 @@ export class CapacityReservationsImpl implements CapacityReservations { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, capacityReservationGroupName, capacityReservationName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -604,7 +614,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion, Parameters.expand7], + queryParameters: [Parameters.apiVersion, Parameters.expand9], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/compute/arm-compute/src/operations/cloudServiceRoleInstances.ts b/sdk/compute/arm-compute/src/operations/cloudServiceRoleInstances.ts index 549c445a23ff..1077b7c26008 100644 --- a/sdk/compute/arm-compute/src/operations/cloudServiceRoleInstances.ts +++ b/sdk/compute/arm-compute/src/operations/cloudServiceRoleInstances.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ComputeManagementClient } from "../computeManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { RoleInstance, CloudServiceRoleInstancesListNextOptionalParams, @@ -140,14 +144,14 @@ export class CloudServiceRoleInstancesImpl resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -180,13 +184,13 @@ export class CloudServiceRoleInstancesImpl }; }; - const lro = new LroImpl( - sendOperation, - { roleInstanceName, resourceGroupName, cloudServiceName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { roleInstanceName, resourceGroupName, cloudServiceName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -284,14 +288,14 @@ export class CloudServiceRoleInstancesImpl resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesRestartOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -324,13 +328,13 @@ export class CloudServiceRoleInstancesImpl }; }; - const lro = new LroImpl( - sendOperation, - { roleInstanceName, resourceGroupName, cloudServiceName, options }, - restartOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { roleInstanceName, resourceGroupName, cloudServiceName, options }, + spec: restartOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -373,14 +377,14 @@ export class CloudServiceRoleInstancesImpl resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesReimageOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -413,13 +417,13 @@ export class CloudServiceRoleInstancesImpl }; }; - const lro = new LroImpl( - sendOperation, - { roleInstanceName, resourceGroupName, cloudServiceName, options }, - reimageOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { roleInstanceName, resourceGroupName, cloudServiceName, options }, + spec: reimageOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -463,14 +467,14 @@ export class CloudServiceRoleInstancesImpl resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesRebuildOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -503,13 +507,13 @@ export class CloudServiceRoleInstancesImpl }; }; - const lro = new LroImpl( - sendOperation, - { roleInstanceName, resourceGroupName, cloudServiceName, options }, - rebuildOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { roleInstanceName, resourceGroupName, cloudServiceName, options }, + spec: rebuildOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); diff --git a/sdk/compute/arm-compute/src/operations/cloudServices.ts b/sdk/compute/arm-compute/src/operations/cloudServices.ts index 4226077df7e7..dc2c2161ca3f 100644 --- a/sdk/compute/arm-compute/src/operations/cloudServices.ts +++ b/sdk/compute/arm-compute/src/operations/cloudServices.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ComputeManagementClient } from "../computeManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { CloudService, CloudServicesListAllNextOptionalParams, @@ -186,8 +190,8 @@ export class CloudServicesImpl implements CloudServices { cloudServiceName: string, options?: CloudServicesCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, CloudServicesCreateOrUpdateResponse > > { @@ -197,7 +201,7 @@ export class CloudServicesImpl implements CloudServices { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -230,13 +234,16 @@ export class CloudServicesImpl implements CloudServices { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, cloudServiceName, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, cloudServiceName, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + CloudServicesCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -274,8 +281,8 @@ export class CloudServicesImpl implements CloudServices { cloudServiceName: string, options?: CloudServicesUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, CloudServicesUpdateResponse > > { @@ -285,7 +292,7 @@ export class CloudServicesImpl implements CloudServices { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -318,13 +325,16 @@ export class CloudServicesImpl implements CloudServices { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, cloudServiceName, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, cloudServiceName, options }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + CloudServicesUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -360,14 +370,14 @@ export class CloudServicesImpl implements CloudServices { resourceGroupName: string, cloudServiceName: string, options?: CloudServicesDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -400,13 +410,13 @@ export class CloudServicesImpl implements CloudServices { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, cloudServiceName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, cloudServiceName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -504,14 +514,14 @@ export class CloudServicesImpl implements CloudServices { resourceGroupName: string, cloudServiceName: string, options?: CloudServicesStartOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -544,13 +554,13 @@ export class CloudServicesImpl implements CloudServices { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, cloudServiceName, options }, - startOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, cloudServiceName, options }, + spec: startOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -587,14 +597,14 @@ export class CloudServicesImpl implements CloudServices { resourceGroupName: string, cloudServiceName: string, options?: CloudServicesPowerOffOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -627,13 +637,13 @@ export class CloudServicesImpl implements CloudServices { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, cloudServiceName, options }, - powerOffOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, cloudServiceName, options }, + spec: powerOffOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -670,14 +680,14 @@ export class CloudServicesImpl implements CloudServices { resourceGroupName: string, cloudServiceName: string, options?: CloudServicesRestartOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -710,13 +720,13 @@ export class CloudServicesImpl implements CloudServices { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, cloudServiceName, options }, - restartOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, cloudServiceName, options }, + spec: restartOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -753,14 +763,14 @@ export class CloudServicesImpl implements CloudServices { resourceGroupName: string, cloudServiceName: string, options?: CloudServicesReimageOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -793,13 +803,13 @@ export class CloudServicesImpl implements CloudServices { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, cloudServiceName, options }, - reimageOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, cloudServiceName, options }, + spec: reimageOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -838,14 +848,14 @@ export class CloudServicesImpl implements CloudServices { resourceGroupName: string, cloudServiceName: string, options?: CloudServicesRebuildOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -878,13 +888,13 @@ export class CloudServicesImpl implements CloudServices { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, cloudServiceName, options }, - rebuildOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, cloudServiceName, options }, + spec: rebuildOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -922,14 +932,14 @@ export class CloudServicesImpl implements CloudServices { resourceGroupName: string, cloudServiceName: string, options?: CloudServicesDeleteInstancesOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -962,13 +972,13 @@ export class CloudServicesImpl implements CloudServices { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, cloudServiceName, options }, - deleteInstancesOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, cloudServiceName, options }, + spec: deleteInstancesOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); diff --git a/sdk/compute/arm-compute/src/operations/cloudServicesUpdateDomain.ts b/sdk/compute/arm-compute/src/operations/cloudServicesUpdateDomain.ts index d1600cd5868f..7087b18820fd 100644 --- a/sdk/compute/arm-compute/src/operations/cloudServicesUpdateDomain.ts +++ b/sdk/compute/arm-compute/src/operations/cloudServicesUpdateDomain.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ComputeManagementClient } from "../computeManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { UpdateDomain, CloudServicesUpdateDomainListUpdateDomainsNextOptionalParams, @@ -138,14 +142,14 @@ export class CloudServicesUpdateDomainImpl cloudServiceName: string, updateDomain: number, options?: CloudServicesUpdateDomainWalkUpdateDomainOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -178,13 +182,13 @@ export class CloudServicesUpdateDomainImpl }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, cloudServiceName, updateDomain, options }, - walkUpdateDomainOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, cloudServiceName, updateDomain, options }, + spec: walkUpdateDomainOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); diff --git a/sdk/compute/arm-compute/src/operations/dedicatedHosts.ts b/sdk/compute/arm-compute/src/operations/dedicatedHosts.ts index f442a3bf83ab..683fcb2572bb 100644 --- a/sdk/compute/arm-compute/src/operations/dedicatedHosts.ts +++ b/sdk/compute/arm-compute/src/operations/dedicatedHosts.ts @@ -13,13 +13,19 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ComputeManagementClient } from "../computeManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { DedicatedHost, DedicatedHostsListByHostGroupNextOptionalParams, DedicatedHostsListByHostGroupOptionalParams, DedicatedHostsListByHostGroupResponse, + DedicatedHostsListAvailableSizesOptionalParams, + DedicatedHostsListAvailableSizesResponse, DedicatedHostsCreateOrUpdateOptionalParams, DedicatedHostsCreateOrUpdateResponse, DedicatedHostUpdate, @@ -130,6 +136,81 @@ export class DedicatedHostsImpl implements DedicatedHosts { } } + /** + * Lists all available dedicated host sizes to which the specified dedicated host can be resized. NOTE: + * The dedicated host sizes provided can be used to only scale up the existing dedicated host. + * @param resourceGroupName The name of the resource group. + * @param hostGroupName The name of the dedicated host group. + * @param hostName The name of the dedicated host. + * @param options The options parameters. + */ + public listAvailableSizes( + resourceGroupName: string, + hostGroupName: string, + hostName: string, + options?: DedicatedHostsListAvailableSizesOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listAvailableSizesPagingAll( + resourceGroupName, + hostGroupName, + hostName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listAvailableSizesPagingPage( + resourceGroupName, + hostGroupName, + hostName, + options, + settings + ); + } + }; + } + + private async *listAvailableSizesPagingPage( + resourceGroupName: string, + hostGroupName: string, + hostName: string, + options?: DedicatedHostsListAvailableSizesOptionalParams, + _settings?: PageSettings + ): AsyncIterableIterator { + let result: DedicatedHostsListAvailableSizesResponse; + result = await this._listAvailableSizes( + resourceGroupName, + hostGroupName, + hostName, + options + ); + yield result.value || []; + } + + private async *listAvailableSizesPagingAll( + resourceGroupName: string, + hostGroupName: string, + hostName: string, + options?: DedicatedHostsListAvailableSizesOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listAvailableSizesPagingPage( + resourceGroupName, + hostGroupName, + hostName, + options + )) { + yield* page; + } + } + /** * Create or update a dedicated host . * @param resourceGroupName The name of the resource group. @@ -145,8 +226,8 @@ export class DedicatedHostsImpl implements DedicatedHosts { parameters: DedicatedHost, options?: DedicatedHostsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, DedicatedHostsCreateOrUpdateResponse > > { @@ -156,7 +237,7 @@ export class DedicatedHostsImpl implements DedicatedHosts { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -189,13 +270,16 @@ export class DedicatedHostsImpl implements DedicatedHosts { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, hostGroupName, hostName, parameters, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, hostGroupName, hostName, parameters, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + DedicatedHostsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -228,7 +312,7 @@ export class DedicatedHostsImpl implements DedicatedHosts { } /** - * Update an dedicated host . + * Update a dedicated host . * @param resourceGroupName The name of the resource group. * @param hostGroupName The name of the dedicated host group. * @param hostName The name of the dedicated host . @@ -242,8 +326,8 @@ export class DedicatedHostsImpl implements DedicatedHosts { parameters: DedicatedHostUpdate, options?: DedicatedHostsUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, DedicatedHostsUpdateResponse > > { @@ -253,7 +337,7 @@ export class DedicatedHostsImpl implements DedicatedHosts { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -286,13 +370,16 @@ export class DedicatedHostsImpl implements DedicatedHosts { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, hostGroupName, hostName, parameters, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, hostGroupName, hostName, parameters, options }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + DedicatedHostsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -300,7 +387,7 @@ export class DedicatedHostsImpl implements DedicatedHosts { } /** - * Update an dedicated host . + * Update a dedicated host . * @param resourceGroupName The name of the resource group. * @param hostGroupName The name of the dedicated host group. * @param hostName The name of the dedicated host . @@ -336,14 +423,14 @@ export class DedicatedHostsImpl implements DedicatedHosts { hostGroupName: string, hostName: string, options?: DedicatedHostsDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -376,13 +463,13 @@ export class DedicatedHostsImpl implements DedicatedHosts { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, hostGroupName, hostName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, hostGroupName, hostName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -463,14 +550,14 @@ export class DedicatedHostsImpl implements DedicatedHosts { hostGroupName: string, hostName: string, options?: DedicatedHostsRestartOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -503,13 +590,13 @@ export class DedicatedHostsImpl implements DedicatedHosts { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, hostGroupName, hostName, options }, - restartOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, hostGroupName, hostName, options }, + spec: restartOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -541,6 +628,26 @@ export class DedicatedHostsImpl implements DedicatedHosts { return poller.pollUntilDone(); } + /** + * Lists all available dedicated host sizes to which the specified dedicated host can be resized. NOTE: + * The dedicated host sizes provided can be used to only scale up the existing dedicated host. + * @param resourceGroupName The name of the resource group. + * @param hostGroupName The name of the dedicated host group. + * @param hostName The name of the dedicated host. + * @param options The options parameters. + */ + private _listAvailableSizes( + resourceGroupName: string, + hostGroupName: string, + hostName: string, + options?: DedicatedHostsListAvailableSizesOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, hostGroupName, hostName, options }, + listAvailableSizesOperationSpec + ); + } + /** * ListByHostGroupNext * @param resourceGroupName The name of the resource group. @@ -724,6 +831,29 @@ const restartOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const listAvailableSizesOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}/hostSizes", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DedicatedHostSizeListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.hostGroupName1, + Parameters.hostName1 + ], + headerParameters: [Parameters.accept], + serializer +}; const listByHostGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", diff --git a/sdk/compute/arm-compute/src/operations/diskAccesses.ts b/sdk/compute/arm-compute/src/operations/diskAccesses.ts index a2ffbb53c0d5..4054a2fff630 100644 --- a/sdk/compute/arm-compute/src/operations/diskAccesses.ts +++ b/sdk/compute/arm-compute/src/operations/diskAccesses.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ComputeManagementClient } from "../computeManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { DiskAccess, DiskAccessesListByResourceGroupNextOptionalParams, @@ -284,8 +288,8 @@ export class DiskAccessesImpl implements DiskAccesses { diskAccess: DiskAccess, options?: DiskAccessesCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, DiskAccessesCreateOrUpdateResponse > > { @@ -295,7 +299,7 @@ export class DiskAccessesImpl implements DiskAccesses { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -328,13 +332,16 @@ export class DiskAccessesImpl implements DiskAccesses { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, diskAccessName, diskAccess, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, diskAccessName, diskAccess, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + DiskAccessesCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -380,8 +387,8 @@ export class DiskAccessesImpl implements DiskAccesses { diskAccess: DiskAccessUpdate, options?: DiskAccessesUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, DiskAccessesUpdateResponse > > { @@ -391,7 +398,7 @@ export class DiskAccessesImpl implements DiskAccesses { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -424,13 +431,16 @@ export class DiskAccessesImpl implements DiskAccesses { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, diskAccessName, diskAccess, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, diskAccessName, diskAccess, options }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + DiskAccessesUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -492,14 +502,14 @@ export class DiskAccessesImpl implements DiskAccesses { resourceGroupName: string, diskAccessName: string, options?: DiskAccessesDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -532,13 +542,13 @@ export class DiskAccessesImpl implements DiskAccesses { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, diskAccessName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, diskAccessName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -629,8 +639,8 @@ export class DiskAccessesImpl implements DiskAccesses { privateEndpointConnection: PrivateEndpointConnection, options?: DiskAccessesUpdateAPrivateEndpointConnectionOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, DiskAccessesUpdateAPrivateEndpointConnectionResponse > > { @@ -640,7 +650,7 @@ export class DiskAccessesImpl implements DiskAccesses { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -673,19 +683,22 @@ export class DiskAccessesImpl implements DiskAccesses { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, diskAccessName, privateEndpointConnectionName, privateEndpointConnection, options }, - updateAPrivateEndpointConnectionOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: updateAPrivateEndpointConnectionOperationSpec + }); + const poller = await createHttpPoller< + DiskAccessesUpdateAPrivateEndpointConnectionResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -761,14 +774,14 @@ export class DiskAccessesImpl implements DiskAccesses { diskAccessName: string, privateEndpointConnectionName: string, options?: DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -801,18 +814,18 @@ export class DiskAccessesImpl implements DiskAccesses { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, diskAccessName, privateEndpointConnectionName, options }, - deleteAPrivateEndpointConnectionOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: deleteAPrivateEndpointConnectionOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); diff --git a/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts b/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts index f5bdccc130f7..2997217ee8aa 100644 --- a/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts +++ b/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ComputeManagementClient } from "../computeManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { DiskEncryptionSet, DiskEncryptionSetsListByResourceGroupNextOptionalParams, @@ -277,8 +281,8 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { diskEncryptionSet: DiskEncryptionSet, options?: DiskEncryptionSetsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, DiskEncryptionSetsCreateOrUpdateResponse > > { @@ -288,7 +292,7 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -321,13 +325,21 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, diskEncryptionSetName, diskEncryptionSet, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + diskEncryptionSetName, + diskEncryptionSet, + options + }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + DiskEncryptionSetsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -375,8 +387,8 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { diskEncryptionSet: DiskEncryptionSetUpdate, options?: DiskEncryptionSetsUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, DiskEncryptionSetsUpdateResponse > > { @@ -386,7 +398,7 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -419,13 +431,21 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, diskEncryptionSetName, diskEncryptionSet, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + diskEncryptionSetName, + diskEncryptionSet, + options + }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + DiskEncryptionSetsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -488,14 +508,14 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { resourceGroupName: string, diskEncryptionSetName: string, options?: DiskEncryptionSetsDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -528,13 +548,13 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, diskEncryptionSetName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, diskEncryptionSetName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); diff --git a/sdk/compute/arm-compute/src/operations/diskRestorePointOperations.ts b/sdk/compute/arm-compute/src/operations/diskRestorePointOperations.ts index 0e823530506c..c95df45e6735 100644 --- a/sdk/compute/arm-compute/src/operations/diskRestorePointOperations.ts +++ b/sdk/compute/arm-compute/src/operations/diskRestorePointOperations.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ComputeManagementClient } from "../computeManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { DiskRestorePoint, DiskRestorePointListByRestorePointNextOptionalParams, @@ -208,8 +212,8 @@ export class DiskRestorePointOperationsImpl grantAccessData: GrantAccessData, options?: DiskRestorePointGrantAccessOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, DiskRestorePointGrantAccessResponse > > { @@ -219,7 +223,7 @@ export class DiskRestorePointOperationsImpl ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -252,9 +256,9 @@ export class DiskRestorePointOperationsImpl }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, restorePointCollectionName, vmRestorePointName, @@ -262,12 +266,15 @@ export class DiskRestorePointOperationsImpl grantAccessData, options }, - grantAccessOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: grantAccessOperationSpec + }); + const poller = await createHttpPoller< + DiskRestorePointGrantAccessResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -317,14 +324,14 @@ export class DiskRestorePointOperationsImpl vmRestorePointName: string, diskRestorePointName: string, options?: DiskRestorePointRevokeAccessOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -357,21 +364,21 @@ export class DiskRestorePointOperationsImpl }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, restorePointCollectionName, vmRestorePointName, diskRestorePointName, options }, - revokeAccessOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: revokeAccessOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; diff --git a/sdk/compute/arm-compute/src/operations/disks.ts b/sdk/compute/arm-compute/src/operations/disks.ts index c638e18f33f3..0ae26f9967c1 100644 --- a/sdk/compute/arm-compute/src/operations/disks.ts +++ b/sdk/compute/arm-compute/src/operations/disks.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ComputeManagementClient } from "../computeManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { Disk, DisksListByResourceGroupNextOptionalParams, @@ -190,8 +194,8 @@ export class DisksImpl implements Disks { disk: Disk, options?: DisksCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, DisksCreateOrUpdateResponse > > { @@ -201,7 +205,7 @@ export class DisksImpl implements Disks { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -234,13 +238,16 @@ export class DisksImpl implements Disks { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, diskName, disk, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, diskName, disk, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + DisksCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -286,7 +293,7 @@ export class DisksImpl implements Disks { disk: DiskUpdate, options?: DisksUpdateOptionalParams ): Promise< - PollerLike, DisksUpdateResponse> + SimplePollerLike, DisksUpdateResponse> > { const directSendOperation = async ( args: coreClient.OperationArguments, @@ -294,7 +301,7 @@ export class DisksImpl implements Disks { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -327,13 +334,16 @@ export class DisksImpl implements Disks { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, diskName, disk, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, diskName, disk, options }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + DisksUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -395,14 +405,14 @@ export class DisksImpl implements Disks { resourceGroupName: string, diskName: string, options?: DisksDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -435,13 +445,13 @@ export class DisksImpl implements Disks { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, diskName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, diskName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -503,8 +513,8 @@ export class DisksImpl implements Disks { grantAccessData: GrantAccessData, options?: DisksGrantAccessOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, DisksGrantAccessResponse > > { @@ -514,7 +524,7 @@ export class DisksImpl implements Disks { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -547,15 +557,18 @@ export class DisksImpl implements Disks { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, diskName, grantAccessData, options }, - grantAccessOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, diskName, grantAccessData, options }, + spec: grantAccessOperationSpec + }); + const poller = await createHttpPoller< + DisksGrantAccessResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -597,14 +610,14 @@ export class DisksImpl implements Disks { resourceGroupName: string, diskName: string, options?: DisksRevokeAccessOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -637,15 +650,15 @@ export class DisksImpl implements Disks { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, diskName, options }, - revokeAccessOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, diskName, options }, + spec: revokeAccessOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; diff --git a/sdk/compute/arm-compute/src/operations/galleries.ts b/sdk/compute/arm-compute/src/operations/galleries.ts index f61ec96453e2..7271bc6a0d0f 100644 --- a/sdk/compute/arm-compute/src/operations/galleries.ts +++ b/sdk/compute/arm-compute/src/operations/galleries.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ComputeManagementClient } from "../computeManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { Gallery, GalleriesListByResourceGroupNextOptionalParams, @@ -185,8 +189,8 @@ export class GalleriesImpl implements Galleries { gallery: Gallery, options?: GalleriesCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, GalleriesCreateOrUpdateResponse > > { @@ -196,7 +200,7 @@ export class GalleriesImpl implements Galleries { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -229,13 +233,16 @@ export class GalleriesImpl implements Galleries { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, galleryName, gallery, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, galleryName, gallery, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + GalleriesCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -279,8 +286,8 @@ export class GalleriesImpl implements Galleries { gallery: GalleryUpdate, options?: GalleriesUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, GalleriesUpdateResponse > > { @@ -290,7 +297,7 @@ export class GalleriesImpl implements Galleries { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -323,13 +330,16 @@ export class GalleriesImpl implements Galleries { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, galleryName, gallery, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, galleryName, gallery, options }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + GalleriesUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -386,14 +396,14 @@ export class GalleriesImpl implements Galleries { resourceGroupName: string, galleryName: string, options?: GalleriesDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -426,13 +436,13 @@ export class GalleriesImpl implements Galleries { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, galleryName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, galleryName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -599,7 +609,7 @@ const getOperationSpec: coreClient.OperationSpec = { queryParameters: [ Parameters.apiVersion3, Parameters.select1, - Parameters.expand8 + Parameters.expand10 ], urlParameters: [ Parameters.$host, diff --git a/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts b/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts index 9f77fc30bddb..db2c30c71f9a 100644 --- a/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts +++ b/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ComputeManagementClient } from "../computeManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { GalleryApplicationVersion, GalleryApplicationVersionsListByGalleryApplicationNextOptionalParams, @@ -162,8 +166,8 @@ export class GalleryApplicationVersionsImpl galleryApplicationVersion: GalleryApplicationVersion, options?: GalleryApplicationVersionsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, GalleryApplicationVersionsCreateOrUpdateResponse > > { @@ -173,7 +177,7 @@ export class GalleryApplicationVersionsImpl ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -206,9 +210,9 @@ export class GalleryApplicationVersionsImpl }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, galleryName, galleryApplicationName, @@ -216,10 +220,13 @@ export class GalleryApplicationVersionsImpl galleryApplicationVersion, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + GalleryApplicationVersionsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -281,8 +288,8 @@ export class GalleryApplicationVersionsImpl galleryApplicationVersion: GalleryApplicationVersionUpdate, options?: GalleryApplicationVersionsUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, GalleryApplicationVersionsUpdateResponse > > { @@ -292,7 +299,7 @@ export class GalleryApplicationVersionsImpl ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -325,9 +332,9 @@ export class GalleryApplicationVersionsImpl }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, galleryName, galleryApplicationName, @@ -335,10 +342,13 @@ export class GalleryApplicationVersionsImpl galleryApplicationVersion, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + GalleryApplicationVersionsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -423,14 +433,14 @@ export class GalleryApplicationVersionsImpl galleryApplicationName: string, galleryApplicationVersionName: string, options?: GalleryApplicationVersionsDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -463,19 +473,19 @@ export class GalleryApplicationVersionsImpl }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, galleryName, galleryApplicationName, galleryApplicationVersionName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -645,7 +655,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion3, Parameters.expand9], + queryParameters: [Parameters.apiVersion3, Parameters.expand11], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/compute/arm-compute/src/operations/galleryApplications.ts b/sdk/compute/arm-compute/src/operations/galleryApplications.ts index 1d3ad5f7bb04..03fee87c042e 100644 --- a/sdk/compute/arm-compute/src/operations/galleryApplications.ts +++ b/sdk/compute/arm-compute/src/operations/galleryApplications.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ComputeManagementClient } from "../computeManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { GalleryApplication, GalleryApplicationsListByGalleryNextOptionalParams, @@ -147,8 +151,8 @@ export class GalleryApplicationsImpl implements GalleryApplications { galleryApplication: GalleryApplication, options?: GalleryApplicationsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, GalleryApplicationsCreateOrUpdateResponse > > { @@ -158,7 +162,7 @@ export class GalleryApplicationsImpl implements GalleryApplications { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -191,19 +195,22 @@ export class GalleryApplicationsImpl implements GalleryApplications { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, galleryName, galleryApplicationName, galleryApplication, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + GalleryApplicationsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -256,8 +263,8 @@ export class GalleryApplicationsImpl implements GalleryApplications { galleryApplication: GalleryApplicationUpdate, options?: GalleryApplicationsUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, GalleryApplicationsUpdateResponse > > { @@ -267,7 +274,7 @@ export class GalleryApplicationsImpl implements GalleryApplications { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -300,19 +307,22 @@ export class GalleryApplicationsImpl implements GalleryApplications { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, galleryName, galleryApplicationName, galleryApplication, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + GalleryApplicationsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -380,14 +390,14 @@ export class GalleryApplicationsImpl implements GalleryApplications { galleryName: string, galleryApplicationName: string, options?: GalleryApplicationsDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -420,13 +430,13 @@ export class GalleryApplicationsImpl implements GalleryApplications { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, galleryName, galleryApplicationName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, galleryName, galleryApplicationName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); diff --git a/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts b/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts index b651f6ce527f..c271b859db0b 100644 --- a/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts +++ b/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ComputeManagementClient } from "../computeManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { GalleryImageVersion, GalleryImageVersionsListByGalleryImageNextOptionalParams, @@ -159,8 +163,8 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryImageVersion: GalleryImageVersion, options?: GalleryImageVersionsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, GalleryImageVersionsCreateOrUpdateResponse > > { @@ -170,7 +174,7 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -203,9 +207,9 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, galleryName, galleryImageName, @@ -213,10 +217,13 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryImageVersion, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + GalleryImageVersionsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -275,8 +282,8 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryImageVersion: GalleryImageVersionUpdate, options?: GalleryImageVersionsUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, GalleryImageVersionsUpdateResponse > > { @@ -286,7 +293,7 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -319,9 +326,9 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, galleryName, galleryImageName, @@ -329,10 +336,13 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryImageVersion, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + GalleryImageVersionsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -411,14 +421,14 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryImageName: string, galleryImageVersionName: string, options?: GalleryImageVersionsDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -451,19 +461,19 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, galleryName, galleryImageName, galleryImageVersionName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -622,7 +632,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion3, Parameters.expand9], + queryParameters: [Parameters.apiVersion3, Parameters.expand11], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/compute/arm-compute/src/operations/galleryImages.ts b/sdk/compute/arm-compute/src/operations/galleryImages.ts index d83af3978740..e46aa4ef9a1d 100644 --- a/sdk/compute/arm-compute/src/operations/galleryImages.ts +++ b/sdk/compute/arm-compute/src/operations/galleryImages.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ComputeManagementClient } from "../computeManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { GalleryImage, GalleryImagesListByGalleryNextOptionalParams, @@ -147,8 +151,8 @@ export class GalleryImagesImpl implements GalleryImages { galleryImage: GalleryImage, options?: GalleryImagesCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, GalleryImagesCreateOrUpdateResponse > > { @@ -158,7 +162,7 @@ export class GalleryImagesImpl implements GalleryImages { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -191,19 +195,22 @@ export class GalleryImagesImpl implements GalleryImages { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, galleryName, galleryImageName, galleryImage, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + GalleryImagesCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -256,8 +263,8 @@ export class GalleryImagesImpl implements GalleryImages { galleryImage: GalleryImageUpdate, options?: GalleryImagesUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, GalleryImagesUpdateResponse > > { @@ -267,7 +274,7 @@ export class GalleryImagesImpl implements GalleryImages { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -300,19 +307,22 @@ export class GalleryImagesImpl implements GalleryImages { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, galleryName, galleryImageName, galleryImage, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + GalleryImagesUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -380,14 +390,14 @@ export class GalleryImagesImpl implements GalleryImages { galleryName: string, galleryImageName: string, options?: GalleryImagesDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -420,13 +430,13 @@ export class GalleryImagesImpl implements GalleryImages { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, galleryName, galleryImageName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, galleryName, galleryImageName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); diff --git a/sdk/compute/arm-compute/src/operations/gallerySharingProfile.ts b/sdk/compute/arm-compute/src/operations/gallerySharingProfile.ts index 3f694599aff9..717a581ef043 100644 --- a/sdk/compute/arm-compute/src/operations/gallerySharingProfile.ts +++ b/sdk/compute/arm-compute/src/operations/gallerySharingProfile.ts @@ -11,8 +11,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ComputeManagementClient } from "../computeManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { SharingUpdate, GallerySharingProfileUpdateOptionalParams, @@ -44,8 +48,8 @@ export class GallerySharingProfileImpl implements GallerySharingProfile { sharingUpdate: SharingUpdate, options?: GallerySharingProfileUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, GallerySharingProfileUpdateResponse > > { @@ -55,7 +59,7 @@ export class GallerySharingProfileImpl implements GallerySharingProfile { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -88,13 +92,16 @@ export class GallerySharingProfileImpl implements GallerySharingProfile { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, galleryName, sharingUpdate, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, galleryName, sharingUpdate, options }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + GallerySharingProfileUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); diff --git a/sdk/compute/arm-compute/src/operations/images.ts b/sdk/compute/arm-compute/src/operations/images.ts index cec5902f6ba9..1bc1ff8155f0 100644 --- a/sdk/compute/arm-compute/src/operations/images.ts +++ b/sdk/compute/arm-compute/src/operations/images.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ComputeManagementClient } from "../computeManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { Image, ImagesListByResourceGroupNextOptionalParams, @@ -185,8 +189,8 @@ export class ImagesImpl implements Images { parameters: Image, options?: ImagesCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ImagesCreateOrUpdateResponse > > { @@ -196,7 +200,7 @@ export class ImagesImpl implements Images { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -229,13 +233,16 @@ export class ImagesImpl implements Images { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, imageName, parameters, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, imageName, parameters, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + ImagesCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -277,7 +284,7 @@ export class ImagesImpl implements Images { parameters: ImageUpdate, options?: ImagesUpdateOptionalParams ): Promise< - PollerLike, ImagesUpdateResponse> + SimplePollerLike, ImagesUpdateResponse> > { const directSendOperation = async ( args: coreClient.OperationArguments, @@ -285,7 +292,7 @@ export class ImagesImpl implements Images { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -318,13 +325,16 @@ export class ImagesImpl implements Images { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, imageName, parameters, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, imageName, parameters, options }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + ImagesUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -363,14 +373,14 @@ export class ImagesImpl implements Images { resourceGroupName: string, imageName: string, options?: ImagesDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -403,13 +413,13 @@ export class ImagesImpl implements Images { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, imageName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, imageName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); diff --git a/sdk/compute/arm-compute/src/operations/logAnalytics.ts b/sdk/compute/arm-compute/src/operations/logAnalytics.ts index e4b123f983ed..1ee43c16df21 100644 --- a/sdk/compute/arm-compute/src/operations/logAnalytics.ts +++ b/sdk/compute/arm-compute/src/operations/logAnalytics.ts @@ -11,8 +11,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ComputeManagementClient } from "../computeManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { RequestRateByIntervalInput, LogAnalyticsExportRequestRateByIntervalOptionalParams, @@ -46,8 +50,8 @@ export class LogAnalyticsImpl implements LogAnalytics { parameters: RequestRateByIntervalInput, options?: LogAnalyticsExportRequestRateByIntervalOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, LogAnalyticsExportRequestRateByIntervalResponse > > { @@ -57,7 +61,7 @@ export class LogAnalyticsImpl implements LogAnalytics { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -90,15 +94,18 @@ export class LogAnalyticsImpl implements LogAnalytics { }; }; - const lro = new LroImpl( - sendOperation, - { location, parameters, options }, - exportRequestRateByIntervalOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { location, parameters, options }, + spec: exportRequestRateByIntervalOperationSpec + }); + const poller = await createHttpPoller< + LogAnalyticsExportRequestRateByIntervalResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation" }); await poller.poll(); return poller; @@ -135,8 +142,8 @@ export class LogAnalyticsImpl implements LogAnalytics { parameters: ThrottledRequestsInput, options?: LogAnalyticsExportThrottledRequestsOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, LogAnalyticsExportThrottledRequestsResponse > > { @@ -146,7 +153,7 @@ export class LogAnalyticsImpl implements LogAnalytics { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -179,15 +186,18 @@ export class LogAnalyticsImpl implements LogAnalytics { }; }; - const lro = new LroImpl( - sendOperation, - { location, parameters, options }, - exportThrottledRequestsOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { location, parameters, options }, + spec: exportThrottledRequestsOperationSpec + }); + const poller = await createHttpPoller< + LogAnalyticsExportThrottledRequestsResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation" }); await poller.poll(); return poller; diff --git a/sdk/compute/arm-compute/src/operations/restorePointCollections.ts b/sdk/compute/arm-compute/src/operations/restorePointCollections.ts index 5d092f484754..f08ccb1c3f68 100644 --- a/sdk/compute/arm-compute/src/operations/restorePointCollections.ts +++ b/sdk/compute/arm-compute/src/operations/restorePointCollections.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ComputeManagementClient } from "../computeManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { RestorePointCollection, RestorePointCollectionsListNextOptionalParams, @@ -217,14 +221,14 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { resourceGroupName: string, restorePointCollectionName: string, options?: RestorePointCollectionsDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -257,13 +261,13 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, restorePointCollectionName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, restorePointCollectionName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -455,7 +459,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion, Parameters.expand3], + queryParameters: [Parameters.apiVersion, Parameters.expand5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/compute/arm-compute/src/operations/restorePoints.ts b/sdk/compute/arm-compute/src/operations/restorePoints.ts index 85cbcbafb20b..27bc381911ce 100644 --- a/sdk/compute/arm-compute/src/operations/restorePoints.ts +++ b/sdk/compute/arm-compute/src/operations/restorePoints.ts @@ -11,8 +11,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ComputeManagementClient } from "../computeManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { RestorePoint, RestorePointsCreateOptionalParams, @@ -50,8 +54,8 @@ export class RestorePointsImpl implements RestorePoints { parameters: RestorePoint, options?: RestorePointsCreateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, RestorePointsCreateResponse > > { @@ -61,7 +65,7 @@ export class RestorePointsImpl implements RestorePoints { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -94,19 +98,22 @@ export class RestorePointsImpl implements RestorePoints { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, restorePointCollectionName, restorePointName, parameters, options }, - createOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: createOperationSpec + }); + const poller = await createHttpPoller< + RestorePointsCreateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -151,14 +158,14 @@ export class RestorePointsImpl implements RestorePoints { restorePointCollectionName: string, restorePointName: string, options?: RestorePointsDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -191,18 +198,18 @@ export class RestorePointsImpl implements RestorePoints { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, restorePointCollectionName, restorePointName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -328,7 +335,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion, Parameters.expand4], + queryParameters: [Parameters.apiVersion, Parameters.expand6], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/compute/arm-compute/src/operations/snapshots.ts b/sdk/compute/arm-compute/src/operations/snapshots.ts index f4323659fdfe..6257f2de0768 100644 --- a/sdk/compute/arm-compute/src/operations/snapshots.ts +++ b/sdk/compute/arm-compute/src/operations/snapshots.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ComputeManagementClient } from "../computeManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { Snapshot, SnapshotsListByResourceGroupNextOptionalParams, @@ -190,8 +194,8 @@ export class SnapshotsImpl implements Snapshots { snapshot: Snapshot, options?: SnapshotsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, SnapshotsCreateOrUpdateResponse > > { @@ -201,7 +205,7 @@ export class SnapshotsImpl implements Snapshots { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -234,13 +238,16 @@ export class SnapshotsImpl implements Snapshots { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, snapshotName, snapshot, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, snapshotName, snapshot, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + SnapshotsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -286,8 +293,8 @@ export class SnapshotsImpl implements Snapshots { snapshot: SnapshotUpdate, options?: SnapshotsUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, SnapshotsUpdateResponse > > { @@ -297,7 +304,7 @@ export class SnapshotsImpl implements Snapshots { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -330,13 +337,16 @@ export class SnapshotsImpl implements Snapshots { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, snapshotName, snapshot, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, snapshotName, snapshot, options }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + SnapshotsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -398,14 +408,14 @@ export class SnapshotsImpl implements Snapshots { resourceGroupName: string, snapshotName: string, options?: SnapshotsDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -438,13 +448,13 @@ export class SnapshotsImpl implements Snapshots { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, snapshotName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, snapshotName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -512,8 +522,8 @@ export class SnapshotsImpl implements Snapshots { grantAccessData: GrantAccessData, options?: SnapshotsGrantAccessOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, SnapshotsGrantAccessResponse > > { @@ -523,7 +533,7 @@ export class SnapshotsImpl implements Snapshots { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -556,15 +566,18 @@ export class SnapshotsImpl implements Snapshots { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, snapshotName, grantAccessData, options }, - grantAccessOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, snapshotName, grantAccessData, options }, + spec: grantAccessOperationSpec + }); + const poller = await createHttpPoller< + SnapshotsGrantAccessResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -606,14 +619,14 @@ export class SnapshotsImpl implements Snapshots { resourceGroupName: string, snapshotName: string, options?: SnapshotsRevokeAccessOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -646,15 +659,15 @@ export class SnapshotsImpl implements Snapshots { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, snapshotName, options }, - revokeAccessOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, snapshotName, options }, + spec: revokeAccessOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineExtensions.ts b/sdk/compute/arm-compute/src/operations/virtualMachineExtensions.ts index 80e532629b76..860d8eca27ab 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineExtensions.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineExtensions.ts @@ -11,8 +11,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ComputeManagementClient } from "../computeManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { VirtualMachineExtension, VirtualMachineExtensionsCreateOrUpdateOptionalParams, @@ -54,8 +58,8 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { extensionParameters: VirtualMachineExtension, options?: VirtualMachineExtensionsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, VirtualMachineExtensionsCreateOrUpdateResponse > > { @@ -65,7 +69,7 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -98,19 +102,22 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmName, vmExtensionName, extensionParameters, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + VirtualMachineExtensionsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -157,8 +164,8 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { extensionParameters: VirtualMachineExtensionUpdate, options?: VirtualMachineExtensionsUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, VirtualMachineExtensionsUpdateResponse > > { @@ -168,7 +175,7 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -201,19 +208,22 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmName, vmExtensionName, extensionParameters, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + VirtualMachineExtensionsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -257,14 +267,14 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { vmName: string, vmExtensionName: string, options?: VirtualMachineExtensionsDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -297,13 +307,13 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmName, vmExtensionName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmName, vmExtensionName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineRunCommands.ts b/sdk/compute/arm-compute/src/operations/virtualMachineRunCommands.ts index 459c9cc5fc75..53fc4f8f474e 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineRunCommands.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineRunCommands.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ComputeManagementClient } from "../computeManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { RunCommandDocumentBase, VirtualMachineRunCommandsListNextOptionalParams, @@ -241,8 +245,8 @@ export class VirtualMachineRunCommandsImpl runCommand: VirtualMachineRunCommand, options?: VirtualMachineRunCommandsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, VirtualMachineRunCommandsCreateOrUpdateResponse > > { @@ -252,7 +256,7 @@ export class VirtualMachineRunCommandsImpl ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -285,13 +289,16 @@ export class VirtualMachineRunCommandsImpl }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmName, runCommandName, runCommand, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmName, runCommandName, runCommand, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + VirtualMachineRunCommandsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -338,8 +345,8 @@ export class VirtualMachineRunCommandsImpl runCommand: VirtualMachineRunCommandUpdate, options?: VirtualMachineRunCommandsUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, VirtualMachineRunCommandsUpdateResponse > > { @@ -349,7 +356,7 @@ export class VirtualMachineRunCommandsImpl ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -382,13 +389,16 @@ export class VirtualMachineRunCommandsImpl }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmName, runCommandName, runCommand, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmName, runCommandName, runCommand, options }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + VirtualMachineRunCommandsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -432,14 +442,14 @@ export class VirtualMachineRunCommandsImpl vmName: string, runCommandName: string, options?: VirtualMachineRunCommandsDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -472,13 +482,13 @@ export class VirtualMachineRunCommandsImpl }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmName, runCommandName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmName, runCommandName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetExtensions.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetExtensions.ts index 302f11644fd7..7611976b9b7f 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetExtensions.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetExtensions.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ComputeManagementClient } from "../computeManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { VirtualMachineScaleSetExtension, VirtualMachineScaleSetExtensionsListNextOptionalParams, @@ -136,10 +140,8 @@ export class VirtualMachineScaleSetExtensionsImpl extensionParameters: VirtualMachineScaleSetExtension, options?: VirtualMachineScaleSetExtensionsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState< - VirtualMachineScaleSetExtensionsCreateOrUpdateResponse - >, + SimplePollerLike< + OperationState, VirtualMachineScaleSetExtensionsCreateOrUpdateResponse > > { @@ -149,7 +151,7 @@ export class VirtualMachineScaleSetExtensionsImpl ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -182,19 +184,22 @@ export class VirtualMachineScaleSetExtensionsImpl }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmScaleSetName, vmssExtensionName, extensionParameters, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + VirtualMachineScaleSetExtensionsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -241,8 +246,8 @@ export class VirtualMachineScaleSetExtensionsImpl extensionParameters: VirtualMachineScaleSetExtensionUpdate, options?: VirtualMachineScaleSetExtensionsUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, VirtualMachineScaleSetExtensionsUpdateResponse > > { @@ -252,7 +257,7 @@ export class VirtualMachineScaleSetExtensionsImpl ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -285,19 +290,22 @@ export class VirtualMachineScaleSetExtensionsImpl }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmScaleSetName, vmssExtensionName, extensionParameters, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + VirtualMachineScaleSetExtensionsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -341,14 +349,14 @@ export class VirtualMachineScaleSetExtensionsImpl vmScaleSetName: string, vmssExtensionName: string, options?: VirtualMachineScaleSetExtensionsDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -381,13 +389,13 @@ export class VirtualMachineScaleSetExtensionsImpl }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmScaleSetName, vmssExtensionName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmScaleSetName, vmssExtensionName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetRollingUpgrades.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetRollingUpgrades.ts index d518931b556b..58b6cc1bf29f 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetRollingUpgrades.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetRollingUpgrades.ts @@ -11,8 +11,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ComputeManagementClient } from "../computeManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { VirtualMachineScaleSetRollingUpgradesCancelOptionalParams, VirtualMachineScaleSetRollingUpgradesStartOSUpgradeOptionalParams, @@ -44,14 +48,14 @@ export class VirtualMachineScaleSetRollingUpgradesImpl resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetRollingUpgradesCancelOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -84,13 +88,13 @@ export class VirtualMachineScaleSetRollingUpgradesImpl }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmScaleSetName, options }, - cancelOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmScaleSetName, options }, + spec: cancelOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -128,14 +132,14 @@ export class VirtualMachineScaleSetRollingUpgradesImpl resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetRollingUpgradesStartOSUpgradeOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -168,13 +172,13 @@ export class VirtualMachineScaleSetRollingUpgradesImpl }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmScaleSetName, options }, - startOSUpgradeOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmScaleSetName, options }, + spec: startOSUpgradeOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -214,14 +218,14 @@ export class VirtualMachineScaleSetRollingUpgradesImpl resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -254,13 +258,13 @@ export class VirtualMachineScaleSetRollingUpgradesImpl }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmScaleSetName, options }, - startExtensionUpgradeOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmScaleSetName, options }, + spec: startExtensionUpgradeOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMExtensions.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMExtensions.ts index 6db627b9870a..c58d77d235f9 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMExtensions.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMExtensions.ts @@ -11,8 +11,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ComputeManagementClient } from "../computeManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { VirtualMachineScaleSetVMExtension, VirtualMachineScaleSetVMExtensionsCreateOrUpdateOptionalParams, @@ -57,10 +61,8 @@ export class VirtualMachineScaleSetVMExtensionsImpl extensionParameters: VirtualMachineScaleSetVMExtension, options?: VirtualMachineScaleSetVMExtensionsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState< - VirtualMachineScaleSetVMExtensionsCreateOrUpdateResponse - >, + SimplePollerLike< + OperationState, VirtualMachineScaleSetVMExtensionsCreateOrUpdateResponse > > { @@ -70,7 +72,7 @@ export class VirtualMachineScaleSetVMExtensionsImpl ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -103,9 +105,9 @@ export class VirtualMachineScaleSetVMExtensionsImpl }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmScaleSetName, instanceId, @@ -113,10 +115,13 @@ export class VirtualMachineScaleSetVMExtensionsImpl extensionParameters, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + VirtualMachineScaleSetVMExtensionsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -168,8 +173,8 @@ export class VirtualMachineScaleSetVMExtensionsImpl extensionParameters: VirtualMachineScaleSetVMExtensionUpdate, options?: VirtualMachineScaleSetVMExtensionsUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, VirtualMachineScaleSetVMExtensionsUpdateResponse > > { @@ -179,7 +184,7 @@ export class VirtualMachineScaleSetVMExtensionsImpl ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -212,9 +217,9 @@ export class VirtualMachineScaleSetVMExtensionsImpl }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmScaleSetName, instanceId, @@ -222,10 +227,13 @@ export class VirtualMachineScaleSetVMExtensionsImpl extensionParameters, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + VirtualMachineScaleSetVMExtensionsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -274,14 +282,14 @@ export class VirtualMachineScaleSetVMExtensionsImpl instanceId: string, vmExtensionName: string, options?: VirtualMachineScaleSetVMExtensionsDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -314,19 +322,19 @@ export class VirtualMachineScaleSetVMExtensionsImpl }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmScaleSetName, instanceId, vmExtensionName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMRunCommands.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMRunCommands.ts index 1cd694a32089..763b5aba3561 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMRunCommands.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMRunCommands.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ComputeManagementClient } from "../computeManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { VirtualMachineRunCommand, VirtualMachineScaleSetVMRunCommandsListNextOptionalParams, @@ -155,10 +159,8 @@ export class VirtualMachineScaleSetVMRunCommandsImpl runCommand: VirtualMachineRunCommand, options?: VirtualMachineScaleSetVMRunCommandsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState< - VirtualMachineScaleSetVMRunCommandsCreateOrUpdateResponse - >, + SimplePollerLike< + OperationState, VirtualMachineScaleSetVMRunCommandsCreateOrUpdateResponse > > { @@ -168,7 +170,7 @@ export class VirtualMachineScaleSetVMRunCommandsImpl ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -201,9 +203,9 @@ export class VirtualMachineScaleSetVMRunCommandsImpl }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmScaleSetName, instanceId, @@ -211,10 +213,13 @@ export class VirtualMachineScaleSetVMRunCommandsImpl runCommand, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + VirtualMachineScaleSetVMRunCommandsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -266,8 +271,8 @@ export class VirtualMachineScaleSetVMRunCommandsImpl runCommand: VirtualMachineRunCommandUpdate, options?: VirtualMachineScaleSetVMRunCommandsUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, VirtualMachineScaleSetVMRunCommandsUpdateResponse > > { @@ -277,7 +282,7 @@ export class VirtualMachineScaleSetVMRunCommandsImpl ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -310,9 +315,9 @@ export class VirtualMachineScaleSetVMRunCommandsImpl }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmScaleSetName, instanceId, @@ -320,10 +325,13 @@ export class VirtualMachineScaleSetVMRunCommandsImpl runCommand, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + VirtualMachineScaleSetVMRunCommandsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -372,14 +380,14 @@ export class VirtualMachineScaleSetVMRunCommandsImpl instanceId: string, runCommandName: string, options?: VirtualMachineScaleSetVMRunCommandsDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -412,19 +420,19 @@ export class VirtualMachineScaleSetVMRunCommandsImpl }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmScaleSetName, instanceId, runCommandName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts index 09ca5b32488a..e5bcb0c15845 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ComputeManagementClient } from "../computeManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { VirtualMachineScaleSetVM, VirtualMachineScaleSetVMsListNextOptionalParams, @@ -154,14 +158,14 @@ export class VirtualMachineScaleSetVMsImpl vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsReimageOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -194,13 +198,13 @@ export class VirtualMachineScaleSetVMsImpl }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmScaleSetName, instanceId, options }, - reimageOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmScaleSetName, instanceId, options }, + spec: reimageOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -242,14 +246,14 @@ export class VirtualMachineScaleSetVMsImpl vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsReimageAllOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -282,13 +286,13 @@ export class VirtualMachineScaleSetVMsImpl }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmScaleSetName, instanceId, options }, - reimageAllOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmScaleSetName, instanceId, options }, + spec: reimageAllOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -332,14 +336,14 @@ export class VirtualMachineScaleSetVMsImpl vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsDeallocateOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -372,13 +376,13 @@ export class VirtualMachineScaleSetVMsImpl }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmScaleSetName, instanceId, options }, - deallocateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmScaleSetName, instanceId, options }, + spec: deallocateOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -424,8 +428,8 @@ export class VirtualMachineScaleSetVMsImpl parameters: VirtualMachineScaleSetVM, options?: VirtualMachineScaleSetVMsUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, VirtualMachineScaleSetVMsUpdateResponse > > { @@ -435,7 +439,7 @@ export class VirtualMachineScaleSetVMsImpl ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -468,13 +472,22 @@ export class VirtualMachineScaleSetVMsImpl }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmScaleSetName, instanceId, parameters, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + vmScaleSetName, + instanceId, + parameters, + options + }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + VirtualMachineScaleSetVMsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -518,14 +531,14 @@ export class VirtualMachineScaleSetVMsImpl vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -558,13 +571,13 @@ export class VirtualMachineScaleSetVMsImpl }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmScaleSetName, instanceId, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmScaleSetName, instanceId, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -662,14 +675,14 @@ export class VirtualMachineScaleSetVMsImpl vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsPowerOffOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -702,13 +715,13 @@ export class VirtualMachineScaleSetVMsImpl }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmScaleSetName, instanceId, options }, - powerOffOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmScaleSetName, instanceId, options }, + spec: powerOffOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -751,14 +764,14 @@ export class VirtualMachineScaleSetVMsImpl vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsRestartOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -791,13 +804,13 @@ export class VirtualMachineScaleSetVMsImpl }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmScaleSetName, instanceId, options }, - restartOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmScaleSetName, instanceId, options }, + spec: restartOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -838,14 +851,14 @@ export class VirtualMachineScaleSetVMsImpl vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsStartOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -878,13 +891,13 @@ export class VirtualMachineScaleSetVMsImpl }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmScaleSetName, instanceId, options }, - startOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmScaleSetName, instanceId, options }, + spec: startOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -926,14 +939,14 @@ export class VirtualMachineScaleSetVMsImpl vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsRedeployOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -966,13 +979,13 @@ export class VirtualMachineScaleSetVMsImpl }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmScaleSetName, instanceId, options }, - redeployOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmScaleSetName, instanceId, options }, + spec: redeployOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -1033,14 +1046,14 @@ export class VirtualMachineScaleSetVMsImpl vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsPerformMaintenanceOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -1073,13 +1086,13 @@ export class VirtualMachineScaleSetVMsImpl }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmScaleSetName, instanceId, options }, - performMaintenanceOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmScaleSetName, instanceId, options }, + spec: performMaintenanceOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -1142,8 +1155,8 @@ export class VirtualMachineScaleSetVMsImpl parameters: RunCommandInput, options?: VirtualMachineScaleSetVMsRunCommandOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, VirtualMachineScaleSetVMsRunCommandResponse > > { @@ -1153,7 +1166,7 @@ export class VirtualMachineScaleSetVMsImpl ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -1186,15 +1199,24 @@ export class VirtualMachineScaleSetVMsImpl }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmScaleSetName, instanceId, parameters, options }, - runCommandOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + vmScaleSetName, + instanceId, + parameters, + options + }, + spec: runCommandOperationSpec + }); + const poller = await createHttpPoller< + VirtualMachineScaleSetVMsRunCommandResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts index ae0e7cd261f1..09a163751fbe 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ComputeManagementClient } from "../computeManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { VirtualMachineScaleSet, VirtualMachineScaleSetsListByLocationNextOptionalParams, @@ -50,6 +54,7 @@ import { VirtualMachineScaleSetsPowerOffOptionalParams, VirtualMachineScaleSetsRestartOptionalParams, VirtualMachineScaleSetsStartOptionalParams, + VirtualMachineScaleSetsReapplyOptionalParams, VirtualMachineScaleSetsRedeployOptionalParams, VirtualMachineScaleSetsPerformMaintenanceOptionalParams, VirtualMachineScaleSetsUpdateInstancesOptionalParams, @@ -454,8 +459,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { parameters: VirtualMachineScaleSet, options?: VirtualMachineScaleSetsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, VirtualMachineScaleSetsCreateOrUpdateResponse > > { @@ -465,7 +470,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -498,13 +503,16 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmScaleSetName, parameters, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmScaleSetName, parameters, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + VirtualMachineScaleSetsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -546,8 +554,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { parameters: VirtualMachineScaleSetUpdate, options?: VirtualMachineScaleSetsUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, VirtualMachineScaleSetsUpdateResponse > > { @@ -557,7 +565,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -590,13 +598,16 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmScaleSetName, parameters, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmScaleSetName, parameters, options }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + VirtualMachineScaleSetsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -635,14 +646,14 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -675,13 +686,13 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmScaleSetName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmScaleSetName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -736,14 +747,14 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsDeallocateOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -776,13 +787,13 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmScaleSetName, options }, - deallocateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmScaleSetName, options }, + spec: deallocateOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -822,14 +833,14 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { vmScaleSetName: string, vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs, options?: VirtualMachineScaleSetsDeleteInstancesOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -862,13 +873,13 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmScaleSetName, vmInstanceIDs, options }, - deleteInstancesOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmScaleSetName, vmInstanceIDs, options }, + spec: deleteInstancesOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -988,14 +999,14 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsPowerOffOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -1028,13 +1039,13 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmScaleSetName, options }, - powerOffOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmScaleSetName, options }, + spec: powerOffOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -1072,14 +1083,14 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsRestartOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -1112,13 +1123,13 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmScaleSetName, options }, - restartOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmScaleSetName, options }, + spec: restartOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -1154,14 +1165,14 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsStartOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -1194,13 +1205,13 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmScaleSetName, options }, - startOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmScaleSetName, options }, + spec: startOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -1226,6 +1237,89 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { return poller.pollUntilDone(); } + /** + * Reapplies the Virtual Machine Scale Set Virtual Machine Profile to the Virtual Machine Instances + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param options The options parameters. + */ + async beginReapply( + resourceGroupName: string, + vmScaleSetName: string, + options?: VirtualMachineScaleSetsReapplyOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmScaleSetName, options }, + spec: reapplyOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Reapplies the Virtual Machine Scale Set Virtual Machine Profile to the Virtual Machine Instances + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param options The options parameters. + */ + async beginReapplyAndWait( + resourceGroupName: string, + vmScaleSetName: string, + options?: VirtualMachineScaleSetsReapplyOptionalParams + ): Promise { + const poller = await this.beginReapply( + resourceGroupName, + vmScaleSetName, + options + ); + return poller.pollUntilDone(); + } + /** * Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and * powers them back on. @@ -1237,14 +1331,14 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsRedeployOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -1277,13 +1371,13 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmScaleSetName, options }, - redeployOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmScaleSetName, options }, + spec: redeployOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -1323,14 +1417,14 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsPerformMaintenanceOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -1363,13 +1457,13 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmScaleSetName, options }, - performMaintenanceOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmScaleSetName, options }, + spec: performMaintenanceOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -1410,14 +1504,14 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { vmScaleSetName: string, vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs, options?: VirtualMachineScaleSetsUpdateInstancesOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -1450,13 +1544,13 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmScaleSetName, vmInstanceIDs, options }, - updateInstancesOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmScaleSetName, vmInstanceIDs, options }, + spec: updateInstancesOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -1497,14 +1591,14 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsReimageOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -1537,13 +1631,13 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmScaleSetName, options }, - reimageOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmScaleSetName, options }, + spec: reimageOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -1582,14 +1676,14 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsReimageAllOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -1622,13 +1716,13 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmScaleSetName, options }, - reimageAllOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmScaleSetName, options }, + spec: reimageAllOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -1708,14 +1802,14 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { vmScaleSetName: string, parameters: OrchestrationServiceStateInput, options?: VirtualMachineScaleSetsSetOrchestrationServiceStateOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -1748,13 +1842,13 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmScaleSetName, parameters, options }, - setOrchestrationServiceStateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmScaleSetName, parameters, options }, + spec: setOrchestrationServiceStateOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -2019,7 +2113,7 @@ const deallocateOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.vmInstanceIDs, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion, Parameters.hibernate], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -2234,6 +2328,29 @@ const startOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer }; +const reapplyOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reapply", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.vmScaleSetName + ], + headerParameters: [Parameters.accept], + serializer +}; const redeployOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/redeploy", diff --git a/sdk/compute/arm-compute/src/operations/virtualMachines.ts b/sdk/compute/arm-compute/src/operations/virtualMachines.ts index 0eac9c874844..5775db9e8ca8 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachines.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachines.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ComputeManagementClient } from "../computeManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { VirtualMachine, VirtualMachinesListByLocationNextOptionalParams, @@ -352,8 +356,8 @@ export class VirtualMachinesImpl implements VirtualMachines { parameters: VirtualMachineCaptureParameters, options?: VirtualMachinesCaptureOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, VirtualMachinesCaptureResponse > > { @@ -363,7 +367,7 @@ export class VirtualMachinesImpl implements VirtualMachines { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -396,15 +400,18 @@ export class VirtualMachinesImpl implements VirtualMachines { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmName, parameters, options }, - captureOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmName, parameters, options }, + spec: captureOperationSpec + }); + const poller = await createHttpPoller< + VirtualMachinesCaptureResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -447,8 +454,8 @@ export class VirtualMachinesImpl implements VirtualMachines { parameters: VirtualMachine, options?: VirtualMachinesCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, VirtualMachinesCreateOrUpdateResponse > > { @@ -458,7 +465,7 @@ export class VirtualMachinesImpl implements VirtualMachines { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -491,13 +498,16 @@ export class VirtualMachinesImpl implements VirtualMachines { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmName, parameters, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmName, parameters, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + VirtualMachinesCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -540,8 +550,8 @@ export class VirtualMachinesImpl implements VirtualMachines { parameters: VirtualMachineUpdate, options?: VirtualMachinesUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, VirtualMachinesUpdateResponse > > { @@ -551,7 +561,7 @@ export class VirtualMachinesImpl implements VirtualMachines { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -584,13 +594,16 @@ export class VirtualMachinesImpl implements VirtualMachines { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmName, parameters, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmName, parameters, options }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + VirtualMachinesUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -629,14 +642,14 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, options?: VirtualMachinesDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -669,13 +682,13 @@ export class VirtualMachinesImpl implements VirtualMachines { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -742,14 +755,14 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, options?: VirtualMachinesConvertToManagedDisksOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -782,13 +795,13 @@ export class VirtualMachinesImpl implements VirtualMachines { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmName, options }, - convertToManagedDisksOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmName, options }, + spec: convertToManagedDisksOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -826,14 +839,14 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, options?: VirtualMachinesDeallocateOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -866,13 +879,13 @@ export class VirtualMachinesImpl implements VirtualMachines { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmName, options }, - deallocateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmName, options }, + spec: deallocateOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -901,10 +914,10 @@ export class VirtualMachinesImpl implements VirtualMachines { /** * Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual - * machine before performing this operation.
    For Windows, please refer to [Create a managed image - * of a generalized VM in - * Azure](https://docs.microsoft.com/azure/virtual-machines/windows/capture-image-resource).
    For - * Linux, please refer to [How to create an image of a virtual machine or + * machine before performing this operation. For Windows, please refer to [Create a managed image of a + * generalized VM in + * Azure](https://docs.microsoft.com/azure/virtual-machines/windows/capture-image-resource). For Linux, + * please refer to [How to create an image of a virtual machine or * VHD](https://docs.microsoft.com/azure/virtual-machines/linux/capture-image). * @param resourceGroupName The name of the resource group. * @param vmName The name of the virtual machine. @@ -976,14 +989,14 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, options?: VirtualMachinesPowerOffOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -1016,13 +1029,13 @@ export class VirtualMachinesImpl implements VirtualMachines { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmName, options }, - powerOffOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmName, options }, + spec: powerOffOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -1055,14 +1068,14 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, options?: VirtualMachinesReapplyOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -1095,13 +1108,13 @@ export class VirtualMachinesImpl implements VirtualMachines { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmName, options }, - reapplyOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmName, options }, + spec: reapplyOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -1133,14 +1146,14 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, options?: VirtualMachinesRestartOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -1173,13 +1186,13 @@ export class VirtualMachinesImpl implements VirtualMachines { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmName, options }, - restartOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmName, options }, + spec: restartOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -1211,14 +1224,14 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, options?: VirtualMachinesStartOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -1251,13 +1264,13 @@ export class VirtualMachinesImpl implements VirtualMachines { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmName, options }, - startOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmName, options }, + spec: startOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -1289,14 +1302,14 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, options?: VirtualMachinesRedeployOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -1329,13 +1342,13 @@ export class VirtualMachinesImpl implements VirtualMachines { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmName, options }, - redeployOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmName, options }, + spec: redeployOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -1372,14 +1385,14 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, options?: VirtualMachinesReimageOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -1412,13 +1425,13 @@ export class VirtualMachinesImpl implements VirtualMachines { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmName, options }, - reimageOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmName, options }, + spec: reimageOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -1472,14 +1485,14 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, options?: VirtualMachinesPerformMaintenanceOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -1512,13 +1525,13 @@ export class VirtualMachinesImpl implements VirtualMachines { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmName, options }, - performMaintenanceOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmName, options }, + spec: performMaintenanceOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -1572,8 +1585,8 @@ export class VirtualMachinesImpl implements VirtualMachines { vmName: string, options?: VirtualMachinesAssessPatchesOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, VirtualMachinesAssessPatchesResponse > > { @@ -1583,7 +1596,7 @@ export class VirtualMachinesImpl implements VirtualMachines { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -1616,15 +1629,18 @@ export class VirtualMachinesImpl implements VirtualMachines { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmName, options }, - assessPatchesOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmName, options }, + spec: assessPatchesOperationSpec + }); + const poller = await createHttpPoller< + VirtualMachinesAssessPatchesResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -1662,8 +1678,8 @@ export class VirtualMachinesImpl implements VirtualMachines { installPatchesInput: VirtualMachineInstallPatchesParameters, options?: VirtualMachinesInstallPatchesOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, VirtualMachinesInstallPatchesResponse > > { @@ -1673,7 +1689,7 @@ export class VirtualMachinesImpl implements VirtualMachines { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -1706,15 +1722,18 @@ export class VirtualMachinesImpl implements VirtualMachines { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmName, installPatchesInput, options }, - installPatchesOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmName, installPatchesInput, options }, + spec: installPatchesOperationSpec + }); + const poller = await createHttpPoller< + VirtualMachinesInstallPatchesResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -1755,8 +1774,8 @@ export class VirtualMachinesImpl implements VirtualMachines { parameters: RunCommandInput, options?: VirtualMachinesRunCommandOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, VirtualMachinesRunCommandResponse > > { @@ -1766,7 +1785,7 @@ export class VirtualMachinesImpl implements VirtualMachines { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -1799,15 +1818,18 @@ export class VirtualMachinesImpl implements VirtualMachines { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, vmName, parameters, options }, - runCommandOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmName, parameters, options }, + spec: runCommandOperationSpec + }); + const poller = await createHttpPoller< + VirtualMachinesRunCommandResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -2152,7 +2174,11 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion, Parameters.filter], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.expand3 + ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -2176,7 +2202,8 @@ const listAllOperationSpec: coreClient.OperationSpec = { queryParameters: [ Parameters.apiVersion, Parameters.filter, - Parameters.statusOnly + Parameters.statusOnly, + Parameters.expand4 ], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/capacityReservations.ts b/sdk/compute/arm-compute/src/operationsInterfaces/capacityReservations.ts index fee299cef1fa..0e7e2b65566f 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/capacityReservations.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/capacityReservations.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { CapacityReservation, CapacityReservationsListByCapacityReservationGroupOptionalParams, @@ -53,8 +53,8 @@ export interface CapacityReservations { parameters: CapacityReservation, options?: CapacityReservationsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, CapacityReservationsCreateOrUpdateResponse > >; @@ -90,8 +90,8 @@ export interface CapacityReservations { parameters: CapacityReservationUpdate, options?: CapacityReservationsUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, CapacityReservationsUpdateResponse > >; @@ -124,7 +124,7 @@ export interface CapacityReservations { capacityReservationGroupName: string, capacityReservationName: string, options?: CapacityReservationsDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * The operation to delete a capacity reservation. This operation is allowed only when all the * associated resources are disassociated from the capacity reservation. Please refer to diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/cloudServiceRoleInstances.ts b/sdk/compute/arm-compute/src/operationsInterfaces/cloudServiceRoleInstances.ts index 0a6312599448..b34256942c98 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/cloudServiceRoleInstances.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/cloudServiceRoleInstances.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { RoleInstance, CloudServiceRoleInstancesListOptionalParams, @@ -50,7 +50,7 @@ export interface CloudServiceRoleInstances { resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Deletes a role instance from a cloud service. * @param roleInstanceName Name of the role instance. @@ -103,7 +103,7 @@ export interface CloudServiceRoleInstances { resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesRestartOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud * service. @@ -131,7 +131,7 @@ export interface CloudServiceRoleInstances { resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesReimageOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web * roles or worker roles. @@ -160,7 +160,7 @@ export interface CloudServiceRoleInstances { resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesRebuildOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web * roles or worker roles and initializes the storage resources that are used by them. If you do not diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/cloudServices.ts b/sdk/compute/arm-compute/src/operationsInterfaces/cloudServices.ts index cdd15a97ecf9..3e7f88d72e7a 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/cloudServices.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/cloudServices.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { CloudService, CloudServicesListAllOptionalParams, @@ -63,8 +63,8 @@ export interface CloudServices { cloudServiceName: string, options?: CloudServicesCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, CloudServicesCreateOrUpdateResponse > >; @@ -91,8 +91,8 @@ export interface CloudServices { cloudServiceName: string, options?: CloudServicesUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, CloudServicesUpdateResponse > >; @@ -117,7 +117,7 @@ export interface CloudServices { resourceGroupName: string, cloudServiceName: string, options?: CloudServicesDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Deletes a cloud service. * @param resourceGroupName Name of the resource group. @@ -161,7 +161,7 @@ export interface CloudServices { resourceGroupName: string, cloudServiceName: string, options?: CloudServicesStartOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Starts the cloud service. * @param resourceGroupName Name of the resource group. @@ -184,7 +184,7 @@ export interface CloudServices { resourceGroupName: string, cloudServiceName: string, options?: CloudServicesPowerOffOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Power off the cloud service. Note that resources are still attached and you are getting charged for * the resources. @@ -207,7 +207,7 @@ export interface CloudServices { resourceGroupName: string, cloudServiceName: string, options?: CloudServicesRestartOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Restarts one or more role instances in a cloud service. * @param resourceGroupName Name of the resource group. @@ -230,7 +230,7 @@ export interface CloudServices { resourceGroupName: string, cloudServiceName: string, options?: CloudServicesReimageOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker * roles. @@ -255,7 +255,7 @@ export interface CloudServices { resourceGroupName: string, cloudServiceName: string, options?: CloudServicesRebuildOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and * initializes the storage resources that are used by them. If you do not want to initialize storage @@ -279,7 +279,7 @@ export interface CloudServices { resourceGroupName: string, cloudServiceName: string, options?: CloudServicesDeleteInstancesOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Deletes role instances in a cloud service. * @param resourceGroupName Name of the resource group. diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/cloudServicesUpdateDomain.ts b/sdk/compute/arm-compute/src/operationsInterfaces/cloudServicesUpdateDomain.ts index ef8d282899f7..88848d085687 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/cloudServicesUpdateDomain.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/cloudServicesUpdateDomain.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { UpdateDomain, CloudServicesUpdateDomainListUpdateDomainsOptionalParams, @@ -44,7 +44,7 @@ export interface CloudServicesUpdateDomain { cloudServiceName: string, updateDomain: number, options?: CloudServicesUpdateDomainWalkUpdateDomainOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Updates the role instances in the specified update domain. * @param resourceGroupName Name of the resource group. diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/dedicatedHosts.ts b/sdk/compute/arm-compute/src/operationsInterfaces/dedicatedHosts.ts index 74adf52cb1df..6f8b65adf57c 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/dedicatedHosts.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/dedicatedHosts.ts @@ -7,10 +7,11 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { DedicatedHost, DedicatedHostsListByHostGroupOptionalParams, + DedicatedHostsListAvailableSizesOptionalParams, DedicatedHostsCreateOrUpdateOptionalParams, DedicatedHostsCreateOrUpdateResponse, DedicatedHostUpdate, @@ -37,6 +38,20 @@ export interface DedicatedHosts { hostGroupName: string, options?: DedicatedHostsListByHostGroupOptionalParams ): PagedAsyncIterableIterator; + /** + * Lists all available dedicated host sizes to which the specified dedicated host can be resized. NOTE: + * The dedicated host sizes provided can be used to only scale up the existing dedicated host. + * @param resourceGroupName The name of the resource group. + * @param hostGroupName The name of the dedicated host group. + * @param hostName The name of the dedicated host. + * @param options The options parameters. + */ + listAvailableSizes( + resourceGroupName: string, + hostGroupName: string, + hostName: string, + options?: DedicatedHostsListAvailableSizesOptionalParams + ): PagedAsyncIterableIterator; /** * Create or update a dedicated host . * @param resourceGroupName The name of the resource group. @@ -52,8 +67,8 @@ export interface DedicatedHosts { parameters: DedicatedHost, options?: DedicatedHostsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, DedicatedHostsCreateOrUpdateResponse > >; @@ -73,7 +88,7 @@ export interface DedicatedHosts { options?: DedicatedHostsCreateOrUpdateOptionalParams ): Promise; /** - * Update an dedicated host . + * Update a dedicated host . * @param resourceGroupName The name of the resource group. * @param hostGroupName The name of the dedicated host group. * @param hostName The name of the dedicated host . @@ -87,13 +102,13 @@ export interface DedicatedHosts { parameters: DedicatedHostUpdate, options?: DedicatedHostsUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, DedicatedHostsUpdateResponse > >; /** - * Update an dedicated host . + * Update a dedicated host . * @param resourceGroupName The name of the resource group. * @param hostGroupName The name of the dedicated host group. * @param hostName The name of the dedicated host . @@ -119,7 +134,7 @@ export interface DedicatedHosts { hostGroupName: string, hostName: string, options?: DedicatedHostsDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Delete a dedicated host. * @param resourceGroupName The name of the resource group. @@ -161,7 +176,7 @@ export interface DedicatedHosts { hostGroupName: string, hostName: string, options?: DedicatedHostsRestartOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Restart the dedicated host. The operation will complete successfully once the dedicated host has * restarted and is running. To determine the health of VMs deployed on the dedicated host after the diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/diskAccesses.ts b/sdk/compute/arm-compute/src/operationsInterfaces/diskAccesses.ts index b443314ae9ae..b3f40067e821 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/diskAccesses.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/diskAccesses.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { DiskAccess, DiskAccessesListByResourceGroupOptionalParams, @@ -78,8 +78,8 @@ export interface DiskAccesses { diskAccess: DiskAccess, options?: DiskAccessesCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, DiskAccessesCreateOrUpdateResponse > >; @@ -113,8 +113,8 @@ export interface DiskAccesses { diskAccess: DiskAccessUpdate, options?: DiskAccessesUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, DiskAccessesUpdateResponse > >; @@ -158,7 +158,7 @@ export interface DiskAccesses { resourceGroupName: string, diskAccessName: string, options?: DiskAccessesDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Deletes a disk access resource. * @param resourceGroupName The name of the resource group. @@ -204,8 +204,8 @@ export interface DiskAccesses { privateEndpointConnection: PrivateEndpointConnection, options?: DiskAccessesUpdateAPrivateEndpointConnectionOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, DiskAccessesUpdateAPrivateEndpointConnectionResponse > >; @@ -257,7 +257,7 @@ export interface DiskAccesses { diskAccessName: string, privateEndpointConnectionName: string, options?: DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Deletes a private endpoint connection under a disk access resource. * @param resourceGroupName The name of the resource group. diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/diskEncryptionSets.ts b/sdk/compute/arm-compute/src/operationsInterfaces/diskEncryptionSets.ts index 08ec1aec15f4..081a6b26d905 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/diskEncryptionSets.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/diskEncryptionSets.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { DiskEncryptionSet, DiskEncryptionSetsListByResourceGroupOptionalParams, @@ -71,8 +71,8 @@ export interface DiskEncryptionSets { diskEncryptionSet: DiskEncryptionSet, options?: DiskEncryptionSetsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, DiskEncryptionSetsCreateOrUpdateResponse > >; @@ -108,8 +108,8 @@ export interface DiskEncryptionSets { diskEncryptionSet: DiskEncryptionSetUpdate, options?: DiskEncryptionSetsUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, DiskEncryptionSetsUpdateResponse > >; @@ -154,7 +154,7 @@ export interface DiskEncryptionSets { resourceGroupName: string, diskEncryptionSetName: string, options?: DiskEncryptionSetsDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Deletes a disk encryption set. * @param resourceGroupName The name of the resource group. diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/diskRestorePointOperations.ts b/sdk/compute/arm-compute/src/operationsInterfaces/diskRestorePointOperations.ts index 3c0c927d99d4..2701737e062b 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/diskRestorePointOperations.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/diskRestorePointOperations.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { DiskRestorePoint, DiskRestorePointListByRestorePointOptionalParams, @@ -70,8 +70,8 @@ export interface DiskRestorePointOperations { grantAccessData: GrantAccessData, options?: DiskRestorePointGrantAccessOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, DiskRestorePointGrantAccessResponse > >; @@ -108,7 +108,7 @@ export interface DiskRestorePointOperations { vmRestorePointName: string, diskRestorePointName: string, options?: DiskRestorePointRevokeAccessOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Revokes access to a diskRestorePoint. * @param resourceGroupName The name of the resource group. diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/disks.ts b/sdk/compute/arm-compute/src/operationsInterfaces/disks.ts index 45c95bbc1c2c..0dc932c7eb90 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/disks.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/disks.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { Disk, DisksListByResourceGroupOptionalParams, @@ -58,8 +58,8 @@ export interface Disks { disk: Disk, options?: DisksCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, DisksCreateOrUpdateResponse > >; @@ -93,7 +93,7 @@ export interface Disks { disk: DiskUpdate, options?: DisksUpdateOptionalParams ): Promise< - PollerLike, DisksUpdateResponse> + SimplePollerLike, DisksUpdateResponse> >; /** * Updates (patches) a disk. @@ -135,7 +135,7 @@ export interface Disks { resourceGroupName: string, diskName: string, options?: DisksDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Deletes a disk. * @param resourceGroupName The name of the resource group. @@ -164,8 +164,8 @@ export interface Disks { grantAccessData: GrantAccessData, options?: DisksGrantAccessOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, DisksGrantAccessResponse > >; @@ -196,7 +196,7 @@ export interface Disks { resourceGroupName: string, diskName: string, options?: DisksRevokeAccessOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Revokes access to a disk. * @param resourceGroupName The name of the resource group. diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/galleries.ts b/sdk/compute/arm-compute/src/operationsInterfaces/galleries.ts index 7b4bdba44e0b..b650db80e3d4 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/galleries.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/galleries.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { Gallery, GalleriesListByResourceGroupOptionalParams, @@ -55,8 +55,8 @@ export interface Galleries { gallery: Gallery, options?: GalleriesCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, GalleriesCreateOrUpdateResponse > >; @@ -88,8 +88,8 @@ export interface Galleries { gallery: GalleryUpdate, options?: GalleriesUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, GalleriesUpdateResponse > >; @@ -128,7 +128,7 @@ export interface Galleries { resourceGroupName: string, galleryName: string, options?: GalleriesDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Delete a Shared Image Gallery. * @param resourceGroupName The name of the resource group. diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/galleryApplicationVersions.ts b/sdk/compute/arm-compute/src/operationsInterfaces/galleryApplicationVersions.ts index 0cbbb3f3374e..bf5b50c76d33 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/galleryApplicationVersions.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/galleryApplicationVersions.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { GalleryApplicationVersion, GalleryApplicationVersionsListByGalleryApplicationOptionalParams, @@ -61,8 +61,8 @@ export interface GalleryApplicationVersions { galleryApplicationVersion: GalleryApplicationVersion, options?: GalleryApplicationVersionsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, GalleryApplicationVersionsCreateOrUpdateResponse > >; @@ -110,8 +110,8 @@ export interface GalleryApplicationVersions { galleryApplicationVersion: GalleryApplicationVersionUpdate, options?: GalleryApplicationVersionsUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, GalleryApplicationVersionsUpdateResponse > >; @@ -170,7 +170,7 @@ export interface GalleryApplicationVersions { galleryApplicationName: string, galleryApplicationVersionName: string, options?: GalleryApplicationVersionsDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Delete a gallery Application Version. * @param resourceGroupName The name of the resource group. diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/galleryApplications.ts b/sdk/compute/arm-compute/src/operationsInterfaces/galleryApplications.ts index 2b54f24b2737..14c4d53d8e90 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/galleryApplications.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/galleryApplications.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { GalleryApplication, GalleryApplicationsListByGalleryOptionalParams, @@ -54,8 +54,8 @@ export interface GalleryApplications { galleryApplication: GalleryApplication, options?: GalleryApplicationsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, GalleryApplicationsCreateOrUpdateResponse > >; @@ -95,8 +95,8 @@ export interface GalleryApplications { galleryApplication: GalleryApplicationUpdate, options?: GalleryApplicationsUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, GalleryApplicationsUpdateResponse > >; @@ -145,7 +145,7 @@ export interface GalleryApplications { galleryName: string, galleryApplicationName: string, options?: GalleryApplicationsDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Delete a gallery Application. * @param resourceGroupName The name of the resource group. diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/galleryImageVersions.ts b/sdk/compute/arm-compute/src/operationsInterfaces/galleryImageVersions.ts index 88568f152ebc..4b0460bc2156 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/galleryImageVersions.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/galleryImageVersions.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { GalleryImageVersion, GalleryImageVersionsListByGalleryImageOptionalParams, @@ -59,8 +59,8 @@ export interface GalleryImageVersions { galleryImageVersion: GalleryImageVersion, options?: GalleryImageVersionsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, GalleryImageVersionsCreateOrUpdateResponse > >; @@ -105,8 +105,8 @@ export interface GalleryImageVersions { galleryImageVersion: GalleryImageVersionUpdate, options?: GalleryImageVersionsUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, GalleryImageVersionsUpdateResponse > >; @@ -159,7 +159,7 @@ export interface GalleryImageVersions { galleryImageName: string, galleryImageVersionName: string, options?: GalleryImageVersionsDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Delete a gallery image version. * @param resourceGroupName The name of the resource group. diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/galleryImages.ts b/sdk/compute/arm-compute/src/operationsInterfaces/galleryImages.ts index 62814dbbee39..1e602f987fee 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/galleryImages.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/galleryImages.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { GalleryImage, GalleryImagesListByGalleryOptionalParams, @@ -54,8 +54,8 @@ export interface GalleryImages { galleryImage: GalleryImage, options?: GalleryImagesCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, GalleryImagesCreateOrUpdateResponse > >; @@ -95,8 +95,8 @@ export interface GalleryImages { galleryImage: GalleryImageUpdate, options?: GalleryImagesUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, GalleryImagesUpdateResponse > >; @@ -145,7 +145,7 @@ export interface GalleryImages { galleryName: string, galleryImageName: string, options?: GalleryImagesDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Delete a gallery image. * @param resourceGroupName The name of the resource group. diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/gallerySharingProfile.ts b/sdk/compute/arm-compute/src/operationsInterfaces/gallerySharingProfile.ts index 7010d5dab95d..d3de32b681fc 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/gallerySharingProfile.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/gallerySharingProfile.ts @@ -6,7 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { SharingUpdate, GallerySharingProfileUpdateOptionalParams, @@ -28,8 +28,8 @@ export interface GallerySharingProfile { sharingUpdate: SharingUpdate, options?: GallerySharingProfileUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, GallerySharingProfileUpdateResponse > >; diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/images.ts b/sdk/compute/arm-compute/src/operationsInterfaces/images.ts index fdf6a39efb2c..8996335436a7 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/images.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/images.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { Image, ImagesListByResourceGroupOptionalParams, @@ -53,8 +53,8 @@ export interface Images { parameters: Image, options?: ImagesCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ImagesCreateOrUpdateResponse > >; @@ -84,7 +84,7 @@ export interface Images { parameters: ImageUpdate, options?: ImagesUpdateOptionalParams ): Promise< - PollerLike, ImagesUpdateResponse> + SimplePollerLike, ImagesUpdateResponse> >; /** * Update an image. @@ -109,7 +109,7 @@ export interface Images { resourceGroupName: string, imageName: string, options?: ImagesDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Deletes an Image. * @param resourceGroupName The name of the resource group. diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/logAnalytics.ts b/sdk/compute/arm-compute/src/operationsInterfaces/logAnalytics.ts index bf6667d7628a..d6ffc9ae5ba0 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/logAnalytics.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/logAnalytics.ts @@ -6,7 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { RequestRateByIntervalInput, LogAnalyticsExportRequestRateByIntervalOptionalParams, @@ -30,8 +30,8 @@ export interface LogAnalytics { parameters: RequestRateByIntervalInput, options?: LogAnalyticsExportRequestRateByIntervalOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, LogAnalyticsExportRequestRateByIntervalResponse > >; @@ -58,8 +58,8 @@ export interface LogAnalytics { parameters: ThrottledRequestsInput, options?: LogAnalyticsExportThrottledRequestsOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, LogAnalyticsExportThrottledRequestsResponse > >; diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/restorePointCollections.ts b/sdk/compute/arm-compute/src/operationsInterfaces/restorePointCollections.ts index 89be36d342ef..86bc3d4aa55a 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/restorePointCollections.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/restorePointCollections.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { RestorePointCollection, RestorePointCollectionsListOptionalParams, @@ -82,7 +82,7 @@ export interface RestorePointCollections { resourceGroupName: string, restorePointCollectionName: string, options?: RestorePointCollectionsDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * The operation to delete the restore point collection. This operation will also delete all the * contained restore points. diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/restorePoints.ts b/sdk/compute/arm-compute/src/operationsInterfaces/restorePoints.ts index 5eff03b299ae..4c46e1a8a161 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/restorePoints.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/restorePoints.ts @@ -6,7 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { RestorePoint, RestorePointsCreateOptionalParams, @@ -34,8 +34,8 @@ export interface RestorePoints { parameters: RestorePoint, options?: RestorePointsCreateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, RestorePointsCreateResponse > >; @@ -67,7 +67,7 @@ export interface RestorePoints { restorePointCollectionName: string, restorePointName: string, options?: RestorePointsDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * The operation to delete the restore point. * @param resourceGroupName The name of the resource group. diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/snapshots.ts b/sdk/compute/arm-compute/src/operationsInterfaces/snapshots.ts index 21d2c58b6cb6..bcc82b28779e 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/snapshots.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/snapshots.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { Snapshot, SnapshotsListByResourceGroupOptionalParams, @@ -60,8 +60,8 @@ export interface Snapshots { snapshot: Snapshot, options?: SnapshotsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, SnapshotsCreateOrUpdateResponse > >; @@ -95,8 +95,8 @@ export interface Snapshots { snapshot: SnapshotUpdate, options?: SnapshotsUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, SnapshotsUpdateResponse > >; @@ -140,7 +140,7 @@ export interface Snapshots { resourceGroupName: string, snapshotName: string, options?: SnapshotsDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Deletes a snapshot. * @param resourceGroupName The name of the resource group. @@ -169,8 +169,8 @@ export interface Snapshots { grantAccessData: GrantAccessData, options?: SnapshotsGrantAccessOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, SnapshotsGrantAccessResponse > >; @@ -201,7 +201,7 @@ export interface Snapshots { resourceGroupName: string, snapshotName: string, options?: SnapshotsRevokeAccessOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Revokes access to a snapshot. * @param resourceGroupName The name of the resource group. diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineExtensions.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineExtensions.ts index 7c4f884002ff..95731c5b27da 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineExtensions.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineExtensions.ts @@ -6,7 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { VirtualMachineExtension, VirtualMachineExtensionsCreateOrUpdateOptionalParams, @@ -38,8 +38,8 @@ export interface VirtualMachineExtensions { extensionParameters: VirtualMachineExtension, options?: VirtualMachineExtensionsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, VirtualMachineExtensionsCreateOrUpdateResponse > >; @@ -73,8 +73,8 @@ export interface VirtualMachineExtensions { extensionParameters: VirtualMachineExtensionUpdate, options?: VirtualMachineExtensionsUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, VirtualMachineExtensionsUpdateResponse > >; @@ -105,7 +105,7 @@ export interface VirtualMachineExtensions { vmName: string, vmExtensionName: string, options?: VirtualMachineExtensionsDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * The operation to delete the extension. * @param resourceGroupName The name of the resource group. diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineRunCommands.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineRunCommands.ts index 810b9e62aa00..8a16255431b6 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineRunCommands.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineRunCommands.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { RunCommandDocumentBase, VirtualMachineRunCommandsListOptionalParams, @@ -74,8 +74,8 @@ export interface VirtualMachineRunCommands { runCommand: VirtualMachineRunCommand, options?: VirtualMachineRunCommandsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, VirtualMachineRunCommandsCreateOrUpdateResponse > >; @@ -109,8 +109,8 @@ export interface VirtualMachineRunCommands { runCommand: VirtualMachineRunCommandUpdate, options?: VirtualMachineRunCommandsUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, VirtualMachineRunCommandsUpdateResponse > >; @@ -141,7 +141,7 @@ export interface VirtualMachineRunCommands { vmName: string, runCommandName: string, options?: VirtualMachineRunCommandsDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * The operation to delete the run command. * @param resourceGroupName The name of the resource group. diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetExtensions.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetExtensions.ts index f6fa2d40c19d..d286677fa2eb 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetExtensions.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetExtensions.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { VirtualMachineScaleSetExtension, VirtualMachineScaleSetExtensionsListOptionalParams, @@ -50,10 +50,8 @@ export interface VirtualMachineScaleSetExtensions { extensionParameters: VirtualMachineScaleSetExtension, options?: VirtualMachineScaleSetExtensionsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState< - VirtualMachineScaleSetExtensionsCreateOrUpdateResponse - >, + SimplePollerLike< + OperationState, VirtualMachineScaleSetExtensionsCreateOrUpdateResponse > >; @@ -87,8 +85,8 @@ export interface VirtualMachineScaleSetExtensions { extensionParameters: VirtualMachineScaleSetExtensionUpdate, options?: VirtualMachineScaleSetExtensionsUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, VirtualMachineScaleSetExtensionsUpdateResponse > >; @@ -119,7 +117,7 @@ export interface VirtualMachineScaleSetExtensions { vmScaleSetName: string, vmssExtensionName: string, options?: VirtualMachineScaleSetExtensionsDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * The operation to delete the extension. * @param resourceGroupName The name of the resource group. diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetRollingUpgrades.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetRollingUpgrades.ts index a51bb8b45a0c..a1326e13e258 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetRollingUpgrades.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetRollingUpgrades.ts @@ -6,7 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { VirtualMachineScaleSetRollingUpgradesCancelOptionalParams, VirtualMachineScaleSetRollingUpgradesStartOSUpgradeOptionalParams, @@ -27,7 +27,7 @@ export interface VirtualMachineScaleSetRollingUpgrades { resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetRollingUpgradesCancelOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Cancels the current virtual machine scale set rolling upgrade. * @param resourceGroupName The name of the resource group. @@ -51,7 +51,7 @@ export interface VirtualMachineScaleSetRollingUpgrades { resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetRollingUpgradesStartOSUpgradeOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Starts a rolling upgrade to move all virtual machine scale set instances to the latest available * Platform Image OS version. Instances which are already running the latest available OS version are @@ -77,7 +77,7 @@ export interface VirtualMachineScaleSetRollingUpgrades { resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Starts a rolling upgrade to move all extensions for all virtual machine scale set instances to the * latest available extension version. Instances which are already running the latest extension diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMExtensions.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMExtensions.ts index d54029f9a997..ecd3190015b1 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMExtensions.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMExtensions.ts @@ -6,7 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { VirtualMachineScaleSetVMExtension, VirtualMachineScaleSetVMExtensionsCreateOrUpdateOptionalParams, @@ -40,10 +40,8 @@ export interface VirtualMachineScaleSetVMExtensions { extensionParameters: VirtualMachineScaleSetVMExtension, options?: VirtualMachineScaleSetVMExtensionsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState< - VirtualMachineScaleSetVMExtensionsCreateOrUpdateResponse - >, + SimplePollerLike< + OperationState, VirtualMachineScaleSetVMExtensionsCreateOrUpdateResponse > >; @@ -81,8 +79,8 @@ export interface VirtualMachineScaleSetVMExtensions { extensionParameters: VirtualMachineScaleSetVMExtensionUpdate, options?: VirtualMachineScaleSetVMExtensionsUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, VirtualMachineScaleSetVMExtensionsUpdateResponse > >; @@ -117,7 +115,7 @@ export interface VirtualMachineScaleSetVMExtensions { instanceId: string, vmExtensionName: string, options?: VirtualMachineScaleSetVMExtensionsDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * The operation to delete the VMSS VM extension. * @param resourceGroupName The name of the resource group. diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMRunCommands.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMRunCommands.ts index 2722e0347945..12f69421b9ce 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMRunCommands.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMRunCommands.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { VirtualMachineRunCommand, VirtualMachineScaleSetVMRunCommandsListOptionalParams, @@ -54,10 +54,8 @@ export interface VirtualMachineScaleSetVMRunCommands { runCommand: VirtualMachineRunCommand, options?: VirtualMachineScaleSetVMRunCommandsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState< - VirtualMachineScaleSetVMRunCommandsCreateOrUpdateResponse - >, + SimplePollerLike< + OperationState, VirtualMachineScaleSetVMRunCommandsCreateOrUpdateResponse > >; @@ -95,8 +93,8 @@ export interface VirtualMachineScaleSetVMRunCommands { runCommand: VirtualMachineRunCommandUpdate, options?: VirtualMachineScaleSetVMRunCommandsUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, VirtualMachineScaleSetVMRunCommandsUpdateResponse > >; @@ -131,7 +129,7 @@ export interface VirtualMachineScaleSetVMRunCommands { instanceId: string, runCommandName: string, options?: VirtualMachineScaleSetVMRunCommandsDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * The operation to delete the VMSS VM run command. * @param resourceGroupName The name of the resource group. diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMs.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMs.ts index 4992cbb93f6d..5ddf9379316b 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMs.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMs.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { VirtualMachineScaleSetVM, VirtualMachineScaleSetVMsListOptionalParams, @@ -60,7 +60,7 @@ export interface VirtualMachineScaleSetVMs { vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsReimageOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Reimages (upgrade the operating system) a specific virtual machine in a VM scale set. * @param resourceGroupName The name of the resource group. @@ -87,7 +87,7 @@ export interface VirtualMachineScaleSetVMs { vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsReimageAllOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This * operation is only supported for managed disks. @@ -116,7 +116,7 @@ export interface VirtualMachineScaleSetVMs { vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsDeallocateOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and * releases the compute resources it uses. You are not billed for the compute resources of this virtual @@ -147,8 +147,8 @@ export interface VirtualMachineScaleSetVMs { parameters: VirtualMachineScaleSetVM, options?: VirtualMachineScaleSetVMsUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, VirtualMachineScaleSetVMsUpdateResponse > >; @@ -179,7 +179,7 @@ export interface VirtualMachineScaleSetVMs { vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Deletes a virtual machine from a VM scale set. * @param resourceGroupName The name of the resource group. @@ -233,7 +233,7 @@ export interface VirtualMachineScaleSetVMs { vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsPowerOffOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you * are getting charged for the resources. Instead, use deallocate to release resources and avoid @@ -261,7 +261,7 @@ export interface VirtualMachineScaleSetVMs { vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsRestartOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Restarts a virtual machine in a VM scale set. * @param resourceGroupName The name of the resource group. @@ -287,7 +287,7 @@ export interface VirtualMachineScaleSetVMs { vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsStartOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Starts a virtual machine in a VM scale set. * @param resourceGroupName The name of the resource group. @@ -314,7 +314,7 @@ export interface VirtualMachineScaleSetVMs { vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsRedeployOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers * it back on. @@ -354,7 +354,7 @@ export interface VirtualMachineScaleSetVMs { vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsPerformMaintenanceOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Performs maintenance on a virtual machine in a VM scale set. * @param resourceGroupName The name of the resource group. @@ -396,8 +396,8 @@ export interface VirtualMachineScaleSetVMs { parameters: RunCommandInput, options?: VirtualMachineScaleSetVMsRunCommandOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, VirtualMachineScaleSetVMsRunCommandResponse > >; diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSets.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSets.ts index d27dfb19d234..7fd91293bcbb 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSets.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSets.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { VirtualMachineScaleSet, VirtualMachineScaleSetsListByLocationOptionalParams, @@ -33,6 +33,7 @@ import { VirtualMachineScaleSetsPowerOffOptionalParams, VirtualMachineScaleSetsRestartOptionalParams, VirtualMachineScaleSetsStartOptionalParams, + VirtualMachineScaleSetsReapplyOptionalParams, VirtualMachineScaleSetsRedeployOptionalParams, VirtualMachineScaleSetsPerformMaintenanceOptionalParams, VirtualMachineScaleSetsUpdateInstancesOptionalParams, @@ -112,8 +113,8 @@ export interface VirtualMachineScaleSets { parameters: VirtualMachineScaleSet, options?: VirtualMachineScaleSetsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, VirtualMachineScaleSetsCreateOrUpdateResponse > >; @@ -143,8 +144,8 @@ export interface VirtualMachineScaleSets { parameters: VirtualMachineScaleSetUpdate, options?: VirtualMachineScaleSetsUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, VirtualMachineScaleSetsUpdateResponse > >; @@ -171,7 +172,7 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Deletes a VM scale set. * @param resourceGroupName The name of the resource group. @@ -206,7 +207,7 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsDeallocateOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and * releases the compute resources. You are not billed for the compute resources that this virtual @@ -232,7 +233,7 @@ export interface VirtualMachineScaleSets { vmScaleSetName: string, vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs, options?: VirtualMachineScaleSetsDeleteInstancesOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Deletes virtual machines in a VM scale set. * @param resourceGroupName The name of the resource group. @@ -269,7 +270,7 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsPowerOffOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still * attached and you are getting charged for the resources. Instead, use deallocate to release resources @@ -293,7 +294,7 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsRestartOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Restarts one or more virtual machines in a VM scale set. * @param resourceGroupName The name of the resource group. @@ -315,7 +316,7 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsStartOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Starts one or more virtual machines in a VM scale set. * @param resourceGroupName The name of the resource group. @@ -327,6 +328,28 @@ export interface VirtualMachineScaleSets { vmScaleSetName: string, options?: VirtualMachineScaleSetsStartOptionalParams ): Promise; + /** + * Reapplies the Virtual Machine Scale Set Virtual Machine Profile to the Virtual Machine Instances + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param options The options parameters. + */ + beginReapply( + resourceGroupName: string, + vmScaleSetName: string, + options?: VirtualMachineScaleSetsReapplyOptionalParams + ): Promise, void>>; + /** + * Reapplies the Virtual Machine Scale Set Virtual Machine Profile to the Virtual Machine Instances + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param options The options parameters. + */ + beginReapplyAndWait( + resourceGroupName: string, + vmScaleSetName: string, + options?: VirtualMachineScaleSetsReapplyOptionalParams + ): Promise; /** * Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and * powers them back on. @@ -338,7 +361,7 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsRedeployOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and * powers them back on. @@ -364,7 +387,7 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsPerformMaintenanceOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which * are not eligible for perform maintenance will be failed. Please refer to best practices for more @@ -391,7 +414,7 @@ export interface VirtualMachineScaleSets { vmScaleSetName: string, vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs, options?: VirtualMachineScaleSetsUpdateInstancesOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Upgrades one or more virtual machines to the latest SKU set in the VM scale set model. * @param resourceGroupName The name of the resource group. @@ -417,7 +440,7 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsReimageOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don't * have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is @@ -442,7 +465,7 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsReimageAllOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This * operation is only supported for managed disks. @@ -496,7 +519,7 @@ export interface VirtualMachineScaleSets { vmScaleSetName: string, parameters: OrchestrationServiceStateInput, options?: VirtualMachineScaleSetsSetOrchestrationServiceStateOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Changes ServiceState property for a given service * @param resourceGroupName The name of the resource group. diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachines.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachines.ts index 774e862e2fe0..e38c7c25ba0f 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachines.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachines.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { VirtualMachine, VirtualMachinesListByLocationOptionalParams, @@ -106,8 +106,8 @@ export interface VirtualMachines { parameters: VirtualMachineCaptureParameters, options?: VirtualMachinesCaptureOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, VirtualMachinesCaptureResponse > >; @@ -139,8 +139,8 @@ export interface VirtualMachines { parameters: VirtualMachine, options?: VirtualMachinesCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, VirtualMachinesCreateOrUpdateResponse > >; @@ -171,8 +171,8 @@ export interface VirtualMachines { parameters: VirtualMachineUpdate, options?: VirtualMachinesUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, VirtualMachinesUpdateResponse > >; @@ -199,7 +199,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, options?: VirtualMachinesDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * The operation to delete a virtual machine. * @param resourceGroupName The name of the resource group. @@ -244,7 +244,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, options?: VirtualMachinesConvertToManagedDisksOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Converts virtual machine disks from blob-based to managed disks. Virtual machine must be * stop-deallocated before invoking this operation. @@ -268,7 +268,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, options?: VirtualMachinesDeallocateOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Shuts down the virtual machine and releases the compute resources. You are not billed for the * compute resources that this virtual machine uses. @@ -283,10 +283,10 @@ export interface VirtualMachines { ): Promise; /** * Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual - * machine before performing this operation.
    For Windows, please refer to [Create a managed image - * of a generalized VM in - * Azure](https://docs.microsoft.com/azure/virtual-machines/windows/capture-image-resource).
    For - * Linux, please refer to [How to create an image of a virtual machine or + * machine before performing this operation. For Windows, please refer to [Create a managed image of a + * generalized VM in + * Azure](https://docs.microsoft.com/azure/virtual-machines/windows/capture-image-resource). For Linux, + * please refer to [How to create an image of a virtual machine or * VHD](https://docs.microsoft.com/azure/virtual-machines/linux/capture-image). * @param resourceGroupName The name of the resource group. * @param vmName The name of the virtual machine. @@ -308,7 +308,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, options?: VirtualMachinesPowerOffOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the * same provisioned resources. You are still charged for this virtual machine. @@ -331,7 +331,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, options?: VirtualMachinesReapplyOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * The operation to reapply a virtual machine's state. * @param resourceGroupName The name of the resource group. @@ -353,7 +353,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, options?: VirtualMachinesRestartOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * The operation to restart a virtual machine. * @param resourceGroupName The name of the resource group. @@ -375,7 +375,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, options?: VirtualMachinesStartOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * The operation to start a virtual machine. * @param resourceGroupName The name of the resource group. @@ -397,7 +397,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, options?: VirtualMachinesRedeployOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Shuts down the virtual machine, moves it to a new node, and powers it back on. * @param resourceGroupName The name of the resource group. @@ -424,7 +424,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, options?: VirtualMachinesReimageOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for * virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. NOTE: @@ -462,7 +462,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, options?: VirtualMachinesPerformMaintenanceOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * The operation to perform maintenance on a virtual machine. * @param resourceGroupName The name of the resource group. @@ -496,8 +496,8 @@ export interface VirtualMachines { vmName: string, options?: VirtualMachinesAssessPatchesOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, VirtualMachinesAssessPatchesResponse > >; @@ -525,8 +525,8 @@ export interface VirtualMachines { installPatchesInput: VirtualMachineInstallPatchesParameters, options?: VirtualMachinesInstallPatchesOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, VirtualMachinesInstallPatchesResponse > >; @@ -556,8 +556,8 @@ export interface VirtualMachines { parameters: RunCommandInput, options?: VirtualMachinesRunCommandOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, VirtualMachinesRunCommandResponse > >; From eaf6d21e35c9d3a93361a14bf8301ab6f97af1e7 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Wed, 17 May 2023 14:23:03 +0800 Subject: [PATCH 2/2] update files --- sdk/compute/arm-compute/CHANGELOG.md | 8 +++- sdk/compute/arm-compute/_meta.json | 2 +- sdk/compute/arm-compute/assets.json | 2 +- .../arm-compute/review/arm-compute.api.md | 23 +++++++-- sdk/compute/arm-compute/src/models/index.ts | 47 +++++++++++++++---- sdk/compute/arm-compute/src/models/mappers.ts | 29 +++++++++++- 6 files changed, 95 insertions(+), 16 deletions(-) diff --git a/sdk/compute/arm-compute/CHANGELOG.md b/sdk/compute/arm-compute/CHANGELOG.md index 9b8e35563b5f..e0941097d7d6 100644 --- a/sdk/compute/arm-compute/CHANGELOG.md +++ b/sdk/compute/arm-compute/CHANGELOG.md @@ -1,12 +1,13 @@ # Release History -## 21.0.0 (2023-05-06) +## 21.0.0 (2023-05-17) **Features** - Added operation DedicatedHosts.listAvailableSizes - Added operation VirtualMachineScaleSets.beginReapply - Added operation VirtualMachineScaleSets.beginReapplyAndWait + - Added Interface CommunityGalleryImageIdentifier - Added Interface DedicatedHostSizeListResult - Added Interface DedicatedHostsListAvailableSizesOptionalParams - Added Interface DiskRestorePointAttributes @@ -16,6 +17,7 @@ - Added Interface VirtualMachineScaleSetsReapplyHeaders - Added Interface VirtualMachineScaleSetsReapplyOptionalParams - Added Type Alias DedicatedHostsListAvailableSizesResponse + - Added Type Alias EdgeZoneStorageAccountType - Added Type Alias ExpandTypeForListVMs - Added Type Alias ExpandTypesForListVMs - Added Type Alias RestorePointEncryptionType @@ -45,13 +47,15 @@ - Interface VirtualMachinesListAllOptionalParams has a new optional parameter expand - Interface VirtualMachinesListOptionalParams has a new optional parameter expand - Interface WindowsVMGuestPatchAutomaticByPlatformSettings has a new optional parameter bypassPlatformSafetyChecksOnUserSchedule + - Added Enum KnownEdgeZoneStorageAccountType - Added Enum KnownExpandTypeForListVMs - Added Enum KnownExpandTypesForListVMs - Added Enum KnownRestorePointEncryptionType - - Enum KnownStorageAccountType has a new value StandardSSDLRS **Breaking Changes** + - Type of parameter identifier of interface CommunityGalleryImage is changed from GalleryImageIdentifier to CommunityGalleryImageIdentifier + - Type of parameter storageAccountType of interface GalleryTargetExtendedLocation is changed from StorageAccountType to EdgeZoneStorageAccountType - Type of parameter diskRestorePoint of interface RestorePointSourceVMDataDisk is changed from ApiEntityReference to DiskRestorePointAttributes - Type of parameter diskRestorePoint of interface RestorePointSourceVmosDisk is changed from ApiEntityReference to DiskRestorePointAttributes diff --git a/sdk/compute/arm-compute/_meta.json b/sdk/compute/arm-compute/_meta.json index 0388b354bcbe..826fb6a5033f 100644 --- a/sdk/compute/arm-compute/_meta.json +++ b/sdk/compute/arm-compute/_meta.json @@ -1,5 +1,5 @@ { - "commit": "3c639105c011765893db51cbb0dda056e34dc994", + "commit": "a2140e7ff0a6c28df501b16c51fe85b762a386fc", "readme": "specification/compute/resource-manager/readme.md", "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\compute\\resource-manager\\readme.md --use=@autorest/typescript@6.0.1 --generate-sample=true", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", diff --git a/sdk/compute/arm-compute/assets.json b/sdk/compute/arm-compute/assets.json index aa273913079b..80f833782bb1 100644 --- a/sdk/compute/arm-compute/assets.json +++ b/sdk/compute/arm-compute/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/compute/arm-compute", - "Tag": "js/compute/arm-compute_3b314d171a" + "Tag": "js/compute/arm-compute_dfb2c4285a" } diff --git a/sdk/compute/arm-compute/review/arm-compute.api.md b/sdk/compute/arm-compute/review/arm-compute.api.md index c85fcd387063..2bc70772e10b 100644 --- a/sdk/compute/arm-compute/review/arm-compute.api.md +++ b/sdk/compute/arm-compute/review/arm-compute.api.md @@ -941,7 +941,7 @@ export interface CommunityGalleryImage extends PirCommunityGalleryResource { eula?: string; features?: GalleryImageFeature[]; hyperVGeneration?: HyperVGeneration; - identifier?: GalleryImageIdentifier; + identifier?: CommunityGalleryImageIdentifier; osState?: OperatingSystemStateTypes; osType?: OperatingSystemTypes; privacyStatementUri?: string; @@ -949,6 +949,13 @@ export interface CommunityGalleryImage extends PirCommunityGalleryResource { recommended?: RecommendedMachineConfiguration; } +// @public +export interface CommunityGalleryImageIdentifier { + offer?: string; + publisher?: string; + sku?: string; +} + // @public export interface CommunityGalleryImageList { nextLink?: string; @@ -2073,6 +2080,9 @@ export interface DiskUpdate { tier?: string; } +// @public +export type EdgeZoneStorageAccountType = string; + // @public export interface Encryption { diskEncryptionSetId?: string; @@ -2748,7 +2758,7 @@ export interface GalleryTargetExtendedLocation { extendedLocation?: GalleryExtendedLocation; extendedLocationReplicaCount?: number; name?: string; - storageAccountType?: StorageAccountType; + storageAccountType?: EdgeZoneStorageAccountType; } // @public @@ -3209,6 +3219,14 @@ export enum KnownDiskStorageAccountTypes { UltraSSDLRS = "UltraSSD_LRS" } +// @public +export enum KnownEdgeZoneStorageAccountType { + PremiumLRS = "Premium_LRS", + StandardLRS = "Standard_LRS", + StandardSSDLRS = "StandardSSD_LRS", + StandardZRS = "Standard_ZRS" +} + // @public export enum KnownEncryptionType { EncryptionAtRestWithCustomerKey = "EncryptionAtRestWithCustomerKey", @@ -3569,7 +3587,6 @@ export enum KnownSnapshotStorageAccountTypes { export enum KnownStorageAccountType { PremiumLRS = "Premium_LRS", StandardLRS = "Standard_LRS", - StandardSSDLRS = "StandardSSD_LRS", StandardZRS = "Standard_ZRS" } diff --git a/sdk/compute/arm-compute/src/models/index.ts b/sdk/compute/arm-compute/src/models/index.ts index dd03e7a76d6c..abc7c3a7788b 100644 --- a/sdk/compute/arm-compute/src/models/index.ts +++ b/sdk/compute/arm-compute/src/models/index.ts @@ -3712,7 +3712,7 @@ export interface GalleryTargetExtendedLocation { /** The number of replicas of the Image Version to be created per extended location. This property is updatable. */ extendedLocationReplicaCount?: number; /** Specifies the storage account type to be used to store the image. This property is not updatable. */ - storageAccountType?: StorageAccountType; + storageAccountType?: EdgeZoneStorageAccountType; /** Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact. */ encryption?: EncryptionImages; } @@ -3982,6 +3982,16 @@ export interface PirCommunityGalleryResource { uniqueId?: string; } +/** This is the community gallery image definition identifier. */ +export interface CommunityGalleryImageIdentifier { + /** The name of the gallery image definition publisher. */ + publisher?: string; + /** The name of the gallery image definition offer. */ + offer?: string; + /** The name of the gallery image definition SKU. */ + sku?: string; +} + /** The List Community Gallery Images operation response. */ export interface CommunityGalleryImageList { /** A list of community gallery images. */ @@ -6513,8 +6523,8 @@ export interface CommunityGalleryImage extends PirCommunityGalleryResource { osState?: OperatingSystemStateTypes; /** The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable. */ endOfLifeDate?: Date; - /** This is the gallery image definition identifier. */ - identifier?: GalleryImageIdentifier; + /** This is the community gallery image definition identifier. */ + identifier?: CommunityGalleryImageIdentifier; /** The properties describe the recommended machine configuration for this Image Definition. These properties are updatable. */ recommended?: RecommendedMachineConfiguration; /** Describes the disallowed disk types. */ @@ -8818,9 +8828,7 @@ export enum KnownStorageAccountType { /** StandardZRS */ StandardZRS = "Standard_ZRS", /** PremiumLRS */ - PremiumLRS = "Premium_LRS", - /** StandardSSDLRS */ - StandardSSDLRS = "StandardSSD_LRS" + PremiumLRS = "Premium_LRS" } /** @@ -8830,8 +8838,7 @@ export enum KnownStorageAccountType { * ### Known values supported by the service * **Standard_LRS** \ * **Standard_ZRS** \ - * **Premium_LRS** \ - * **StandardSSD_LRS** + * **Premium_LRS** */ export type StorageAccountType = string; @@ -8892,6 +8899,30 @@ export enum KnownGalleryExtendedLocationType { */ export type GalleryExtendedLocationType = string; +/** Known values of {@link EdgeZoneStorageAccountType} that the service accepts. */ +export enum KnownEdgeZoneStorageAccountType { + /** StandardLRS */ + StandardLRS = "Standard_LRS", + /** StandardZRS */ + StandardZRS = "Standard_ZRS", + /** StandardSSDLRS */ + StandardSSDLRS = "StandardSSD_LRS", + /** PremiumLRS */ + PremiumLRS = "Premium_LRS" +} + +/** + * Defines values for EdgeZoneStorageAccountType. \ + * {@link KnownEdgeZoneStorageAccountType} can be used interchangeably with EdgeZoneStorageAccountType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Standard_LRS** \ + * **Standard_ZRS** \ + * **StandardSSD_LRS** \ + * **Premium_LRS** + */ +export type EdgeZoneStorageAccountType = string; + /** Known values of {@link PolicyViolationCategory} that the service accepts. */ export enum KnownPolicyViolationCategory { /** Other */ diff --git a/sdk/compute/arm-compute/src/models/mappers.ts b/sdk/compute/arm-compute/src/models/mappers.ts index 9c23d1e4f938..c5452e132b4b 100644 --- a/sdk/compute/arm-compute/src/models/mappers.ts +++ b/sdk/compute/arm-compute/src/models/mappers.ts @@ -10404,6 +10404,33 @@ export const PirCommunityGalleryResource: coreClient.CompositeMapper = { } }; +export const CommunityGalleryImageIdentifier: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CommunityGalleryImageIdentifier", + modelProperties: { + publisher: { + serializedName: "publisher", + type: { + name: "String" + } + }, + offer: { + serializedName: "offer", + type: { + name: "String" + } + }, + sku: { + serializedName: "sku", + type: { + name: "String" + } + } + } + } +}; + export const CommunityGalleryImageList: coreClient.CompositeMapper = { type: { name: "Composite", @@ -16706,7 +16733,7 @@ export const CommunityGalleryImage: coreClient.CompositeMapper = { serializedName: "properties.identifier", type: { name: "Composite", - className: "GalleryImageIdentifier" + className: "CommunityGalleryImageIdentifier" } }, recommended: {