Modeling

class Modeling : KotlinCustomResource

Modeling resource details. Uses Azure REST API version 2022-03-01-preview. In version 2.x of the Azure Native provider, it used API version 2022-02-01. Other available API versions: 2022-02-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native recommendationsservice [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

Create or update Modeling resource

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var modeling = new AzureNative.RecommendationsService.Modeling("modeling", new()
{
AccountName = "sampleAccount",
Location = "West US",
ModelingName = "c1",
Properties = new AzureNative.RecommendationsService.Inputs.ModelingResourcePropertiesArgs
{
Features = AzureNative.RecommendationsService.ModelingFeatures.Standard,
Frequency = AzureNative.RecommendationsService.ModelingFrequency.High,
InputData = new AzureNative.RecommendationsService.Inputs.ModelingInputDataArgs
{
ConnectionString = "https://storageAccount.blob.core.windows.net/container/root",
},
Size = AzureNative.RecommendationsService.ModelingSize.Medium,
},
ResourceGroupName = "rg",
Tags =
{
{ "Environment", "Prod" },
},
});
});
package main
import (
recommendationsservice "github.com/pulumi/pulumi-azure-native-sdk/recommendationsservice/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := recommendationsservice.NewModeling(ctx, "modeling", &recommendationsservice.ModelingArgs{
AccountName: pulumi.String("sampleAccount"),
Location: pulumi.String("West US"),
ModelingName: pulumi.String("c1"),
Properties: &recommendationsservice.ModelingResourcePropertiesArgs{
Features: pulumi.String(recommendationsservice.ModelingFeaturesStandard),
Frequency: pulumi.String(recommendationsservice.ModelingFrequencyHigh),
InputData: &recommendationsservice.ModelingInputDataArgs{
ConnectionString: pulumi.String("https://storageAccount.blob.core.windows.net/container/root"),
},
Size: pulumi.String(recommendationsservice.ModelingSizeMedium),
},
ResourceGroupName: pulumi.String("rg"),
Tags: pulumi.StringMap{
"Environment": pulumi.String("Prod"),
},
})
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.recommendationsservice.Modeling;
import com.pulumi.azurenative.recommendationsservice.ModelingArgs;
import com.pulumi.azurenative.recommendationsservice.inputs.ModelingResourcePropertiesArgs;
import com.pulumi.azurenative.recommendationsservice.inputs.ModelingInputDataArgs;
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 modeling = new Modeling("modeling", ModelingArgs.builder()
.accountName("sampleAccount")
.location("West US")
.modelingName("c1")
.properties(ModelingResourcePropertiesArgs.builder()
.features("Standard")
.frequency("High")
.inputData(ModelingInputDataArgs.builder()
.connectionString("https://storageAccount.blob.core.windows.net/container/root")
.build())
.size("Medium")
.build())
.resourceGroupName("rg")
.tags(Map.of("Environment", "Prod"))
.build());
}
}

Import

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

$ pulumi import azure-native:recommendationsservice:Modeling c1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecommendationsService/accounts/{accountName}/modeling/{modelingName}

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

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

The geo-location where the resource lives

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard

Modeling resource properties.

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

Metadata pertaining to creation and last modification of the resource.

Link copied to clipboard
val tags: Output<Map<String, String>>?

Resource tags.

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>