Repository navigation
Commit 6e96eae
Add ai foundry policies, various bug fixes (#20)
* udpate category and add cognitive service policy
* Add new policies for Cognitive Services and update existing diagnostic settings
Co-authored-by: Copilot <copilot@github.com>
* Refactor workflow configuration for clarity and consistency in policy initiatives
Co-authored-by: Copilot <copilot@github.com>
* Add Azure Cosmos DB policies and assignments for security compliance
Co-authored-by: Copilot <copilot@github.com>
* Refactor diagnostic settings policies to use parameterized log and metric enabling
- Updated multiple diagnostic settings JSON files to replace hardcoded values for logs and metrics enabling with parameters.
- Introduced a new parameter `DS-008_LogsToEnable` to specify which logs should be enabled.
- Modified existence conditions to check for the count of enabled logs under the category group "allLogs".
- Ensured consistency across various resource types in the policy definitions for better maintainability and flexibility.
Co-authored-by: Copilot <copilot@github.com>
* Fix policy name and update display name for AppInsights diagnostic settings deployment
* Refactor Cosmos DB diagnostic settings to consolidate log categories under 'allLogs'
* Fix profileName value in diagnostic settings policies for consistency
* Update AzPolicyTest module version to 3.0.0 and improve action.yml formatting
* Update AzPolicyTest module version to 3.1.0 in pipeline templates
* Update policy assignment and definition resources to use 2026-01-01-preview API version
* Update policy assignment, definition, exemption, and set definition resources to use 2025-12-01-preview API version
* Update policy module versions to 3.1.0 and set action group policy versions to 1.0.0
* Remove version property from multiple policy definition files
* Update AzPolicyTest module version to 3.1.1 in pipeline templates
* Add PEDNS-016 effect for Cognitive Service Accounts to policy initiative
* Update policy definitions and assignments to use 2026-01-01-preview API version
* Update policy assignments and definitions to use 2025-12-01-preview API version
* Update policy definition references for Cosmos DB initiative and remove deprecated source built-in name
* Update policy definition reference for COSMOS-007 to use new policy ID
* Add allowed locations for COSMOS-007 and update integration test templates for Cosmos DB policies
* Add PEDNS-017 effect and update integration tests for Azure Cosmos DB policies
* Update minimalTlsVersion formatting in Cosmos DB policy templates for consistency
* Update policy definition groups and clean up deprecated entries in Cosmos DB policy initiative
* Refactor policy definitions for Cognitive Services: update field references and add new policy initiative
* Add new policy definitions and assignments for Cognitive Services: restrict model formats and names
* Update Azure Cognitive Services policy assignments: modify effects and add allowed formats and names
* Update modelFormat structure in policy definitions for Cognitive Services
* Rename allowedFormats and allowedNames parameters to listOfAllowedFormats and listOfAllowedNames in policy assignments and initiatives for consistency
* Add integration tests and configuration for Cognitive Services policies
* Update resource identifiers in Azure Private Endpoint DNS Records policy initiative
* Update storage account API version to 2025-08-01 in integration test templates
* Remove unused variable resourceSubnetName from cognitive service test template
* Enhance Cosmos DB policy to include capability checks and update policy definition reference
* Refactor Cognitive Services policy assignments to update allowed model names and enhance test templates
* Refactor policy rule in Cosmos DB audit policy to check for capabilities count instead of existence
* Add unique suffix to Cognitive Service account names in test templates
* Update Cognitive Services and Cosmos DB resource definitions to use latest API versions and remove unnecessary parameters
* Update COSMOS-001 Effect to Modify in Cosmos DB policy assignments and initiative
* Update identity to SystemAssigned and modify roleDefinitionIds in Cosmos DB policy assignments
* Update COSMOS-001 Effect to Modify in Cosmos DB policy definitions and tests
* Update identity to SystemAssigned and add roleDefinitionIds in Cognitive Services and Cosmos DB policy assignments; modify policy initiative effects and test templates
* Update COG-001 Effect to Modify in both dev and prod Cognitive Services policy assignments
* Update allowed names and resource references in Cognitive Services policy assignments and tests
* Update COG-004 Effect to Audit and modify allowed names in Cognitive Services policy assignments and tests
* Update workflow triggers and format in policy-initiatives.yml; modify defaultValue in polset-diag-settings.json
---------
Co-authored-by: Copilot <copilot@github.com>1 parent 911a62d commit 6e96eae
218 files changed
Lines changed: 3048 additions & 491 deletions
File tree
- .azuredevops/templates
- .github
- ISSUE_TEMPLATE
- actions/templates/test-policy-def
- workflows
- .vscode
- bicep
- modules/authorization
- policy-assignment
- management-group
- resource-group
- subscription
- policy-definition
- management-group
- subscription
- policy-exemption
- management-group
- resource-group
- subscription
- policy-set-definition
- management-group
- subscription
- templates/policyInitiatives
- policyAssignments
- dev
- prod
- policyDefinitions
- azure-sql
- cognitive-service
- container-registry
- cosmos-db
- data-explorer
- data-factory
- databricks
- diagnostics-settings
- general
- key-vault
- log-analytics
- network-security-group
- private-endpoints-dns-registration
- private-endpoint
- purview
- redis-cache
- rsv
- storage-account
- virtual-machine
- vnet
- web
- policyInitiatives
- tests/policy-integration-tests
- .test-template
- cognitive-service
- cosmos-db
- event-hub
- postgresql
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
44 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
| |||
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
53 | | - | |
| 56 | + | |
54 | 57 | | |
55 | 58 | | |
56 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
| |||
79 | 82 | | |
80 | 83 | | |
81 | 84 | | |
82 | | - | |
| 85 | + | |
83 | 86 | | |
84 | 87 | | |
85 | 88 | | |
| |||
100 | 103 | | |
101 | 104 | | |
102 | 105 | | |
103 | | - | |
| 106 | + | |
104 | 107 | | |
105 | 108 | | |
106 | 109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
418 | 418 | | |
419 | 419 | | |
420 | 420 | | |
421 | | - | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
| 58 | + | |
58 | 59 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments