improve location cache performance

Before this change, all location data are cached first. But location
data should be cached when it's used.

update UT test data to make test cases pass.
This commit is contained in:
Chi Song 2020-11-03 18:57:35 +08:00
Родитель c74b048143
Коммит 987c3685da
14 изменённых файлов: 4018 добавлений и 1403 удалений

Просмотреть файл

@ -62,7 +62,7 @@ from .common import (
# used by azure
AZURE_RG_NAME_KEY = "resource_group_name"
VM_SIZE_FALLBACK_LEVELS = [
VM_SIZE_FALLBACK_PATTERNS = [
# exclude Standard_DS1_v2, because one core is too slow,
# and doesn't work in some distro
re.compile(r"Standard_DS((?!1)[\d]{1}|[\d]{2,})_v2"),
@ -309,7 +309,7 @@ class AzurePlatform(Platform):
super().__init__(runbook=runbook)
self.credential: DefaultAzureCredential = None
self._enviornment_counter = 0
self._eligible_capabilities: Optional[Dict[str, List[AzureCapability]]] = None
self._eligible_capabilities: Dict[str, List[AzureCapability]] = dict()
self._locations_data_cache: Dict[str, AzureLocation] = dict()
@classmethod
@ -327,7 +327,6 @@ class AzurePlatform(Platform):
"""
Main flow
_initialize_eligible_vm_sizes for all environments.
1. load location, vm size patterns firstly.
2. load avaiablbe vm sizes for each location.
3. match vm sizes by pattern.
@ -351,8 +350,6 @@ class AzurePlatform(Platform):
existing_location: str = ""
predefined_cost: int = 0
assert self._eligible_capabilities
# check locations
for req in nodes_requirement:
# apply azure specified values
@ -428,7 +425,7 @@ class AzurePlatform(Platform):
f"cannot find predefined vm size [{node_runbook.vm_size}] "
f"in location [{locations}]"
)
for location_name, location_caps in self._eligible_capabilities.items():
for location_name in locations:
# in each location, all node must be found
# fill them as None and check after meeted capability
found_capabilities: List[Any] = list(predefined_caps)
@ -438,6 +435,7 @@ class AzurePlatform(Platform):
continue
estimated_cost: int = 0
location_caps = self._get_eligible_vm_sizes(location_name, log)
for req_index, req in enumerate(nodes_requirement):
for azure_cap in location_caps:
if found_capabilities[req_index]:
@ -595,7 +593,6 @@ class AzurePlatform(Platform):
self._rm_client = ResourceManagementClient(
credential=self.credential, subscription_id=self.subscription_id
)
self._initialize_eligible_vm_sizes(self._log)
@lru_cache
def _load_template(self) -> Any:
@ -978,49 +975,36 @@ class AzurePlatform(Platform):
return node_space
def _initialize_eligible_vm_sizes(self, log: Logger) -> None:
def _get_eligible_vm_sizes(
self, location: str, log: Logger
) -> List[AzureCapability]:
# load eligible vm sizes
# 1. location is selected
# 2. vm size supported in current location
# 3. vm size match predefined pattern
if self._eligible_capabilities is None:
assert self._azure_runbook
if isinstance(self._azure_runbook.locations, str):
location_names = [self._azure_runbook.locations]
else:
assert isinstance(
self._azure_runbook.locations, list
), f"actual: {type(self._azure_runbook.locations)}"
location_names = self._azure_runbook.locations
# 1. vm size supported in current location
# 2. vm size match predefined pattern
available_capabilities: Dict[str, List[AzureCapability]] = dict()
location_capabilities: List[AzureCapability] = []
# loop all locations
for location_name in location_names:
location_capabilities: List[AzureCapability] = []
location_info: AzureLocation = self._get_location_info(
location_name, log
if location not in self._eligible_capabilities:
location_info: AzureLocation = self._get_location_info(location, log)
# loop all fall back levels
for fallback_pattern in VM_SIZE_FALLBACK_PATTERNS:
level_capabilities: List[AzureCapability] = []
# loop all capabilities
for capability in location_info.capabilities:
if fallback_pattern.match(capability.vm_size):
level_capabilities.append(capability)
# sort by rough cost
level_capabilities.sort(key=lambda x: (x.estimated_cost))
log.debug(
f"{location}, pattern '{fallback_pattern.pattern}'"
f" {len(level_capabilities)} candidates: "
f"{[x.vm_size for x in level_capabilities]}"
)
# loop all fall back levels
for fallback_pattern in VM_SIZE_FALLBACK_LEVELS:
level_capabilities: List[AzureCapability] = []
# loop all capabilities
for capability in location_info.capabilities:
if fallback_pattern.match(capability.vm_size):
level_capabilities.append(capability)
# sort by rough cost
level_capabilities.sort(key=lambda x: (x.estimated_cost))
log.debug(
f"{location_name}, pattern '{fallback_pattern.pattern}'"
f" {len(level_capabilities)} candidates: "
f"{[x.vm_size for x in level_capabilities]}"
)
location_capabilities.extend(level_capabilities)
available_capabilities[location_name] = location_capabilities
self._eligible_capabilities = available_capabilities
location_capabilities.extend(level_capabilities)
self._eligible_capabilities[location] = location_capabilities
return self._eligible_capabilities[location]
def _process_gallery_image_plan(
self, location: str, gallery: AzureVmGallerySchema

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -0,0 +1,443 @@
{
"updatedTime": "9999-09-21T12:16:43.682968",
"location": "westus2",
"capabilities": [
{
"location": "westus2",
"vmSize": "Standard_M208ms_v2",
"capability": {
"type": "requirement",
"name": "westus2_Standard_M208ms_v2",
"isDefault": false,
"artifact": "",
"nodeCount": 1,
"coreCount": 208,
"memoryMb": 5836800,
"diskCount": {
"min": 0,
"max": 64,
"maxInclusive": true
},
"nicCount": {
"min": 0,
"max": 8,
"maxInclusive": true
},
"gpuCount": 0,
"features": {
"isAllowSet": true
},
"excludedFeatures": {
"isAllowSet": false
}
},
"estimatedCost": 208,
"resourceSku": {
"resource_type": "virtualMachines",
"name": "Standard_M208ms_v2",
"tier": "Standard",
"size": "M208ms_v2",
"family": "standardMSv2Family",
"locations": [
"westus2"
],
"location_info": [
{
"location": "westus2",
"zones": [
"1",
"3"
],
"zone_details": [
{
"capabilities": [
{
"name": "UltraSSDAvailable",
"value": "True"
}
]
}
]
}
],
"capabilities": [
{
"name": "MaxResourceVolumeMB",
"value": "4194304"
},
{
"name": "OSVhdSizeMB",
"value": "1047552"
},
{
"name": "vCPUs",
"value": "208"
},
{
"name": "HyperVGenerations",
"value": "V2"
},
{
"name": "MemoryGB",
"value": "5700"
},
{
"name": "MaxDataDiskCount",
"value": "64"
},
{
"name": "MaxWriteAcceleratorDisksAllowed",
"value": "8"
},
{
"name": "LowPriorityCapable",
"value": "False"
},
{
"name": "PremiumIO",
"value": "True"
},
{
"name": "VMDeploymentTypes",
"value": "IaaS"
},
{
"name": "EphemeralOSDiskSupported",
"value": "True"
},
{
"name": "EncryptionAtHostSupported",
"value": "True"
},
{
"name": "AcceleratedNetworkingEnabled",
"value": "True"
},
{
"name": "RdmaEnabled",
"value": "False"
},
{
"name": "MaxNetworkInterfaces",
"value": "8"
}
],
"restrictions": [
{
"type": "Zone",
"values": [
"westus2"
],
"restriction_info": {
"locations": [
"westus2"
],
"zones": [
"2"
]
},
"reason_code": "NotAvailableForSubscription"
}
]
}
},
{
"location": "westus2",
"vmSize": "Standard_DS1_v2",
"capability": {
"type": "requirement",
"name": "westus2_Standard_DS1_v2",
"isDefault": false,
"artifact": "",
"nodeCount": 1,
"coreCount": 1,
"memoryMb": 3584,
"diskCount": {
"min": 0,
"max": 4,
"maxInclusive": true
},
"nicCount": {
"min": 0,
"max": 2,
"maxInclusive": true
},
"gpuCount": 0,
"features": {
"isAllowSet": true
},
"excludedFeatures": {
"isAllowSet": false
}
},
"estimatedCost": 1,
"resourceSku": {
"resource_type": "virtualMachines",
"name": "Standard_DS1_v2",
"tier": "Standard",
"size": "DS1_v2",
"family": "standardDSv2Family",
"locations": [
"westus2"
],
"location_info": [
{
"location": "westus2",
"zones": [
"3",
"2",
"1"
],
"zone_details": []
}
],
"capabilities": [
{
"name": "MaxResourceVolumeMB",
"value": "7168"
},
{
"name": "OSVhdSizeMB",
"value": "1047552"
},
{
"name": "vCPUs",
"value": "1"
},
{
"name": "HyperVGenerations",
"value": "V1,V2"
},
{
"name": "MemoryGB",
"value": "3.5"
},
{
"name": "MaxDataDiskCount",
"value": "4"
},
{
"name": "LowPriorityCapable",
"value": "True"
},
{
"name": "PremiumIO",
"value": "True"
},
{
"name": "VMDeploymentTypes",
"value": "IaaS"
},
{
"name": "vCPUsAvailable",
"value": "1"
},
{
"name": "ACUs",
"value": "210"
},
{
"name": "vCPUsPerCore",
"value": "1"
},
{
"name": "CombinedTempDiskAndCachedIOPS",
"value": "4000"
},
{
"name": "CombinedTempDiskAndCachedReadBytesPerSecond",
"value": "33554432"
},
{
"name": "CombinedTempDiskAndCachedWriteBytesPerSecond",
"value": "33554432"
},
{
"name": "CachedDiskBytes",
"value": "46170898432"
},
{
"name": "UncachedDiskIOPS",
"value": "3200"
},
{
"name": "UncachedDiskBytesPerSecond",
"value": "50331648"
},
{
"name": "EphemeralOSDiskSupported",
"value": "True"
},
{
"name": "EncryptionAtHostSupported",
"value": "True"
},
{
"name": "AcceleratedNetworkingEnabled",
"value": "False"
},
{
"name": "RdmaEnabled",
"value": "False"
},
{
"name": "MaxNetworkInterfaces",
"value": "2"
}
],
"restrictions": []
}
},
{
"location": "westus2",
"vmSize": "Standard_DS2_v2",
"capability": {
"type": "requirement",
"name": "westus2_Standard_DS2_v2",
"isDefault": false,
"artifact": "",
"nodeCount": 1,
"coreCount": 2,
"memoryMb": 7168,
"diskCount": {
"min": 0,
"max": 8,
"maxInclusive": true
},
"nicCount": {
"min": 0,
"max": 2,
"maxInclusive": true
},
"gpuCount": 0,
"features": {
"isAllowSet": true,
"items": [
"StartStop"
]
},
"excludedFeatures": {
"isAllowSet": false,
"items": []
}
},
"estimatedCost": 2,
"resourceSku": {
"resource_type": "virtualMachines",
"name": "Standard_DS2_v2",
"tier": "Standard",
"size": "DS2_v2",
"family": "standardDSv2Family",
"locations": [
"westus2"
],
"location_info": [
{
"location": "westus2",
"zones": [
"3",
"2",
"1"
],
"zone_details": []
}
],
"capabilities": [
{
"name": "MaxResourceVolumeMB",
"value": "14336"
},
{
"name": "OSVhdSizeMB",
"value": "1047552"
},
{
"name": "vCPUs",
"value": "2"
},
{
"name": "HyperVGenerations",
"value": "V1,V2"
},
{
"name": "MemoryGB",
"value": "7"
},
{
"name": "MaxDataDiskCount",
"value": "8"
},
{
"name": "LowPriorityCapable",
"value": "True"
},
{
"name": "PremiumIO",
"value": "True"
},
{
"name": "VMDeploymentTypes",
"value": "IaaS"
},
{
"name": "vCPUsAvailable",
"value": "2"
},
{
"name": "ACUs",
"value": "210"
},
{
"name": "vCPUsPerCore",
"value": "1"
},
{
"name": "CombinedTempDiskAndCachedIOPS",
"value": "8000"
},
{
"name": "CombinedTempDiskAndCachedReadBytesPerSecond",
"value": "67108864"
},
{
"name": "CombinedTempDiskAndCachedWriteBytesPerSecond",
"value": "67108864"
},
{
"name": "CachedDiskBytes",
"value": "92341796864"
},
{
"name": "UncachedDiskIOPS",
"value": "6400"
},
{
"name": "UncachedDiskBytesPerSecond",
"value": "100663296"
},
{
"name": "EphemeralOSDiskSupported",
"value": "True"
},
{
"name": "EncryptionAtHostSupported",
"value": "True"
},
{
"name": "AcceleratedNetworkingEnabled",
"value": "True"
},
{
"name": "RdmaEnabled",
"value": "False"
},
{
"name": "MaxNetworkInterfaces",
"value": "2"
}
],
"restrictions": []
}
}
]
}

Просмотреть файл

@ -0,0 +1,443 @@
{
"updatedTime": "9999-09-21T12:16:43.682968",
"location": "westus2",
"capabilities": [
{
"location": "westus2",
"vmSize": "Standard_M208ms_v2",
"capability": {
"type": "requirement",
"name": "westus2_Standard_M208ms_v2",
"isDefault": false,
"artifact": "",
"nodeCount": 1,
"coreCount": 208,
"memoryMb": 5836800,
"diskCount": {
"min": 0,
"max": 64,
"maxInclusive": true
},
"nicCount": {
"min": 0,
"max": 8,
"maxInclusive": true
},
"gpuCount": 0,
"features": {
"isAllowSet": true
},
"excludedFeatures": {
"isAllowSet": false
}
},
"estimatedCost": 208,
"resourceSku": {
"resource_type": "virtualMachines",
"name": "Standard_M208ms_v2",
"tier": "Standard",
"size": "M208ms_v2",
"family": "standardMSv2Family",
"locations": [
"westus2"
],
"location_info": [
{
"location": "westus2",
"zones": [
"1",
"3"
],
"zone_details": [
{
"capabilities": [
{
"name": "UltraSSDAvailable",
"value": "True"
}
]
}
]
}
],
"capabilities": [
{
"name": "MaxResourceVolumeMB",
"value": "4194304"
},
{
"name": "OSVhdSizeMB",
"value": "1047552"
},
{
"name": "vCPUs",
"value": "208"
},
{
"name": "HyperVGenerations",
"value": "V2"
},
{
"name": "MemoryGB",
"value": "5700"
},
{
"name": "MaxDataDiskCount",
"value": "64"
},
{
"name": "MaxWriteAcceleratorDisksAllowed",
"value": "8"
},
{
"name": "LowPriorityCapable",
"value": "False"
},
{
"name": "PremiumIO",
"value": "True"
},
{
"name": "VMDeploymentTypes",
"value": "IaaS"
},
{
"name": "EphemeralOSDiskSupported",
"value": "True"
},
{
"name": "EncryptionAtHostSupported",
"value": "True"
},
{
"name": "AcceleratedNetworkingEnabled",
"value": "True"
},
{
"name": "RdmaEnabled",
"value": "False"
},
{
"name": "MaxNetworkInterfaces",
"value": "8"
}
],
"restrictions": [
{
"type": "Zone",
"values": [
"westus2"
],
"restriction_info": {
"locations": [
"westus2"
],
"zones": [
"2"
]
},
"reason_code": "NotAvailableForSubscription"
}
]
}
},
{
"location": "westus2",
"vmSize": "Standard_DS1_v2",
"capability": {
"type": "requirement",
"name": "westus2_Standard_DS1_v2",
"isDefault": false,
"artifact": "",
"nodeCount": 1,
"coreCount": 1,
"memoryMb": 3584,
"diskCount": {
"min": 0,
"max": 4,
"maxInclusive": true
},
"nicCount": {
"min": 0,
"max": 2,
"maxInclusive": true
},
"gpuCount": 0,
"features": {
"isAllowSet": true
},
"excludedFeatures": {
"isAllowSet": false
}
},
"estimatedCost": 1,
"resourceSku": {
"resource_type": "virtualMachines",
"name": "Standard_DS1_v2",
"tier": "Standard",
"size": "DS1_v2",
"family": "standardDSv2Family",
"locations": [
"westus2"
],
"location_info": [
{
"location": "westus2",
"zones": [
"3",
"2",
"1"
],
"zone_details": []
}
],
"capabilities": [
{
"name": "MaxResourceVolumeMB",
"value": "7168"
},
{
"name": "OSVhdSizeMB",
"value": "1047552"
},
{
"name": "vCPUs",
"value": "1"
},
{
"name": "HyperVGenerations",
"value": "V1,V2"
},
{
"name": "MemoryGB",
"value": "3.5"
},
{
"name": "MaxDataDiskCount",
"value": "4"
},
{
"name": "LowPriorityCapable",
"value": "True"
},
{
"name": "PremiumIO",
"value": "True"
},
{
"name": "VMDeploymentTypes",
"value": "IaaS"
},
{
"name": "vCPUsAvailable",
"value": "1"
},
{
"name": "ACUs",
"value": "210"
},
{
"name": "vCPUsPerCore",
"value": "1"
},
{
"name": "CombinedTempDiskAndCachedIOPS",
"value": "4000"
},
{
"name": "CombinedTempDiskAndCachedReadBytesPerSecond",
"value": "33554432"
},
{
"name": "CombinedTempDiskAndCachedWriteBytesPerSecond",
"value": "33554432"
},
{
"name": "CachedDiskBytes",
"value": "46170898432"
},
{
"name": "UncachedDiskIOPS",
"value": "3200"
},
{
"name": "UncachedDiskBytesPerSecond",
"value": "50331648"
},
{
"name": "EphemeralOSDiskSupported",
"value": "True"
},
{
"name": "EncryptionAtHostSupported",
"value": "True"
},
{
"name": "AcceleratedNetworkingEnabled",
"value": "False"
},
{
"name": "RdmaEnabled",
"value": "False"
},
{
"name": "MaxNetworkInterfaces",
"value": "2"
}
],
"restrictions": []
}
},
{
"location": "westus2",
"vmSize": "Standard_DS2_v2",
"capability": {
"type": "requirement",
"name": "westus2_Standard_DS2_v2",
"isDefault": false,
"artifact": "",
"nodeCount": 1,
"coreCount": 2,
"memoryMb": 7168,
"diskCount": {
"min": 0,
"max": 8,
"maxInclusive": true
},
"nicCount": {
"min": 0,
"max": 2,
"maxInclusive": true
},
"gpuCount": 0,
"features": {
"isAllowSet": true,
"items": [
"StartStop"
]
},
"excludedFeatures": {
"isAllowSet": false,
"items": []
}
},
"estimatedCost": 2,
"resourceSku": {
"resource_type": "virtualMachines",
"name": "Standard_DS2_v2",
"tier": "Standard",
"size": "DS2_v2",
"family": "standardDSv2Family",
"locations": [
"westus2"
],
"location_info": [
{
"location": "westus2",
"zones": [
"3",
"2",
"1"
],
"zone_details": []
}
],
"capabilities": [
{
"name": "MaxResourceVolumeMB",
"value": "14336"
},
{
"name": "OSVhdSizeMB",
"value": "1047552"
},
{
"name": "vCPUs",
"value": "2"
},
{
"name": "HyperVGenerations",
"value": "V1,V2"
},
{
"name": "MemoryGB",
"value": "7"
},
{
"name": "MaxDataDiskCount",
"value": "8"
},
{
"name": "LowPriorityCapable",
"value": "True"
},
{
"name": "PremiumIO",
"value": "True"
},
{
"name": "VMDeploymentTypes",
"value": "IaaS"
},
{
"name": "vCPUsAvailable",
"value": "2"
},
{
"name": "ACUs",
"value": "210"
},
{
"name": "vCPUsPerCore",
"value": "1"
},
{
"name": "CombinedTempDiskAndCachedIOPS",
"value": "8000"
},
{
"name": "CombinedTempDiskAndCachedReadBytesPerSecond",
"value": "67108864"
},
{
"name": "CombinedTempDiskAndCachedWriteBytesPerSecond",
"value": "67108864"
},
{
"name": "CachedDiskBytes",
"value": "92341796864"
},
{
"name": "UncachedDiskIOPS",
"value": "6400"
},
{
"name": "UncachedDiskBytesPerSecond",
"value": "100663296"
},
{
"name": "EphemeralOSDiskSupported",
"value": "True"
},
{
"name": "EncryptionAtHostSupported",
"value": "True"
},
{
"name": "AcceleratedNetworkingEnabled",
"value": "True"
},
{
"name": "RdmaEnabled",
"value": "False"
},
{
"name": "MaxNetworkInterfaces",
"value": "2"
}
],
"restrictions": []
}
}
]
}

Просмотреть файл

@ -0,0 +1,443 @@
{
"updatedTime": "9999-09-21T12:16:43.682968",
"location": "westus2",
"capabilities": [
{
"location": "westus2",
"vmSize": "Standard_M208ms_v2",
"capability": {
"type": "requirement",
"name": "westus2_Standard_M208ms_v2",
"isDefault": false,
"artifact": "",
"nodeCount": 1,
"coreCount": 208,
"memoryMb": 5836800,
"diskCount": {
"min": 0,
"max": 64,
"maxInclusive": true
},
"nicCount": {
"min": 0,
"max": 8,
"maxInclusive": true
},
"gpuCount": 0,
"features": {
"isAllowSet": true
},
"excludedFeatures": {
"isAllowSet": false
}
},
"estimatedCost": 208,
"resourceSku": {
"resource_type": "virtualMachines",
"name": "Standard_M208ms_v2",
"tier": "Standard",
"size": "M208ms_v2",
"family": "standardMSv2Family",
"locations": [
"westus2"
],
"location_info": [
{
"location": "westus2",
"zones": [
"1",
"3"
],
"zone_details": [
{
"capabilities": [
{
"name": "UltraSSDAvailable",
"value": "True"
}
]
}
]
}
],
"capabilities": [
{
"name": "MaxResourceVolumeMB",
"value": "4194304"
},
{
"name": "OSVhdSizeMB",
"value": "1047552"
},
{
"name": "vCPUs",
"value": "208"
},
{
"name": "HyperVGenerations",
"value": "V2"
},
{
"name": "MemoryGB",
"value": "5700"
},
{
"name": "MaxDataDiskCount",
"value": "64"
},
{
"name": "MaxWriteAcceleratorDisksAllowed",
"value": "8"
},
{
"name": "LowPriorityCapable",
"value": "False"
},
{
"name": "PremiumIO",
"value": "True"
},
{
"name": "VMDeploymentTypes",
"value": "IaaS"
},
{
"name": "EphemeralOSDiskSupported",
"value": "True"
},
{
"name": "EncryptionAtHostSupported",
"value": "True"
},
{
"name": "AcceleratedNetworkingEnabled",
"value": "True"
},
{
"name": "RdmaEnabled",
"value": "False"
},
{
"name": "MaxNetworkInterfaces",
"value": "8"
}
],
"restrictions": [
{
"type": "Zone",
"values": [
"westus2"
],
"restriction_info": {
"locations": [
"westus2"
],
"zones": [
"2"
]
},
"reason_code": "NotAvailableForSubscription"
}
]
}
},
{
"location": "westus2",
"vmSize": "Standard_DS1_v2",
"capability": {
"type": "requirement",
"name": "westus2_Standard_DS1_v2",
"isDefault": false,
"artifact": "",
"nodeCount": 1,
"coreCount": 1,
"memoryMb": 3584,
"diskCount": {
"min": 0,
"max": 4,
"maxInclusive": true
},
"nicCount": {
"min": 0,
"max": 2,
"maxInclusive": true
},
"gpuCount": 0,
"features": {
"isAllowSet": true
},
"excludedFeatures": {
"isAllowSet": false
}
},
"estimatedCost": 1,
"resourceSku": {
"resource_type": "virtualMachines",
"name": "Standard_DS1_v2",
"tier": "Standard",
"size": "DS1_v2",
"family": "standardDSv2Family",
"locations": [
"westus2"
],
"location_info": [
{
"location": "westus2",
"zones": [
"3",
"2",
"1"
],
"zone_details": []
}
],
"capabilities": [
{
"name": "MaxResourceVolumeMB",
"value": "7168"
},
{
"name": "OSVhdSizeMB",
"value": "1047552"
},
{
"name": "vCPUs",
"value": "1"
},
{
"name": "HyperVGenerations",
"value": "V1,V2"
},
{
"name": "MemoryGB",
"value": "3.5"
},
{
"name": "MaxDataDiskCount",
"value": "4"
},
{
"name": "LowPriorityCapable",
"value": "True"
},
{
"name": "PremiumIO",
"value": "True"
},
{
"name": "VMDeploymentTypes",
"value": "IaaS"
},
{
"name": "vCPUsAvailable",
"value": "1"
},
{
"name": "ACUs",
"value": "210"
},
{
"name": "vCPUsPerCore",
"value": "1"
},
{
"name": "CombinedTempDiskAndCachedIOPS",
"value": "4000"
},
{
"name": "CombinedTempDiskAndCachedReadBytesPerSecond",
"value": "33554432"
},
{
"name": "CombinedTempDiskAndCachedWriteBytesPerSecond",
"value": "33554432"
},
{
"name": "CachedDiskBytes",
"value": "46170898432"
},
{
"name": "UncachedDiskIOPS",
"value": "3200"
},
{
"name": "UncachedDiskBytesPerSecond",
"value": "50331648"
},
{
"name": "EphemeralOSDiskSupported",
"value": "True"
},
{
"name": "EncryptionAtHostSupported",
"value": "True"
},
{
"name": "AcceleratedNetworkingEnabled",
"value": "False"
},
{
"name": "RdmaEnabled",
"value": "False"
},
{
"name": "MaxNetworkInterfaces",
"value": "2"
}
],
"restrictions": []
}
},
{
"location": "westus2",
"vmSize": "Standard_DS2_v2",
"capability": {
"type": "requirement",
"name": "westus2_Standard_DS2_v2",
"isDefault": false,
"artifact": "",
"nodeCount": 1,
"coreCount": 2,
"memoryMb": 7168,
"diskCount": {
"min": 0,
"max": 8,
"maxInclusive": true
},
"nicCount": {
"min": 0,
"max": 2,
"maxInclusive": true
},
"gpuCount": 0,
"features": {
"isAllowSet": true,
"items": [
"StartStop"
]
},
"excludedFeatures": {
"isAllowSet": false,
"items": []
}
},
"estimatedCost": 2,
"resourceSku": {
"resource_type": "virtualMachines",
"name": "Standard_DS2_v2",
"tier": "Standard",
"size": "DS2_v2",
"family": "standardDSv2Family",
"locations": [
"westus2"
],
"location_info": [
{
"location": "westus2",
"zones": [
"3",
"2",
"1"
],
"zone_details": []
}
],
"capabilities": [
{
"name": "MaxResourceVolumeMB",
"value": "14336"
},
{
"name": "OSVhdSizeMB",
"value": "1047552"
},
{
"name": "vCPUs",
"value": "2"
},
{
"name": "HyperVGenerations",
"value": "V1,V2"
},
{
"name": "MemoryGB",
"value": "7"
},
{
"name": "MaxDataDiskCount",
"value": "8"
},
{
"name": "LowPriorityCapable",
"value": "True"
},
{
"name": "PremiumIO",
"value": "True"
},
{
"name": "VMDeploymentTypes",
"value": "IaaS"
},
{
"name": "vCPUsAvailable",
"value": "2"
},
{
"name": "ACUs",
"value": "210"
},
{
"name": "vCPUsPerCore",
"value": "1"
},
{
"name": "CombinedTempDiskAndCachedIOPS",
"value": "8000"
},
{
"name": "CombinedTempDiskAndCachedReadBytesPerSecond",
"value": "67108864"
},
{
"name": "CombinedTempDiskAndCachedWriteBytesPerSecond",
"value": "67108864"
},
{
"name": "CachedDiskBytes",
"value": "92341796864"
},
{
"name": "UncachedDiskIOPS",
"value": "6400"
},
{
"name": "UncachedDiskBytesPerSecond",
"value": "100663296"
},
{
"name": "EphemeralOSDiskSupported",
"value": "True"
},
{
"name": "EncryptionAtHostSupported",
"value": "True"
},
{
"name": "AcceleratedNetworkingEnabled",
"value": "True"
},
{
"name": "RdmaEnabled",
"value": "False"
},
{
"name": "MaxNetworkInterfaces",
"value": "2"
}
],
"restrictions": []
}
}
]
}

Просмотреть файл

@ -0,0 +1,865 @@
{
"updatedTime": "9999-09-21T12:16:46.895330",
"location": "eastus2",
"capabilities": [
{
"location": "eastus2",
"vmSize": "Standard_B1ls",
"capability": {
"type": "requirement",
"name": "eastus2_Standard_B1ls",
"isDefault": false,
"artifact": "",
"nodeCount": 1,
"coreCount": 1,
"memoryMb": 512,
"diskCount": {
"min": 0,
"max": 2,
"maxInclusive": true
},
"nicCount": {
"min": 0,
"max": 2,
"maxInclusive": true
},
"gpuCount": 0,
"features": {
"isAllowSet": true
},
"excludedFeatures": {
"isAllowSet": false
}
},
"estimatedCost": 1,
"resourceSku": {
"resource_type": "virtualMachines",
"name": "Standard_B1ls",
"tier": "Standard",
"size": "B1ls",
"family": "standardBSFamily",
"locations": [
"eastus2"
],
"location_info": [
{
"location": "eastus2",
"zones": [
"3",
"2",
"1"
],
"zone_details": [
{
"capabilities": [
{
"name": "UltraSSDAvailable",
"value": "True"
}
]
}
]
}
],
"capabilities": [
{
"name": "MaxResourceVolumeMB",
"value": "4096"
},
{
"name": "OSVhdSizeMB",
"value": "1047552"
},
{
"name": "vCPUs",
"value": "1"
},
{
"name": "HyperVGenerations",
"value": "V1,V2"
},
{
"name": "MemoryGB",
"value": "0.5"
},
{
"name": "MaxDataDiskCount",
"value": "2"
},
{
"name": "LowPriorityCapable",
"value": "False"
},
{
"name": "PremiumIO",
"value": "True"
},
{
"name": "VMDeploymentTypes",
"value": "IaaS"
},
{
"name": "CombinedTempDiskAndCachedIOPS",
"value": "200"
},
{
"name": "CombinedTempDiskAndCachedReadBytesPerSecond",
"value": "10485760"
},
{
"name": "CombinedTempDiskAndCachedWriteBytesPerSecond",
"value": "10485760"
},
{
"name": "UncachedDiskIOPS",
"value": "160"
},
{
"name": "UncachedDiskBytesPerSecond",
"value": "10485760"
},
{
"name": "EphemeralOSDiskSupported",
"value": "True"
},
{
"name": "EncryptionAtHostSupported",
"value": "True"
},
{
"name": "AcceleratedNetworkingEnabled",
"value": "False"
},
{
"name": "RdmaEnabled",
"value": "False"
},
{
"name": "MaxNetworkInterfaces",
"value": "2"
}
],
"restrictions": []
}
},
{
"location": "eastus2",
"vmSize": "Standard_DS1_v2",
"capability": {
"type": "requirement",
"name": "eastus2_Standard_DS1_v2",
"isDefault": false,
"artifact": "",
"nodeCount": 1,
"coreCount": 1,
"memoryMb": 3584,
"diskCount": {
"min": 0,
"max": 4,
"maxInclusive": true
},
"nicCount": {
"min": 0,
"max": 2,
"maxInclusive": true
},
"gpuCount": 0,
"features": {
"isAllowSet": true
},
"excludedFeatures": {
"isAllowSet": false
}
},
"estimatedCost": 1,
"resourceSku": {
"resource_type": "virtualMachines",
"name": "Standard_DS1_v2",
"tier": "Standard",
"size": "DS1_v2",
"family": "standardDSv2Family",
"locations": [
"eastus2"
],
"location_info": [
{
"location": "eastus2",
"zones": [
"3",
"2",
"1"
],
"zone_details": []
}
],
"capabilities": [
{
"name": "MaxResourceVolumeMB",
"value": "7168"
},
{
"name": "OSVhdSizeMB",
"value": "1047552"
},
{
"name": "vCPUs",
"value": "1"
},
{
"name": "HyperVGenerations",
"value": "V1,V2"
},
{
"name": "MemoryGB",
"value": "3.5"
},
{
"name": "MaxDataDiskCount",
"value": "4"
},
{
"name": "LowPriorityCapable",
"value": "True"
},
{
"name": "PremiumIO",
"value": "True"
},
{
"name": "VMDeploymentTypes",
"value": "IaaS"
},
{
"name": "vCPUsAvailable",
"value": "1"
},
{
"name": "ACUs",
"value": "210"
},
{
"name": "vCPUsPerCore",
"value": "1"
},
{
"name": "CombinedTempDiskAndCachedIOPS",
"value": "4000"
},
{
"name": "CombinedTempDiskAndCachedReadBytesPerSecond",
"value": "33554432"
},
{
"name": "CombinedTempDiskAndCachedWriteBytesPerSecond",
"value": "33554432"
},
{
"name": "CachedDiskBytes",
"value": "46170898432"
},
{
"name": "UncachedDiskIOPS",
"value": "3200"
},
{
"name": "UncachedDiskBytesPerSecond",
"value": "50331648"
},
{
"name": "EphemeralOSDiskSupported",
"value": "True"
},
{
"name": "EncryptionAtHostSupported",
"value": "True"
},
{
"name": "AcceleratedNetworkingEnabled",
"value": "False"
},
{
"name": "RdmaEnabled",
"value": "False"
},
{
"name": "MaxNetworkInterfaces",
"value": "2"
}
],
"restrictions": []
}
},
{
"location": "eastus2",
"vmSize": "Standard_DS2_v2",
"capability": {
"type": "requirement",
"name": "eastus2_Standard_DS2_v2",
"isDefault": false,
"artifact": "",
"nodeCount": 1,
"coreCount": 2,
"memoryMb": 7168,
"diskCount": {
"min": 0,
"max": 8,
"maxInclusive": true
},
"nicCount": {
"min": 0,
"max": 2,
"maxInclusive": true
},
"gpuCount": 0,
"features": {
"isAllowSet": true,
"items": [
"StartStop"
]
},
"excludedFeatures": {
"isAllowSet": false,
"items": []
}
},
"estimatedCost": 2,
"resourceSku": {
"resource_type": "virtualMachines",
"name": "Standard_DS2_v2",
"tier": "Standard",
"size": "DS2_v2",
"family": "standardDSv2Family",
"locations": [
"eastus2"
],
"location_info": [
{
"location": "eastus2",
"zones": [
"3",
"1",
"2"
],
"zone_details": []
}
],
"capabilities": [
{
"name": "MaxResourceVolumeMB",
"value": "14336"
},
{
"name": "OSVhdSizeMB",
"value": "1047552"
},
{
"name": "vCPUs",
"value": "2"
},
{
"name": "HyperVGenerations",
"value": "V1,V2"
},
{
"name": "MemoryGB",
"value": "7"
},
{
"name": "MaxDataDiskCount",
"value": "8"
},
{
"name": "LowPriorityCapable",
"value": "True"
},
{
"name": "PremiumIO",
"value": "True"
},
{
"name": "VMDeploymentTypes",
"value": "IaaS"
},
{
"name": "vCPUsAvailable",
"value": "2"
},
{
"name": "ACUs",
"value": "210"
},
{
"name": "vCPUsPerCore",
"value": "1"
},
{
"name": "CombinedTempDiskAndCachedIOPS",
"value": "8000"
},
{
"name": "CombinedTempDiskAndCachedReadBytesPerSecond",
"value": "67108864"
},
{
"name": "CombinedTempDiskAndCachedWriteBytesPerSecond",
"value": "67108864"
},
{
"name": "CachedDiskBytes",
"value": "92341796864"
},
{
"name": "UncachedDiskIOPS",
"value": "6400"
},
{
"name": "UncachedDiskBytesPerSecond",
"value": "100663296"
},
{
"name": "EphemeralOSDiskSupported",
"value": "True"
},
{
"name": "EncryptionAtHostSupported",
"value": "True"
},
{
"name": "AcceleratedNetworkingEnabled",
"value": "True"
},
{
"name": "RdmaEnabled",
"value": "False"
},
{
"name": "MaxNetworkInterfaces",
"value": "2"
}
],
"restrictions": []
}
},
{
"location": "eastus2",
"vmSize": "Standard_DS15_v2",
"capability": {
"type": "requirement",
"name": "eastus2_Standard_DS15_v2",
"isDefault": false,
"artifact": "",
"nodeCount": 1,
"coreCount": 20,
"memoryMb": 143360,
"diskCount": {
"min": 0,
"max": 64,
"maxInclusive": true
},
"nicCount": {
"min": 0,
"max": 8,
"maxInclusive": true
},
"gpuCount": 0,
"features": {
"isAllowSet": true
},
"excludedFeatures": {
"isAllowSet": false
}
},
"estimatedCost": 20,
"resourceSku": {
"resource_type": "virtualMachines",
"name": "Standard_DS15_v2",
"tier": "Standard",
"size": "DS15_v2",
"family": "standardDSv2Family",
"locations": [
"eastus2"
],
"location_info": [
{
"location": "eastus2",
"zones": [
"3",
"2",
"1"
],
"zone_details": []
}
],
"capabilities": [
{
"name": "MaxResourceVolumeMB",
"value": "286720"
},
{
"name": "OSVhdSizeMB",
"value": "1047552"
},
{
"name": "vCPUs",
"value": "20"
},
{
"name": "HyperVGenerations",
"value": "V1,V2"
},
{
"name": "MemoryGB",
"value": "140"
},
{
"name": "MaxDataDiskCount",
"value": "64"
},
{
"name": "LowPriorityCapable",
"value": "True"
},
{
"name": "PremiumIO",
"value": "True"
},
{
"name": "VMDeploymentTypes",
"value": "IaaS"
},
{
"name": "vCPUsAvailable",
"value": "20"
},
{
"name": "ACUs",
"value": "210"
},
{
"name": "vCPUsPerCore",
"value": "1"
},
{
"name": "CombinedTempDiskAndCachedIOPS",
"value": "80000"
},
{
"name": "CombinedTempDiskAndCachedReadBytesPerSecond",
"value": "671088640"
},
{
"name": "CombinedTempDiskAndCachedWriteBytesPerSecond",
"value": "671088640"
},
{
"name": "CachedDiskBytes",
"value": "773094113280"
},
{
"name": "UncachedDiskIOPS",
"value": "64000"
},
{
"name": "UncachedDiskBytesPerSecond",
"value": "1006632960"
},
{
"name": "EphemeralOSDiskSupported",
"value": "True"
},
{
"name": "EncryptionAtHostSupported",
"value": "True"
},
{
"name": "AcceleratedNetworkingEnabled",
"value": "True"
},
{
"name": "RdmaEnabled",
"value": "False"
},
{
"name": "MaxNetworkInterfaces",
"value": "8"
}
],
"restrictions": [
{
"type": "Zone",
"values": [
"eastus2"
],
"restriction_info": {
"locations": [
"eastus2"
],
"zones": [
"1",
"2",
"3"
]
},
"reason_code": "NotAvailableForSubscription"
}
]
}
},
{
"location": "eastus2",
"vmSize": "Standard_A8_v2",
"capability": {
"type": "requirement",
"name": "eastus2_Standard_A8_v2",
"isDefault": false,
"artifact": "",
"nodeCount": 1,
"coreCount": 8,
"memoryMb": 16384,
"diskCount": {
"min": 0,
"max": 16,
"maxInclusive": true
},
"nicCount": {
"min": 0,
"max": 8,
"maxInclusive": true
},
"gpuCount": 0,
"features": {
"isAllowSet": true
},
"excludedFeatures": {
"isAllowSet": false
}
},
"estimatedCost": 8,
"resourceSku": {
"resource_type": "virtualMachines",
"name": "Standard_A8_v2",
"tier": "Standard",
"size": "A8_v2",
"family": "standardAv2Family",
"locations": [
"eastus2"
],
"location_info": [
{
"location": "eastus2",
"zones": [
"3",
"1",
"2"
],
"zone_details": []
}
],
"capabilities": [
{
"name": "MaxResourceVolumeMB",
"value": "81920"
},
{
"name": "OSVhdSizeMB",
"value": "1047552"
},
{
"name": "vCPUs",
"value": "8"
},
{
"name": "HyperVGenerations",
"value": "V1"
},
{
"name": "MemoryGB",
"value": "16"
},
{
"name": "MaxDataDiskCount",
"value": "16"
},
{
"name": "LowPriorityCapable",
"value": "True"
},
{
"name": "PremiumIO",
"value": "False"
},
{
"name": "VMDeploymentTypes",
"value": "IaaS,PaaS"
},
{
"name": "vCPUsAvailable",
"value": "8"
},
{
"name": "ACUs",
"value": "100"
},
{
"name": "vCPUsPerCore",
"value": "1"
},
{
"name": "CombinedTempDiskAndCachedIOPS",
"value": "8000"
},
{
"name": "CombinedTempDiskAndCachedReadBytesPerSecond",
"value": "167772160"
},
{
"name": "CombinedTempDiskAndCachedWriteBytesPerSecond",
"value": "83886080"
},
{
"name": "EphemeralOSDiskSupported",
"value": "False"
},
{
"name": "EncryptionAtHostSupported",
"value": "False"
},
{
"name": "AcceleratedNetworkingEnabled",
"value": "False"
},
{
"name": "RdmaEnabled",
"value": "False"
},
{
"name": "MaxNetworkInterfaces",
"value": "8"
}
],
"restrictions": []
}
},
{
"location": "eastus2",
"vmSize": "Standard_NV48s_v3",
"capability": {
"type": "requirement",
"name": "eastus2_Standard_NV48s_v3",
"isDefault": false,
"artifact": "",
"nodeCount": 1,
"coreCount": 48,
"memoryMb": 458752,
"diskCount": {
"min": 0,
"max": 32,
"maxInclusive": true
},
"nicCount": {
"min": 0,
"max": 8,
"maxInclusive": true
},
"gpuCount": 4,
"features": {
"isAllowSet": true
},
"excludedFeatures": {
"isAllowSet": false
}
},
"estimatedCost": 448,
"resourceSku": {
"resource_type": "virtualMachines",
"name": "Standard_NV48s_v3",
"tier": "Standard",
"size": "NV48s_v3",
"family": "standardNVSv3Family",
"locations": [
"eastus2"
],
"location_info": [
{
"location": "eastus2",
"zones": [
"3"
],
"zone_details": []
}
],
"capabilities": [
{
"name": "MaxResourceVolumeMB",
"value": "1376256"
},
{
"name": "OSVhdSizeMB",
"value": "1047552"
},
{
"name": "vCPUs",
"value": "48"
},
{
"name": "HyperVGenerations",
"value": "V1,V2"
},
{
"name": "MemoryGB",
"value": "448"
},
{
"name": "MaxDataDiskCount",
"value": "32"
},
{
"name": "LowPriorityCapable",
"value": "True"
},
{
"name": "PremiumIO",
"value": "True"
},
{
"name": "VMDeploymentTypes",
"value": "IaaS"
},
{
"name": "vCPUsAvailable",
"value": "48"
},
{
"name": "GPUs",
"value": "4"
},
{
"name": "vCPUsPerCore",
"value": "2"
},
{
"name": "EphemeralOSDiskSupported",
"value": "True"
},
{
"name": "EncryptionAtHostSupported",
"value": "True"
},
{
"name": "AcceleratedNetworkingEnabled",
"value": "False"
},
{
"name": "RdmaEnabled",
"value": "False"
},
{
"name": "MaxNetworkInterfaces",
"value": "8"
}
],
"restrictions": []
}
}
]
}

Просмотреть файл

@ -0,0 +1,443 @@
{
"updatedTime": "9999-09-21T12:16:43.682968",
"location": "westus2",
"capabilities": [
{
"location": "westus2",
"vmSize": "Standard_M208ms_v2",
"capability": {
"type": "requirement",
"name": "westus2_Standard_M208ms_v2",
"isDefault": false,
"artifact": "",
"nodeCount": 1,
"coreCount": 208,
"memoryMb": 5836800,
"diskCount": {
"min": 0,
"max": 64,
"maxInclusive": true
},
"nicCount": {
"min": 0,
"max": 8,
"maxInclusive": true
},
"gpuCount": 0,
"features": {
"isAllowSet": true
},
"excludedFeatures": {
"isAllowSet": false
}
},
"estimatedCost": 208,
"resourceSku": {
"resource_type": "virtualMachines",
"name": "Standard_M208ms_v2",
"tier": "Standard",
"size": "M208ms_v2",
"family": "standardMSv2Family",
"locations": [
"westus2"
],
"location_info": [
{
"location": "westus2",
"zones": [
"1",
"3"
],
"zone_details": [
{
"capabilities": [
{
"name": "UltraSSDAvailable",
"value": "True"
}
]
}
]
}
],
"capabilities": [
{
"name": "MaxResourceVolumeMB",
"value": "4194304"
},
{
"name": "OSVhdSizeMB",
"value": "1047552"
},
{
"name": "vCPUs",
"value": "208"
},
{
"name": "HyperVGenerations",
"value": "V2"
},
{
"name": "MemoryGB",
"value": "5700"
},
{
"name": "MaxDataDiskCount",
"value": "64"
},
{
"name": "MaxWriteAcceleratorDisksAllowed",
"value": "8"
},
{
"name": "LowPriorityCapable",
"value": "False"
},
{
"name": "PremiumIO",
"value": "True"
},
{
"name": "VMDeploymentTypes",
"value": "IaaS"
},
{
"name": "EphemeralOSDiskSupported",
"value": "True"
},
{
"name": "EncryptionAtHostSupported",
"value": "True"
},
{
"name": "AcceleratedNetworkingEnabled",
"value": "True"
},
{
"name": "RdmaEnabled",
"value": "False"
},
{
"name": "MaxNetworkInterfaces",
"value": "8"
}
],
"restrictions": [
{
"type": "Zone",
"values": [
"westus2"
],
"restriction_info": {
"locations": [
"westus2"
],
"zones": [
"2"
]
},
"reason_code": "NotAvailableForSubscription"
}
]
}
},
{
"location": "westus2",
"vmSize": "Standard_DS1_v2",
"capability": {
"type": "requirement",
"name": "westus2_Standard_DS1_v2",
"isDefault": false,
"artifact": "",
"nodeCount": 1,
"coreCount": 1,
"memoryMb": 3584,
"diskCount": {
"min": 0,
"max": 4,
"maxInclusive": true
},
"nicCount": {
"min": 0,
"max": 2,
"maxInclusive": true
},
"gpuCount": 0,
"features": {
"isAllowSet": true
},
"excludedFeatures": {
"isAllowSet": false
}
},
"estimatedCost": 1,
"resourceSku": {
"resource_type": "virtualMachines",
"name": "Standard_DS1_v2",
"tier": "Standard",
"size": "DS1_v2",
"family": "standardDSv2Family",
"locations": [
"westus2"
],
"location_info": [
{
"location": "westus2",
"zones": [
"3",
"2",
"1"
],
"zone_details": []
}
],
"capabilities": [
{
"name": "MaxResourceVolumeMB",
"value": "7168"
},
{
"name": "OSVhdSizeMB",
"value": "1047552"
},
{
"name": "vCPUs",
"value": "1"
},
{
"name": "HyperVGenerations",
"value": "V1,V2"
},
{
"name": "MemoryGB",
"value": "3.5"
},
{
"name": "MaxDataDiskCount",
"value": "4"
},
{
"name": "LowPriorityCapable",
"value": "True"
},
{
"name": "PremiumIO",
"value": "True"
},
{
"name": "VMDeploymentTypes",
"value": "IaaS"
},
{
"name": "vCPUsAvailable",
"value": "1"
},
{
"name": "ACUs",
"value": "210"
},
{
"name": "vCPUsPerCore",
"value": "1"
},
{
"name": "CombinedTempDiskAndCachedIOPS",
"value": "4000"
},
{
"name": "CombinedTempDiskAndCachedReadBytesPerSecond",
"value": "33554432"
},
{
"name": "CombinedTempDiskAndCachedWriteBytesPerSecond",
"value": "33554432"
},
{
"name": "CachedDiskBytes",
"value": "46170898432"
},
{
"name": "UncachedDiskIOPS",
"value": "3200"
},
{
"name": "UncachedDiskBytesPerSecond",
"value": "50331648"
},
{
"name": "EphemeralOSDiskSupported",
"value": "True"
},
{
"name": "EncryptionAtHostSupported",
"value": "True"
},
{
"name": "AcceleratedNetworkingEnabled",
"value": "False"
},
{
"name": "RdmaEnabled",
"value": "False"
},
{
"name": "MaxNetworkInterfaces",
"value": "2"
}
],
"restrictions": []
}
},
{
"location": "westus2",
"vmSize": "Standard_DS2_v2",
"capability": {
"type": "requirement",
"name": "westus2_Standard_DS2_v2",
"isDefault": false,
"artifact": "",
"nodeCount": 1,
"coreCount": 2,
"memoryMb": 7168,
"diskCount": {
"min": 0,
"max": 8,
"maxInclusive": true
},
"nicCount": {
"min": 0,
"max": 2,
"maxInclusive": true
},
"gpuCount": 0,
"features": {
"isAllowSet": true,
"items": [
"StartStop"
]
},
"excludedFeatures": {
"isAllowSet": false,
"items": []
}
},
"estimatedCost": 2,
"resourceSku": {
"resource_type": "virtualMachines",
"name": "Standard_DS2_v2",
"tier": "Standard",
"size": "DS2_v2",
"family": "standardDSv2Family",
"locations": [
"westus2"
],
"location_info": [
{
"location": "westus2",
"zones": [
"3",
"2",
"1"
],
"zone_details": []
}
],
"capabilities": [
{
"name": "MaxResourceVolumeMB",
"value": "14336"
},
{
"name": "OSVhdSizeMB",
"value": "1047552"
},
{
"name": "vCPUs",
"value": "2"
},
{
"name": "HyperVGenerations",
"value": "V1,V2"
},
{
"name": "MemoryGB",
"value": "7"
},
{
"name": "MaxDataDiskCount",
"value": "8"
},
{
"name": "LowPriorityCapable",
"value": "True"
},
{
"name": "PremiumIO",
"value": "True"
},
{
"name": "VMDeploymentTypes",
"value": "IaaS"
},
{
"name": "vCPUsAvailable",
"value": "2"
},
{
"name": "ACUs",
"value": "210"
},
{
"name": "vCPUsPerCore",
"value": "1"
},
{
"name": "CombinedTempDiskAndCachedIOPS",
"value": "8000"
},
{
"name": "CombinedTempDiskAndCachedReadBytesPerSecond",
"value": "67108864"
},
{
"name": "CombinedTempDiskAndCachedWriteBytesPerSecond",
"value": "67108864"
},
{
"name": "CachedDiskBytes",
"value": "92341796864"
},
{
"name": "UncachedDiskIOPS",
"value": "6400"
},
{
"name": "UncachedDiskBytesPerSecond",
"value": "100663296"
},
{
"name": "EphemeralOSDiskSupported",
"value": "True"
},
{
"name": "EncryptionAtHostSupported",
"value": "True"
},
{
"name": "AcceleratedNetworkingEnabled",
"value": "True"
},
{
"name": "RdmaEnabled",
"value": "False"
},
{
"name": "MaxNetworkInterfaces",
"value": "2"
}
],
"restrictions": []
}
}
]
}

Просмотреть файл

@ -0,0 +1,5 @@
{
"updatedTime": "9999-09-21T12:16:46.895330",
"location": "notreal",
"capabilities": []
}

Просмотреть файл

@ -0,0 +1,5 @@
{
"updatedTime": "9999-09-21T12:16:46.895330",
"location": "southeastasia",
"capabilities": []
}

Просмотреть файл

@ -0,0 +1,5 @@
{
"updatedTime": "9999-09-21T12:16:46.895330",
"location": "southeastasia",
"capabilities": []
}

Просмотреть файл

@ -0,0 +1,443 @@
{
"updatedTime": "9999-09-21T12:16:43.682968",
"location": "westus2",
"capabilities": [
{
"location": "westus2",
"vmSize": "Standard_M208ms_v2",
"capability": {
"type": "requirement",
"name": "westus2_Standard_M208ms_v2",
"isDefault": false,
"artifact": "",
"nodeCount": 1,
"coreCount": 208,
"memoryMb": 5836800,
"diskCount": {
"min": 0,
"max": 64,
"maxInclusive": true
},
"nicCount": {
"min": 0,
"max": 8,
"maxInclusive": true
},
"gpuCount": 0,
"features": {
"isAllowSet": true
},
"excludedFeatures": {
"isAllowSet": false
}
},
"estimatedCost": 208,
"resourceSku": {
"resource_type": "virtualMachines",
"name": "Standard_M208ms_v2",
"tier": "Standard",
"size": "M208ms_v2",
"family": "standardMSv2Family",
"locations": [
"westus2"
],
"location_info": [
{
"location": "westus2",
"zones": [
"1",
"3"
],
"zone_details": [
{
"capabilities": [
{
"name": "UltraSSDAvailable",
"value": "True"
}
]
}
]
}
],
"capabilities": [
{
"name": "MaxResourceVolumeMB",
"value": "4194304"
},
{
"name": "OSVhdSizeMB",
"value": "1047552"
},
{
"name": "vCPUs",
"value": "208"
},
{
"name": "HyperVGenerations",
"value": "V2"
},
{
"name": "MemoryGB",
"value": "5700"
},
{
"name": "MaxDataDiskCount",
"value": "64"
},
{
"name": "MaxWriteAcceleratorDisksAllowed",
"value": "8"
},
{
"name": "LowPriorityCapable",
"value": "False"
},
{
"name": "PremiumIO",
"value": "True"
},
{
"name": "VMDeploymentTypes",
"value": "IaaS"
},
{
"name": "EphemeralOSDiskSupported",
"value": "True"
},
{
"name": "EncryptionAtHostSupported",
"value": "True"
},
{
"name": "AcceleratedNetworkingEnabled",
"value": "True"
},
{
"name": "RdmaEnabled",
"value": "False"
},
{
"name": "MaxNetworkInterfaces",
"value": "8"
}
],
"restrictions": [
{
"type": "Zone",
"values": [
"westus2"
],
"restriction_info": {
"locations": [
"westus2"
],
"zones": [
"2"
]
},
"reason_code": "NotAvailableForSubscription"
}
]
}
},
{
"location": "westus2",
"vmSize": "Standard_DS1_v2",
"capability": {
"type": "requirement",
"name": "westus2_Standard_DS1_v2",
"isDefault": false,
"artifact": "",
"nodeCount": 1,
"coreCount": 1,
"memoryMb": 3584,
"diskCount": {
"min": 0,
"max": 4,
"maxInclusive": true
},
"nicCount": {
"min": 0,
"max": 2,
"maxInclusive": true
},
"gpuCount": 0,
"features": {
"isAllowSet": true
},
"excludedFeatures": {
"isAllowSet": false
}
},
"estimatedCost": 1,
"resourceSku": {
"resource_type": "virtualMachines",
"name": "Standard_DS1_v2",
"tier": "Standard",
"size": "DS1_v2",
"family": "standardDSv2Family",
"locations": [
"westus2"
],
"location_info": [
{
"location": "westus2",
"zones": [
"3",
"2",
"1"
],
"zone_details": []
}
],
"capabilities": [
{
"name": "MaxResourceVolumeMB",
"value": "7168"
},
{
"name": "OSVhdSizeMB",
"value": "1047552"
},
{
"name": "vCPUs",
"value": "1"
},
{
"name": "HyperVGenerations",
"value": "V1,V2"
},
{
"name": "MemoryGB",
"value": "3.5"
},
{
"name": "MaxDataDiskCount",
"value": "4"
},
{
"name": "LowPriorityCapable",
"value": "True"
},
{
"name": "PremiumIO",
"value": "True"
},
{
"name": "VMDeploymentTypes",
"value": "IaaS"
},
{
"name": "vCPUsAvailable",
"value": "1"
},
{
"name": "ACUs",
"value": "210"
},
{
"name": "vCPUsPerCore",
"value": "1"
},
{
"name": "CombinedTempDiskAndCachedIOPS",
"value": "4000"
},
{
"name": "CombinedTempDiskAndCachedReadBytesPerSecond",
"value": "33554432"
},
{
"name": "CombinedTempDiskAndCachedWriteBytesPerSecond",
"value": "33554432"
},
{
"name": "CachedDiskBytes",
"value": "46170898432"
},
{
"name": "UncachedDiskIOPS",
"value": "3200"
},
{
"name": "UncachedDiskBytesPerSecond",
"value": "50331648"
},
{
"name": "EphemeralOSDiskSupported",
"value": "True"
},
{
"name": "EncryptionAtHostSupported",
"value": "True"
},
{
"name": "AcceleratedNetworkingEnabled",
"value": "False"
},
{
"name": "RdmaEnabled",
"value": "False"
},
{
"name": "MaxNetworkInterfaces",
"value": "2"
}
],
"restrictions": []
}
},
{
"location": "westus2",
"vmSize": "Standard_DS2_v2",
"capability": {
"type": "requirement",
"name": "westus2_Standard_DS2_v2",
"isDefault": false,
"artifact": "",
"nodeCount": 1,
"coreCount": 2,
"memoryMb": 7168,
"diskCount": {
"min": 0,
"max": 8,
"maxInclusive": true
},
"nicCount": {
"min": 0,
"max": 2,
"maxInclusive": true
},
"gpuCount": 0,
"features": {
"isAllowSet": true,
"items": [
"StartStop"
]
},
"excludedFeatures": {
"isAllowSet": false,
"items": []
}
},
"estimatedCost": 2,
"resourceSku": {
"resource_type": "virtualMachines",
"name": "Standard_DS2_v2",
"tier": "Standard",
"size": "DS2_v2",
"family": "standardDSv2Family",
"locations": [
"westus2"
],
"location_info": [
{
"location": "westus2",
"zones": [
"3",
"2",
"1"
],
"zone_details": []
}
],
"capabilities": [
{
"name": "MaxResourceVolumeMB",
"value": "14336"
},
{
"name": "OSVhdSizeMB",
"value": "1047552"
},
{
"name": "vCPUs",
"value": "2"
},
{
"name": "HyperVGenerations",
"value": "V1,V2"
},
{
"name": "MemoryGB",
"value": "7"
},
{
"name": "MaxDataDiskCount",
"value": "8"
},
{
"name": "LowPriorityCapable",
"value": "True"
},
{
"name": "PremiumIO",
"value": "True"
},
{
"name": "VMDeploymentTypes",
"value": "IaaS"
},
{
"name": "vCPUsAvailable",
"value": "2"
},
{
"name": "ACUs",
"value": "210"
},
{
"name": "vCPUsPerCore",
"value": "1"
},
{
"name": "CombinedTempDiskAndCachedIOPS",
"value": "8000"
},
{
"name": "CombinedTempDiskAndCachedReadBytesPerSecond",
"value": "67108864"
},
{
"name": "CombinedTempDiskAndCachedWriteBytesPerSecond",
"value": "67108864"
},
{
"name": "CachedDiskBytes",
"value": "92341796864"
},
{
"name": "UncachedDiskIOPS",
"value": "6400"
},
{
"name": "UncachedDiskBytesPerSecond",
"value": "100663296"
},
{
"name": "EphemeralOSDiskSupported",
"value": "True"
},
{
"name": "EncryptionAtHostSupported",
"value": "True"
},
{
"name": "AcceleratedNetworkingEnabled",
"value": "True"
},
{
"name": "RdmaEnabled",
"value": "False"
},
{
"name": "MaxNetworkInterfaces",
"value": "2"
}
],
"restrictions": []
}
}
]
}

Просмотреть файл

@ -0,0 +1,443 @@
{
"updatedTime": "9999-09-21T12:16:43.682968",
"location": "westus2",
"capabilities": [
{
"location": "westus2",
"vmSize": "Standard_M208ms_v2",
"capability": {
"type": "requirement",
"name": "westus2_Standard_M208ms_v2",
"isDefault": false,
"artifact": "",
"nodeCount": 1,
"coreCount": 208,
"memoryMb": 5836800,
"diskCount": {
"min": 0,
"max": 64,
"maxInclusive": true
},
"nicCount": {
"min": 0,
"max": 8,
"maxInclusive": true
},
"gpuCount": 0,
"features": {
"isAllowSet": true
},
"excludedFeatures": {
"isAllowSet": false
}
},
"estimatedCost": 208,
"resourceSku": {
"resource_type": "virtualMachines",
"name": "Standard_M208ms_v2",
"tier": "Standard",
"size": "M208ms_v2",
"family": "standardMSv2Family",
"locations": [
"westus2"
],
"location_info": [
{
"location": "westus2",
"zones": [
"1",
"3"
],
"zone_details": [
{
"capabilities": [
{
"name": "UltraSSDAvailable",
"value": "True"
}
]
}
]
}
],
"capabilities": [
{
"name": "MaxResourceVolumeMB",
"value": "4194304"
},
{
"name": "OSVhdSizeMB",
"value": "1047552"
},
{
"name": "vCPUs",
"value": "208"
},
{
"name": "HyperVGenerations",
"value": "V2"
},
{
"name": "MemoryGB",
"value": "5700"
},
{
"name": "MaxDataDiskCount",
"value": "64"
},
{
"name": "MaxWriteAcceleratorDisksAllowed",
"value": "8"
},
{
"name": "LowPriorityCapable",
"value": "False"
},
{
"name": "PremiumIO",
"value": "True"
},
{
"name": "VMDeploymentTypes",
"value": "IaaS"
},
{
"name": "EphemeralOSDiskSupported",
"value": "True"
},
{
"name": "EncryptionAtHostSupported",
"value": "True"
},
{
"name": "AcceleratedNetworkingEnabled",
"value": "True"
},
{
"name": "RdmaEnabled",
"value": "False"
},
{
"name": "MaxNetworkInterfaces",
"value": "8"
}
],
"restrictions": [
{
"type": "Zone",
"values": [
"westus2"
],
"restriction_info": {
"locations": [
"westus2"
],
"zones": [
"2"
]
},
"reason_code": "NotAvailableForSubscription"
}
]
}
},
{
"location": "westus2",
"vmSize": "Standard_DS1_v2",
"capability": {
"type": "requirement",
"name": "westus2_Standard_DS1_v2",
"isDefault": false,
"artifact": "",
"nodeCount": 1,
"coreCount": 1,
"memoryMb": 3584,
"diskCount": {
"min": 0,
"max": 4,
"maxInclusive": true
},
"nicCount": {
"min": 0,
"max": 2,
"maxInclusive": true
},
"gpuCount": 0,
"features": {
"isAllowSet": true
},
"excludedFeatures": {
"isAllowSet": false
}
},
"estimatedCost": 1,
"resourceSku": {
"resource_type": "virtualMachines",
"name": "Standard_DS1_v2",
"tier": "Standard",
"size": "DS1_v2",
"family": "standardDSv2Family",
"locations": [
"westus2"
],
"location_info": [
{
"location": "westus2",
"zones": [
"3",
"2",
"1"
],
"zone_details": []
}
],
"capabilities": [
{
"name": "MaxResourceVolumeMB",
"value": "7168"
},
{
"name": "OSVhdSizeMB",
"value": "1047552"
},
{
"name": "vCPUs",
"value": "1"
},
{
"name": "HyperVGenerations",
"value": "V1,V2"
},
{
"name": "MemoryGB",
"value": "3.5"
},
{
"name": "MaxDataDiskCount",
"value": "4"
},
{
"name": "LowPriorityCapable",
"value": "True"
},
{
"name": "PremiumIO",
"value": "True"
},
{
"name": "VMDeploymentTypes",
"value": "IaaS"
},
{
"name": "vCPUsAvailable",
"value": "1"
},
{
"name": "ACUs",
"value": "210"
},
{
"name": "vCPUsPerCore",
"value": "1"
},
{
"name": "CombinedTempDiskAndCachedIOPS",
"value": "4000"
},
{
"name": "CombinedTempDiskAndCachedReadBytesPerSecond",
"value": "33554432"
},
{
"name": "CombinedTempDiskAndCachedWriteBytesPerSecond",
"value": "33554432"
},
{
"name": "CachedDiskBytes",
"value": "46170898432"
},
{
"name": "UncachedDiskIOPS",
"value": "3200"
},
{
"name": "UncachedDiskBytesPerSecond",
"value": "50331648"
},
{
"name": "EphemeralOSDiskSupported",
"value": "True"
},
{
"name": "EncryptionAtHostSupported",
"value": "True"
},
{
"name": "AcceleratedNetworkingEnabled",
"value": "False"
},
{
"name": "RdmaEnabled",
"value": "False"
},
{
"name": "MaxNetworkInterfaces",
"value": "2"
}
],
"restrictions": []
}
},
{
"location": "westus2",
"vmSize": "Standard_DS2_v2",
"capability": {
"type": "requirement",
"name": "westus2_Standard_DS2_v2",
"isDefault": false,
"artifact": "",
"nodeCount": 1,
"coreCount": 2,
"memoryMb": 7168,
"diskCount": {
"min": 0,
"max": 8,
"maxInclusive": true
},
"nicCount": {
"min": 0,
"max": 2,
"maxInclusive": true
},
"gpuCount": 0,
"features": {
"isAllowSet": true,
"items": [
"StartStop"
]
},
"excludedFeatures": {
"isAllowSet": false,
"items": []
}
},
"estimatedCost": 2,
"resourceSku": {
"resource_type": "virtualMachines",
"name": "Standard_DS2_v2",
"tier": "Standard",
"size": "DS2_v2",
"family": "standardDSv2Family",
"locations": [
"westus2"
],
"location_info": [
{
"location": "westus2",
"zones": [
"3",
"2",
"1"
],
"zone_details": []
}
],
"capabilities": [
{
"name": "MaxResourceVolumeMB",
"value": "14336"
},
{
"name": "OSVhdSizeMB",
"value": "1047552"
},
{
"name": "vCPUs",
"value": "2"
},
{
"name": "HyperVGenerations",
"value": "V1,V2"
},
{
"name": "MemoryGB",
"value": "7"
},
{
"name": "MaxDataDiskCount",
"value": "8"
},
{
"name": "LowPriorityCapable",
"value": "True"
},
{
"name": "PremiumIO",
"value": "True"
},
{
"name": "VMDeploymentTypes",
"value": "IaaS"
},
{
"name": "vCPUsAvailable",
"value": "2"
},
{
"name": "ACUs",
"value": "210"
},
{
"name": "vCPUsPerCore",
"value": "1"
},
{
"name": "CombinedTempDiskAndCachedIOPS",
"value": "8000"
},
{
"name": "CombinedTempDiskAndCachedReadBytesPerSecond",
"value": "67108864"
},
{
"name": "CombinedTempDiskAndCachedWriteBytesPerSecond",
"value": "67108864"
},
{
"name": "CachedDiskBytes",
"value": "92341796864"
},
{
"name": "UncachedDiskIOPS",
"value": "6400"
},
{
"name": "UncachedDiskBytesPerSecond",
"value": "100663296"
},
{
"name": "EphemeralOSDiskSupported",
"value": "True"
},
{
"name": "EncryptionAtHostSupported",
"value": "True"
},
{
"name": "AcceleratedNetworkingEnabled",
"value": "True"
},
{
"name": "RdmaEnabled",
"value": "False"
},
{
"name": "MaxNetworkInterfaces",
"value": "2"
}
],
"restrictions": []
}
}
]
}

Просмотреть файл

@ -0,0 +1,443 @@
{
"updatedTime": "9999-09-21T12:16:43.682968",
"location": "westus2",
"capabilities": [
{
"location": "westus2",
"vmSize": "Standard_M208ms_v2",
"capability": {
"type": "requirement",
"name": "westus2_Standard_M208ms_v2",
"isDefault": false,
"artifact": "",
"nodeCount": 1,
"coreCount": 208,
"memoryMb": 5836800,
"diskCount": {
"min": 0,
"max": 64,
"maxInclusive": true
},
"nicCount": {
"min": 0,
"max": 8,
"maxInclusive": true
},
"gpuCount": 0,
"features": {
"isAllowSet": true
},
"excludedFeatures": {
"isAllowSet": false
}
},
"estimatedCost": 208,
"resourceSku": {
"resource_type": "virtualMachines",
"name": "Standard_M208ms_v2",
"tier": "Standard",
"size": "M208ms_v2",
"family": "standardMSv2Family",
"locations": [
"westus2"
],
"location_info": [
{
"location": "westus2",
"zones": [
"1",
"3"
],
"zone_details": [
{
"capabilities": [
{
"name": "UltraSSDAvailable",
"value": "True"
}
]
}
]
}
],
"capabilities": [
{
"name": "MaxResourceVolumeMB",
"value": "4194304"
},
{
"name": "OSVhdSizeMB",
"value": "1047552"
},
{
"name": "vCPUs",
"value": "208"
},
{
"name": "HyperVGenerations",
"value": "V2"
},
{
"name": "MemoryGB",
"value": "5700"
},
{
"name": "MaxDataDiskCount",
"value": "64"
},
{
"name": "MaxWriteAcceleratorDisksAllowed",
"value": "8"
},
{
"name": "LowPriorityCapable",
"value": "False"
},
{
"name": "PremiumIO",
"value": "True"
},
{
"name": "VMDeploymentTypes",
"value": "IaaS"
},
{
"name": "EphemeralOSDiskSupported",
"value": "True"
},
{
"name": "EncryptionAtHostSupported",
"value": "True"
},
{
"name": "AcceleratedNetworkingEnabled",
"value": "True"
},
{
"name": "RdmaEnabled",
"value": "False"
},
{
"name": "MaxNetworkInterfaces",
"value": "8"
}
],
"restrictions": [
{
"type": "Zone",
"values": [
"westus2"
],
"restriction_info": {
"locations": [
"westus2"
],
"zones": [
"2"
]
},
"reason_code": "NotAvailableForSubscription"
}
]
}
},
{
"location": "westus2",
"vmSize": "Standard_DS1_v2",
"capability": {
"type": "requirement",
"name": "westus2_Standard_DS1_v2",
"isDefault": false,
"artifact": "",
"nodeCount": 1,
"coreCount": 1,
"memoryMb": 3584,
"diskCount": {
"min": 0,
"max": 4,
"maxInclusive": true
},
"nicCount": {
"min": 0,
"max": 2,
"maxInclusive": true
},
"gpuCount": 0,
"features": {
"isAllowSet": true
},
"excludedFeatures": {
"isAllowSet": false
}
},
"estimatedCost": 1,
"resourceSku": {
"resource_type": "virtualMachines",
"name": "Standard_DS1_v2",
"tier": "Standard",
"size": "DS1_v2",
"family": "standardDSv2Family",
"locations": [
"westus2"
],
"location_info": [
{
"location": "westus2",
"zones": [
"3",
"2",
"1"
],
"zone_details": []
}
],
"capabilities": [
{
"name": "MaxResourceVolumeMB",
"value": "7168"
},
{
"name": "OSVhdSizeMB",
"value": "1047552"
},
{
"name": "vCPUs",
"value": "1"
},
{
"name": "HyperVGenerations",
"value": "V1,V2"
},
{
"name": "MemoryGB",
"value": "3.5"
},
{
"name": "MaxDataDiskCount",
"value": "4"
},
{
"name": "LowPriorityCapable",
"value": "True"
},
{
"name": "PremiumIO",
"value": "True"
},
{
"name": "VMDeploymentTypes",
"value": "IaaS"
},
{
"name": "vCPUsAvailable",
"value": "1"
},
{
"name": "ACUs",
"value": "210"
},
{
"name": "vCPUsPerCore",
"value": "1"
},
{
"name": "CombinedTempDiskAndCachedIOPS",
"value": "4000"
},
{
"name": "CombinedTempDiskAndCachedReadBytesPerSecond",
"value": "33554432"
},
{
"name": "CombinedTempDiskAndCachedWriteBytesPerSecond",
"value": "33554432"
},
{
"name": "CachedDiskBytes",
"value": "46170898432"
},
{
"name": "UncachedDiskIOPS",
"value": "3200"
},
{
"name": "UncachedDiskBytesPerSecond",
"value": "50331648"
},
{
"name": "EphemeralOSDiskSupported",
"value": "True"
},
{
"name": "EncryptionAtHostSupported",
"value": "True"
},
{
"name": "AcceleratedNetworkingEnabled",
"value": "False"
},
{
"name": "RdmaEnabled",
"value": "False"
},
{
"name": "MaxNetworkInterfaces",
"value": "2"
}
],
"restrictions": []
}
},
{
"location": "westus2",
"vmSize": "Standard_DS2_v2",
"capability": {
"type": "requirement",
"name": "westus2_Standard_DS2_v2",
"isDefault": false,
"artifact": "",
"nodeCount": 1,
"coreCount": 2,
"memoryMb": 7168,
"diskCount": {
"min": 0,
"max": 8,
"maxInclusive": true
},
"nicCount": {
"min": 0,
"max": 2,
"maxInclusive": true
},
"gpuCount": 0,
"features": {
"isAllowSet": true,
"items": [
"StartStop"
]
},
"excludedFeatures": {
"isAllowSet": false,
"items": []
}
},
"estimatedCost": 2,
"resourceSku": {
"resource_type": "virtualMachines",
"name": "Standard_DS2_v2",
"tier": "Standard",
"size": "DS2_v2",
"family": "standardDSv2Family",
"locations": [
"westus2"
],
"location_info": [
{
"location": "westus2",
"zones": [
"3",
"2",
"1"
],
"zone_details": []
}
],
"capabilities": [
{
"name": "MaxResourceVolumeMB",
"value": "14336"
},
{
"name": "OSVhdSizeMB",
"value": "1047552"
},
{
"name": "vCPUs",
"value": "2"
},
{
"name": "HyperVGenerations",
"value": "V1,V2"
},
{
"name": "MemoryGB",
"value": "7"
},
{
"name": "MaxDataDiskCount",
"value": "8"
},
{
"name": "LowPriorityCapable",
"value": "True"
},
{
"name": "PremiumIO",
"value": "True"
},
{
"name": "VMDeploymentTypes",
"value": "IaaS"
},
{
"name": "vCPUsAvailable",
"value": "2"
},
{
"name": "ACUs",
"value": "210"
},
{
"name": "vCPUsPerCore",
"value": "1"
},
{
"name": "CombinedTempDiskAndCachedIOPS",
"value": "8000"
},
{
"name": "CombinedTempDiskAndCachedReadBytesPerSecond",
"value": "67108864"
},
{
"name": "CombinedTempDiskAndCachedWriteBytesPerSecond",
"value": "67108864"
},
{
"name": "CachedDiskBytes",
"value": "92341796864"
},
{
"name": "UncachedDiskIOPS",
"value": "6400"
},
{
"name": "UncachedDiskBytesPerSecond",
"value": "100663296"
},
{
"name": "EphemeralOSDiskSupported",
"value": "True"
},
{
"name": "EncryptionAtHostSupported",
"value": "True"
},
{
"name": "AcceleratedNetworkingEnabled",
"value": "True"
},
{
"name": "RdmaEnabled",
"value": "False"
},
{
"name": "MaxNetworkInterfaces",
"value": "2"
}
],
"restrictions": []
}
}
]
}

Просмотреть файл

@ -24,7 +24,11 @@ class AzurePrepareTestCase(TestCase):
platform_runbook = schema.Platform()
self._platform = azure.AzurePlatform(platform_runbook)
self._platform._azure_runbook = azure.AzurePlatformSchema()
self._platform._initialize_eligible_vm_sizes(self._log)
# trigger data to be cached
locations = ["westus2", "eastus2", "notreal"]
for location in locations:
self._platform._get_eligible_vm_sizes(location, self._log)
def test_load_capability(self) -> None:
# capability can be loaded correct
@ -73,7 +77,8 @@ class AzurePrepareTestCase(TestCase):
assert self._platform._eligible_capabilities
self.verify_eligible_vm_size("westus2", "Standard_M208ms_v2", False)
self.assertFalse("notreal" in self._platform._eligible_capabilities)
self.assertTrue("notreal" in self._platform._eligible_capabilities)
self.assertFalse(self._platform._eligible_capabilities["notreal"])
def test_no_requirement(self) -> None:
# if there is no requirement, return success