Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update vmSize and/or add workaround for unsupported sizes in locations & zones #372

Open
ShawnMcGough opened this issue Mar 17, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@ShawnMcGough
Copy link

I received the following error when deploying acr-stamp. It took me a bit to workout a vmSize that would work.

"The template deployment failed with error: 'The resource with id: '/subscriptions/x/resourceGroups/rg-bu0001a0008/providers/Microsoft.Compute/virtualMachineScaleSets/aks-npuser01-37152336-vmss' failed validation with message: 'The requested size for resource '/subscriptions/x/resourceGroups/rg-bu0001a0008/providers/Microsoft.Compute/virtualMachineScaleSets/aks-npuser01-37152336-vmss' is currently not available in location 'eastus2' zones '1,2,3' for subscription 'x'. Please try another size or deploy to a different location or zones. See https://aka.ms/azureskunotavailable for details.'.'.\"}

Maybe just a callout in the doc that explains this could happen with the default vmSize, and a change might be required to the acr-stamp.bicep file.

@ckittel
Copy link
Member

ckittel commented Mar 20, 2023

Sorry to hear that. Yeah, as MSFT employees, we do have some size and region restrictions placed on us -- they come and go it seems. Just like Azure Policy interference, we can't do much about it. I know it sucks to get so far. I wonder if the right option wouldn't be a quick az CLI command to check the availability of the SKUs in the region before running the deployment. Would you like to add a PR to do that?

@ckittel ckittel added the enhancement New feature or request label Mar 20, 2023
@ShawnMcGough
Copy link
Author

How does this command look?

It should filter out all SKUs that have restrictions as well as other capability filters.

az vm list-skus --location eastus2 --resource-type virtualMachines --query '[?!restrictions && capabilities[?name==`OSVhdSizeMB` && to_number(value)>=`122880`] && capabilities[?name==`EphemeralOSDiskSupported` && value==`True`] && capabilities[?name==`vCPUsAvailable` && to_number(value)==`4`]].{Name:name, Size:size, Family:family}'  --output table

I ended up using Standard_D4lds_v5 for both scale sets, as the Standard_D2lds_v5 didn't have enough disk space (despite the response indicating it should).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants