-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Microsoft.Advisor: New 2025-05-01-preview API version #34818
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
Merged
gary-x-li
merged 17 commits into
Azure:main
from
mojayara:mojayara/2025-05-01-preview-api
Jun 25, 2025
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
90386dc
Baseline commit from 2024-11-18-preview for 2025-05-01-preview
mojayara 2d57a56
Updated API version and added examples
mojayara 1571009
Updated readme, advisor json file to reflect right exmaples
mojayara 170acd6
Fixed the error on Control parameter
mojayara fe16f4d
Added a new Row for the RsourceUri path for the Recommendations RT
mojayara a17aa39
Added different operationId
mojayara fa68e46
Fxied the example
mojayara 012f090
Fxied the prettier npm error
mojayara e15cfb3
NPM Pretty error fix
mojayara eac5309
Npx prettier command executed
mojayara acdcf29
More npx prettier
mojayara d40081d
Merge branch 'main' into mojayara/2025-05-01-preview-api
mojayara 9a686c1
Merge branch 'main' into mojayara/2025-05-01-preview-api
mojayara ac90e97
Merge branch 'main' into mojayara/2025-05-01-preview-api
mojayara e3bb78e
Merge branch 'main' into mojayara/2025-05-01-preview-api
mojayara 9e5a9ae
Merge branch 'main' into mojayara/2025-05-01-preview-api
mojayara f403bea
Merge branch 'main' into mojayara/2025-05-01-preview-api
mojayara 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
1,992 changes: 1,992 additions & 0 deletions
1,992
...cation/advisor/resource-manager/Microsoft.Advisor/preview/2025-05-01-preview/advisor.json
Large diffs are not rendered by default.
Oops, something went wrong.
514 changes: 514 additions & 0 deletions
514
...on/advisor/resource-manager/Microsoft.Advisor/preview/2025-05-01-preview/assessments.json
Large diffs are not rendered by default.
Oops, something went wrong.
61 changes: 61 additions & 0 deletions
61
...ce-manager/Microsoft.Advisor/preview/2025-05-01-preview/examples/CreateConfiguration.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,61 @@ | ||
| { | ||
| "parameters": { | ||
| "subscriptionId": "subscriptionId", | ||
| "resourceGroup": "resourceGroup", | ||
| "configurationName": "default", | ||
| "configContract": { | ||
| "properties": { | ||
| "lowCpuThreshold": "5", | ||
| "duration": "7", | ||
| "exclude": true, | ||
| "digests": [ | ||
| { | ||
| "name": "digestConfigName", | ||
| "actionGroupResourceId": "/subscriptions/58c3f667-7a62-4bfd-a658-846493e9a493/resourceGroups/resourceGroup/providers/microsoft.insights/actionGroups/actionGroupName", | ||
| "frequency": 30, | ||
| "categories": [ | ||
| "HighAvailability", | ||
| "Security", | ||
| "Performance", | ||
| "Cost", | ||
| "OperationalExcellence" | ||
| ], | ||
| "language": "en", | ||
| "state": "Active" | ||
| } | ||
| ] | ||
| } | ||
| }, | ||
| "api-version": "2025-05-01-preview" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "id": "/subscriptions/58c3f667-7a62-4bfd-a658-846493e9a493/resourceGroups/resourceGroup/providers/Microsoft.Advisor/configurations/default", | ||
| "type": "Microsoft.Advisor/configurations", | ||
| "name": "default", | ||
| "properties": { | ||
| "lowCpuThreshold": "5", | ||
| "duration": "7", | ||
| "exclude": true, | ||
| "digests": [ | ||
| { | ||
| "name": "digestConfigName", | ||
| "actionGroupResourceId": "/subscriptions/58c3f667-7a62-4bfd-a658-846493e9a493/resourceGroups/resourceGroup/providers/microsoft.insights/actionGroups/actionGroupName", | ||
| "frequency": 30, | ||
| "categories": [ | ||
| "HighAvailability", | ||
| "Security", | ||
| "Performance", | ||
| "Cost", | ||
| "OperationalExcellence" | ||
| ], | ||
| "language": "en", | ||
| "state": "Active" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
34 changes: 34 additions & 0 deletions
34
...urce-manager/Microsoft.Advisor/preview/2025-05-01-preview/examples/CreateSuppression.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,34 @@ | ||
| { | ||
| "parameters": { | ||
| "resourceUri": "resourceUri", | ||
| "recommendationId": "recommendationId", | ||
| "name": "suppressionName1", | ||
| "suppressionContract": { | ||
| "properties": { | ||
| "ttl": "07:00:00:00" | ||
| } | ||
| }, | ||
| "api-version": "2025-05-01-preview" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "id": "/subscriptions/a5481ee1-95df-47d0-85d4-dd3f0dfa19bc/resourceGroups/resourceGroup/providers/Microsoft.Compute/availabilitysets/armavset/providers/Microsoft.Advisor/recommendations/bd27ddc6-1312-4067-b4af-cbb45e32cfd7/suppressions/HardcodedSuppressionName", | ||
| "name": "suppressionName1", | ||
| "type": "Microsoft.Advisor/suppressions", | ||
| "properties": { | ||
| "suppressionId": "suppressionId", | ||
| "ttl": "07:00:00:00" | ||
| } | ||
| } | ||
| }, | ||
| "404": { | ||
| "body": { | ||
| "error": { | ||
| "code": "NotFound", | ||
| "message": "Recommendation to be suppressed is not found. Subscription Id:{0} Recommendation Id:{1}" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
13 changes: 13 additions & 0 deletions
13
...ource-manager/Microsoft.Advisor/preview/2025-05-01-preview/examples/DeleteAssessment.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,13 @@ | ||
| { | ||
| "parameters": { | ||
| "subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
| "assessmentName": "assessment1", | ||
| "api-version": "2025-05-01-preview" | ||
| }, | ||
| "responses": { | ||
| "200": {}, | ||
| "204": { | ||
| "description": "The Assessment is not found or has been deleted already." | ||
| } | ||
| } | ||
| } |
11 changes: 11 additions & 0 deletions
11
...urce-manager/Microsoft.Advisor/preview/2025-05-01-preview/examples/DeleteSuppression.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,11 @@ | ||
| { | ||
| "parameters": { | ||
| "resourceUri": "resourceUri", | ||
| "recommendationId": "recommendationId", | ||
| "name": "suppressionName1", | ||
| "api-version": "2025-05-01-preview" | ||
| }, | ||
| "responses": { | ||
| "204": {} | ||
| } | ||
| } |
11 changes: 11 additions & 0 deletions
11
...resource-manager/Microsoft.Advisor/preview/2025-05-01-preview/examples/EmptyResponse.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,11 @@ | ||
| { | ||
| "parameters": { | ||
| "subscriptionId": "subscriptionId", | ||
| "operationId": "123e4567-e89b-12d3-a456-426614174000", | ||
| "api-version": "2025-05-01-preview" | ||
| }, | ||
| "responses": { | ||
| "202": {}, | ||
| "204": {} | ||
| } | ||
| } |
14 changes: 14 additions & 0 deletions
14
...anager/Microsoft.Advisor/preview/2025-05-01-preview/examples/GenerateRecommendations.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,14 @@ | ||
| { | ||
| "parameters": { | ||
| "subscriptionId": "subscriptionId", | ||
| "api-version": "2025-05-01-preview" | ||
| }, | ||
| "responses": { | ||
| "202": { | ||
| "headers": { | ||
| "Location": "https://management.azure.com/subscriptions/subscriptionId/providers/Microsoft.Microsoft.Advisor/generateRecommendations/recGUID?api-version=2025-05-01-preview", | ||
| "Retry-After": "60" | ||
| } | ||
| } | ||
| } | ||
| } |
155 changes: 155 additions & 0 deletions
155
...-manager/Microsoft.Advisor/preview/2025-05-01-preview/examples/GetAdvisorScoreDetail.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,155 @@ | ||
| { | ||
| "parameters": { | ||
| "subscriptionId": "a5481ee1-95df-47d0-85d4-dd3f0dfa19bc", | ||
| "name": "Cost", | ||
| "api-version": "2025-05-01-preview" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "id": "/subscriptions/a5481ee1-95df-47d0-85d4-dd3f0dfa19bc/providers/Microsoft.Advisor/advisorScore/Cost", | ||
| "name": "Cost", | ||
| "type": "Microsoft.Advisor/advisorScore", | ||
| "properties": { | ||
| "lastRefreshedScore": { | ||
| "date": "2020-06-25T00:00:00Z", | ||
| "score": 1, | ||
| "consumptionUnits": 12, | ||
| "impactedResourceCount": 1, | ||
| "potentialScoreIncrease": 0, | ||
| "categoryCount": 1 | ||
| }, | ||
| "timeSeries": [ | ||
| { | ||
| "aggregationLevel": "day", | ||
| "scoreHistory": [ | ||
| { | ||
| "date": "2020-06-25T00:00:00Z", | ||
| "score": 1, | ||
| "consumptionUnits": 12, | ||
| "impactedResourceCount": 1, | ||
| "potentialScoreIncrease": 0 | ||
| }, | ||
| { | ||
| "date": "2020-06-24T00:00:00Z", | ||
| "score": 1, | ||
| "consumptionUnits": 12, | ||
| "impactedResourceCount": 1, | ||
| "potentialScoreIncrease": 0 | ||
| }, | ||
| { | ||
| "date": "2020-06-23T00:00:00Z", | ||
| "score": 1, | ||
| "consumptionUnits": 12, | ||
| "impactedResourceCount": 1, | ||
| "potentialScoreIncrease": 0 | ||
| }, | ||
| { | ||
| "date": "2020-06-22T00:00:00Z", | ||
| "score": 1, | ||
| "consumptionUnits": 12, | ||
| "impactedResourceCount": 1, | ||
| "potentialScoreIncrease": 0 | ||
| }, | ||
| { | ||
| "date": "2020-06-21T00:00:00Z", | ||
| "score": 1, | ||
| "consumptionUnits": 12, | ||
| "impactedResourceCount": 1, | ||
| "potentialScoreIncrease": 0 | ||
| }, | ||
| { | ||
| "date": "2020-06-20T00:00:00Z", | ||
| "score": 1, | ||
| "consumptionUnits": 12, | ||
| "impactedResourceCount": 1, | ||
| "potentialScoreIncrease": 0 | ||
| }, | ||
| { | ||
| "date": "2020-06-19T00:00:00Z", | ||
| "score": 1, | ||
| "consumptionUnits": 12, | ||
| "impactedResourceCount": 1, | ||
| "potentialScoreIncrease": 0 | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "aggregationLevel": "month", | ||
| "scoreHistory": [ | ||
| { | ||
| "date": "2020-06-25T00:00:00Z", | ||
| "score": 1, | ||
| "consumptionUnits": 12, | ||
| "impactedResourceCount": 1, | ||
| "potentialScoreIncrease": 0 | ||
| }, | ||
| { | ||
| "date": "2020-05-30T00:00:00Z", | ||
| "score": 1, | ||
| "consumptionUnits": 12, | ||
| "impactedResourceCount": 1, | ||
| "potentialScoreIncrease": 0 | ||
| }, | ||
| { | ||
| "date": "2020-04-30T00:00:00Z", | ||
| "score": 1, | ||
| "consumptionUnits": 12, | ||
| "impactedResourceCount": 1, | ||
| "potentialScoreIncrease": 0 | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "aggregationLevel": "week", | ||
| "scoreHistory": [ | ||
| { | ||
| "date": "2020-06-25T00:00:00Z", | ||
| "score": 1, | ||
| "consumptionUnits": 12, | ||
| "impactedResourceCount": 1, | ||
| "potentialScoreIncrease": 0 | ||
| }, | ||
| { | ||
| "date": "2020-06-21T00:00:00Z", | ||
| "score": 1, | ||
| "consumptionUnits": 12, | ||
| "impactedResourceCount": 1, | ||
| "potentialScoreIncrease": 0 | ||
| }, | ||
| { | ||
| "date": "2020-06-14T00:00:00Z", | ||
| "score": 1, | ||
| "consumptionUnits": 12, | ||
| "impactedResourceCount": 1, | ||
| "potentialScoreIncrease": 0 | ||
| }, | ||
| { | ||
| "date": "2020-06-07T00:00:00Z", | ||
| "score": 1, | ||
| "consumptionUnits": 12, | ||
| "impactedResourceCount": 1, | ||
| "potentialScoreIncrease": 0 | ||
| }, | ||
| { | ||
| "date": "2020-05-31T00:00:00Z", | ||
| "score": 1, | ||
| "consumptionUnits": 12, | ||
| "impactedResourceCount": 1, | ||
| "potentialScoreIncrease": 0 | ||
| }, | ||
| { | ||
| "date": "2020-05-24T00:00:00Z", | ||
| "score": 1, | ||
| "consumptionUnits": 12, | ||
| "impactedResourceCount": 1, | ||
| "potentialScoreIncrease": 0 | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
36 changes: 36 additions & 0 deletions
36
...resource-manager/Microsoft.Advisor/preview/2025-05-01-preview/examples/GetAssessment.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,36 @@ | ||
| { | ||
| "parameters": { | ||
| "subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
| "assessmentName": "assessment1", | ||
| "api-version": "2025-05-01-preview" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "id": "/subscriptions/2f2edd23-bded-4c8d-bdef-1f32a9b83f84/providers/Microsoft.Advisor/assessments/MCWAR1", | ||
| "name": "MCWAR1", | ||
| "type": "Microsoft.Advisor/assessments", | ||
| "systemData": { | ||
| "createdBy": "string", | ||
| "createdByType": "User", | ||
| "createdAt": "2020-04-03T04:41:33.937Z", | ||
| "lastModifiedBy": "string", | ||
| "lastModifiedByType": "User", | ||
| "lastModifiedAt": "2020-04-03T04:41:33.937Z" | ||
| }, | ||
| "properties": { | ||
| "workloadId": "f72b7134-800f-4f1b-a5bd-691e2140c7d5", | ||
| "workloadName": "Workload1", | ||
| "assessmentId": "fa5cb863-6ed4-4b6b-8c72-06f847cac885", | ||
| "description": "Evaluate your mission critical workloads by assessing the technical design", | ||
| "typeId": "23513bdb-e8a2-4f0b-8b6b-191ee1f52d34", | ||
| "type": "Mission Critical Well-Architected Review", | ||
| "typeVersion": "20221031192816.497", | ||
| "locale": "en-us", | ||
| "score": 60, | ||
| "state": "InProgress" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gary-x-li, @mojayara: This PR should not have been approved/merged with this empty file in repo root. I will delete it.