AssessmentsOperation

class AssessmentsOperation : KotlinCustomResource

Machine assessment resource. 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-03-15, 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

AssessmentsOperations_Create_MaximumSet_Gen

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var assessmentsOperation = new AzureNative.Migrate.AssessmentsOperation("assessmentsOperation", new()
{
AssessmentName = "asm1",
AzureDiskTypes = new[]
{
AzureNative.Migrate.AzureDiskType.Premium,
AzureNative.Migrate.AzureDiskType.PremiumV2,
AzureNative.Migrate.AzureDiskType.StandardSSD,
},
AzureHybridUseBenefit = AzureNative.Migrate.AzureHybridUseBenefit.Unknown,
AzureLocation = "njxbwdtsxzhichsnk",
AzureOfferCode = AzureNative.Migrate.AzureOfferCode.Unknown,
AzurePricingTier = AzureNative.Migrate.AzurePricingTier.Standard,
AzureStorageRedundancy = AzureNative.Migrate.AzureStorageRedundancy.Unknown,
AzureVmFamilies = new[]
{
AzureNative.Migrate.AzureVmFamily.DSeries,
AzureNative.Migrate.AzureVmFamily.Lsv2Series,
AzureNative.Migrate.AzureVmFamily.MSeries,
AzureNative.Migrate.AzureVmFamily.Mdsv2Series,
AzureNative.Migrate.AzureVmFamily.Msv2Series,
AzureNative.Migrate.AzureVmFamily.Mv2Series,
},
Currency = AzureNative.Migrate.AzureCurrency.Unknown,
DiscountPercentage = 6,
EaSubscriptionId = "kwsu",
GroupName = "kuchatur-test",
LinuxAzureHybridUseBenefit = AzureNative.Migrate.AzureHybridUseBenefit.Unknown,
Percentile = AzureNative.Migrate.Percentile.Percentile50,
PerfDataEndTime = "2023-09-26T09:36:48.491Z",
PerfDataStartTime = "2023-09-26T09:36:48.491Z",
ProjectName = "app18700project",
ProvisioningState = AzureNative.Migrate.ProvisioningState.Succeeded,
ReservedInstance = AzureNative.Migrate.AzureReservedInstance.None,
ResourceGroupName = "ayagrawrg",
ScalingFactor = 24,
SizingCriterion = AzureNative.Migrate.AssessmentSizingCriterion.PerformanceBased,
TimeRange = AzureNative.Migrate.TimeRange.Day,
VmUptime = new AzureNative.Migrate.Inputs.VmUptimeArgs
{
DaysPerMonth = 13,
HoursPerDay = 26,
},
});
});
package main
import (
migrate "github.com/pulumi/pulumi-azure-native-sdk/migrate/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := migrate.NewAssessmentsOperation(ctx, "assessmentsOperation", &migrate.AssessmentsOperationArgs{
AssessmentName: pulumi.String("asm1"),
AzureDiskTypes: pulumi.StringArray{
pulumi.String(migrate.AzureDiskTypePremium),
pulumi.String(migrate.AzureDiskTypePremiumV2),
pulumi.String(migrate.AzureDiskTypeStandardSSD),
},
AzureHybridUseBenefit: pulumi.String(migrate.AzureHybridUseBenefitUnknown),
AzureLocation: pulumi.String("njxbwdtsxzhichsnk"),
AzureOfferCode: pulumi.String(migrate.AzureOfferCodeUnknown),
AzurePricingTier: pulumi.String(migrate.AzurePricingTierStandard),
AzureStorageRedundancy: pulumi.String(migrate.AzureStorageRedundancyUnknown),
AzureVmFamilies: pulumi.StringArray{
pulumi.String(migrate.AzureVmFamilyDSeries),
pulumi.String(migrate.AzureVmFamilyLsv2Series),
pulumi.String(migrate.AzureVmFamilyMSeries),
pulumi.String(migrate.AzureVmFamilyMdsv2Series),
pulumi.String(migrate.AzureVmFamilyMsv2Series),
pulumi.String(migrate.AzureVmFamilyMv2Series),
},
Currency: pulumi.String(migrate.AzureCurrencyUnknown),
DiscountPercentage: pulumi.Float64(6),
EaSubscriptionId: pulumi.String("kwsu"),
GroupName: pulumi.String("kuchatur-test"),
LinuxAzureHybridUseBenefit: pulumi.String(migrate.AzureHybridUseBenefitUnknown),
Percentile: pulumi.String(migrate.PercentilePercentile50),
PerfDataEndTime: pulumi.String("2023-09-26T09:36:48.491Z"),
PerfDataStartTime: pulumi.String("2023-09-26T09:36:48.491Z"),
ProjectName: pulumi.String("app18700project"),
ProvisioningState: pulumi.String(migrate.ProvisioningStateSucceeded),
ReservedInstance: pulumi.String(migrate.AzureReservedInstanceNone),
ResourceGroupName: pulumi.String("ayagrawrg"),
ScalingFactor: pulumi.Float64(24),
SizingCriterion: pulumi.String(migrate.AssessmentSizingCriterionPerformanceBased),
TimeRange: pulumi.String(migrate.TimeRangeDay),
VmUptime: &migrate.VmUptimeArgs{
DaysPerMonth: pulumi.Float64(13),
HoursPerDay: pulumi.Float64(26),
},
})
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.AssessmentsOperation;
import com.pulumi.azurenative.migrate.AssessmentsOperationArgs;
import com.pulumi.azurenative.migrate.inputs.VmUptimeArgs;
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 assessmentsOperation = new AssessmentsOperation("assessmentsOperation", AssessmentsOperationArgs.builder()
.assessmentName("asm1")
.azureDiskTypes(
"Premium",
"PremiumV2",
"StandardSSD")
.azureHybridUseBenefit("Unknown")
.azureLocation("njxbwdtsxzhichsnk")
.azureOfferCode("Unknown")
.azurePricingTier("Standard")
.azureStorageRedundancy("Unknown")
.azureVmFamilies(
"D_series",
"Lsv2_series",
"M_series",
"Mdsv2_series",
"Msv2_series",
"Mv2_series")
.currency("Unknown")
.discountPercentage(6.0)
.eaSubscriptionId("kwsu")
.groupName("kuchatur-test")
.linuxAzureHybridUseBenefit("Unknown")
.percentile("Percentile50")
.perfDataEndTime("2023-09-26T09:36:48.491Z")
.perfDataStartTime("2023-09-26T09:36:48.491Z")
.projectName("app18700project")
.provisioningState("Succeeded")
.reservedInstance("None")
.resourceGroupName("ayagrawrg")
.scalingFactor(24.0)
.sizingCriterion("PerformanceBased")
.timeRange("Day")
.vmUptime(VmUptimeArgs.builder()
.daysPerMonth(13.0)
.hoursPerDay(26.0)
.build())
.build());
}
}

