Skip to content

Commit 0cbe2b9

Browse files
authored
Merge pull request #798 from Azure/copilot/add-to-exclusion-list
Add API Center deployment ID properties to resource ID validation exceptions
2 parents 49851d6 + df2df6a commit 0cbe2b9

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

arm-ttk/testcases/deploymentTemplate/IDs-Should-Be-Derived-From-ResourceIDs.test.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,14 @@ foreach ($id in $ids) {
6565
"deploymentSpecId" # Microsoft.NetApp/netAppAccounts/volumeGroups
6666
"detector.id", # microsoft.alertsmanagement/smartdetectoralertrules
6767
"contentId", # Microsoft.Sentinel/Solutions/Metadata
68+
"definitionId", # Microsoft.ApiCenter/services/workspaces/apis/deployments
6869
"connectorId", # Microsoft.Sentinel/Solutions/Analytical Rule/Metadata
6970
"parentId", # Microsoft.Sentinel/Solutions/Metadata
7071
"IllusiveIncidentId", # Microsoft.Sentinel/Solutions/Analytical Rule/Metadata
7172
"UniqueFindingId", # Microsoft.Sentinel/Solutions/Metadata
7273
"schemaId", # Microsoft.ApiManagement/service/apis/operations
7374
"detection_id", # Microsoft.Sentinel/Solutions/Analytical Rule Id
75+
"environmentId", # Microsoft.ApiCenter/services/workspaces/apis/deployments
7476
"open_id", # Microsoft.Sentinel/Solutions/Open Id
7577
"TeamsChannelID", # Microsoft.Sentinel/Solutions/Playbooks/Teams Channel ID
7678
"SAPAuditLogMessageID", # Microsoft.Sentinel/Solutions/Playbooks/SAP Audit Log Message ID
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
3+
"contentVersion": "1.0.0.0",
4+
"parameters": {},
5+
"variables": {},
6+
"resources": [
7+
{
8+
"type": "Microsoft.ApiCenter/services/workspaces/apis/deployments",
9+
"apiVersion": "2024-03-01",
10+
"name": "testService/testWorkspace/testApi/testDeployment",
11+
"properties": {
12+
"title": "Test Deployment",
13+
"description": "Test deployment for API Center",
14+
"definitionId": "/workspaces/testWorkspace/apis/testApi/versions/v1/definitions/openapi",
15+
"environmentId": "/workspaces/testWorkspace/environments/production",
16+
"server": {
17+
"runtimeUri": [
18+
"https://api.example.com"
19+
]
20+
}
21+
}
22+
}
23+
],
24+
"outputs": {}
25+
}

0 commit comments

Comments
 (0)