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

Alias request: Microsoft.Compute/virtualMachineScaleSets/virtualMachineProfile.scheduledEventsProfile.terminateNotificationProfile #1393

Open
sdx-jkataja opened this issue Oct 15, 2024 · 0 comments

Comments

@sdx-jkataja
Copy link

Please change the terminateNotificationProfile aliases to modifiable.

We run build jobs on Azure Kubernetes using Spot Virtual Machines. These may be reclaimed as the excess capacity runs out. We would like to receive advance notifications before the nodes are terminated. The spot machines are added as an AKS Node Pool, which is then backed by a VM Scale Set. Scale set has support for termination notifications, but the scale sets created by AKS have the parameter disabled. The node pool resource also does not pass through the parameter to enable termination notifications.

I attempted to enable the notifications by writing an Azure Policy that detects out of policy spot scale sets without the notifications and remedies the issue by enabling the setting.
However, I encountered the following error (reformatted):

The policy definition '00000000-0000-0000-0000-000000000000' has operations referring to aliases that are not modifiable: 
'Microsoft.Compute/virtualMachineScaleSets/virtualMachineProfile.scheduledEventsProfile.terminateNotificationProfile.enable,
Microsoft.Compute/virtualMachineScaleSets/virtualMachineProfile.scheduledEventsProfile.terminateNotificationProfile.notBeforeTimeout'.Save 

Instructions and sample parameter values on how to enable the notifications with CLI: https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-terminate-notification

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

No branches or pull requests

1 participant