Account
A Data Lake Analytics account object, containing all information associated with the named Data Lake Analytics account. 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 the specified Data Lake Analytics account. This supplies the user with computation services for Data Lake Analytics workloads.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var account = new AzureNative.DataLakeAnalytics.Account("account", new()
{
AccountName = "contosoadla",
ComputePolicies = new[]
{
new AzureNative.DataLakeAnalytics.Inputs.CreateComputePolicyWithAccountParametersArgs
{
MaxDegreeOfParallelismPerJob = 1,
MinPriorityPerJob = 1,
Name = "test_policy",
ObjectId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
ObjectType = AzureNative.DataLakeAnalytics.AADObjectType.User,
},
},
DataLakeStoreAccounts = new[]
{
new AzureNative.DataLakeAnalytics.Inputs.AddDataLakeStoreWithAccountParametersArgs
{
Name = "test_adls",
Suffix = "test_suffix",
},
},
DefaultDataLakeStoreAccount = "test_adls",
FirewallAllowAzureIps = AzureNative.DataLakeAnalytics.FirewallAllowAzureIpsState.Enabled,
FirewallRules = new[]
{
new AzureNative.DataLakeAnalytics.Inputs.CreateFirewallRuleWithAccountParametersArgs
{
EndIpAddress = "2.2.2.2",
Name = "test_rule",
StartIpAddress = "1.1.1.1",
},
},
FirewallState = AzureNative.DataLakeAnalytics.FirewallState.Enabled,
Location = "eastus2",
MaxDegreeOfParallelism = 30,
MaxDegreeOfParallelismPerJob = 1,
MaxJobCount = 3,
MinPriorityPerJob = 1,
NewTier = AzureNative.DataLakeAnalytics.TierType.Consumption,
QueryStoreRetention = 30,
ResourceGroupName = "contosorg",
StorageAccounts = new[]
{
new AzureNative.DataLakeAnalytics.Inputs.AddStorageAccountWithAccountParametersArgs
{
AccessKey = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab346",
Name = "test_storage",
Suffix = "test_suffix",
},
},
Tags =
{
{ "test_key", "test_value" },
},
});
});
package main
import (
datalakeanalytics "github.com/pulumi/pulumi-azure-native-sdk/datalakeanalytics/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datalakeanalytics.NewAccount(ctx, "account", &datalakeanalytics.AccountArgs{
AccountName: pulumi.String("contosoadla"),
ComputePolicies: datalakeanalytics.CreateComputePolicyWithAccountParametersArray{
&datalakeanalytics.CreateComputePolicyWithAccountParametersArgs{
MaxDegreeOfParallelismPerJob: pulumi.Int(1),
MinPriorityPerJob: pulumi.Int(1),
Name: pulumi.String("test_policy"),
ObjectId: pulumi.String("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"),
ObjectType: pulumi.String(datalakeanalytics.AADObjectTypeUser),
},
},
DataLakeStoreAccounts: datalakeanalytics.AddDataLakeStoreWithAccountParametersArray{
&datalakeanalytics.AddDataLakeStoreWithAccountParametersArgs{
Name: pulumi.String("test_adls"),
Suffix: pulumi.String("test_suffix"),
},
},
DefaultDataLakeStoreAccount: pulumi.String("test_adls"),
FirewallAllowAzureIps: datalakeanalytics.FirewallAllowAzureIpsStateEnabled,
FirewallRules: datalakeanalytics.CreateFirewallRuleWithAccountParametersArray{
&datalakeanalytics.CreateFirewallRuleWithAccountParametersArgs{
EndIpAddress: pulumi.String("2.2.2.2"),
Name: pulumi.String("test_rule"),
StartIpAddress: pulumi.String("1.1.1.1"),
},
},
FirewallState: datalakeanalytics.FirewallStateEnabled,
Location: pulumi.String("eastus2"),
MaxDegreeOfParallelism: pulumi.Int(30),
MaxDegreeOfParallelismPerJob: pulumi.Int(1),
MaxJobCount: pulumi.Int(3),
MinPriorityPerJob: pulumi.Int(1),
NewTier: datalakeanalytics.TierTypeConsumption,
QueryStoreRetention: pulumi.Int(30),
ResourceGroupName: pulumi.String("contosorg"),
StorageAccounts: datalakeanalytics.AddStorageAccountWithAccountParametersArray{
&datalakeanalytics.AddStorageAccountWithAccountParametersArgs{
AccessKey: pulumi.String("34adfa4f-cedf-4dc0-ba29-b6d1a69ab346"),
Name: pulumi.String("test_storage"),
Suffix: pulumi.String("test_suffix"),
},
},
Tags: pulumi.StringMap{
"test_key": pulumi.String("test_value"),
},
})
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.datalakeanalytics.Account;
import com.pulumi.azurenative.datalakeanalytics.AccountArgs;
import com.pulumi.azurenative.datalakeanalytics.inputs.CreateComputePolicyWithAccountParametersArgs;
import com.pulumi.azurenative.datalakeanalytics.inputs.AddDataLakeStoreWithAccountParametersArgs;
import com.pulumi.azurenative.datalakeanalytics.inputs.CreateFirewallRuleWithAccountParametersArgs;
import com.pulumi.azurenative.datalakeanalytics.inputs.AddStorageAccountWithAccountParametersArgs;
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 account = new Account("account", AccountArgs.builder()
.accountName("contosoadla")
.computePolicies(CreateComputePolicyWithAccountParametersArgs.builder()
.maxDegreeOfParallelismPerJob(1)
.minPriorityPerJob(1)
.name("test_policy")
.objectId("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345")
.objectType("User")
.build())
.dataLakeStoreAccounts(AddDataLakeStoreWithAccountParametersArgs.builder()
.name("test_adls")
.suffix("test_suffix")
.build())
.defaultDataLakeStoreAccount("test_adls")
.firewallAllowAzureIps("Enabled")
.firewallRules(CreateFirewallRuleWithAccountParametersArgs.builder()
.endIpAddress("2.2.2.2")
.name("test_rule")
.startIpAddress("1.1.1.1")
.build())
.firewallState("Enabled")
.location("eastus2")
.maxDegreeOfParallelism(30)
.maxDegreeOfParallelismPerJob(1)
.maxJobCount(3)
.minPriorityPerJob(1)
.newTier("Consumption")
.queryStoreRetention(30)
.resourceGroupName("contosorg")
.storageAccounts(AddStorageAccountWithAccountParametersArgs.builder()
.accessKey("34adfa4f-cedf-4dc0-ba29-b6d1a69ab346")
.name("test_storage")
.suffix("test_suffix")
.build())
.tags(Map.of("test_key", "test_value"))
.build());
}
}
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:datalakeanalytics:Account test_account /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}
Properties
The Azure API version of the resource.
The list of compute policies associated with this account.
The account creation time.
The commitment tier in use for the current month.
The list of Data Lake Store accounts associated with this account.
The current state of the DebugDataAccessLevel for this account.
The default Data Lake Store account associated with this account.
The type of the default Data Lake Store account associated with this account.
The current state of allowing or disallowing IPs originating within Azure through the firewall. If the firewall is disabled, this is not enforced.
The list of firewall rules associated with this account.
The current state of the IP address firewall for this account.
The list of hiveMetastores associated with this account.
The account last modified time.
The maximum supported active jobs under the account at the same time.
The maximum supported degree of parallelism for this account.
The maximum supported degree of parallelism per job for this account.
The maximum supported jobs running under the account at the same time.
The maximum supported active jobs under the account at the same time.
The maximum supported jobs queued under the account at the same time.
The minimum supported priority per job for this account.
The provisioning status of the Data Lake Analytics account.
The list of Data Lake Store accounts associated with this account.
The number of days that job metadata is retained.
The list of Azure Blob Storage accounts associated with this account.
The system defined maximum supported degree of parallelism for this account, which restricts the maximum value of parallelism the user can set for the account.
The system defined maximum supported jobs running under the account at the same time, which restricts the maximum number of running jobs the user can set for the account.
The list of virtualNetwork rules associated with this account.