ComputePlacementScoresResource.Generate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Generates placement scores for Compute VM skus.
- Request Path. : /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/placementScores/regular/generate.
- Operation Id. : ComputePlacementScores_Post.
- Default Api Version. : 2026-10-05-preview.
- Resource. : ComputePlacementScoresResource.
public virtual Azure.Response<Azure.ResourceManager.Compute.Recommender.Models.ComputePlacementScoresGenerateResult> Generate(Azure.ResourceManager.Compute.Recommender.Models.ComputePlacementScoresGenerateContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member Generate : Azure.ResourceManager.Compute.Recommender.Models.ComputePlacementScoresGenerateContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Compute.Recommender.Models.ComputePlacementScoresGenerateResult>
override this.Generate : Azure.ResourceManager.Compute.Recommender.Models.ComputePlacementScoresGenerateContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Compute.Recommender.Models.ComputePlacementScoresGenerateResult>
Public Overridable Function Generate (content As ComputePlacementScoresGenerateContent, Optional cancellationToken As CancellationToken = Nothing) As Response(Of ComputePlacementScoresGenerateResult)
Parameters
ComputePlacementScores object supplied in the body of the Post compute placement scores operation.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
content is null.