Skip to content

Commit

Permalink
Merge pull request #106 from majguo/main
Browse files Browse the repository at this point in the history
Exclude arm64 cpu based vm sizes
  • Loading branch information
venunathb authored Jul 30, 2024
2 parents 1e8ba7f + 5ebfadb commit 3d49f0c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

<groupId>com.ibm.websphere.azure</groupId>
<artifactId>azure.websphere-traditional.singleserver</artifactId>
<version>1.0.30</version>
<version>1.0.31</version>

<!-- mvn -Pbicep -Passembly clean install -Ptemplate-validation-tests -->
<parent>
Expand Down
24 changes: 21 additions & 3 deletions src/main/arm/createUiDefinition.json
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,22 @@
"Standard_B1ls",
"Standard_A0",
"Basic_A0",
"Standard_B1s"
"Standard_B1s",
${azure.armBased.vmSize.list}
]
},
"osPlatform": "Linux",
"count": "1"
},
{
"name": "invalidVMSizeInfo",
"type": "Microsoft.Common.InfoBox",
"visible": "[contains(steps('SingleServerConfig').vmSizeSelect,'p')]",
"options": {
"icon": "Error",
"text": "The VM size you selected includes the feature letter 'p', indicating it uses ARM CPUs. ARM platform is not supported. Please select a different VM size. For more information, refer to the <a href='https://learn.microsoft.com/azure/virtual-machines/vm-naming-conventions' target='_blank'>Azure virtual machine sizes naming conventions</a>."
}
},
{
"name": "adminUsername",
"type": "Microsoft.Common.TextBox",
Expand All @@ -182,8 +192,16 @@
"toolTip": "Use only letters and numbers.",
"constraints": {
"required": true,
"regex": "^[a-z0-9A-Z]{1,30}$",
"validationMessage": "The value must be 1-30 characters long and must only contain letters and numbers."
"validations": [
{
"regex": "^[a-z0-9A-Z]{1,30}$",
"message": "The value must be 1-30 characters long and must only contain letters and numbers."
},
{
"isValid": "[not(contains(steps('SingleServerConfig').vmSizeSelect,'p'))]",
"message": "ARM platform is not supported. Please select a different VM size."
}
]
}
},
{
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/azure-common.properties
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,5 @@ azure.apiVersionForStorageFileService=2023-05-01
azure.apiVersionForStorageBlobService=2023-05-01
# Microsoft.RedHatOpenShift/openShiftClusters
azure.apiVersionForOpenShiftClusters=2023-04-01

azure.armBased.vmSize.list="Standard_D2plds_v5","Standard_D4plds_v5","Standard_D8plds_v5","Standard_D16plds_v5","Standard_D32plds_v5","Standard_D48plds_v5","Standard_D64plds_v5","Standard_D2pls_v5","Standard_D4pls_v5","Standard_D8pls_v5","Standard_D16pls_v5","Standard_D32pls_v5","Standard_D48pls_v5","Standard_D64pls_v5","Standard_D2pds_v5","Standard_D4pds_v5","Standard_D8pds_v5","Standard_D16pds_v5","Standard_D32pds_v5","Standard_D48pds_v5","Standard_D64pds_v5","Standard_D2ps_v5","Standard_D4ps_v5","Standard_D8ps_v5","Standard_D16ps_v5","Standard_D32ps_v5","Standard_D48ps_v5","Standard_D64ps_v5","Standard_E2pds_v5","Standard_E4pds_v5","Standard_E8pds_v5","Standard_E16pds_v5","Standard_E20pds_v5","Standard_E32pds_v5","Standard_E2ps_v5","Standard_E4ps_v5","Standard_E8ps_v5","Standard_E16ps_v5","Standard_E20ps_v5","Standard_E32ps_v5","Standard_B2pls_v2","Standard_B2ps_v2","Standard_B2pts_v2","Standard_B4pls_v2","Standard_B4ps_v2","Standard_B8pls_v2","Standard_B8ps_v2","Standard_B16pls_v2","Standard_B16ps_v2"

0 comments on commit 3d49f0c

Please sign in to comment.