This pull request includes a number of changes to improve the application's compatibility with different VM sizes and regions, and to update certain dependencies. The most significant changes include the addition of constraints for certain VM sizes, the removal of hardcoded availability zones, and the update of Azure library version. It targets to resolve #114.
Updates to Dependencies:
pom.xml: Updated version.azure.liberty.aks from 1.0.46 to 1.0.47.
src/main/bicep/mainTemplate.bicep: Removed hardcoded availability zones and regions, and replaced them with outputs from the preflight deployment script. [1][2]
This pull request includes a number of changes to improve the application's compatibility with different VM sizes and regions, and to update certain dependencies. The most significant changes include the addition of constraints for certain VM sizes, the removal of hardcoded availability zones, and the update of Azure library version. It targets to resolve #114.
Updates to Dependencies:
pom.xml
: Updatedversion.azure.liberty.aks
from1.0.46
to1.0.47
.src/main/resources/azure-common.properties
: Updatedazure.apiVersionForKeyVault
andazure.apiVersionForKeyVaultSecrets
from2022-07-01
to2023-07-01
.src/main/bicep/modules/_deployment-scripts/_ds-preflight.bicep
: UpdatedazCliVersion
from2.15.0
to2.53.0
.Improvements to VM Size Compatibility:
src/main/arm/createUiDefinition.json
: Added a list of excluded VM sizes to theconstraints
object.src/main/bicep/modules/_deployment-scripts/_ds-preflight.bicep
: Added new parametersvmSize
,deployApplication
, andsourceImagePath
.src/main/scripts/preflight.sh
: Added checks for VM size and image architecture compatibility.Changes to Availability Zones:
src/main/bicep/mainTemplate.bicep
: Removed hardcoded availability zones and regions, and replaced them with outputs from the preflight deployment script. [1] [2]src/main/bicep/modules/_deployment-scripts/_ds-preflight.bicep
: Added output foraksAgentAvailabilityZones
.src/main/scripts/preflight.sh
: Added logic to determine available zones based on region and VM size.Other Changes:
src/main/bicep/mainTemplate.bicep
: AddedvmSize
,deployApplication
, andsourceImagePath
to the preflight deployment script parameters.src/main/bicep/modules/_deployment-scripts/_ds-preflight.bicep
: Added new environment variables to the deployment script.Tests
Signed-off-by: Jianguo Ma jiangma@microsoft.com