Skip to content

Commit 0b1ad6b

Browse files
authored
Move applications proxy resource type from accounts to projects (#37859)
* Move from accounts to projects * Update readme suppression path
1 parent bc2c2c9 commit 0b1ad6b

File tree

8 files changed

+48
-24
lines changed

8 files changed

+48
-24
lines changed

specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/preview/2025-10-01-preview/cognitiveservices.json

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5936,12 +5936,12 @@
59365936
}
59375937
}
59385938
},
5939-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/applications": {
5939+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}/applications": {
59405940
"get": {
59415941
"tags": [
59425942
"AgentApplication"
59435943
],
5944-
"summary": "Lists Agent Applications in the account.",
5944+
"summary": "Lists Agent Applications in the project.",
59455945
"operationId": "AgentApplications_List",
59465946
"produces": [
59475947
"application/json"
@@ -5956,6 +5956,9 @@
59565956
{
59575957
"$ref": "#/parameters/accountNameParameter"
59585958
},
5959+
{
5960+
"$ref": "#/parameters/projectNameParameter"
5961+
},
59595962
{
59605963
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
59615964
},
@@ -6034,7 +6037,7 @@
60346037
}
60356038
}
60366039
},
6037-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/applications/{name}": {
6040+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}/applications/{name}": {
60386041
"delete": {
60396042
"tags": [
60406043
"AgentApplication"
@@ -6054,6 +6057,9 @@
60546057
{
60556058
"$ref": "#/parameters/accountNameParameter"
60566059
},
6060+
{
6061+
"$ref": "#/parameters/projectNameParameter"
6062+
},
60576063
{
60586064
"in": "path",
60596065
"name": "name",
@@ -6104,6 +6110,9 @@
61046110
{
61056111
"$ref": "#/parameters/accountNameParameter"
61066112
},
6113+
{
6114+
"$ref": "#/parameters/projectNameParameter"
6115+
},
61076116
{
61086117
"in": "path",
61096118
"name": "name",
@@ -6157,6 +6166,9 @@
61576166
{
61586167
"$ref": "#/parameters/accountNameParameter"
61596168
},
6169+
{
6170+
"$ref": "#/parameters/projectNameParameter"
6171+
},
61606172
{
61616173
"in": "path",
61626174
"name": "name",
@@ -6217,7 +6229,7 @@
62176229
"x-ms-long-running-operation": true
62186230
}
62196231
},
6220-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/applications/{name}/listAgents": {
6232+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}/applications/{name}/listAgents": {
62216233
"post": {
62226234
"tags": [
62236235
"AgentApplication"
@@ -6237,6 +6249,9 @@
62376249
{
62386250
"$ref": "#/parameters/accountNameParameter"
62396251
},
6252+
{
6253+
"$ref": "#/parameters/projectNameParameter"
6254+
},
62406255
{
62416256
"in": "path",
62426257
"name": "name",
@@ -6272,7 +6287,7 @@
62726287
}
62736288
}
62746289
},
6275-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/applications/{name}/listDeployments": {
6290+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}/applications/{name}/listDeployments": {
62766291
"post": {
62776292
"tags": [
62786293
"AgentApplication"
@@ -6292,6 +6307,9 @@
62926307
{
62936308
"$ref": "#/parameters/accountNameParameter"
62946309
},
6310+
{
6311+
"$ref": "#/parameters/projectNameParameter"
6312+
},
62956313
{
62966314
"in": "path",
62976315
"name": "name",

specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/preview/2025-10-01-preview/examples/AgentApplication/createOrUpdate.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"subscriptionId": "00000000-1111-2222-3333-444444444444",
44
"resourceGroupName": "test-rg",
55
"accountName": "my-cognitive-services-account",
6+
"projectName": "my-project",
67
"name": "agent-app-1",
78
"api-version": "2025-10-01-preview",
89
"body": {
@@ -20,9 +21,9 @@
2021
"200": {
2122
"headers": {},
2223
"body": {
23-
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/test-rg/providers/Microsoft.CognitiveServices/accounts/my-cognitive-services-account/applications/agent-app-1",
24+
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/test-rg/providers/Microsoft.CognitiveServices/accounts/my-cognitive-services-account/projects/my-project/applications/agent-app-1",
2425
"name": "agent-app-1",
25-
"type": "Microsoft.CognitiveServices/accounts/applications",
26+
"type": "Microsoft.CognitiveServices/accounts/projects/applications",
2627
"properties": {
2728
"description": "Sample agent application for customer support",
2829
"tags": {
@@ -45,9 +46,9 @@
4546
"201": {
4647
"headers": {},
4748
"body": {
48-
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/test-rg/providers/Microsoft.CognitiveServices/accounts/my-cognitive-services-account/applications/agent-app-1",
49+
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/test-rg/providers/Microsoft.CognitiveServices/accounts/my-cognitive-services-account/projects/my-project/applications/agent-app-1",
4950
"name": "agent-app-1",
50-
"type": "Microsoft.CognitiveServices/accounts/applications",
51+
"type": "Microsoft.CognitiveServices/accounts/projects/applications",
5152
"properties": {
5253
"description": "Sample agent application for customer support",
5354
"tags": {

specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/preview/2025-10-01-preview/examples/AgentApplication/delete.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"subscriptionId": "00000000-1111-2222-3333-444444444444",
44
"resourceGroupName": "test-rg",
55
"accountName": "my-cognitive-services-account",
6+
"projectName": "my-project",
67
"name": "agent-app-1",
78
"api-version": "2025-10-01-preview"
89
},

specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/preview/2025-10-01-preview/examples/AgentApplication/get.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@
33
"subscriptionId": "00000000-1111-2222-3333-444444444444",
44
"resourceGroupName": "test-rg",
55
"accountName": "my-cognitive-services-account",
6+
"projectName": "my-project",
67
"name": "agent-app-1",
78
"api-version": "2025-10-01-preview"
89
},
910
"responses": {
1011
"200": {
1112
"headers": {},
1213
"body": {
13-
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/test-rg/providers/Microsoft.CognitiveServices/accounts/my-cognitive-services-account/applications/agent-app-1",
14+
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/test-rg/providers/Microsoft.CognitiveServices/accounts/my-cognitive-services-account/projects/my-project/applications/agent-app-1",
1415
"name": "agent-app-1",
15-
"type": "Microsoft.CognitiveServices/accounts/applications",
16+
"type": "Microsoft.CognitiveServices/accounts/projects/applications",
1617
"properties": {
1718
"description": "Sample agent application for customer support",
1819
"tags": {

specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/preview/2025-10-01-preview/examples/AgentApplication/list.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"subscriptionId": "00000000-1111-2222-3333-444444444444",
44
"resourceGroupName": "test-rg",
55
"accountName": "my-cognitive-services-account",
6+
"projectName": "my-project",
67
"api-version": "2025-10-01-preview",
78
"$skipToken": "string",
89
"count": 30,
@@ -20,9 +21,9 @@
2021
"body": {
2122
"value": [
2223
{
23-
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/test-rg/providers/Microsoft.CognitiveServices/accounts/my-cognitive-services-account/applications/agent-app-1",
24+
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/test-rg/providers/Microsoft.CognitiveServices/accounts/my-cognitive-services-account/projects/my-project/applications/agent-app-1",
2425
"name": "agent-app-1",
25-
"type": "Microsoft.CognitiveServices/accounts/applications",
26+
"type": "Microsoft.CognitiveServices/accounts/projects/applications",
2627
"properties": {
2728
"description": "Sample agent application for customer support",
2829
"tags": {

specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/preview/2025-10-01-preview/examples/AgentApplication/listAgents.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"subscriptionId": "00000000-1111-2222-3333-444444444444",
44
"resourceGroupName": "test-rg",
55
"accountName": "my-cognitive-services-account",
6+
"projectName": "my-project",
67
"name": "agent-app-1",
78
"api-version": "2025-10-01-preview"
89
},
@@ -12,9 +13,9 @@
1213
"body": {
1314
"value": [
1415
{
15-
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/test-rg/providers/Microsoft.CognitiveServices/accounts/my-cognitive-services-account/applications/agent-app-1/agents/agent-001",
16+
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/test-rg/providers/Microsoft.CognitiveServices/accounts/my-cognitive-services-account/projects/my-project/applications/agent-app-1/agents/agent-001",
1617
"name": "agent-001",
17-
"type": "Microsoft.CognitiveServices/accounts/applications/agents",
18+
"type": "Microsoft.CognitiveServices/accounts/projects/applications/agents",
1819
"properties": {
1920
"tags": {
2021
"role": "primary",
@@ -41,9 +42,9 @@
4142
}
4243
},
4344
{
44-
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/test-rg/providers/Microsoft.CognitiveServices/accounts/my-cognitive-services-account/applications/agent-app-1/agents/agent-002",
45+
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/test-rg/providers/Microsoft.CognitiveServices/accounts/my-cognitive-services-account/projects/my-project/applications/agent-app-1/agents/agent-002",
4546
"name": "agent-002",
46-
"type": "Microsoft.CognitiveServices/accounts/applications/agents",
47+
"type": "Microsoft.CognitiveServices/accounts/projects/applications/agents",
4748
"properties": {
4849
"tags": {
4950
"role": "technical",

specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/preview/2025-10-01-preview/examples/AgentApplication/listDeployments.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"subscriptionId": "00000000-1111-2222-3333-444444444444",
44
"resourceGroupName": "test-rg",
55
"accountName": "my-cognitive-services-account",
6+
"projectName": "my-project",
67
"name": "agent-app-1",
78
"api-version": "2025-10-01-preview"
89
},
@@ -12,9 +13,9 @@
1213
"body": {
1314
"value": [
1415
{
15-
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/test-rg/providers/Microsoft.CognitiveServices/accounts/my-cognitive-services-account/applications/agent-app-1/deployments/deploy-001",
16+
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/test-rg/providers/Microsoft.CognitiveServices/accounts/my-cognitive-services-account/projects/my-project/applications/agent-app-1/deployments/deploy-001",
1617
"name": "deploy-001",
17-
"type": "Microsoft.CognitiveServices/accounts/applications/deployments",
18+
"type": "Microsoft.CognitiveServices/accounts/projects/applications/deployments",
1819
"properties": {
1920
"description": "Production deployment for customer support agents",
2021
"tags": {
@@ -37,9 +38,9 @@
3738
}
3839
},
3940
{
40-
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/test-rg/providers/Microsoft.CognitiveServices/accounts/my-cognitive-services-account/applications/agent-app-1/deployments/deploy-002",
41+
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/test-rg/providers/Microsoft.CognitiveServices/accounts/my-cognitive-services-account/projects/my-project/applications/agent-app-1/deployments/deploy-002",
4142
"name": "deploy-002",
42-
"type": "Microsoft.CognitiveServices/accounts/applications/deployments",
43+
"type": "Microsoft.CognitiveServices/accounts/projects/applications/deployments",
4344
"properties": {
4445
"description": "Staging deployment for testing new features",
4546
"tags": {

specification/cognitiveservices/resource-manager/readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ suppressions:
4444
- code: ProvisioningStateMustBeReadOnly
4545
reason: Provisioning state for agent application definition IS read-only.
4646
where:
47-
- $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/applications/{name}"].get.responses.200.schema
48-
- $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/applications/{name}"].put.responses.200.schema
49-
- $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/applications/{name}"].put.responses.201.schema
47+
- $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}/applications/{name}"].get.responses.200.schema
48+
- $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}/applications/{name}"].put.responses.200.schema
49+
- $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}/applications/{name}"].put.responses.201.schema
5050
- code: ArmResourcePropertiesBag
5151
reason: This API is copied from Machine Learning Services RP where this behavior is already established.
5252
where:

0 commit comments

Comments
 (0)