Skip to content

Commit

Permalink
start using Security Patches for OS upgrade channel to get Node OS Le…
Browse files Browse the repository at this point in the history
…vel automatically
  • Loading branch information
ferantivero committed Mar 7, 2024
1 parent 7cd7be0 commit 2218f2e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions 01-prerequisites.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,15 @@ This is the starting point for the instructions on deploying the [AKS baseline r
# Keep running until all say "Registered." (This may take up to 20 minutes.)
az feature list -o table --query "[?name=='Microsoft.ContainerService/EnableImageCleanerPreview'].{Name:name,State:properties.state}"

# Node OS Level Automatic Security Patches are currently in Preview and requies the following feature
az feature register --namespace "Microsoft.ContainerService" -n "NodeOsUpgradeChannelPreview"

# Keep running until all say "Registered." (It takes a few minutes for the status to be udated)
az feature show --namespace "Microsoft.ContainerService" --name "NodeOsUpgradeChannelPreview"

# When all say "Registered" then re-register the AKS resource provider
az provider register --namespace Microsoft.ContainerService

```

1. Clone/download this repo locally, or even better fork this repository.
Expand Down
3 changes: 2 additions & 1 deletion cluster-stamp.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -1657,7 +1657,7 @@ resource pdzAksIngress 'Microsoft.Network/privateDnsZones@2020-06-01' = {
}
}

resource mc 'Microsoft.ContainerService/managedClusters@2023-02-02-preview' = {
resource mc 'Microsoft.ContainerService/managedClusters@2024-01-01' = {
name: clusterName
location: location
tags: {
Expand Down Expand Up @@ -1817,6 +1817,7 @@ resource mc 'Microsoft.ContainerService/managedClusters@2023-02-02-preview' = {
enabled: false // Using Microsoft Entra Workload IDs for pod identities.
}
autoUpgradeProfile: {
nodeOSUpgradeChannel: 'SecurityPatch'
upgradeChannel: 'node-image'
}
azureMonitorProfile: {
Expand Down

0 comments on commit 2218f2e

Please sign in to comment.