< Back
New-AzureRmDataLakeAnalyticsComputePolicy
Post
NAME New-AzureRmDataLakeAnalyticsComputePolicy
SYNOPSIS
Creates a Data Lake Analytics compute policy rule for a specific AAD entity.
SYNTAX
New-AzureRmDataLakeAnalyticsComputePolicy [-Account] <String> [-Name] <String> [-ObjectId] <Guid> [-ObjectType] {User | Group | ServicePrincipal}
[-DefaultProfile <IAzureContextContainer>] [-MaxAnalyticsUnitsPerJob <Int32>] [-MinPriorityPerJob <Int32>] [-ResourceGroupName <String>]
[-Confirm] [-WhatIf] [<CommonParameters>]
DESCRIPTION
The New-AzureRmDataLakeAnalyticsComputePolicy creates the specified compute policy rule for a specific AAD entity in an Azure Data Lake Analytics
account.
PARAMETERS
-Account <String>
Name of the account to add the compute policy to.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-MaxAnalyticsUnitsPerJob <Int32>
The maximum supported analytics units per job for this policy. Either this, MinPriorityPerJob, or both parameters must be specified.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-MinPriorityPerJob <Int32>
The minimum supported priority per job for this policy. Either this, MaxAnalyticsUnitsPerJob, or both parameters must be specified.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Name <String>
Name of the compute policy to create.
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ObjectId <Guid>
The Azure Active Directory object id for the user or group to apply the policy to.
Required? true
Position? 2
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ObjectType <String>
The Azure Active Directory object type for the object ID passed in.
Required? true
Position? 3
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ResourceGroupName <String>
Name of resource group under which you the account exists. Optional and will attempt to discover if not provided.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
System.String
System.Guid System.Int32
OUTPUTS
Microsoft.Azure.Commands.DataLakeAnalytics.Models.PSDataLakeAnalyticsComputePolicy
NOTES
Example 1: Create a compute policy with only one rule
PS C:\\>New-AzureRmDataLakeAnalyticsComputePolicy -Account "contosoadla" -Name "myPolicy" -ObjectId 83cb7ad2-3523-4b82-b909-d478b0d8aea3
-ObjectType User -MaxAnalyticsUnitsPerJob 5
This command creates a policy called "myPolicy" in account "contosoadla" for the user with id "83cb7ad2-3523-4b82-b909-d478b0d8aea3" that ensures
they cannot submit any job with more than 5 analytics units.
Example 2: Create a compute policy with both rules set
PS C:\\>New-AzureRmDataLakeAnalyticsComputePolicy -Account "contosoadla" -Name "myPolicy" -ObjectId 83cb7ad2-3523-4b82-b909-d478b0d8aea3
-ObjectType User -MaxAnalyticsUnitsPerJob 5 -MinPriorityPerJob 100
This command creates a policy called "myPolicy" in account "contosoadla" for the user with id "83cb7ad2-3523-4b82-b909-d478b0d8aea3" that ensures
they cannot submit any job with more than 5 analytics units or with a priority lower than 100
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... putepolicy
SYNOPSIS
Creates a Data Lake Analytics compute policy rule for a specific AAD entity.
SYNTAX
New-AzureRmDataLakeAnalyticsComputePolicy [-Account] <String> [-Name] <String> [-ObjectId] <Guid> [-ObjectType] {User | Group | ServicePrincipal}
[-DefaultProfile <IAzureContextContainer>] [-MaxAnalyticsUnitsPerJob <Int32>] [-MinPriorityPerJob <Int32>] [-ResourceGroupName <String>]
[-Confirm] [-WhatIf] [<CommonParameters>]
DESCRIPTION
The New-AzureRmDataLakeAnalyticsComputePolicy creates the specified compute policy rule for a specific AAD entity in an Azure Data Lake Analytics
account.
PARAMETERS
-Account <String>
Name of the account to add the compute policy to.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-MaxAnalyticsUnitsPerJob <Int32>
The maximum supported analytics units per job for this policy. Either this, MinPriorityPerJob, or both parameters must be specified.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-MinPriorityPerJob <Int32>
The minimum supported priority per job for this policy. Either this, MaxAnalyticsUnitsPerJob, or both parameters must be specified.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Name <String>
Name of the compute policy to create.
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ObjectId <Guid>
The Azure Active Directory object id for the user or group to apply the policy to.
Required? true
Position? 2
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ObjectType <String>
The Azure Active Directory object type for the object ID passed in.
Required? true
Position? 3
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ResourceGroupName <String>
Name of resource group under which you the account exists. Optional and will attempt to discover if not provided.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
System.String
System.Guid System.Int32
OUTPUTS
Microsoft.Azure.Commands.DataLakeAnalytics.Models.PSDataLakeAnalyticsComputePolicy
NOTES
Example 1: Create a compute policy with only one rule
PS C:\\>New-AzureRmDataLakeAnalyticsComputePolicy -Account "contosoadla" -Name "myPolicy" -ObjectId 83cb7ad2-3523-4b82-b909-d478b0d8aea3
-ObjectType User -MaxAnalyticsUnitsPerJob 5
This command creates a policy called "myPolicy" in account "contosoadla" for the user with id "83cb7ad2-3523-4b82-b909-d478b0d8aea3" that ensures
they cannot submit any job with more than 5 analytics units.
Example 2: Create a compute policy with both rules set
PS C:\\>New-AzureRmDataLakeAnalyticsComputePolicy -Account "contosoadla" -Name "myPolicy" -ObjectId 83cb7ad2-3523-4b82-b909-d478b0d8aea3
-ObjectType User -MaxAnalyticsUnitsPerJob 5 -MinPriorityPerJob 100
This command creates a policy called "myPolicy" in account "contosoadla" for the user with id "83cb7ad2-3523-4b82-b909-d478b0d8aea3" that ensures
they cannot submit any job with more than 5 analytics units or with a priority lower than 100
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... putepolicy