diff options
| author | Billy O'Neal <bion@microsoft.com> | 2020-05-10 15:17:27 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-10 15:17:27 -0700 |
| commit | 6920b49047f2de6880df8ef9724cc508c5f491ca (patch) | |
| tree | f0a849f39c540a5eb145756198f5f2e024553cc0 /scripts/azure-pipelines/linux/create-vmss.ps1 | |
| parent | d4a415b7fa3f0d0ea14a789d5778abfc666ef2d0 (diff) | |
| download | vcpkg-6920b49047f2de6880df8ef9724cc508c5f491ca.tar.gz vcpkg-6920b49047f2de6880df8ef9724cc508c5f491ca.zip | |
[vcpkg] [llvm] [mpir] Bump Linux VM memory size and do all operations on the temporary disk. (#11174)
* [vcpkg] Bump Linux VM memory size and do all operations on the temporary disk.
* [llvm] disable optional dependencies to libxml2 and zlib
* [vcpkg] Reduce quotas on the share to something reasonable.
* [mpir] Skip on Linux because it conflicts with libgmp.
Co-authored-by: yurybura <yurybura@gmail.com>
Diffstat (limited to 'scripts/azure-pipelines/linux/create-vmss.ps1')
| -rwxr-xr-x | scripts/azure-pipelines/linux/create-vmss.ps1 | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/scripts/azure-pipelines/linux/create-vmss.ps1 b/scripts/azure-pipelines/linux/create-vmss.ps1 index dfe2102d9..ac438254a 100755 --- a/scripts/azure-pipelines/linux/create-vmss.ps1 +++ b/scripts/azure-pipelines/linux/create-vmss.ps1 @@ -18,10 +18,9 @@ or are running from Azure Cloud Shell. $Location = 'westus2'
$Prefix = 'PrLin-' + (Get-Date -Format 'yyyy-MM-dd')
-$VMSize = 'Standard_F16s_v2'
+$VMSize = 'Standard_D16a_v4'
$ProtoVMName = 'PROTOTYPE'
$LiveVMPrefix = 'BUILD'
-$InstalledDiskSizeInGB = 1024
$ErrorActionPreference = 'Stop'
$ProgressActivity = 'Creating Scale Set'
@@ -259,7 +258,7 @@ $StorageContext = New-AzStorageContext ` -StorageAccountKey $StorageAccountKey
New-AzStorageShare -Name 'archives' -Context $StorageContext
-Set-AzStorageShareQuota -ShareName 'archives' -Context $StorageContext -Quota 5120
+Set-AzStorageShareQuota -ShareName 'archives' -Context $StorageContext -Quota 1024
####################################################################################################
Write-Progress `
@@ -273,7 +272,7 @@ $Nic = New-AzNetworkInterface ` -Location $Location `
-Subnet $VirtualNetwork.Subnets[0]
-$VM = New-AzVMConfig -Name $ProtoVMName -VMSize $VMSize
+$VM = New-AzVMConfig -Name $ProtoVMName -VMSize $VMSize -Priority 'Spot' -MaxPrice -1
$VM = Set-AzVMOperatingSystem `
-VM $VM `
-Linux `
@@ -377,8 +376,7 @@ $Vmss = Set-AzVmssOsProfile ` -VirtualMachineScaleSet $Vmss `
-ComputerNamePrefix $LiveVMPrefix `
-AdminUsername AdminUser `
- -AdminPassword $AdminPW `
- -CustomData ([Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes("#!/bin/bash`n/etc/provision-disks.sh`n")))
+ -AdminPassword $AdminPW
$Vmss = Set-AzVmssStorageProfile `
-VirtualMachineScaleSet $Vmss `
@@ -386,14 +384,6 @@ $Vmss = Set-AzVmssStorageProfile ` -OsDiskCaching ReadWrite `
-ImageReferenceId $Image.Id
-$Vmss = Add-AzVmssDataDisk `
- -VirtualMachineScaleSet $Vmss `
- -Lun 0 `
- -Caching 'ReadWrite' `
- -CreateOption Empty `
- -DiskSizeGB 1024 `
- -StorageAccountType 'StandardSSD_LRS'
-
New-AzVmss `
-ResourceGroupName $ResourceGroupName `
-Name $VmssName `
|
