Modeling - Create Or Update
Creates or updates Modeling resource.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecommendationsService/accounts/{accountName}/modeling/{modelingName}?api-version=2022-02-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
account
|
path | True |
string |
The name of the RecommendationsService Account resource. |
modeling
|
path | True |
string |
The name of the Modeling resource. |
resource
|
path | True |
string |
The name of the resource group. The name is case insensitive. |
subscription
|
path | True |
string |
The ID of the target subscription. |
api-version
|
query | True |
string |
The API version to use for this operation. |
Request Body
Name | Required | Type | Description |
---|---|---|---|
location | True |
string |
The geo-location where the resource lives |
properties |
Modeling resource properties. |
||
tags |
object |
Resource tags. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
Successful. |
|
201 Created |
Modeling resource is being created or updated. |
|
Other Status Codes |
Error response describing why the operation failed. |
Security
azure_auth
Azure Active Directory OAuth2 Flow.
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | Impersonate your user account. |
Examples
Create or update Modeling resource
Sample Request
PUT https://management.azure.com/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/rg/providers/Microsoft.RecommendationsService/accounts/sampleAccount/modeling/c1?api-version=2022-02-01
{
"location": "West US",
"tags": {
"Environment": "Prod"
},
"properties": {
"features": "Standard",
"frequency": "High",
"size": "Medium",
"inputData": {
"connectionString": "https://storageAccount.blob.core.windows.net/container/root"
}
}
}
Sample Response
{
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/rg/providers/Microsoft.RecommendationsService/accounts/sampleAccount/modeling/c1",
"name": "c1",
"type": "Microsoft.RecommendationsService/accounts/modeling",
"location": "West US",
"tags": {
"Environment": "Prod"
},
"systemData": {},
"properties": {
"features": "Standard",
"frequency": "High",
"size": "Medium",
"inputData": {
"connectionString": "https://storageAccount.blob.core.windows.net/container/root"
},
"provisioningState": "Succeeded"
}
}
{
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/rg/providers/Microsoft.RecommendationsService/accounts/sampleAccount/modeling/c1",
"name": "c1",
"type": "Microsoft.RecommendationsService/accounts/modeling",
"location": "West US",
"tags": {
"Environment": "Prod"
},
"systemData": {},
"properties": {
"features": "Standard",
"frequency": "High",
"size": "Medium",
"inputData": {
"connectionString": "https://storageAccount.blob.core.windows.net/container/root"
},
"provisioningState": "Accepted"
}
}
Definitions
Name | Description |
---|---|
Account |
Account configuration. This can only be set at RecommendationsService Account creation. |
Cors |
CORS details. |
created |
The type of identity that created the resource. |
Endpoint |
Service endpoints authentication details. |
Error |
The resource management error additional info. |
Error |
The error detail. |
Error |
Error response |
Modeling |
Modeling features controls the set of supported scenarios\models being computed. This can only be set at Modeling creation. |
Modeling |
Modeling frequency controls the modeling compute frequency. |
Modeling |
The configuration to raw CDM data to be used as Modeling resource input. |
Modeling |
Modeling resource details. |
Modeling |
Modeling size controls the maximum supported input data size. |
principal |
AAD principal type. |
Properties |
Account resource properties. |
system |
Metadata pertaining to creation and last modification of the resource. |
AccountConfiguration
Account configuration. This can only be set at RecommendationsService Account creation.
Name | Type | Description |
---|---|---|
Capacity |
string |
|
Free |
string |
CorsRule
CORS details.
Name | Type | Description |
---|---|---|
allowedHeaders |
string[] |
The request headers that the origin domain may specify on the CORS request. |
allowedMethods |
string[] |
The methods (HTTP request verbs) that the origin domain may use for a CORS request. |
allowedOrigins |
string[] |
The origin domains that are permitted to make a request against the service via CORS. |
exposedHeaders |
string[] |
The response headers to expose to CORS clients. |
maxAgeInSeconds |
integer |
The number of seconds that the client/browser should cache a preflight response. |
createdByType
The type of identity that created the resource.
Name | Type | Description |
---|---|---|
Application |
string |
|
Key |
string |
|
ManagedIdentity |
string |
|
User |
string |
EndpointAuthentication
Service endpoints authentication details.
Name | Type | Description |
---|---|---|
aadTenantID |
string |
AAD tenant ID. |
principalID |
string |
AAD principal ID. |
principalType |
AAD principal type. |
ErrorAdditionalInfo
The resource management error additional info.
Name | Type | Description |
---|---|---|
info |
object |
The additional info. |
type |
string |
The additional info type. |
ErrorDetail
The error detail.
Name | Type | Description |
---|---|---|
additionalInfo |
The error additional info. |
|
code |
string |
The error code. |
details |
The error details. |
|
message |
string |
The error message. |
target |
string |
The error target. |
ErrorResponse
Error response
Name | Type | Description |
---|---|---|
error |
The error object. |
ModelingFeatures
Modeling features controls the set of supported scenarios\models being computed. This can only be set at Modeling creation.
Name | Type | Description |
---|---|---|
Basic |
string |
|
Premium |
string |
|
Standard |
string |
ModelingFrequency
Modeling frequency controls the modeling compute frequency.
Name | Type | Description |
---|---|---|
High |
string |
|
Low |
string |
|
Medium |
string |
ModelingInputData
The configuration to raw CDM data to be used as Modeling resource input.
Name | Type | Description |
---|---|---|
connectionString |
string |
Connection string to raw input data. |
ModelingResource
Modeling resource details.
Name | Type | Description |
---|---|---|
id |
string |
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
location |
string |
The geo-location where the resource lives |
name |
string |
The name of the resource |
properties |
Modeling resource properties. |
|
systemData |
Metadata pertaining to creation and last modification of the resource. |
|
tags |
object |
Resource tags. |
type |
string |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
ModelingSize
Modeling size controls the maximum supported input data size.
Name | Type | Description |
---|---|---|
Large |
string |
|
Medium |
string |
|
Small |
string |
principalType
AAD principal type.
Name | Type | Description |
---|---|---|
Application |
string |
|
User |
string |
Properties
Account resource properties.
Name | Type | Description |
---|---|---|
configuration |
Account configuration. This can only be set at RecommendationsService Account creation. |
|
cors |
Cors |
The list of CORS details. |
endpointAuthentications |
The list of service endpoints authentication details. |
|
provisioningState |
string |
The resource provisioning state. |
reportsConnectionString |
string |
Connection string to write Accounts reports to. |
systemData
Metadata pertaining to creation and last modification of the resource.
Name | Type | Description |
---|---|---|
createdAt |
string |
The timestamp of resource creation (UTC). |
createdBy |
string |
The identity that created the resource. |
createdByType |
The type of identity that created the resource. |
|
lastModifiedAt |
string |
The timestamp of resource last modification (UTC) |
lastModifiedBy |
string |
The identity that last modified the resource. |
lastModifiedByType |
The type of identity that last modified the resource. |