Microsoft.Compute (preview:2025-02-01)

2025/02/13 • 11 new methods

DiagnosticOperations_Read (new)
Description Gets status of a Diagnostic operation issued for Disk Inspection.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/diagnosticOperations/{operationId}
{
subscriptionId: string ,
location: string ,
operationId: string ,
api-version: string ,
}

⚐ Response (200)

{
message: string ,
responseFields: string ,
resultStatus: enum ,
errorDetail:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
createdUTC: string ,
}

⚐ Response (202)

{
location: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
DiskInspection_Create (new)
Description Creates a request for executing disk Inspection.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/diagnostics/diskInspection/run
{
subscriptionId: string ,
location: string ,
api-version: string ,
runDiskInspectionInput:
{
resourceId: string ,
manifest: string ,
uploadSasUri: string ,
}
,
}

⚐ Response (202)

{
location: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Diagnostics_List (new)
Description Lists all available Compute diagnostics for a subscription in a location.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/diagnostics
{
subscriptionId: string ,
location: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
supportedResourceTypes:
[
string ,
]
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
DiskInspection_Get (new)
Description Gets a specific Compute diagnostic for a subscription in a location.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/diagnostics/diskInspection
{
subscriptionId: string ,
location: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
supportedResourceTypes:
[
string ,
]
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
DiskInspectionStorageConfiguration_Register (new)
Description Register a storageAccount for a subscription used for DiskInspection
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/diagnostics/diskInspection/registerStorageConfiguration
{
subscriptionId: string ,
location: string ,
api-version: string ,
storageConfigurationInput:
{
storageAccountId: string ,
}
,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
DiskInspectionStorageConfiguration_Validate (new)
Description Validate if a storageAccount configuration exists for a subscription used for DiskInspection.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/diagnostics/diskInspection/validateStorageConfiguration
{
subscriptionId: string ,
location: string ,
api-version: string ,
}

⚐ Response (200)

{
storageAccountId: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
SpotPlacementRecommender_Get (new)
Description [SOON TO BE DEPRECATED] Gets Spot Placement Recommender diagnostic metadata.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/diagnostics/spotPlacementRecommender
{
subscriptionId: string ,
location: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
supportedResourceTypes:
[
string ,
]
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
SpotPlacementRecommender_Post (new)
Description [SOON TO BE DEPRECATED] Generates placement scores for Spot VM skus.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/diagnostics/spotPlacementRecommender/generate
{
subscriptionId: string ,
location: string ,
api-version: string ,
spotPlacementRecommenderInput:
{
desiredLocations:
[
string ,
]
,
desiredSizes:
[
{
sku: string ,
}
,
]
,
desiredCount: integer ,
availabilityZones: boolean ,
}
,
}

⚐ Response (200)

{
desiredLocations:
[
string ,
]
,
desiredSizes:
[
{
sku: string ,
}
,
]
,
desiredCount: integer ,
availabilityZones: boolean ,
placementScores:
[
{
sku: string ,
region: string ,
availabilityZone: string ,
score: string ,
isQuotaAvailable: boolean ,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
SpotPlacementScores_Get (new)
Description Gets Spot Placement Scores metadata.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/placementScores/spot
{
subscriptionId: string ,
location: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
supportedResourceTypes:
[
string ,
]
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
SpotPlacementScores_Post (new)
Description Generates placement scores for Spot VM skus.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/placementScores/spot/generate
{
subscriptionId: string ,
location: string ,
api-version: string ,
spotPlacementScoresInput:
{
desiredLocations:
[
string ,
]
,
desiredSizes:
[
{
sku: string ,
}
,
]
,
desiredCount: integer ,
availabilityZones: boolean ,
}
,
}

⚐ Response (200)

{
desiredLocations:
[
string ,
]
,
desiredSizes:
[
{
sku: string ,
}
,
]
,
desiredCount: integer ,
availabilityZones: boolean ,
placementScores:
[
{
sku: string ,
region: string ,
availabilityZone: string ,
score: string ,
isQuotaAvailable: boolean ,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
AttributeBasedVMSizeRecommender_Post (new)
Description Generates attribute based VM Size Recommendations.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/vmSizeRecommendations/vmAttributeBased/generate
{
subscriptionId: string ,
location: string ,
api-version: string ,
attributeBasedVMSizeRecommenderInput:
{
regularPriorityProfile: object ,
spotPriorityProfile: object ,
recommendationProperties: object ,
resourceProperties: object ,
}
,
}

⚐ Response (200)

{
recommendedVMSizes: object ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}