Modify accepted list of Azure VM types (#250)

* Add more instances types for Azure (with commented out entries)

* Remove commented out entries

* Only AMD VMs

* Comment out CVMs (not supported yet)

* Adjust comments
This commit is contained in:
Nils Hanke 2022-07-10 13:27:05 +02:00 committed by GitHub
parent 8a299b54a3
commit 14a15e131a

View File

@ -1,13 +1,82 @@
package azure
import "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute"
// InstanceTypes are valid Azure instance types.
// Normally, this would be string(armcompute.VirtualMachineSizeTypesStandardD4SV3),
// but currently needed instances are not in SDK.
var InstanceTypes = []string{
string(armcompute.VirtualMachineSizeTypesStandardD4SV3),
// Trusted Launch (2nd Generation AMD EPYC 7452 or 3rd Generation EPYC 7763v processors)
// Dav4-series
"Standard_D2a_v4",
"Standard_D4a_v4",
"Standard_D8a_v4",
"Standard_D16a_v4",
"Standard_D32a_v4",
"Standard_D48a_v4",
"Standard_D64a_v4",
"Standard_D96a_v4",
// Dasv4-series
"Standard_D2as_v4",
"Standard_D4as_v4",
"Standard_D8as_v4",
"Standard_D16as_v4",
"Standard_D32as_v4",
"Standard_D48as_v4",
"Standard_D64as_v4",
"Standard_D96as_v4",
// Eav4-series
"Standard_E2a_v4",
"Standard_E4a_v4",
"Standard_E8a_v4",
"Standard_E16a_v4",
"Standard_E32a_v4",
"Standard_E48a_v4",
"Standard_E64a_v4",
"Standard_E96a_v4",
// Easv4-series
"Standard_E2as_v4",
"Standard_E4as_v4",
"Standard_E8as_v4",
"Standard_E16as_v4",
"Standard_E20as_v4",
"Standard_E32as_v4",
"Standard_E48as_v4",
"Standard_E64as_v4",
"Standard_E96as_v4",
// CVMs (not supported yet, 3rd Generation EPYC 7763v processors)
/* // DCasv5-series
"Standard_DC2as_v5",
"Standard_DC4as_v5",
"Standard_DC8as_v5",
"Standard_DC16as_v5",
"Standard_DC32as_v5",
"Standard_DC48as_v5",
"Standard_DC64as_v5",
"Standard_DC96as_v5",
// DCadsv5-series
"Standard_DC2ads_v5",
"Standard_DC4ads_v5",
"Standard_DC8ads_v5",
"Standard_DC16ads_v5",
"Standard_DC32ads_v5",
"Standard_DC48ads_v5",
"Standard_DC64ads_v5",
"Standard_DC96ads_v5",
// ECasv5-series
"Standard_EC2as_v5",
"Standard_EC4as_v5",
"Standard_EC8as_v5",
"Standard_EC16as_v5",
"Standard_EC20as_v5",
"Standard_EC32as_v5",
"Standard_EC48as_v5",
"Standard_EC64as_v5",
"Standard_EC96as_v5",
// ECadsv5-series
"Standard_EC2ads_v5",
"Standard_EC4ads_v5",
"Standard_EC8ads_v5",
"Standard_EC16ads_v5",
"Standard_EC20ads_v5",
"Standard_EC32ads_v5",
"Standard_EC48ads_v5",
"Standard_EC64ads_v5",
"Standard_EC96ads_v5", */
}