azure-native.recommendationsservice.Modeling
Explore with Pulumi AI
Modeling resource details. Azure REST API version: 2022-02-01. Prior API version in Azure Native 1.x: 2022-02-01.
Other available API versions: 2022-03-01-preview.
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 * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const modeling = new azure_native.recommendationsservice.Modeling("modeling", {
    accountName: "sampleAccount",
    location: "West US",
    modelingName: "c1",
    properties: {
        features: azure_native.recommendationsservice.ModelingFeatures.Standard,
        frequency: azure_native.recommendationsservice.ModelingFrequency.High,
        inputData: {
            connectionString: "https://storageAccount.blob.core.windows.net/container/root",
        },
        size: azure_native.recommendationsservice.ModelingSize.Medium,
    },
    resourceGroupName: "rg",
    tags: {
        Environment: "Prod",
    },
});
import pulumi
import pulumi_azure_native as azure_native
modeling = azure_native.recommendationsservice.Modeling("modeling",
    account_name="sampleAccount",
    location="West US",
    modeling_name="c1",
    properties={
        "features": azure_native.recommendationsservice.ModelingFeatures.STANDARD,
        "frequency": azure_native.recommendationsservice.ModelingFrequency.HIGH,
        "input_data": {
            "connection_string": "https://storageAccount.blob.core.windows.net/container/root",
        },
        "size": azure_native.recommendationsservice.ModelingSize.MEDIUM,
    },
    resource_group_name="rg",
    tags={
        "Environment": "Prod",
    })
resources:
  modeling:
    type: azure-native:recommendationsservice:Modeling
    properties:
      accountName: sampleAccount
      location: West US
      modelingName: c1
      properties:
        features: Standard
        frequency: High
        inputData:
          connectionString: https://storageAccount.blob.core.windows.net/container/root
        size: Medium
      resourceGroupName: rg
      tags:
        Environment: Prod
Create Modeling Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Modeling(name: string, args: ModelingArgs, opts?: CustomResourceOptions);@overload
def Modeling(resource_name: str,
             args: ModelingArgs,
             opts: Optional[ResourceOptions] = None)
@overload
def Modeling(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             account_name: Optional[str] = None,
             resource_group_name: Optional[str] = None,
             location: Optional[str] = None,
             modeling_name: Optional[str] = None,
             properties: Optional[ModelingResourcePropertiesArgs] = None,
             tags: Optional[Mapping[str, str]] = None)func NewModeling(ctx *Context, name string, args ModelingArgs, opts ...ResourceOption) (*Modeling, error)public Modeling(string name, ModelingArgs args, CustomResourceOptions? opts = null)
