1. Packages
  2. Azure Native
  3. API Docs
  4. datalakeanalytics
  5. ComputePolicy
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.1.0 published on Tuesday, Apr 8, 2025 by Pulumi

azure-native.datalakeanalytics.ComputePolicy

Explore with Pulumi AI

This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.1.0 published on Tuesday, Apr 8, 2025 by Pulumi

Data Lake Analytics compute policy information.

Uses Azure REST API version 2019-11-01-preview. In version 2.x of the Azure Native provider, it used API version 2019-11-01-preview.

Example Usage

Creates or updates the specified compute policy

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var computePolicy = new AzureNative.DataLakeAnalytics.ComputePolicy("computePolicy", new()
    {
        AccountName = "contosoadla",
        ComputePolicyName = "test_policy",
        MaxDegreeOfParallelismPerJob = 10,
        MinPriorityPerJob = 30,
        ObjectId = "776b9091-8916-4638-87f7-9c989a38da98",
        ObjectType = AzureNative.DataLakeAnalytics.AADObjectType.User,
        ResourceGroupName = "contosorg",
    });

});
Copy
package main

import (
	datalakeanalytics "github.com/pulumi/pulumi-azure-native-sdk/datalakeanalytics/v3"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := datalakeanalytics.NewComputePolicy(ctx, "computePolicy", &datalakeanalytics.ComputePolicyArgs{
			AccountName:                  pulumi.String("contosoadla"),
			ComputePolicyName:            pulumi.String("test_policy"),
			MaxDegreeOfParallelismPerJob: pulumi.Int(10),
			MinPriorityPerJob:            pulumi.Int(30),
			ObjectId:                     pulumi.String("776b9091-8916-4638-87f7-9c989a38da98"),
			ObjectType:                   pulumi.String(datalakeanalytics.AADObjectTypeUser),
			ResourceGroupName:            pulumi.String("contosorg"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.datalakeanalytics.ComputePolicy;
import com.pulumi.azurenative.datalakeanalytics.ComputePolicyArgs;
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 computePolicy = new ComputePolicy("computePolicy", ComputePolicyArgs.builder()
            .accountName("contosoadla")
            .computePolicyName("test_policy")
            .maxDegreeOfParallelismPerJob(10)
            .minPriorityPerJob(30)
            .objectId("776b9091-8916-4638-87f7-9c989a38da98")
            .objectType("User")
            .resourceGroupName("contosorg")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const computePolicy = new azure_native.datalakeanalytics.ComputePolicy("computePolicy", {
    accountName: "contosoadla",
    computePolicyName: "test_policy",
    maxDegreeOfParallelismPerJob: 10,
    minPriorityPerJob: 30,
    objectId: "776b9091-8916-4638-87f7-9c989a38da98",
    objectType: azure_native.datalakeanalytics.AADObjectType.User,
    resourceGroupName: "contosorg",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

compute_policy = azure_native.datalakeanalytics.ComputePolicy("computePolicy",
    account_name="contosoadla",
    compute_policy_name="test_policy",
    max_degree_of_parallelism_per_job=10,
    min_priority_per_job=30,
    object_id="776b9091-8916-4638-87f7-9c989a38da98",
    object_type=azure_native.datalakeanalytics.AADObjectType.USER,
    resource_group_name="contosorg")
Copy
resources:
  computePolicy:
    type: azure-native:datalakeanalytics:ComputePolicy
    properties:
      accountName: contosoadla
      computePolicyName: test_policy
      maxDegreeOfParallelismPerJob: 10
      minPriorityPerJob: 30
      objectId: 776b9091-8916-4638-87f7-9c989a38da98
      objectType: User
      resourceGroupName: contosorg
Copy

Create ComputePolicy Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ComputePolicy(name: string, args: ComputePolicyArgs, opts?: CustomResourceOptions);
@overload
def ComputePolicy(resource_name: str,
                  args: ComputePolicyArgs,
                  opts: Optional[ResourceOptions] = None)

@overload
def ComputePolicy(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  account_name: Optional[str] = None,
                  object_id: Optional[str] = None,
                  object_type: Optional[Union[str, AADObjectType]] = None,
                  resource_group_name: Optional[str] = None,
                  compute_policy_name: Optional[str] = None,
                  max_degree_of_parallelism_per_job: Optional[int] = None,
                  min_priority_per_job: Optional[int] = None)
func NewComputePolicy(ctx *Context, name string, args ComputePolicyArgs, opts ...ResourceOption) (*ComputePolicy, error)
public ComputePolicy(string name, ComputePolicyArgs args, CustomResourceOptions? opts = null)
public ComputePolicy(String name, ComputePolicyArgs args)
public ComputePolicy(String name, ComputePolicyArgs args, CustomResourceOptions options)
type: azure-native:datalakeanalytics:ComputePolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ComputePolicyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ComputePolicyArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ComputePolicyArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ComputePolicyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ComputePolicyArgs
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 computePolicyResource = new AzureNative.DataLakeAnalytics.ComputePolicy("computePolicyResource", new()
{
    AccountName = "string",
    ObjectId = "string",
    ObjectType = "string",
    ResourceGroupName = "string",
    ComputePolicyName = "string",
    MaxDegreeOfParallelismPerJob = 0,
    MinPriorityPerJob = 0,
});
Copy
example, err := datalakeanalytics.NewComputePolicy(ctx, "computePolicyResource", &datalakeanalytics.ComputePolicyArgs{
	AccountName:                  pulumi.String("string"),
	ObjectId:                     pulumi.String("string"),
	ObjectType:                   pulumi.String("string"),
	ResourceGroupName:            pulumi.String("string"),
	ComputePolicyName:            pulumi.String("string"),
	MaxDegreeOfParallelismPerJob: pulumi.Int(0),
	MinPriorityPerJob:            pulumi.Int(0),
})
Copy
var computePolicyResource = new ComputePolicy("computePolicyResource", ComputePolicyArgs.builder()
    .accountName("string")
    .objectId("string")
    .objectType("string")
    .resourceGroupName("string")
    .computePolicyName("string")
    .maxDegreeOfParallelismPerJob(0)
    .minPriorityPerJob(0)
    .build());
Copy
compute_policy_resource = azure_native.datalakeanalytics.ComputePolicy("computePolicyResource",
    account_name="string",
    object_id="string",
    object_type="string",
    resource_group_name="string",
    compute_policy_name="string",
    max_degree_of_parallelism_per_job=0,
    min_priority_per_job=0)
Copy
const computePolicyResource = new azure_native.datalakeanalytics.ComputePolicy("computePolicyResource", {
    accountName: "string",
    objectId: "string",
    objectType: "string",
    resourceGroupName: "string",
    computePolicyName: "string",
    maxDegreeOfParallelismPerJob: 0,
    minPriorityPerJob: 0,
});
Copy
type: azure-native:datalakeanalytics:ComputePolicy
properties:
    accountName: string
    computePolicyName: string
    maxDegreeOfParallelismPerJob: 0
    minPriorityPerJob: 0
    objectId: string
    objectType: string
    resourceGroupName: string
Copy

ComputePolicy 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 ComputePolicy resource accepts the following input properties:

AccountName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Data Lake Analytics account.
ObjectId This property is required. string
The AAD object identifier for the entity to create a policy for.
ObjectType This property is required. string | Pulumi.AzureNative.DataLakeAnalytics.AADObjectType
The type of AAD object the object identifier refers to.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Azure resource group.
ComputePolicyName Changes to this property will trigger replacement. string
The name of the compute policy to create or update.
MaxDegreeOfParallelismPerJob int
The maximum degree of parallelism per job this user can use to submit jobs. This property, the min priority per job property, or both must be passed.
MinPriorityPerJob int
The minimum priority per job this user can use to submit jobs. This property, the max degree of parallelism per job property, or both must be passed.
AccountName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Data Lake Analytics account.
ObjectId This property is required. string
The AAD object identifier for the entity to create a policy for.
ObjectType This property is required. string | AADObjectType
The type of AAD object the object identifier refers to.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Azure resource group.
ComputePolicyName Changes to this property will trigger replacement. string
The name of the compute policy to create or update.
MaxDegreeOfParallelismPerJob int
The maximum degree of parallelism per job this user can use to submit jobs. This property, the min priority per job property, or both must be passed.
MinPriorityPerJob int
The minimum priority per job this user can use to submit jobs. This property, the max degree of parallelism per job property, or both must be passed.
accountName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Data Lake Analytics account.
objectId This property is required. String
The AAD object identifier for the entity to create a policy for.
objectType This property is required. String | AADObjectType
The type of AAD object the object identifier refers to.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Azure resource group.
computePolicyName Changes to this property will trigger replacement. String
The name of the compute policy to create or update.
maxDegreeOfParallelismPerJob Integer
The maximum degree of parallelism per job this user can use to submit jobs. This property, the min priority per job property, or both must be passed.
minPriorityPerJob Integer
The minimum priority per job this user can use to submit jobs. This property, the max degree of parallelism per job property, or both must be passed.
accountName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Data Lake Analytics account.
objectId This property is required. string
The AAD object identifier for the entity to create a policy for.
objectType This property is required. string | AADObjectType
The type of AAD object the object identifier refers to.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Azure resource group.
computePolicyName Changes to this property will trigger replacement. string
The name of the compute policy to create or update.
maxDegreeOfParallelismPerJob number
The maximum degree of parallelism per job this user can use to submit jobs. This property, the min priority per job property, or both must be passed.
minPriorityPerJob number
The minimum priority per job this user can use to submit jobs. This property, the max degree of parallelism per job property, or both must be passed.
account_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the Data Lake Analytics account.
object_id This property is required. str
The AAD object identifier for the entity to create a policy for.
object_type This property is required. str | AADObjectType
The type of AAD object the object identifier refers to.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the Azure resource group.
compute_policy_name Changes to this property will trigger replacement. str
The name of the compute policy to create or update.
max_degree_of_parallelism_per_job int
The maximum degree of parallelism per job this user can use to submit jobs. This property, the min priority per job property, or both must be passed.
min_priority_per_job int
The minimum priority per job this user can use to submit jobs. This property, the max degree of parallelism per job property, or both must be passed.
accountName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Data Lake Analytics account.
objectId This property is required. String
The AAD object identifier for the entity to create a policy for.
objectType This property is required. String | "User" | "Group" | "ServicePrincipal"
The type of AAD object the object identifier refers to.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Azure resource group.
computePolicyName Changes to this property will trigger replacement. String
The name of the compute policy to create or update.
maxDegreeOfParallelismPerJob Number
The maximum degree of parallelism per job this user can use to submit jobs. This property, the min priority per job property, or both must be passed.
minPriorityPerJob Number
The minimum priority per job this user can use to submit jobs. This property, the max degree of parallelism per job property, or both must be passed.

Outputs

All input properties are implicitly available as output properties. Additionally, the ComputePolicy resource produces the following output properties:

AzureApiVersion string
The Azure API version of the resource.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The resource name.
Type string
The resource type.
AzureApiVersion string
The Azure API version of the resource.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The resource name.
Type string
The resource type.
azureApiVersion String
The Azure API version of the resource.
id String
The provider-assigned unique ID for this managed resource.
name String
The resource name.
type String
The resource type.
azureApiVersion string
The Azure API version of the resource.
id string
The provider-assigned unique ID for this managed resource.
name string
The resource name.
type string
The resource type.
azure_api_version str
The Azure API version of the resource.
id str
The provider-assigned unique ID for this managed resource.
name str
The resource name.
type str
The resource type.
azureApiVersion String
The Azure API version of the resource.
id String
The provider-assigned unique ID for this managed resource.
name String
The resource name.
type String
The resource type.

Supporting Types

AADObjectType
, AADObjectTypeArgs

User
User
Group
Group
ServicePrincipal
ServicePrincipal
AADObjectTypeUser
User
AADObjectTypeGroup
Group
AADObjectTypeServicePrincipal
ServicePrincipal
User
User
Group
Group
ServicePrincipal
ServicePrincipal
User
User
Group
Group
ServicePrincipal
ServicePrincipal
USER
User
GROUP
Group
SERVICE_PRINCIPAL
ServicePrincipal
"User"
User
"Group"
Group
"ServicePrincipal"
ServicePrincipal

Import

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

$ pulumi import azure-native:datalakeanalytics:ComputePolicy test_policy /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/computePolicies/{computePolicyName} 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.1.0 published on Tuesday, Apr 8, 2025 by Pulumi