Skip to content

Commit 76c88e4

Browse files
authored
Add naming format rules for containers, databases and infrastructure services (#3549)
1 parent d85cbc0 commit 76c88e4

File tree

151 files changed

+8723
-554
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

151 files changed

+8723
-554
lines changed

docs/changelog.md

Lines changed: 74 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,31 +31,102 @@ See [upgrade notes][1] for helpful information when upgrading from previous vers
3131
## Unreleased
3232

3333
- New rules:
34+
- Added naming format rules for AKS, Container Apps, Service Fabric, Cosmos DB, Redis, and SQL resources.
35+
[#3548](https://github.com/Azure/PSRule.Rules.Azure/issues/3548)
3436
- App Configuration:
3537
- Check that replica locations are in allowed regions by @BernieWhite.
3638
[#3441](https://github.com/Azure/PSRule.Rules.Azure/issues/3441)
3739
- Azure Cache for Redis:
3840
- Check for legacy Azure Cache for Redis instances by @BenjaminEngeset.
3941
[#3605](https://github.com/Azure/PSRule.Rules.Azure/issues/3605)
40-
- Managed Instance for Apache Cassandra:
41-
- Check that Managed Instance for Apache Cassandra clusters have availability zones enabled by @BenjaminEngeset.
42-
[#3592](https://github.com/Azure/PSRule.Rules.Azure/issues/3592)
42+
- Check resources naming matches configured name format by @BernieWhite.
43+
[#3548](https://github.com/Azure/PSRule.Rules.Azure/issues/3548)
44+
- The name format can be configured by the following configuration options:
45+
- `AZURE_REDIS_CACHE_NAME_FORMAT`
46+
- `AZURE_REDIS_ENTERPRISE_NAME_FORMAT`
47+
- Added configured name format by @BernieWhite.
48+
- Azure Database for MySQL:
49+
- Check resources naming matches configured name format by @BernieWhite.
50+
[#3548](https://github.com/Azure/PSRule.Rules.Azure/issues/3548)
51+
- The name format can be configured by the following configuration options:
52+
- `AZURE_MYSQL_SERVER_NAME_FORMAT`
53+
- Azure Database for PostgreSQL:
54+
- Check resources naming matches configured name format by @BernieWhite.
55+
[#3548](https://github.com/Azure/PSRule.Rules.Azure/issues/3548)
56+
- The name format can be configured by the following configuration options:
57+
- `AZURE_POSTGRESQL_SERVER_NAME_FORMAT`
58+
- Azure Kubernetes Service:
59+
- Check resources naming matches configured name format by @BernieWhite.
60+
[#3548](https://github.com/Azure/PSRule.Rules.Azure/issues/3548)
61+
- The name format can be configured by the following configuration options:
62+
- `AZURE_AKS_CLUSTER_NAME_FORMAT`
63+
- `AZURE_AKS_SYSTEM_POOL_NAME_FORMAT`
64+
- `AZURE_AKS_USER_POOL_NAME_FORMAT`
65+
- Container Apps:
66+
- Check resources naming matches configured name format by @BernieWhite.
67+
[#3548](https://github.com/Azure/PSRule.Rules.Azure/issues/3548)
68+
- The name format can be configured by the following configuration options:
69+
- `AZURE_CONTAINER_APP_NAME_FORMAT`
70+
- `AZURE_CONTAINER_APP_ENVIRONMENT_NAME_FORMAT`
71+
- `AZURE_CONTAINER_APP_JOB_NAME_FORMAT`
72+
- Container Instance:
73+
- Check resources naming matches configured name format by @BernieWhite.
74+
[#3548](https://github.com/Azure/PSRule.Rules.Azure/issues/3548)
75+
- The name format can be configured by the following configuration option:
76+
- `AZURE_CONTAINER_INSTANCE_NAME_FORMAT`
77+
- Container Registry:
78+
- Check resources naming matches configured name format by @BernieWhite.
79+
[#3548](https://github.com/Azure/PSRule.Rules.Azure/issues/3548)
80+
- The name format can be configured by the following configuration option:
81+
- `AZURE_CONTAINER_REGISTRY_NAME_FORMAT`
4382
- Cosmos DB:
4483
- Check that Cosmos DB accounts have availability zones enabled by @BenjaminEngeset.
4584
[#3055](https://github.com/Azure/PSRule.Rules.Azure/issues/3055)
4685
- Check that MongoDB vCore clusters use Microsoft Entra ID authentication by @BenjaminEngeset.
4786
[#3369](https://github.com/Azure/PSRule.Rules.Azure/issues/3369)
4887
- Check that MongoDB vCore clusters have availability zones enabled by @BenjaminEngeset.
4988
[#3586](https://github.com/Azure/PSRule.Rules.Azure/issues/3586)
89+
- Check resources naming matches configured name format by @BernieWhite.
90+
[#3548](https://github.com/Azure/PSRule.Rules.Azure/issues/3548)
91+
- The name format can be configured by the following configuration options:
92+
- `AZURE_COSMOS_CASSANDRA_NAME_FORMAT`
93+
- `AZURE_COSMOS_DATABASE_NAME_FORMAT`
94+
- `AZURE_COSMOS_GREMLIN_NAME_FORMAT`
95+
- `AZURE_COSMOS_MONGO_NAME_FORMAT`
96+
- `AZURE_COSMOS_NOSQL_NAME_FORMAT`
97+
- `AZURE_COSMOS_POSTGRESQL_NAME_FORMAT`
98+
- `AZURE_COSMOS_TABLE_NAME_FORMAT`
5099
- Data Explorer:
51100
- Check that public network access is disabled by @BenjaminEngeset.
52101
[#3114](https://github.com/Azure/PSRule.Rules.Azure/issues/3114)
53102
- Event Hub:
54103
- Check that zone redundancy is enabled for Event Hub namespaces in supported regions by @BenjaminEngeset.
55104
[#3029](https://github.com/Azure/PSRule.Rules.Azure/issues/3029)
105+
- Managed Instance for Apache Cassandra:
106+
- Check that Managed Instance for Apache Cassandra clusters have availability zones enabled by @BenjaminEngeset.
107+
[#3592](https://github.com/Azure/PSRule.Rules.Azure/issues/3592)
56108
- Managed Grafana:
57109
- Check that zone redundancy is enabled for Grafana workspaces in supported regions by @BenjaminEngeset.
58110
[#3294](https://github.com/Azure/PSRule.Rules.Azure/issues/3294)
111+
- Service Fabric:
112+
- Check resources naming matches configured name format by @BernieWhite.
113+
[#3548](https://github.com/Azure/PSRule.Rules.Azure/issues/3548)
114+
- The name format can be configured by the following configuration option:
115+
- `AZURE_SERVICE_FABRIC_CLUSTER_NAME_FORMAT`
116+
- `AZURE_SERVICE_FABRIC_MANAGED_CLUSTER_NAME_FORMAT`
117+
- SQL Database:
118+
- Check resources naming matches configured name format by @BernieWhite.
119+
[#3548](https://github.com/Azure/PSRule.Rules.Azure/issues/3548)
120+
- The name format can be configured by the following configuration option:
121+
- `AZURE_SQL_DATABASE_NAME_FORMAT`
122+
- `AZURE_SQL_SERVER_NAME_FORMAT`
123+
- `AZURE_SQL_ELASTIC_POOL_NAME_FORMAT`
124+
- `AZURE_SQL_JOB_AGENT_NAME_FORMAT`
125+
- SQL Managed Instance:
126+
- Check resources naming matches configured name format by @BernieWhite.
127+
[#3548](https://github.com/Azure/PSRule.Rules.Azure/issues/3548)
128+
- The name format can be configured by the following configuration option:
129+
- `AZURE_SQL_MI_NAME_FORMAT`
59130
- Updated rules:
60131
- Application Gateway Policy:
61132
- Updated `Azure.AppGwWAF.RuleGroups` to use Microsoft Default Rule Set instead of legacy OWASP rule set by @BenjaminEngeset.

0 commit comments

Comments
 (0)