public Modeling(String name, ModelingArgs args)
public Modeling(String name, ModelingArgs args, CustomResourceOptions options)
type: azure-native:recommendationsservice:Modeling
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ModelingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ModelingArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ModelingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ModelingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ModelingArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var modelingResource = new AzureNative.RecommendationsService.Modeling("modelingResource", new()
{
    AccountName = "string",
    ResourceGroupName = "string",
    Location = "string",
    ModelingName = "string",
    Properties = new AzureNative.RecommendationsService.Inputs.ModelingResourcePropertiesArgs
    {
        Features = "string",
        Frequency = "string",
        InputData = new AzureNative.RecommendationsService.Inputs.ModelingInputDataArgs
        {
            ConnectionString = "string",
        },
        Size = "string",
    },
    Tags = 
    {
        { "string", "string" },
    },
});
example, err := recommendationsservice.NewModeling(ctx, "modelingResource", &recommendationsservice.ModelingArgs{
	AccountName:       pulumi.String("string"),
	ResourceGroupName: pulumi.String("string"),
	Location:          pulumi.String("string"),
	ModelingName:      pulumi.String("string"),
	Properties: &recommendationsservice.ModelingResourcePropertiesArgs{
		Features:  pulumi.String("string"),
		Frequency: pulumi.String("string"),
		InputData: &recommendationsservice.ModelingInputDataArgs{
			ConnectionString: pulumi.String("string"),
		},
		Size: pulumi.String("string"),
	},
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
var modelingResource = new Modeling("modelingResource", ModelingArgs.builder()
    .accountName("string")
    .resourceGroupName("string")
    .location("string")
    .modelingName("string")
    .properties(ModelingResourcePropertiesArgs.builder()
        .features("string")
        .frequency("string")
        .inputData(ModelingInputDataArgs.builder()
            .connectionString("string")
            .build())
        .size("string")
        .build())
    .tags(Map.of("string", "string"))
    .build());
modeling_resource = azure_native.recommendationsservice.Modeling("modelingResource",
    account_name="string",
    resource_group_name="string",
    location="string",
    modeling_name="string",
    properties={
        "features": "string",
        "frequency": "string",
        "input_data": {
            "connection_string": "string",
        },
        "size": "string",
    },
    tags={
        "string": "string",
    })
const modelingResource = new azure_native.recommendationsservice.Modeling("modelingResource", {
    accountName: "string",
    resourceGroupName: "string",
    location: "string",
    modelingName: "string",
    properties: {
        features: "string",
        frequency: "string",
        inputData: {
            connectionString: "string",
        },
        size: "string",
    },
    tags: {
        string: "string",
    },
});
type: azure-native:recommendationsservice:Modeling
properties:
    accountName: string
    location: string
    modelingName: string
    properties:
        features: string
        frequency: string
        inputData:
            connectionString: string
        size: string
    resourceGroupName: string
    tags:
        string: string
Modeling Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Modeling resource accepts the following input properties:
- AccountName string
- The name of the RecommendationsService Account resource.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- Location string
- The geo-location where the resource lives
- ModelingName string
- The name of the Modeling resource.
- Properties
Pulumi.Azure Native. Recommendations Service. Inputs. Modeling Resource Properties 
- Modeling resource properties.
- Dictionary<string, string>
- Resource tags.
- AccountName string
- The name of the RecommendationsService Account resource.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- Location string
- The geo-location where the resource lives
- ModelingName string
- The name of the Modeling resource.
- Properties
ModelingResource Properties Args 
- Modeling resource properties.
- map[string]string
- Resource tags.
- accountName String
- The name of the RecommendationsService Account resource.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- location String
- The geo-location where the resource lives
- modelingName String
- The name of the Modeling resource.
- properties
ModelingResource Properties 
- Modeling resource properties.
- Map<String,String>
- Resource tags.
- accountName string
- The name of the RecommendationsService Account resource.
- resourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- location string
- The geo-location where the resource lives
- modelingName string
- The name of the Modeling resource.
- properties
ModelingResource Properties 
- Modeling resource properties.
- {[key: string]: string}
- Resource tags.
- account_name str
- The name of the RecommendationsService Account resource.
- resource_group_ strname 
- The name of the resource group. The name is case insensitive.
- location str
- The geo-location where the resource lives
- modeling_name str
- The name of the Modeling resource.
- properties
ModelingResource Properties Args 
- Modeling resource properties.
- Mapping[str, str]
- Resource tags.
- accountName String
- The name of the RecommendationsService Account resource.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- location String
- The geo-location where the resource lives
- modelingName String
- The name of the Modeling resource.
- properties Property Map
- Modeling resource properties.
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the Modeling resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- SystemData Pulumi.Azure Native. Recommendations Service. Outputs. System Data Response 
- Metadata pertaining to creation and last modification of the resource.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- SystemData SystemData Response 
- Metadata pertaining to creation and last modification of the resource.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- systemData SystemData Response 
- Metadata pertaining to creation and last modification of the resource.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- systemData SystemData Response 
- Metadata pertaining to creation and last modification of the resource.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- system_data SystemData Response 
- Metadata pertaining to creation and last modification of the resource.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- systemData Property Map
- Metadata pertaining to creation and last modification of the resource.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
ModelingFeatures, ModelingFeaturesArgs    
- Basic
- Basic
- Standard
- Standard
- Premium
- Premium
- ModelingFeatures Basic 
- Basic
- ModelingFeatures Standard 
- Standard
- ModelingFeatures Premium 
- Premium
- Basic
- Basic
- Standard
- Standard
- Premium
- Premium
- Basic
- Basic
- Standard
- Standard
- Premium
- Premium
- BASIC
- Basic
- STANDARD
- Standard
- PREMIUM
- Premium
- "Basic"
- Basic
- "Standard"
- Standard
- "Premium"
- Premium
ModelingFrequency, ModelingFrequencyArgs    
- Low
- Low
- Medium
- Medium
- High
- High
- ModelingFrequency Low 
- Low
- ModelingFrequency Medium 
- Medium
- ModelingFrequency High 
- High
- Low
- Low
- Medium
- Medium
- High
- High
- Low
- Low
- Medium
- Medium
- High
- High
- LOW
- Low
- MEDIUM
- Medium
- HIGH
- High
- "Low"
- Low
- "Medium"
- Medium
- "High"
- High
ModelingInputData, ModelingInputDataArgs      
- ConnectionString string
- Connection string to raw input data.
- ConnectionString string
- Connection string to raw input data.
- connectionString String
- Connection string to raw input data.
- connectionString string
- Connection string to raw input data.
- connection_string str
- Connection string to raw input data.
- connectionString String
- Connection string to raw input data.
ModelingInputDataResponse, ModelingInputDataResponseArgs        
- ConnectionString string
- Connection string to raw input data.
- ConnectionString string
- Connection string to raw input data.
- connectionString String
- Connection string to raw input data.
- connectionString string
- Connection string to raw input data.
- connection_string str
- Connection string to raw input data.
- connectionString String
- Connection string to raw input data.
ModelingResourceProperties, ModelingResourcePropertiesArgs      
- Features
string | Pulumi.Azure Native. Recommendations Service. Modeling Features 
- Modeling features controls the set of supported scenarios\models being computed. This can only be set at Modeling creation.
- Frequency
string | Pulumi.Azure Native. Recommendations Service. Modeling Frequency 
- Modeling frequency controls the modeling compute frequency.
- InputData Pulumi.Azure Native. Recommendations Service. Inputs. Modeling Input Data 
- The configuration to raw CDM data to be used as Modeling resource input.
- Size
string | Pulumi.Azure Native. Recommendations Service. Modeling Size 
- Modeling size controls the maximum supported input data size.
- Features
string | ModelingFeatures 
- Modeling features controls the set of supported scenarios\models being computed. This can only be set at Modeling creation.
- Frequency
string | ModelingFrequency 
- Modeling frequency controls the modeling compute frequency.
- InputData ModelingInput Data 
- The configuration to raw CDM data to be used as Modeling resource input.
- Size
string | ModelingSize 
- Modeling size controls the maximum supported input data size.
- features
String | ModelingFeatures 
- Modeling features controls the set of supported scenarios\models being computed. This can only be set at Modeling creation.
- frequency
String | ModelingFrequency 
- Modeling frequency controls the modeling compute frequency.
- inputData ModelingInput Data 
- The configuration to raw CDM data to be used as Modeling resource input.
- size
String | ModelingSize 
- Modeling size controls the maximum supported input data size.
- features
string | ModelingFeatures 
- Modeling features controls the set of supported scenarios\models being computed. This can only be set at Modeling creation.
- frequency
string | ModelingFrequency 
- Modeling frequency controls the modeling compute frequency.
- inputData ModelingInput Data 
- The configuration to raw CDM data to be used as Modeling resource input.
- size
string | ModelingSize 
- Modeling size controls the maximum supported input data size.
- features
str | ModelingFeatures 
- Modeling features controls the set of supported scenarios\models being computed. This can only be set at Modeling creation.
- frequency
str | ModelingFrequency 
- Modeling frequency controls the modeling compute frequency.
- input_data ModelingInput Data 
- The configuration to raw CDM data to be used as Modeling resource input.
- size
str | ModelingSize 
- Modeling size controls the maximum supported input data size.
- features String | "Basic" | "Standard" | "Premium"
- Modeling features controls the set of supported scenarios\models being computed. This can only be set at Modeling creation.
- frequency String | "Low" | "Medium" | "High"
- Modeling frequency controls the modeling compute frequency.
- inputData Property Map
- The configuration to raw CDM data to be used as Modeling resource input.
- size String | "Small" | "Medium" | "Large"
- Modeling size controls the maximum supported input data size.
ModelingResourceResponseProperties, ModelingResourceResponsePropertiesArgs        
- ProvisioningState string
- The resource provisioning state.
- Features string
- Modeling features controls the set of supported scenarios\models being computed. This can only be set at Modeling creation.
- Frequency string
- Modeling frequency controls the modeling compute frequency.
- InputData Pulumi.Azure Native. Recommendations Service. Inputs. Modeling Input Data Response 
- The configuration to raw CDM data to be used as Modeling resource input.
- Size string
- Modeling size controls the maximum supported input data size.
- ProvisioningState string
- The resource provisioning state.
- Features string
- Modeling features controls the set of supported scenarios\models being computed. This can only be set at Modeling creation.
- Frequency string
- Modeling frequency controls the modeling compute frequency.
- InputData ModelingInput Data Response 
- The configuration to raw CDM data to be used as Modeling resource input.
- Size string
- Modeling size controls the maximum supported input data size.
- provisioningState String
- The resource provisioning state.
- features String
- Modeling features controls the set of supported scenarios\models being computed. This can only be set at Modeling creation.
- frequency String
- Modeling frequency controls the modeling compute frequency.
- inputData ModelingInput Data Response 
- The configuration to raw CDM data to be used as Modeling resource input.
- size String
- Modeling size controls the maximum supported input data size.
- provisioningState string
- The resource provisioning state.
- features string
- Modeling features controls the set of supported scenarios\models being computed. This can only be set at Modeling creation.
- frequency string
- Modeling frequency controls the modeling compute frequency.
- inputData ModelingInput Data Response 
- The configuration to raw CDM data to be used as Modeling resource input.
- size string
- Modeling size controls the maximum supported input data size.
- provisioning_state str
- The resource provisioning state.
- features str
- Modeling features controls the set of supported scenarios\models being computed. This can only be set at Modeling creation.
- frequency str
- Modeling frequency controls the modeling compute frequency.
- input_data ModelingInput Data Response 
- The configuration to raw CDM data to be used as Modeling resource input.
- size str
- Modeling size controls the maximum supported input data size.
- provisioningState String
- The resource provisioning state.
- features String
- Modeling features controls the set of supported scenarios\models being computed. This can only be set at Modeling creation.
- frequency String
- Modeling frequency controls the modeling compute frequency.
- inputData Property Map
- The configuration to raw CDM data to be used as Modeling resource input.
- size String
- Modeling size controls the maximum supported input data size.
ModelingSize, ModelingSizeArgs    
- Small
- Small
- Medium
- Medium
- Large
- Large
- ModelingSize Small 
- Small
- ModelingSize Medium 
- Medium
- ModelingSize Large 
- Large
- Small
- Small
- Medium
- Medium
- Large
- Large
- Small
- Small
- Medium
- Medium
- Large
- Large
- SMALL
- Small
- MEDIUM
- Medium
- LARGE
- Large
- "Small"
- Small
- "Medium"
- Medium
- "Large"
- Large
SystemDataResponse, SystemDataResponseArgs      
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
- createdAt string
- The timestamp of resource creation (UTC).
- createdBy string
- The identity that created the resource.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The timestamp of resource last modification (UTC)
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- The type of identity that last modified the resource.
- created_at str
- The timestamp of resource creation (UTC).
- created_by str
- The identity that created the resource.
- created_by_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The timestamp of resource last modification (UTC)
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
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} 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0