編輯

共用方式為


Update-AzDataLakeAnalyticsComputePolicy

Updates a Data Lake Analytics compute policy rule for a specific AAD entity.

Syntax

Update-AzDataLakeAnalyticsComputePolicy
      [-ResourceGroupName <String>]
      [-Account] <String>
      [-Name] <String>
      [-MaxAnalyticsUnitsPerJob <Int32>]
      [-MinPriorityPerJob <Int32>]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

The Update-AzDataLakeAnalyticsComputePolicy updates the specified compute policy rule for a specific AAD entity in an Azure Data Lake Analytics account.

Examples

Example 1: update one rule in a compute policy

Update-AzDataLakeAnalyticsComputePolicy -Account "contosoadla" -Name "myPolicy" -MaxAnalyticsUnitsPerJob 5

This command updates a policy called "myPolicy" in account "contosoadla" to ensure the user cannot submit any job with more than 5 analytics units.

Example 2: Create a compute policy with both rules update

Update-AzDataLakeAnalyticsComputePolicy -Account "contosoadla" -Name "myPolicy" -MaxAnalyticsUnitsPerJob 5 -MinPriorityPerJob 100

This command creates a policy called "myPolicy" in account "contosoadla" to ensure the user cannot submit any job with more than 5 analytics units or with a priority lower than 100

Parameters

-Account

Name of the account to update the compute policy in.

Type:String
Aliases:AccountName
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with azure

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-MaxAnalyticsUnitsPerJob

The maximum supported analytics units per job for this policy. Either this, MinPriorityPerJob, or both parameters must be specified.

Type:Nullable<T>[Int32]
Aliases:MaxDegreeOfParallelismPerJob
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-MinPriorityPerJob

The minimum supported priority per job for this policy. Either this, MaxAnalyticsUnitsPerJob, or both parameters must be specified.

Type:Nullable<T>[Int32]
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-Name

Name of the compute policy to update.

Type:String
Aliases:ComputePolicyName
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-ResourceGroupName

Name of resource group under which you the account exists. Optional and will attempt to discover if not provided.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

String

Nullable<T>[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]

Outputs

PSDataLakeAnalyticsComputePolicy