Import

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

$ pulumi import azure-native:migrate:AssessmentsOperation asm1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/groups/{groupName}/assessments/{assessmentName}

Properties

Link copied to clipboard

Gets or sets the assessment error summary. This is the number of machines affected by each type of error in this assessment.

Link copied to clipboard
val assessmentType: Output<String>

Assessment type of the assessment.

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard
val azureDiskTypes: Output<List<String>>?

Gets or sets the azure storage type. Premium, Standard etc.

Link copied to clipboard

Gets or sets the user configurable setting to display the azure hybrid use benefit.

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

Azure Location or Azure region where to which the machines will be migrated.

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

Azure Offer Code.

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

Gets or sets Azure Pricing Tier - Free, Basic, etc.

Link copied to clipboard

Gets or sets the Azure Storage Redundancy. Example: Locally Redundant Storage.

Link copied to clipboard
val azureVmFamilies: Output<List<String>>?

Gets or sets the Azure VM families.

Link copied to clipboard

Confidence Rating in Percentage.

Link copied to clipboard

Gets the collection of cost components.

Link copied to clipboard

Date and Time when assessment was created.

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

Currency in which prices should be reported.

Link copied to clipboard

Custom discount percentage.

Link copied to clipboard

Gets the distribution by os name.

Link copied to clipboard

Gets the distribution distribution of sqlInstances by service pack insight.

Link copied to clipboard

Gets the distribution of sqlInstances by support status.

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

Gets or sets enterprise agreement subscription id.

Link copied to clipboard
val groupType: Output<String>

Gets the group type for the assessment.

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

Gets or sets the user configurable setting to display the linux azure hybrid use benefit.

Link copied to clipboard

Gets or sets the aggregate Bandwidth Cost for all machines in the assessment.

Link copied to clipboard

Gets or sets the aggregate Compute Cost for all machines in the assessment.

Link copied to clipboard

Gets or sets the aggregate premium storage cost for all machines in the assessment.

Link copied to clipboard

Gets or sets the aggregate standard SSD storage cost for all the machines in the assessment.

Link copied to clipboard

Gets or sets the aggregate Storage Cost for all machines in the assessment.

Link copied to clipboard

Gets or sets the aggregate ultra storage cost for all machines in the assessment.

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard
val numberOfMachines: Output<Int>

Gets or sets the Number of machines part of the assessment.

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

Percentile of the utilization data values to be considered while assessing machines.

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

Gets or sets the end time to consider performance data for assessment.

Link copied to clipboard

Gets or sets the start time to consider performance data for assessment.

Link copied to clipboard
val pricesTimestamp: Output<String>

Last time when rates were queried.

Link copied to clipboard

The status of the last operation.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val reservedInstance: Output<String>?

Gets or sets the Azure Reserved Instance - 1-Year, 3-Year.

Link copied to clipboard
val scalingFactor: Output<Double>?

Percentage of buffer that user wants on performance metrics when recommending Azure sizes.

Link copied to clipboard
val schemaVersion: Output<String>

Schema version.

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

Assessment sizing criterion.

Link copied to clipboard
val stage: Output<String>

User configurable setting to display the Stage of Assessment.

Link copied to clipboard
val status: Output<String>

Whether assessment is in valid state and all machines have been assessed.

Link copied to clipboard

Gets or sets the Cloud suitability summary for all the machines in the assessment.

Link copied to clipboard

Azure Resource Manager metadata containing createdBy and modifiedBy information.

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

Time Range for which the historic utilization data should be considered for assessment.

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

Date and Time when assessment was last updated.

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

Gets or sets the duration for which the VMs are up in the on-premises environment.