Skip to content

Commit bdd9c16

Browse files
authored
Update deployment-safeguards-in-azure-kubernetes-service.md
Edit review per CI 6394
1 parent 27f2577 commit bdd9c16

1 file changed

Lines changed: 19 additions & 35 deletions

File tree

Lines changed: 19 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,82 +1,66 @@
11
---
2-
title: Troubleshooting Guide:Deployment Safeguards in Azure Kubernetes (AKS)
2+
title: Troubleshooting Guide: Deployment Safeguards in Azure Kubernetes (AKS)
33
description: Provides a solution to issues related to deployment safeguards in Azure Kubernetes Service (AKS).
44
ms.date: 07/15/2025
55
ms.reviewer: v-liuamson
66
ms.service: azure-kubernetes-service
77
ms.custom: sap:Extensions, Policies and Add-Ons
88
---
99

10-
# Troubleshooting Guide: Deployment Safeguards in Azure Kubernetes Service (AKS)
10+
# Troubleshooting guide: Deployment Safeguards in Azure Kubernetes Service (AKS)
1111

12-
## Overview
12+
Deployment Safeguards in Azure Kubernetes Service (AKS) help enforce Kubernetes best practices by using Azure Policy and Gatekeeper. While they offer valuable protection, a misconfiguration or misunderstanding of their behavior can cause blocked or mutated workloads. This guide helps you troubleshoot common issues when you use Deployment Safeguards in **Warn** or **Enforce** mode.
1313

14-
Deployment Safeguards in Azure Kubernetes Service (AKS) help enforce Kubernetes best practices using Azure Policy and Gatekeeper. While they offer valuable protection,
15-
misconfiguration or misunderstanding of their behavior can lead to
16-
blocked or mutated workloads. This guide helps troubleshoot common
17-
issues when using Deployment Safeguards in **Warn** or **Enforce** mode.
14+
## Frequently asked questions
1815

19-
### 1. Safeguards Not Taking Effect
16+
### Why aren't Deployment Safeguards taking effect?
2017

2118
**Symptoms:**
2219

23-
- You deployed noncompliant resources but saw no warnings or
24-
enforcement.
20+
- You deploy noncompliant resources, but you see no warnings or signs of enforcement.
2521

26-
- The Azure Policy dashboard shows **Not started** or empty compliance
27-
status.
22+
- The Azure Policy dashboard shows a **Not started** value or an empty compliance status.
2823

29-
**Recommended Actions:**
24+
**Recommended actions:**
3025

31-
- Verify Azure Policy add-on is enabled on the cluster:
26+
- Verify that the Azure Policy add-on is enabled on the cluster:
3227

3328
``` bash
3429
az aks show \--resource-group \<rg-name\> \--name \<cluster-name\>
3530
\--query addonProfiles.azurepolicy
3631
```
3732

38-
- Check if the namespace is excluded:
33+
- Check whether the namespace is excluded:
3934

4035
``` bash
4136
az aks safeguards show \--resource-group \<rg-name\> \--name
4237
\<cluster-name\>
4338
```
4439

45-
### 2. Disable Deployment Safeguards
40+
### How can I disable Deployment Safeguards?
4641

47-
To disable deployment safeguards entirely, you may use the following command:
42+
To disable deployment safeguards entirely, run the following command:
4843

4944
```bash
5045
az aks safeguards delete \--resource-group \<rg-name\> \--name
5146
\<cluster-name\>
5247
```
5348

54-
### 3. Why was I able to turn on Deployment Safeguards without Azure Policy permissions?
49+
### Why can I turn on Deployment Safeguards without Azure Policy permissions?
5550

56-
Deployment Safeguards uses Azure Policy as an implementation detail. To
57-
turn on Deployment Safeguards on an AKS cluster, you do not need the
51+
Deployment Safeguards uses Azure Policy as an implementation detail. To turn on Deployment Safeguards on an AKS cluster, you do not have to have the
5852
correct permissions to assign or delete Azure Policies.
5953

60-
### 4. Why did my deployment resource get admitted even though it wasn\'t following best practices?
54+
## 4. Why does my deployment resource get admitted even though it doesn\'t follow best practices?
6155

62-
Deployment safeguards enforce best practice standards through Azure
63-
Policy controls and has policies that validate against Kubernetes
64-
resources. To evaluate and enforce cluster components, Azure Policy
65-
extends [Gatekeeper](https://open-policy-agent.github.io/gatekeeper/website/).
66-
Gatekeeper enforcement also currently operates in
67-
a [fail-open model](https://open-policy-agent.github.io/gatekeeper/website/docs/failing-closed/#considerations).
68-
As there\'s no guarantee that Gatekeeper will respond to our networking
69-
call, we make sure that in that case, the validation is skipped so that
70-
the deny doesn\'t block your deployments.
56+
Deployment safeguards enforce best practice standards through Azure Policy controls. It has policies that validate against Kubernetes resources. To evaluate and enforce cluster components, Azure Policy extends [Gatekeeper](https://open-policy-agent.github.io/gatekeeper/website/). Gatekeeper enforcement also currently operates in a [fail-open model](https://open-policy-agent.github.io/gatekeeper/website/docs/failing-closed/#considerations). Because there are no guarantee that Gatekeeper will respond to our networking call, we make sure that, in this case, the validation is skipped so that the denial doesn't block your deployments.
7157

72-
## Additional Tips
58+
## Additional tips
7359

74-
- All safeguard policies are bundled - they cannot be individually
75-
toggled.
60+
- All safeguard policies are bundled. They cannot be individually toggled.
7661

7762
- Use the [AKS GitHub repo](https://github.com/Azure/AKS/issues) to request new safeguard features.
7863

7964
## Contact us for help
8065

81-
If you have questions or need help, [create a support request](https://ms.portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/overview?DMC=troubleshoot),
82-
or ask [Azure community support](https://learn.microsoft.com/answers/products/azure?product=all). You can also submit product feedback to [Azure feedback community](https://feedback.azure.com/d365community).
66+
If you have questions or need help, [create a support request](https://ms.portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/overview?DMC=troubleshoot), or ask [Azure community support](https://learn.microsoft.com/answers/products/azure?product=all). You can also submit product feedback to [Azure feedback community](https://feedback.azure.com/d365community).

0 commit comments

Comments
 (0)