11---
22title : Built-in policy definitions for Azure App Service
33description : Lists Azure Policy built-in policy definitions for Azure App Service. These built-in policy definitions provide common approaches to managing your Azure resources.
4- ms.date : 02/06/2024
4+ ms.date : 03/20/2026
55ms.topic : generated-reference
66ms.custom : subject-policy-reference
77author : cephalin
@@ -22,314 +22,6 @@ the link in the **Version** column to view the source on the
2222
2323[ !INCLUDE [ azure-policy-reference-rp-appservice] ( ~/azure-policy-autogen-docs/includes/policy/reference/byrp/microsoft.web.md )]
2424
25- ## Release notes
26-
27- ### October 2024
28-
29- - TLS 1.3 is now supported in App Service apps and slots. The following policies have been updated to enforce setting the minimum TLS version to 1.3:
30- - "App Service apps should use the latest TLS version"
31- - "App Service app slots should use the latest TLS version"
32- - "Configure App Service apps to use the latest TLS version"
33- - "Configure App Service app slots to use the latest TLS version"
34- - "Function apps should use the latest TLS version"
35- - "Configure Function apps to use the latest TLS version"
36- - "Function app slots should use the latest TLS version"
37- - "Configure Function app slots to use the latest TLS version"
38-
39- ### April 2023
40-
41- - ** App Service apps that use Java should use the latest 'Java version'**
42- - Rename of policy to "App Service apps that use Java should use a specified 'Java version'"
43- - Update policy so that it requires a version specification before assignment
44- - ** App Service apps that use Python should use the latest 'Python version'**
45- - Rename of policy to "App Service apps that use Python should use a specified 'Python version'"
46- - Update policy so that it requires a version specification before assignment
47- - ** Function apps that use Java should use the latest 'Java version'**
48- - Rename of policy to "Function apps that use Java should use a specified 'Java version'"
49- - Update policy so that it requires a version specification before assignment
50- - ** Function apps that use Python should use the latest 'Python version'**
51- - Rename of policy to "Function apps that use Python should use a specified 'Python version'"
52- - Update policy so that it requires a version specification before assignment
53- - ** App Service apps that use PHP should use the latest 'PHP version'**
54- - Rename of policy to "App Service apps that use PHP should use a specified 'PHP version'"
55- - Update policy so that it requires a version specification before assignment
56- - ** App Service app slots that use Python should use a specified 'Python version'**
57- - New policy created
58- - ** Function app slots that use Python should use a specified 'Python version'**
59- - New policy created
60- - ** App Service app slots that use PHP should use a specified 'PHP version'**
61- - New policy created
62- - ** App Service app slots that use Java should use a specified 'Java version'**
63- - New policy created
64- - ** Function app slots that use Java should use a specified 'Java version'**
65- - New policy created
66-
67- ### November 2022
68-
69- - Deprecation of policy ** App Service apps should enable outbound non-RFC 1918 traffic to Azure Virtual Network**
70- - Replaced by a policy with the same display name based on the site property to support * Deny* effect
71- - Deprecation of policy ** App Service app slots should enable outbound non-RFC 1918 traffic to Azure Virtual Network**
72- - Replaced by a policy with the same display name based on the site property to support * Deny* effect
73- - ** App Service apps should enable outbound non-RFC 1918 traffic to Azure Virtual Network**
74- - New policy created
75- - ** App Service app slots should enable outbound non-RFC 1918 traffic to Azure Virtual Network**
76- - New policy created
77- - ** App Service apps should enable configuration routing to Azure Virtual Network**
78- - New policy created
79- - ** App Service app slots should enable configuration routing to Azure Virtual Network**
80- - New policy created
81-
82- ### October 2022
83-
84- - ** Function app slots should have remote debugging turned off**
85- - New policy created
86- - ** App Service app slots should have remote debugging turned off**
87- - New policy created
88- - ** Function app slots should use latest 'HTTP Version'**
89- - New policy created
90- - ** Function app slots should use the latest TLS version**
91- - New policy created
92- - ** App Service app slots should use the latest TLS version**
93- - New policy created
94- - ** App Service app slots should have resource logs enabled**
95- - New policy created
96- - ** App Service app slots should enable outbound non-RFC 1918 traffic to Azure Virtual Network**
97- - New policy created
98- - ** App Service app slots should use managed identity**
99- - New policy created
100- - ** App Service app slots should use latest 'HTTP Version'**
101- - New policy created
102- - Deprecation of policy ** Configure App Services to disable public network access**
103- - Replaced by "Configure App Service apps to disable public network access"
104- - Deprecation of policy ** App Services should disable public network access**
105- - Replaced by "App Service apps should disable public network access" to support * Deny* effect
106- - ** App Service apps should disable public network access**
107- - New policy created
108- - ** App Service app slots should disable public network access**
109- - New policy created
110- - ** Configure App Service apps to disable public network access**
111- - New policy created
112- - ** Configure App Service app slots to disable public network access**
113- - New policy created
114- - ** Function apps should disable public network access**
115- - New policy created
116- - ** Function app slots should disable public network access**
117- - New policy created
118- - ** Configure Function apps to disable public network access**
119- - New policy created
120- - ** Configure Function app slots to disable public network access**
121- - New policy created
122- - ** Configure App Service app slots to turn off remote debugging**
123- - New policy created
124- - ** Configure Function app slots to turn off remote debugging**
125- - New policy created
126- - ** Configure App Service app slots to use the latest TLS version**
127- - New policy created
128- - ** Configure Function app slots to use the latest TLS version**
129- - New policy created
130- - ** App Service apps should use latest 'HTTP Version'**
131- - Update scope to include Windows apps
132- - ** Function apps should use latest 'HTTP Version'**
133- - Update scope to include Windows apps
134- - ** App Service Environment apps should not be reachable over public internet**
135- - Modify policy definition to remove check on API version
136-
137- ### September 2022
138-
139- - ** App Service apps should be injected into a virtual network**
140- - Update scope of policy to remove slots
141- - Creation of "App Service app slots should be injected into a virtual network" to monitor slots
142- - ** App Service app slots should be injected into a virtual network**
143- - New policy created
144- - ** Function apps should have 'Client Certificates (Incoming client certificates)' enabled**
145- - Update scope of policy to remove slots
146- - Creation of "Function app slots should have 'Client Certificates (Incoming client certificates)' enabled" to monitor slots
147- - ** Function app slots should have 'Client Certificates (Incoming client certificates)' enabled**
148- - New policy created
149- - ** Function apps should use an Azure file share for its content directory**
150- - Update scope of policy to remove slots
151- - Creation of "Function app slots should use an Azure file share for its content directory" to monitor slots
152- - ** Function app slots should use an Azure file share for its content directory**
153- - New policy created
154- - ** App Service apps should have 'Client Certificates (Incoming client certificates)' enabled**
155- - Update scope of policy to remove slots
156- - Creation of "App Service app slots should have 'Client Certificates (Incoming client certificates)' enabled" to monitor slots
157- - ** App Service app slots should have 'Client Certificates (Incoming client certificates)' enabled**
158- - New policy created
159- - ** App Service apps should use an Azure file share for its content directory**
160- - Update scope of policy to remove slots
161- - Creation of "App Service app slots should use an Azure file share for its content directory" to monitor slots
162- - ** App Service app slots should use an Azure file share for its content directory**
163- - New policy created
164- - ** Function app slots should require FTPS only**
165- - New policy created
166- - ** App Service app slots should require FTPS only**
167- - New policy created
168- - ** Function app slots should not have CORS configured to allow every resource to access your apps**
169- - New policy created
170- - ** App Service app slots should not have CORS configured to allow every resource to access your app**
171- - New policy created
172- - ** Function apps should only be accessible over HTTPS**
173- - Update scope of policy to remove slots
174- - Creation of "Function app slots should only be accessible over HTTPS" to monitor slots
175- - Add "Deny" effect
176- - Creation of "Configure Function apps to only be accessible over HTTPS" for enforcement of policy
177- - ** Function app slots should only be accessible over HTTPS**
178- - New policy created
179- - ** Configure Function apps to only be accessible over HTTPS**
180- - New policy created
181- - ** Configure Function app slots to only be accessible over HTTPS**
182- - New policy created
183- - ** App Service apps should use a SKU that supports private link**
184- - Update list of supported SKUs of policy to include the Workflow Standard tier for Logic Apps
185- - ** Configure App Service apps to use the latest TLS version**
186- - New policy created
187- - ** Configure Function apps to use the latest TLS version**
188- - New policy created
189- - ** Configure App Service apps to turn off remote debugging**
190- - New policy created
191- - ** Configure Function apps to turn off remote debugging**
192- - New policy created
193-
194- ### August 2022
195-
196- - ** App Service apps should only be accessible over HTTPS**
197- - Update scope of policy to remove slots
198- - Creation of "App Service app slots should only be accessible over HTTPS" to monitor slots
199- - Add "Deny" effect
200- - Creation of "Configure App Service apps to only be accessible over HTTPS" for enforcement of policy
201- - ** App Service app slots should only be accessible over HTTPS**
202- - New policy created
203- - ** Configure App Service apps to only be accessible over HTTPS**
204- - New policy created
205- - ** Configure App Service app slots to only be accessible over HTTPS**
206- - New policy created
207-
208- ### July 2022
209-
210- - Deprecation of the following policies:
211- - ** Ensure API app has 'Client Certificates (Incoming client certificates)' set to 'On'**
212- - ** Ensure that 'Python version' is the latest, if used as a part of the API app**
213- - ** CORS should not allow every resource to access your API App**
214- - ** Managed identity should be used in your API App**
215- - ** Remote debugging should be turned off for API Apps**
216- - ** Ensure that 'PHP version' is the latest, if used as a part of the API app**
217- - ** API apps should use an Azure file share for its content directory**
218- - ** FTPS only should be required in your API App**
219- - ** Ensure that 'Java version' is the latest, if used as a part of the API app**
220- - ** Ensure that 'HTTP Version' is the latest, if used to run the API app**
221- - ** Latest TLS version should be used in your API App**
222- - ** Authentication should be enabled on your API app**
223- - ** Function apps should have 'Client Certificates (Incoming client certificates)' enabled**
224- - Update scope of policy to include slots
225- - Update scope of policy to exclude Logic apps
226- - ** Ensure WEB app has 'Client Certificates (Incoming client certificates)' set to 'On'**
227- - Rename of policy to "App Service apps should have 'Client Certificates (Incoming client certificates)' enabled"
228- - Update scope of policy to include slots
229- - Update scope of policy to include all app types except Function apps
230- - ** Ensure that 'Python version' is the latest, if used as a part of the Web app**
231- - Rename of policy to "App Service apps that use Python should use the latest 'Python version'"
232- - Update scope of policy to include all app types except Function apps
233- - ** Ensure that 'Python version' is the latest, if used as a part of the Function app**
234- - Rename of policy to "Function apps that use Python should use the latest 'Python version'"
235- - Update scope of policy to exclude Logic apps
236- - ** CORS should not allow every resource to access your Web Applications**
237- - Rename of policy to "App Service apps should not have CORS configured to allow every resource to access your apps"
238- - Update scope of policy to include all app types except Function apps
239- - ** CORS should not allow every resource to access your Function Apps**
240- - Rename of policy to "Function apps should not have CORS configured to allow every resource to access your apps"
241- - Update scope of policy to exclude Logic apps
242- - ** Managed identity should be used in your Function App**
243- - Rename of policy to "Function apps should use managed identity"
244- - Update scope of policy to exclude Logic apps
245- - ** Managed identity should be used in your Web App**
246- - Rename of policy to "App Service apps should use managed identity"
247- - Update scope of policy to include all app types except Function apps
248- - ** Remote debugging should be turned off for Function Apps**
249- - Rename of policy to "Function apps should have remote debugging turned off"
250- - Update scope of policy to exclude Logic apps
251- - ** Remote debugging should be turned off for Web Applications**
252- - Rename of policy to "App Service apps should have remote debugging turned off"
253- - Update scope of policy to include all app types except Function apps
254- - ** Ensure that 'PHP version' is the latest, if used as a part of the WEB app**
255- - Rename of policy to "App Service apps that use PHP should use the latest 'PHP version'"
256- - Update scope of policy to include all app types except Function apps
257- - ** App Service slots should have local authentication methods disabled for SCM site deployment**
258- - Rename of policy to "App Service app slots should have local authentication methods disabled for SCM site deployments"
259- - ** App Service should have local authentication methods disabled for SCM site deployments**
260- - Rename of policy to "App Service apps should have local authentication methods disabled for SCM site deployments"
261- - ** App Service slots should have local authentication methods disabled for FTP deployments**
262- - Rename of policy to "App Service app slots should have local authentication methods disabled for FTP deployments"
263- - ** App Service should have local authentication methods disabled for FTP deployments**
264- - Rename of policy to "App Service apps should have local authentication methods disabled for FTP deployments"
265- - ** Function apps should use an Azure file share for its content directory**
266- - Update scope of policy to include slots
267- - Update scope of policy to exclude Logic apps
268- - ** Web apps should use an Azure file share for its content directory**
269- - Rename of policy to "App Service apps should use an Azure file share for its content directory"
270- - Update scope of policy to include slots
271- - Update scope of policy to include all app types except Function apps
272- - ** FTPS only should be required in your Function App**
273- - Rename of policy to "Function apps should require FTPS only"
274- - Update scope of policy to exclude Logic apps
275- - ** FTPS should be required in your Web App**
276- - Rename of policy to "App Service apps should require FTPS only"
277- - Update scope of policy to include all app types except Function apps
278- - ** Ensure that 'Java version' is the latest, if used as a part of the Function app**
279- - Rename of policy to "Function apps that use Java should use the latest 'Java version'"
280- - Update scope of policy to exclude Logic apps
281- - ** Ensure that 'Java version' is the latest, if used as a part of the Web app**
282- - Rename of policy to "App Service apps that use Java should use the latest 'Java version"
283- - Update scope of policy to include all app types except Function apps
284- - ** App Service should use private link**
285- - Rename of policy to "App Service apps should use private link"
286- - ** Configure App Services to use private DNS zones**
287- - Rename of policy to "Configure App Service apps to use private DNS zones"
288- - ** App Service Apps should be injected into a virtual network**
289- - Rename of policy to "App Service apps should be injected into a virtual network"
290- - Update scope of policy to include slots
291- - ** Ensure that 'HTTP Version' is the latest, if used to run the Web app**
292- - Rename of policy to "App Service apps should use latest 'HTTP Version'"
293- - Update scope of policy to include all app types except Function apps
294- - ** Ensure that 'HTTP Version' is the latest, if used to run the Function app**
295- - Rename of policy to "Function apps should use latest 'HTTP Version'"
296- - Update scope of policy to exclude Logic apps
297- - ** Latest TLS version should be used in your Web App**
298- - Rename of policy to "App Service apps should use the latest TLS version"
299- - Update scope of policy to include all app types except Function apps
300- - ** Latest TLS version should be used in your Function App**
301- - Rename of policy to "Function apps should use the latest TLS version"
302- - Update scope of policy to exclude Logic apps
303- - ** App Service Environment should disable TLS 1.0 and 1.1**
304- - Rename of policy to "App Service Environment should have TLS 1.0 and 1.1 disabled"
305- - ** Resource logs in App Services should be enabled**
306- - Rename of policy to "App Service apps should have resource logs enabled"
307- - ** Authentication should be enabled on your web app**
308- - Rename of policy to "App Service apps should have authentication enabled"
309- - ** Authentication should be enabled on your Function app**
310- - Rename of policy to "Function apps should have authentication enabled"
311- - Update scope of policy to exclude Logic apps
312- - ** App Service Environment should enable internal encryption**
313- - Rename of policy to "App Service Environment should have internal encryption enabled"
314- - ** Function apps should only be accessible over HTTPS**
315- - Update scope of policy to exclude Logic apps
316- - ** App Service should use a virtual network service endpoint**
317- - Rename of policy to "App Service apps should use a virtual network service endpoint"
318- - Update scope of policy to include all app types except Function apps
319-
320- ### June 2022
321-
322- - Deprecation of policy ** API App should only be accessible over HTTPS**
323- - ** Web Application should only be accessible over HTTPS**
324- - Rename of policy to "App Service apps should only be accessible over HTTPS"
325- - Update scope of policy to include all app types except Function apps
326- - Update scope of policy to include slots
327- - ** Function apps should only be accessible over HTTPS**
328- - Update scope of policy to include slots
329- - ** App Service apps should use a SKU that supports private link**
330- - Update logic of policy to include checks on App Service plan tier or name so that the policy supports Terraform deployments
331- - Update list of supported SKUs of policy to include the Basic and Standard tiers
332-
33325## Next steps
33426
33527- See the built-ins on the [ Azure Policy GitHub repo] ( https://github.com/Azure/azure-policy ) .
0 commit comments