WebAppAssessmentV2Operation

class WebAppAssessmentV2Operation : KotlinCustomResource

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}

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 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 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

Gets or sets a value indicating azure security offering type.

Link copied to clipboard

Confidence Rating in Percentage.

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 or sets user configurable discovered entity settings.

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

Gets or sets the Enterprise agreement subscription id.

Link copied to clipboard

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<String>?

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

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
val name: Output<String>

The name of the resource

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>?

Reserved instance.

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

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>