Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"parameters": {
"api-version": "2022-02-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "Microsoft.Advisor/prediction",
"display": {
"provider": "Microsoft Advisor",
"resource": "Prediction",
"description": "Predicts a recommendation."
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"parameters": {
"subscriptionId": "subscriptionId",
"predictionRequest": {
"properties": {
"predictionType": "PredictiveRightsizing",
"extendedProperties": {
"region": "CentralUS",
"deploymentType": "Linux_IaaS_Software_Store",
"sku": "Standard_Dv4",
"type": "iaas",
"numberOfInstances": 10
}
}
},
"api-version": "2022-02-01-preview"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subscriptionId/providers/Microsoft.Advisor/predict/default",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

default

What does this id represent ? Are you creating a default resource using the POST operation. please note that for ARM we do not allow resource creation via POST actions ..

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are not actually creating any resources. This is used for getting a prediction. Since it requires passing parameters in the body of the request, we are using POST.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed can you remove these 3 properties.

"type": "Microsoft.Advisor/predict",
"name": "default",
"properties": {
"predictionType": "PredictiveRightsizing",
"extendedProperties": {
"region": "CentralUS",
"deploymentType": "Linux_IaaS_Software_Store",
"sku": "Standard_Dv4",
"type": "iaas",
"numberOfInstances": 10,
"prediction": {
"recommendedSku": "Standard_Dv2",
"numberOfInstances": 8,
"confidence": 0.9
}
},
"category": "Cost",
"impact": "Low",
"impactedField": "Microsoft.Compute/virtualMachines",
"lastUpdated": "2022-02-14T14:47:18.436Z",
"shortDescription": {
"solution": "We recommend using 8 instances of type Standard_Dv2."
}
}
}
}
}
}
Loading