AksAssessmentOperation

class AksAssessmentOperation : KotlinCustomResource

ARM model of AKS Assessment. Uses Azure REST API version 2024-01-01-preview. In version 2.x of the Azure Native provider, it used API version 2023-04-01-preview. Other available API versions: 2023-04-01-preview, 2023-05-01-preview, 2023-09-09-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native migrate [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

AksAssessmentOperations_Create_MaximumSet_Gen

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var aksAssessmentOperation = new AzureNative.Migrate.AksAssessmentOperation("aksAssessmentOperation", new()
{
AssessmentName = "testaksassessment",
ProjectName = "testproject",
ResourceGroupName = "rgaksswagger",
Scope = new AzureNative.Migrate.Inputs.AssessmentScopeParametersArgs
{
ServerGroupId = "/subscriptions/D6F60DF4-CE70-4E39-8217-B8FBE7CA85AA/resourceGroups/rgaksswagger/providers/Microsoft.Migrate/assessmentProjects/testproject/groups/testgrp",
},
Settings = new AzureNative.Migrate.Inputs.AKSAssessmentSettingsArgs
{
AzureLocation = "Unknown",
Category = AzureNative.Migrate.AzureVmCategory.All,
Consolidation = AzureNative.Migrate.ConsolidationType.Full,
Currency = AzureNative.Migrate.AzureCurrency.Unknown,
DiscountPercentage = 15,
EnvironmentType = AzureNative.Migrate.AzureEnvironmentType.Unknown,
LicensingProgram = AzureNative.Migrate.LicensingProgram.Default,
PerformanceData = new AzureNative.Migrate.Inputs.PerfDataSettingsArgs
{
Percentile = AzureNative.Migrate.Percentile.Percentile50,
PerfDataEndTime = "2023-11-07T06:51:24.320Z",
PerfDataStartTime = "2023-11-07T06:51:24.320Z",
TimeRange = AzureNative.Migrate.TimeRange.Day,
},
PricingTier = AzureNative.Migrate.PricingTier.Standard,
SavingsOptions = AzureNative.Migrate.SavingsOptions.None,
ScalingFactor = 3,
SizingCriteria = AzureNative.Migrate.AssessmentSizingCriterion.PerformanceBased,
},
});
});
package main
import (
migrate "github.com/pulumi/pulumi-azure-native-sdk/migrate/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := migrate.NewAksAssessmentOperation(ctx, "aksAssessmentOperation", &migrate.AksAssessmentOperationArgs{
AssessmentName: pulumi.String("testaksassessment"),
ProjectName: pulumi.String("testproject"),
ResourceGroupName: pulumi.String("rgaksswagger"),
Scope: &migrate.AssessmentScopeParametersArgs{
ServerGroupId: pulumi.String("/subscriptions/D6F60DF4-CE70-4E39-8217-B8FBE7CA85AA/resourceGroups/rgaksswagger/providers/Microsoft.Migrate/assessmentProjects/testproject/groups/testgrp"),
},
Settings: &migrate.AKSAssessmentSettingsArgs{
AzureLocation: pulumi.String("Unknown"),
Category: pulumi.String(migrate.AzureVmCategoryAll),
Consolidation: pulumi.String(migrate.ConsolidationTypeFull),
Currency: pulumi.String(migrate.AzureCurrencyUnknown),
DiscountPercentage: pulumi.Float64(15),
EnvironmentType: pulumi.String(migrate.AzureEnvironmentTypeUnknown),
LicensingProgram: pulumi.String(migrate.LicensingProgramDefault),
PerformanceData: &migrate.PerfDataSettingsArgs{
Percentile: pulumi.String(migrate.PercentilePercentile50),
PerfDataEndTime: pulumi.String("2023-11-07T06:51:24.320Z"),
PerfDataStartTime: pulumi.String("2023-11-07T06:51:24.320Z"),
TimeRange: pulumi.String(migrate.TimeRangeDay),
},
PricingTier: pulumi.String(migrate.PricingTierStandard),
SavingsOptions: pulumi.String(migrate.SavingsOptionsNone),
ScalingFactor: pulumi.Float64(3),
SizingCriteria: pulumi.String(migrate.AssessmentSizingCriterionPerformanceBased),
},
})
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.migrate.AksAssessmentOperation;
import com.pulumi.azurenative.migrate.AksAssessmentOperationArgs;
import com.pulumi.azurenative.migrate.inputs.AssessmentScopeParametersArgs;
import com.pulumi.azurenative.migrate.inputs.AKSAssessmentSettingsArgs;
import com.pulumi.azurenative.migrate.inputs.PerfDataSettingsArgs;
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 aksAssessmentOperation = new AksAssessmentOperation("aksAssessmentOperation", AksAssessmentOperationArgs.builder()
.assessmentName("testaksassessment")
.projectName("testproject")
.resourceGroupName("rgaksswagger")
.scope(AssessmentScopeParametersArgs.builder()
.serverGroupId("/subscriptions/D6F60DF4-CE70-4E39-8217-B8FBE7CA85AA/resourceGroups/rgaksswagger/providers/Microsoft.Migrate/assessmentProjects/testproject/groups/testgrp")
.build())
.settings(AKSAssessmentSettingsArgs.builder()
.azureLocation("Unknown")
.category("All")
.consolidation("Full")
.currency("Unknown")
.discountPercentage(15)
.environmentType("Unknown")
.licensingProgram("Default")
.performanceData(PerfDataSettingsArgs.builder()
.percentile("Percentile50")
.perfDataEndTime("2023-11-07T06:51:24.320Z")
.perfDataStartTime("2023-11-07T06:51:24.320Z")
.timeRange("Day")
.build())
.pricingTier("Standard")
.savingsOptions("None")
.scalingFactor(3)
.sizingCriteria("PerformanceBased")
.build())
.build());
}
}

Import

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

$ pulumi import azure-native:migrate:AksAssessmentOperation testaksassessment /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/aksAssessments/{assessmentName}

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard

Gets AKS Assessment Details.

Link copied to clipboard
val eTag: Output<String>

If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard

Gets the provisioning state.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Gets or sets scope parameters to identify inventory items for assessment.

Link copied to clipboard

Gets or sets AKS Assessment Settings.

Link copied to clipboard

Azure Resource Manager metadata containing createdBy and modifiedBy information.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>