-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[Microsoft.Management] Add listDescendants, listMembers, and reshape listAncestors on serviceGroups (2026-03-01-preview) #44769
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
kanikasp113
wants to merge
26
commits into
main
Choose a base branch
from
kpoojary/listdescendants-2026-03-01-preview
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
eedff97
Add api-version 2026-03-01-preview for ServiceGroups (base copy)
Isaac-Beyene db9b38f
Add criticality property to ServiceGroupProperties (2026-03-01-preview)
Isaac-Beyene fa4eee0
Add listDescendants action to Microsoft.Management/serviceGroups (202…
3044559
Merge branch 'main' into kpoojary/listdescendants-2026-03-01-preview
sandipsh c1c35d7
Move listDescendants skipToken from query param to request body (RPC-…
efa9560
Suppress XMSSecretInResponse false positive on ListDescendantsRequest…
462af13
Restore multi-line formatting for @@doc calls in ServiceGroup.tsp
e631157
Add explicit skipToken to listDescendants response for POST-body pagi…
295e41f
Suppress secret-prop TSP warning for response skipToken
2d6b0bd
Remove redundant nextLink from listDescendants response (POST URL nev…
ab65731
Merge remote-tracking branch 'origin/main' into kpoojary/listdescenda…
ff53f45
Add listMembers to ServiceGroups 2026-03-01-preview
f9eb5f6
Update listAncestors in 2026-03-01-preview to use skipToken pagination
3313b5d
Merge remote-tracking branch 'origin/main' into kpoojary/listdescenda…
d7a6377
Apply tsp format
25488aa
Apply prettier to ListAncestors examples
ad2d5eb
Merge remote-tracking branch 'origin/main' into kpoojary/listdescenda…
0539bb3
Rename serviceGroupMembers relationship type to singular
7b46535
Add relationshipId to ServiceGroupMemberProperties
02cfc15
Address PR feedback: split shape by member kind and simplify parent
992c600
Fix Prettier formatting on ListMembers example JSONs
5d809ba
Merge remote-tracking branch 'origin/main' into kpoojary/listdescenda…
78c65f7
More updates after listMembers design discussion meeting
40bbbbd
Rename api version 2026-03-01-preview to 2026-09-01-preview
8109a6f
Merge remote-tracking branch 'origin/main' into kpoojary/listdescenda…
e1095db
Update service.yaml with 2026-09-01-preview version
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...r/Microsoft.Management/ServiceGroups/examples/2026-09-01-preview/ServiceGroup_Delete.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2026-09-01-preview", | ||
| "serviceGroupName": "20000000-0001-0000-0000-000000000000" | ||
| }, | ||
| "responses": { | ||
| "202": { | ||
| "headers": { | ||
| "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/serviceGroups/20000000-0001-0000-0000-000000000000?api-version=2026-09-01-preview" | ||
| } | ||
| }, | ||
| "204": {} | ||
| }, | ||
| "operationId": "DeleteServiceGroup", | ||
| "title": "DeleteServiceGroup" | ||
| } |
24 changes: 24 additions & 0 deletions
24
...ager/Microsoft.Management/ServiceGroups/examples/2026-09-01-preview/ServiceGroup_Get.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2026-09-01-preview", | ||
| "serviceGroupName": "20000000-0001-0000-0000-000000000000" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "name": "20000000-0001-0000-0000-000000000000", | ||
| "type": "Microsoft.Management/serviceGroups", | ||
| "id": "/providers/Microsoft.Management/serviceGroups/20000000-0001-0000-0000-000000000000", | ||
| "properties": { | ||
| "displayName": "ServiceGroup 1 Tenant 2", | ||
| "parent": { | ||
| "resourceId": "/providers/Microsoft.Management/serviceGroups/RootGroup" | ||
| }, | ||
| "provisioningState": "Succeeded" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "operationId": "ServiceGroups_Get", | ||
| "title": "GetServiceGroup" | ||
| } |
35 changes: 35 additions & 0 deletions
35
...soft.Management/ServiceGroups/examples/2026-09-01-preview/ServiceGroup_ListAncestors.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2026-09-01-preview", | ||
| "serviceGroupName": "20000000-0001-0000-0000-000000000000", | ||
| "body": {} | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "value": [ | ||
| { | ||
| "name": "Ancestor1", | ||
| "type": "Microsoft.Management/serviceGroups", | ||
| "id": "/providers/Microsoft.Management/serviceGroups/Ancestor1", | ||
| "properties": { | ||
| "displayName": "ServiceGroup Ancestor1", | ||
| "criticality": 0 | ||
| } | ||
| }, | ||
| { | ||
| "name": "Ancestor2", | ||
| "type": "Microsoft.Management/serviceGroups", | ||
| "id": "/providers/Microsoft.Management/serviceGroups/Ancestor2", | ||
| "properties": { | ||
| "displayName": "ServiceGroup Ancestor2" | ||
| } | ||
| } | ||
| ], | ||
| "skipToken": "eyJsYXN0TGVmdEluZGV4Ijo0LjAsInJpZ2h0SW5kZXgiOjguMH0=" | ||
| } | ||
| } | ||
| }, | ||
| "operationId": "ServiceGroups_ListAncestors", | ||
| "title": "ListServiceGroupAncestors" | ||
| } |
52 changes: 52 additions & 0 deletions
52
...ft.Management/ServiceGroups/examples/2026-09-01-preview/ServiceGroup_ListDescendants.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2026-09-01-preview", | ||
| "serviceGroupName": "root", | ||
| "body": {} | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "value": [ | ||
| { | ||
| "id": "/providers/Microsoft.Management/serviceGroups/child-1", | ||
| "type": "Microsoft.Management/serviceGroups", | ||
| "name": "child-1", | ||
| "kind": "Application", | ||
| "tags": { | ||
| "team": "platform", | ||
| "env": "prod" | ||
| }, | ||
| "properties": { | ||
| "displayName": "Child Service Group 1", | ||
| "parent": { | ||
| "resourceId": "/providers/Microsoft.Management/serviceGroups/root" | ||
| }, | ||
| "provisioningState": "Succeeded" | ||
| } | ||
| }, | ||
| { | ||
| "id": "/providers/Microsoft.Management/serviceGroups/grandchild-1", | ||
| "type": "Microsoft.Management/serviceGroups", | ||
| "name": "grandchild-1", | ||
| "kind": "Service", | ||
| "tags": { | ||
| "team": "data", | ||
| "costCenter": "12345" | ||
| }, | ||
| "properties": { | ||
| "displayName": "Grandchild Service Group 1", | ||
| "parent": { | ||
| "resourceId": "/providers/Microsoft.Management/serviceGroups/child-1" | ||
| }, | ||
| "provisioningState": "Succeeded" | ||
| } | ||
| } | ||
| ], | ||
| "skipToken": "eyJsYXN0TGVmdEluZGV4Ijo0LjAsInJpZ2h0SW5kZXgiOjguMH0=" | ||
| } | ||
| } | ||
| }, | ||
| "operationId": "ServiceGroups_ListDescendants", | ||
| "title": "ListServiceGroupDescendants" | ||
| } |
32 changes: 32 additions & 0 deletions
32
...rosoft.Management/ServiceGroups/examples/2026-09-01-preview/ServiceGroup_ListMembers.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2026-09-01-preview", | ||
| "serviceGroupName": "root-sg", | ||
| "body": { | ||
| "expand": "allMembers" | ||
| } | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "value": [ | ||
| { | ||
| "id": "/subscriptions/sub-a/resourceGroups/rg1/providers/Microsoft.KeyVault/vaults/myVault" | ||
| }, | ||
| { | ||
| "id": "/subscriptions/sub-a/resourceGroups/rg2" | ||
| }, | ||
| { | ||
| "id": "/subscriptions/sub-a/resourceGroups/rg2/providers/Microsoft.Storage/storageAccounts/myStorage" | ||
| }, | ||
| { | ||
| "id": "/subscriptions/sub-b/resourceGroups/rg3/providers/Microsoft.Sql/servers/sqlServer1" | ||
| } | ||
| ], | ||
| "skipToken": "eyJsYXN0TGVmdEluZGV4Ijo0LjAsInJpZ2h0SW5kZXgiOjguMH0=" | ||
| } | ||
| } | ||
| }, | ||
| "operationId": "ServiceGroups_ListMembers", | ||
| "title": "ListServiceGroupMembers" | ||
| } |
45 changes: 45 additions & 0 deletions
45
...er/Microsoft.Management/ServiceGroups/examples/2026-09-01-preview/ServiceGroup_Patch.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2026-09-01-preview", | ||
| "serviceGroupName": "ServiceGroup1", | ||
| "updateServiceGroupRequest": { | ||
| "properties": { | ||
| "displayName": "ServiceGroup 1 Name", | ||
| "criticality": 2 | ||
| }, | ||
| "tags": { | ||
| "tag1": "value1", | ||
| "tag2": "value2" | ||
| } | ||
| } | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "name": "ServiceGroup1", | ||
| "type": "Microsoft.Management/serviceGroups", | ||
| "id": "/providers/Microsoft.Management/serviceGroups/ServiceGroup1", | ||
| "kind": "App", | ||
| "properties": { | ||
| "displayName": "ServiceGroup 1 Name", | ||
| "criticality": 2, | ||
| "parent": { | ||
| "resourceId": "/providers/Microsoft.Management/serviceGroups/RootGroup" | ||
| }, | ||
| "provisioningState": "Succeeded" | ||
| }, | ||
| "tags": { | ||
| "tag1": "value1", | ||
| "tag2": "value2" | ||
| } | ||
| } | ||
| }, | ||
| "202": { | ||
| "headers": { | ||
| "location": "https://management.azure.com/providers/Microsoft.Management/operationResults/update/serviceGroups/ServiceGroup1?api-version=2026-09-01-preview" | ||
| } | ||
| } | ||
| }, | ||
| "operationId": "UpdateServiceGroup", | ||
| "title": "PatchServiceGroup" | ||
| } |
49 changes: 49 additions & 0 deletions
49
...ager/Microsoft.Management/ServiceGroups/examples/2026-09-01-preview/ServiceGroup_Put.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2026-09-01-preview", | ||
| "createServiceGroupRequest": { | ||
| "properties": { | ||
| "displayName": "ServiceGroup 1 Name", | ||
| "criticality": 1, | ||
| "parent": { | ||
| "resourceId": "/providers/Microsoft.Management/serviceGroups/RootGroup" | ||
| } | ||
| } | ||
| }, | ||
| "serviceGroupName": "ServiceGroup1" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "name": "ServiceGroup1", | ||
| "type": "Microsoft.Management/serviceGroups", | ||
| "id": "/providers/Microsoft.Management/serviceGroups/ServiceGroup1", | ||
| "properties": { | ||
| "displayName": "ServiceGroup 1 Name", | ||
| "criticality": 1, | ||
| "parent": { | ||
| "resourceId": "/providers/Microsoft.Management/serviceGroups/RootGroup" | ||
| }, | ||
| "provisioningState": "Succeeded" | ||
| } | ||
| } | ||
| }, | ||
| "201": { | ||
| "body": { | ||
| "name": "ServiceGroup1", | ||
| "type": "Microsoft.Management/serviceGroups", | ||
| "id": "/providers/Microsoft.Management/serviceGroups/ServiceGroup1", | ||
| "properties": { | ||
| "displayName": "ServiceGroup 1 Name", | ||
| "criticality": 1, | ||
| "parent": { | ||
| "resourceId": "/providers/Microsoft.Management/serviceGroups/RootGroup" | ||
| }, | ||
| "provisioningState": "Succeeded" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "operationId": "CreateOrUpdateServiceGroup", | ||
| "title": "PutServiceGroup" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.