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

Deployment of Azure resources failed due to a policy violation. VMSS deployments to have automatic OS upgrades enabled #219

Open
singhravipratap opened this issue Jan 8, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@singhravipratap
Copy link

Describe the bug
The deployment of Azure resources failed due to a policy violation. Specifically, the subscription has a policy "MCAPSGov SFI Deny Policies" that disallowed the creation of the resource "aks-agentpool-36070728-vmss". The policy requires Virtual Machine Scale Sets (VMSS) deployments to have automatic OS upgrades enabled, which was not the case

Screenshots
Screenshot 2025-01-08 021759

Additional context
The policy "MCAPSGov SFI Deny Policies" enforces that VMSS deployments must have auto OS upgrades enabled. This policy is applied to the scope at MCAPSCore and has a default value of denied.

@singhravipratap singhravipratap added the bug Something isn't working label Jan 8, 2025
@billierinaldi
Copy link

@singhravipratap VMSS auto OS upgrades should not be enabled for AKS agent pools. AKS has different mechanisms for auto OS upgrades, and these are enabled in our bicep deployments. The policy should be modified to exclude VMSSes that are managed by AKS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants