WebAppAssessmentV2OperationArgs

data class WebAppAssessmentV2OperationArgs(val appSvcContainerSettings: Output<AppSvcContainerSettingsArgs>? = null, val appSvcNativeSettings: Output<AppSvcNativeSettingsArgs>? = null, val assessmentName: Output<String>? = null, val assessmentType: Output<Either<String, AssessmentType>>? = null, val azureLocation: Output<String>? = null, val azureOfferCode: Output<Either<String, AzureOfferCode>>? = null, val azureSecurityOfferingType: Output<Either<String, AzureSecurityOfferingType>>? = null, val confidenceRatingInPercentage: Output<Double>? = null, val currency: Output<Either<String, AzureCurrency>>? = null, val discountPercentage: Output<Double>? = null, val discoveredEntityLightSummary: Output<DiscoveredEntityLightSummaryArgs>? = null, val eaSubscriptionId: Output<String>? = null, val entityUptime: Output<EntityUptimeArgs>? = null, val environmentType: Output<Either<String, EnvironmentType>>? = null, val groupName: Output<String>? = null, val groupType: Output<Either<String, GroupType>>? = null, val percentile: Output<Either<String, Percentile>>? = null, val perfDataEndTime: Output<String>? = null, val perfDataStartTime: Output<String>? = null, val projectName: Output<String>? = null, val reservedInstance: Output<Either<String, AzureReservedInstance>>? = null, val resourceGroupName: Output<String>? = null, val scalingFactor: Output<Double>? = null, val sizingCriterion: Output<Either<String, AssessmentSizingCriterion>>? = null, val timeRange: Output<Either<String, TimeRange>>? = null) : ConvertibleToJava<WebAppAssessmentV2OperationArgs>

Web app Assessment REST 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-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

WebAppAssessmentV2Operations_Create_MaximumSet_Gen

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var webAppAssessmentV2Operation = new AzureNative.Migrate.WebAppAssessmentV2Operation("webAppAssessmentV2Operation", new()
{
AppSvcContainerSettings = new AzureNative.Migrate.Inputs.AppSvcContainerSettingsArgs
{
IsolationRequired = true,
},
AppSvcNativeSettings = new AzureNative.Migrate.Inputs.AppSvcNativeSettingsArgs
{
IsolationRequired = true,
},
AssessmentName = "anraghun-selfhost-v2",
AssessmentType = AzureNative.Migrate.AssessmentType.WebAppAssessment,
AzureLocation = "UkWest",
AzureOfferCode = AzureNative.Migrate.AzureOfferCode.Msazr0003P,
AzureSecurityOfferingType = AzureNative.Migrate.AzureSecurityOfferingType.NO,
ConfidenceRatingInPercentage = 13,
Currency = AzureNative.Migrate.AzureCurrency.USD,
DiscountPercentage = 13,
DiscoveredEntityLightSummary = new AzureNative.Migrate.Inputs.DiscoveredEntityLightSummaryArgs
{
NumberOfMachines = 27,
NumberOfServers = 5,
NumberOfWebApps = 23,
},
EaSubscriptionId = "",
EntityUptime = new AzureNative.Migrate.Inputs.EntityUptimeArgs
{
DaysPerMonth = 18,
HoursPerDay = 13,
},
EnvironmentType = AzureNative.Migrate.EnvironmentType.Production,
GroupName = "anraghun-selfhost-v2",
GroupType = AzureNative.Migrate.GroupType.Default,
Percentile = AzureNative.Migrate.Percentile.Percentile50,
PerfDataEndTime = "2023-11-03T05:42:45.496Z",
PerfDataStartTime = "2023-11-03T05:42:45.496Z",
ProjectName = "sumukk-ccy-bcs4557project",
ReservedInstance = AzureNative.Migrate.AzureReservedInstance.None,
ResourceGroupName = "rgopenapi",
ScalingFactor = 17,
SizingCriterion = AzureNative.Migrate.AssessmentSizingCriterion.PerformanceBased,
TimeRange = AzureNative.Migrate.TimeRange.Day,
});
});
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.NewWebAppAssessmentV2Operation(ctx, "webAppAssessmentV2Operation", &migrate.WebAppAssessmentV2OperationArgs{
AppSvcContainerSettings: &migrate.AppSvcContainerSettingsArgs{
IsolationRequired: pulumi.Bool(true),
},
AppSvcNativeSettings: &migrate.AppSvcNativeSettingsArgs{
IsolationRequired: pulumi.Bool(true),
},
AssessmentName: pulumi.String("anraghun-selfhost-v2"),
AssessmentType: pulumi.String(migrate.AssessmentTypeWebAppAssessment),
AzureLocation: pulumi.String("UkWest"),
AzureOfferCode: pulumi.String(migrate.AzureOfferCodeMsazr0003P),
AzureSecurityOfferingType: pulumi.String(migrate.AzureSecurityOfferingTypeNO),
ConfidenceRatingInPercentage: pulumi.Float64(13),
Currency: pulumi.String(migrate.AzureCurrencyUSD),
DiscountPercentage: pulumi.Float64(13),
DiscoveredEntityLightSummary: &migrate.DiscoveredEntityLightSummaryArgs{
NumberOfMachines: pulumi.Int(27),
NumberOfServers: pulumi.Int(5),
NumberOfWebApps: pulumi.Int(23),
},
EaSubscriptionId: pulumi.String(""),
EntityUptime: &migrate.EntityUptimeArgs{
DaysPerMonth: pulumi.Int(18),
HoursPerDay: pulumi.Int(13),
},
EnvironmentType: pulumi.String(migrate.EnvironmentTypeProduction),
GroupName: pulumi.String("anraghun-selfhost-v2"),
GroupType: pulumi.String(migrate.GroupTypeDefault),
Percentile: pulumi.String(migrate.PercentilePercentile50),
PerfDataEndTime: pulumi.String("2023-11-03T05:42:45.496Z"),
PerfDataStartTime: pulumi.String("2023-11-03T05:42:45.496Z"),
ProjectName: pulumi.String("sumukk-ccy-bcs4557project"),
ReservedInstance: pulumi.String(migrate.AzureReservedInstanceNone),
ResourceGroupName: pulumi.String("rgopenapi"),
ScalingFactor: pulumi.Float64(17),
SizingCriterion: pulumi.String(migrate.AssessmentSizingCriterionPerformanceBased),
TimeRange: pulumi.String(migrate.TimeRangeDay),
})
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.WebAppAssessmentV2Operation;
import com.pulumi.azurenative.migrate.WebAppAssessmentV2OperationArgs;
import com.pulumi.azurenative.migrate.inputs.AppSvcContainerSettingsArgs;
import com.pulumi.azurenative.migrate.inputs.AppSvcNativeSettingsArgs;
import com.pulumi.azurenative.migrate.inputs.DiscoveredEntityLightSummaryArgs;
import com.pulumi.azurenative.migrate.inputs.EntityUptimeArgs;
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 webAppAssessmentV2Operation = new WebAppAssessmentV2Operation("webAppAssessmentV2Operation", WebAppAssessmentV2OperationArgs.builder()
.appSvcContainerSettings(AppSvcContainerSettingsArgs.builder()
.isolationRequired(true)
.build())
.appSvcNativeSettings(AppSvcNativeSettingsArgs.builder()
.isolationRequired(true)
.build())
.assessmentName("anraghun-selfhost-v2")
.assessmentType("WebAppAssessment")
.azureLocation("UkWest")
.azureOfferCode("MSAZR0003P")
.azureSecurityOfferingType("NO")
.confidenceRatingInPercentage(13.0)
.currency("USD")
.discountPercentage(13.0)
.discoveredEntityLightSummary(DiscoveredEntityLightSummaryArgs.builder()
.numberOfMachines(27)
.numberOfServers(5)
.numberOfWebApps(23)
.build())
.eaSubscriptionId("")
.entityUptime(EntityUptimeArgs.builder()
.daysPerMonth(18)
.hoursPerDay(13)
.build())
.environmentType("Production")
.groupName("anraghun-selfhost-v2")
.groupType("Default")
.percentile("Percentile50")
.perfDataEndTime("2023-11-03T05:42:45.496Z")
.perfDataStartTime("2023-11-03T05:42:45.496Z")
.projectName("sumukk-ccy-bcs4557project")
.reservedInstance("None")
.resourceGroupName("rgopenapi")
.scalingFactor(17.0)
.sizingCriterion("PerformanceBased")
.timeRange("Day")
.build());
}
}

