Skip to content

Commit 98169e7

Browse files
authored
Dev advisor microsoft.advisor 2022 09 01 (#20049)
* Adds base for updating Microsoft.Advisor from version stable/2020-01-01 to version 2022-09-01 * Updates readme * Updates API version in new specs and examples * Add duration and change examples * Add predict api to version * Delete feedback.md
1 parent d885d1f commit 98169e7

16 files changed

+2193
-8
lines changed

specification/advisor/resource-manager/Microsoft.Advisor/stable/2022-09-01/advisor.json

Lines changed: 1570 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subscriptionId",
4+
"resourceGroup": "resourceGroup",
5+
"configurationName": "default",
6+
"configContract": {
7+
"properties": {
8+
"lowCpuThreshold": "5",
9+
"duration": "7",
10+
"exclude": true,
11+
"digests": [
12+
{
13+
"name": "digestConfigName",
14+
"actionGroupResourceId": "/subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/microsoft.insights/actionGroups/actionGroupName",
15+
"frequency": 30,
16+
"categories": [
17+
"HighAvailability",
18+
"Security",
19+
"Performance",
20+
"Cost",
21+
"OperationalExcellence"
22+
],
23+
"language": "en",
24+
"state": "Active"
25+
}
26+
]
27+
}
28+
},
29+
"api-version": "2022-09-01"
30+
},
31+
"responses": {
32+
"200": {
33+
"body": {
34+
"id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Advisor/configurations/default",
35+
"type": "Microsoft.Advisor/configurations",
36+
"name": "default",
37+
"properties": {
38+
"lowCpuThreshold": "5",
39+
"duration": "7",
40+
"exclude": true,
41+
"digests": [
42+
{
43+
"name": "digestConfigName",
44+
"actionGroupResourceId": "/subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/microsoft.insights/actionGroups/actionGroupName",
45+
"frequency": 30,
46+
"categories": [
47+
"HighAvailability",
48+
"Security",
49+
"Performance",
50+
"Cost",
51+
"OperationalExcellence"
52+
],
53+
"language": "en",
54+
"state": "Active"
55+
}
56+
]
57+
}
58+
}
59+
}
60+
}
61+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"parameters": {
3+
"resourceUri": "resourceUri",
4+
"recommendationId": "recommendationId",
5+
"name": "suppressionName1",
6+
"suppressionContract": {
7+
"properties": {
8+
"ttl": "07:00:00:00"
9+
}
10+
},
11+
"api-version": "2022-09-01"
12+
},
13+
"responses": {
14+
"200": {
15+
"body": {
16+
"id": "/resourceUri/providers/Microsoft.Advisor/recommendations/recommendationId/suppressions/suppressionName1",
17+
"name": "suppressionName1",
18+
"type": "Microsoft.Advisor/suppressions",
19+
"properties": {
20+
"suppressionId": "suppressionId",
21+
"ttl": "07:00:00:00"
22+
}
23+
}
24+
},
25+
"404": {
26+
"body": {
27+
"error": {
28+
"code": "NotFound",
29+
"message": "Recommendation to be suppressed is not found. Subscription Id:{0} Recommendation Id:{1}"
30+
}
31+
}
32+
}
33+
}
34+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"parameters": {
3+
"resourceUri": "resourceUri",
4+
"recommendationId": "recommendationId",
5+
"name": "suppressionName1",
6+
"api-version": "2022-09-01"
7+
},
8+
"responses": {
9+
"204": {}
10+
}
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subscriptionId",
4+
"operationId": "123e4567-e89b-12d3-a456-426614174000",
5+
"api-version": "2022-09-01"
6+
},
7+
"responses": {
8+
"202": {},
9+
"204": {}
10+
}
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subscriptionId",
4+
"api-version": "2022-09-01"
5+
},
6+
"responses": {
7+
"202": {
8+
"headers": {
9+
"Location": "https://management.azure.com/subscriptions/subscriptionId/providers/Microsoft.Microsoft.Advisor/generateRecommendations/recGUID?api-version=2022-09-01",
10+
"Retry-After": "60"
11+
}
12+
}
13+
}
14+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"parameters": {
3+
"resourceUri": "resourceUri",
4+
"recommendationId": "recommendationId",
5+
"api-version": "2022-09-01"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"id": "/resourceUri/providers/Microsoft.Advisor/recommendations/recommendationId",
11+
"name": "recommendationId",
12+
"properties": {
13+
"category": "Security",
14+
"impact": "Medium",
15+
"impactedField": "Microsoft.Compute/virtualMachines",
16+
"impactedValue": "armavset",
17+
"lastUpdated": "2017-02-24T22:24:43.3216408Z",
18+
"risk": "Warning",
19+
"shortDescription": {
20+
"problem": "Monitoring agent is not installed on your machines",
21+
"solution": "Monitoring agent should be installed on your machines"
22+
},
23+
"remediation": {
24+
"httpMethod": "POST",
25+
"uri": "uri",
26+
"details": "link to document"
27+
},
28+
"resourceMetadata": {
29+
"resourceId": "/subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Compute/virtualMachines/xyz",
30+
"source": "/subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Compute/virtualMachines/xyz/providers/Microsoft.Security/assessments/assessmentGuid",
31+
"action": {
32+
"actionType": "Document",
33+
"link": "https://link3",
34+
"caption": "Enable Soft Delete to protect blob data",
35+
"description": "Enable Soft Delete to protect blob data",
36+
"metadata": {
37+
"id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Compute/virtualMachines/xyz"
38+
}
39+
},
40+
"singular": "Virtual machine",
41+
"plural": "Virtual machines"
42+
},
43+
"actions": [
44+
{
45+
"actionType": "Document",
46+
"link": "https://link1",
47+
"caption": "Enable Soft Delete to protect blob data",
48+
"description": "Enable Soft Delete to protect blob data",
49+
"metadata": {
50+
"id": "/subscriptions/subscriptionId"
51+
}
52+
}
53+
],
54+
"description": "After enabling Soft Delete, deleted data transitions to a soft deleted state instead of being permanently deleted. When data is overwritten, a soft deleted snapshot is generated to save the state of the overwritten data. You can configure the amount of time soft deleted data is recoverable before it permanently expires.",
55+
"label": "Enable Soft Delete",
56+
"learnMoreLink": "https://link2",
57+
"potentialBenefits": "Save and recover your data when blobs or blob snapshots are accidentally overwritten or deleted"
58+
},
59+
"type": "Microsoft.Advisor/recommendations"
60+
}
61+
}
62+
}
63+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"parameters": {
3+
"name": "types",
4+
"api-version": "2022-09-01"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"id": "providers/Microsoft.Advisor/metadata/recommendationType",
10+
"name": "recommendationType",
11+
"type": "Microsoft.Advisor/metadata",
12+
"properties": {
13+
"displayName": "Recommendation Type",
14+
"dependsOn": [
15+
"category",
16+
"impact"
17+
],
18+
"applicableScenarios": [
19+
"Alerts"
20+
],
21+
"supportedValues": [
22+
{
23+
"id": "6a2b1e70-bd4c-4163-86de-5243d7ac05ee",
24+
"displayName": "Upgrade your SKU or add more instances to ensure fault tolerance"
25+
},
26+
{
27+
"id": "da6630fb-4286-4996-92a3-a43f5f26dd34",
28+
"displayName": "Delete ExpressRoute circuits in the provider status of Not Provisioned"
29+
}
30+
]
31+
}
32+
}
33+
},
34+
"404": {
35+
"body": {
36+
"code": "NotFound",
37+
"message": "Unknown metadata name"
38+
}
39+
}
40+
}
41+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"parameters": {
3+
"resourceUri": "resourceUri",
4+
"recommendationId": "recommendationId",
5+
"name": "suppressionName1",
6+
"api-version": "2022-09-01"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"id": "/resourceUri/providers/Microsoft.Advisor/recommendations/recommendationId/suppressions/suppressionName1",
12+
"name": "suppressionName1",
13+
"type": "Microsoft.Advisor/suppressions",
14+
"properties": {
15+
"suppressionId": "suppressionId1",
16+
"ttl": "7.00:00:00",
17+
"expirationTimeStamp": "2020-10-25T22:24:43.3216408Z"
18+
}
19+
}
20+
},
21+
"404": {
22+
"body": {
23+
"error": {
24+
"code": "NotFound",
25+
"message": "Suppression name is not specified or Suppression Id not found"
26+
}
27+
}
28+
}
29+
}
30+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subscriptionId",
4+
"resourceGroup": "resourceGroup",
5+
"api-version": "2022-09-01"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"value": [
11+
{
12+
"id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Advisor/configurations/default",
13+
"type": "Microsoft.Advisor/configurations",
14+
"name": "default",
15+
"properties": {
16+
"lowCpuThreshold": "5",
17+
"duration": "7",
18+
"exclude": false,
19+
"digests": [
20+
{
21+
"name": "digestConfigName",
22+
"actionGroupResourceId": "/subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/microsoft.insights/actionGroups/actionGroupName",
23+
"frequency": 30,
24+
"categories": [
25+
"HighAvailability",
26+
"Security",
27+
"Performance",
28+
"Cost",
29+
"OperationalExcellence"
30+
],
31+
"language": "en",
32+
"state": "Active"
33+
}
34+
]
35+
}
36+
}
37+
],
38+
"nextLink": "string"
39+
}
40+
}
41+
}
42+
}

0 commit comments

Comments
 (0)