Assessment

class Assessment : KotlinCustomResource

The Advisor assessment result data structure. Uses Azure REST API version 2023-09-01-preview. In version 2.x of the Azure Native provider, it used API version 2023-09-01-preview.

Example Usage

PutAssessment

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var assessment = new AzureNative.Advisor.Assessment("assessment", new()
{
AssessmentName = "assessment1",
Locale = "en-us",
TypeId = "23513bdb-e8a2-4f0b-8b6b-191ee1f52d34",
WorkloadId = "f72b7134-800f-4f1b-a5bd-691e2140c7d5",
});
});
package main
import (
advisor "github.com/pulumi/pulumi-azure-native-sdk/advisor/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := advisor.NewAssessment(ctx, "assessment", &advisor.AssessmentArgs{
AssessmentName: pulumi.String("assessment1"),
Locale: pulumi.String("en-us"),
TypeId: pulumi.String("23513bdb-e8a2-4f0b-8b6b-191ee1f52d34"),
WorkloadId: pulumi.String("f72b7134-800f-4f1b-a5bd-691e2140c7d5"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.advisor.Assessment;
import com.pulumi.azurenative.advisor.AssessmentArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var assessment = new Assessment("assessment", AssessmentArgs.builder()
.assessmentName("assessment1")
.locale("en-us")
.typeId("23513bdb-e8a2-4f0b-8b6b-191ee1f52d34")
.workloadId("f72b7134-800f-4f1b-a5bd-691e2140c7d5")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:advisor:Assessment MCWAR1 /subscriptions/{subscriptionId}/providers/Microsoft.Advisor/assessments/{assessmentName}

Properties

Link copied to clipboard
val assessmentId: Output<String>

Assessment Id.

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard
val description: Output<String>

Assessment Type Description.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val locale: Output<String>?

Assessment Type Locale.

Link copied to clipboard
val name: Output<String>

Assessment Name

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val score: Output<Int>

Assessment Score.

Link copied to clipboard
val state: Output<String>

Assessment State.

Link copied to clipboard

Metadata pertaining to creation and last modification of the resource.

Link copied to clipboard
val type: Output<String>

Resource Type

Link copied to clipboard
val typeId: Output<String>?

Assessment Type Id.

Link copied to clipboard
val typeVersion: Output<String>

Assessment Type Version.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val workloadId: Output<String>?

Workload Id.

Link copied to clipboard
val workloadName: Output<String>

Workload Name.