Delen via


BatchObjectModelCmdletBase.BatchContext Property

Definition

[System.Management.Automation.Parameter(HelpMessage="The BatchAccountContext instance to use when interacting with the Batch service. If you use the Get-AzBatchAccount cmdlet to get your BatchAccountContext, then Microsoft Entra authentication will be used when interacting with the Batch service. To use shared key authentication instead, use the Get-AzBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. When using shared key authentication, the primary access key is used by default. To change the key to use, set the BatchAccountContext.KeyInUse property.", Mandatory=true, ValueFromPipeline=true)]
[System.Management.Automation.ValidateNotNullOrEmpty]
public Microsoft.Azure.Commands.Batch.BatchAccountContext BatchContext { get; set; }
[System.Management.Automation.ValidateNotNullOrEmpty]
[System.Management.Automation.Parameter(HelpMessage="The BatchAccountContext instance to use when interacting with the Batch service. If you use the Get-AzureRmBatchAccount cmdlet to get your BatchAccountContext, then Azure Active Directory authentication will be used when interacting with the Batch service. To use shared key authentication instead, use the Get-AzureRmBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. When using shared key authentication, the primary access key is used by default. To change the key to use, set the BatchAccountContext.KeyInUse property.", Mandatory=true, ValueFromPipeline=true)]
public Microsoft.Azure.Commands.Batch.BatchAccountContext BatchContext { get; set; }
[<System.Management.Automation.Parameter(HelpMessage="The BatchAccountContext instance to use when interacting with the Batch service. If you use the Get-AzBatchAccount cmdlet to get your BatchAccountContext, then Microsoft Entra authentication will be used when interacting with the Batch service. To use shared key authentication instead, use the Get-AzBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. When using shared key authentication, the primary access key is used by default. To change the key to use, set the BatchAccountContext.KeyInUse property.", Mandatory=true, ValueFromPipeline=true)>]
[<System.Management.Automation.ValidateNotNullOrEmpty>]
member this.BatchContext : Microsoft.Azure.Commands.Batch.BatchAccountContext with get, set
[<System.Management.Automation.ValidateNotNullOrEmpty>]
[<System.Management.Automation.Parameter(HelpMessage="The BatchAccountContext instance to use when interacting with the Batch service. If you use the Get-AzureRmBatchAccount cmdlet to get your BatchAccountContext, then Azure Active Directory authentication will be used when interacting with the Batch service. To use shared key authentication instead, use the Get-AzureRmBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. When using shared key authentication, the primary access key is used by default. To change the key to use, set the BatchAccountContext.KeyInUse property.", Mandatory=true, ValueFromPipeline=true)>]
member this.BatchContext : Microsoft.Azure.Commands.Batch.BatchAccountContext with get, set
Public Property BatchContext As BatchAccountContext

Property Value

Attributes

Applies to