Import

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

$ pulumi import azure-native:migrate:WebAppAssessmentV2Operation anraghun-v2-test /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/groups/{groupName}/webAppAssessments/{assessmentName}

Constructors

Link copied to clipboard
constructor(appSvcContainerSettings: Output<AppSvcContainerSettingsArgs>? = null, appSvcNativeSettings: Output<AppSvcNativeSettingsArgs>? = null, assessmentName: Output<String>? = null, assessmentType: Output<Either<String, AssessmentType>>? = null, azureLocation: Output<String>? = null, azureOfferCode: Output<Either<String, AzureOfferCode>>? = null, azureSecurityOfferingType: Output<Either<String, AzureSecurityOfferingType>>? = null, confidenceRatingInPercentage: Output<Double>? = null, currency: Output<Either<String, AzureCurrency>>? = null, discountPercentage: Output<Double>? = null, discoveredEntityLightSummary: Output<DiscoveredEntityLightSummaryArgs>? = null, eaSubscriptionId: Output<String>? = null, entityUptime: Output<EntityUptimeArgs>? = null, environmentType: Output<Either<String, EnvironmentType>>? = null, groupName: Output<String>? = null, groupType: Output<Either<String, GroupType>>? = null, percentile: Output<Either<String, Percentile>>? = null, perfDataEndTime: Output<String>? = null, perfDataStartTime: Output<String>? = null, projectName: Output<String>? = null, reservedInstance: Output<Either<String, AzureReservedInstance>>? = null, resourceGroupName: Output<String>? = null, scalingFactor: Output<Double>? = null, sizingCriterion: Output<Either<String, AssessmentSizingCriterion>>? = null, timeRange: Output<Either<String, TimeRange>>? = null)

Properties

Link copied to clipboard

Gets or sets user configurable app service container database settings.

Link copied to clipboard

Gets or sets user configurable app service native settings.

Link copied to clipboard
val assessmentName: Output<String>? = null

Web app Assessment arm name.

Link copied to clipboard
val assessmentType: Output<Either<String, AssessmentType>>? = null

Assessment type of the assessment.

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

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

Link copied to clipboard
val azureOfferCode: Output<Either<String, AzureOfferCode>>? = null

Azure Offer Code.

Link copied to clipboard

Gets or sets a value indicating azure security offering type.

Link copied to clipboard

Confidence Rating in Percentage.

Link copied to clipboard
val currency: Output<Either<String, AzureCurrency>>? = null

Currency in which prices should be reported.

Link copied to clipboard
val discountPercentage: Output<Double>? = null

Custom discount percentage.

Link copied to clipboard

Gets or sets user configurable discovered entity settings.

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

Gets or sets the Enterprise agreement subscription id.

Link copied to clipboard
val entityUptime: Output<EntityUptimeArgs>? = null

Gets or sets the duration for which the entity (Web app, VMs) are up in the on-premises environment.

Link copied to clipboard
val environmentType: Output<Either<String, EnvironmentType>>? = null

Gets or sets user configurable setting to display the environment type.

Link copied to clipboard
val groupName: Output<String>? = null

Group ARM name

Link copied to clipboard
val groupType: Output<Either<String, GroupType>>? = null

Gets the group type for the assessment.

Link copied to clipboard
val percentile: Output<Either<String, Percentile>>? = null

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

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

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

Link copied to clipboard
val perfDataStartTime: Output<String>? = null

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

Link copied to clipboard
val projectName: Output<String>? = null

Assessment Project Name

Link copied to clipboard
val reservedInstance: Output<Either<String, AzureReservedInstance>>? = null

Reserved instance.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

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

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

Link copied to clipboard
val sizingCriterion: Output<Either<String, AssessmentSizingCriterion>>? = null

Assessment sizing criterion.

Link copied to clipboard
val timeRange: Output<Either<String, TimeRange>>? = null

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

Functions

Link copied to clipboard
open override fun toJava(): WebAppAssessmentV2OperationArgs