Skip to content

Commit f173f25

Browse files
committed
Fix usages of plural (s suffix)
- Includes renaming Get-AzBatchSupportedImages to Get-AzBatchSupportedImage.
1 parent dc43fd2 commit f173f25

File tree

63 files changed

+161
-162
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+161
-162
lines changed

src/Batch/Batch.Test/ScenarioTests/BatchAccountTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public void TestBatchAccountEndToEnd()
3939
[Trait(Category.AcceptanceType, Category.CheckIn)]
4040
public void TestGetBatchSupportedImages()
4141
{
42-
BatchController.NewInstance.RunPsTest(_logger, "Test-GetBatchSupportedImages");
42+
BatchController.NewInstance.RunPsTest(_logger, "Test-GetBatchSupportedImage");
4343
}
4444
}
4545
}

src/Batch/Batch.Test/ScenarioTests/BatchAccountTests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,12 @@ function Test-BatchAccountEndToEnd
100100
.SYNOPSIS
101101
Tests getting a list of Batch supported images
102102
#>
103-
function Test-GetBatchSupportedImages
103+
function Test-GetBatchSupportedImage
104104
{
105105
$context = New-Object Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ScenarioTestContext
106106

107107
# Get the node agent skus
108-
$supportedImages = Get-AzBatchSupportedImages -BatchContext $context
108+
$supportedImages = Get-AzBatchSupportedImage -BatchContext $context
109109

110110
foreach($supportedImage in $supportedImages)
111111
{

src/Batch/Batch/Az.Batch.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ CmdletsToExport = 'Remove-AzBatchAccount',
127127
'Get-AzBatchPoolStatistic',
128128
'Get-AzBatchPoolUsageMetric',
129129
'Get-AzBatchPool',
130-
'Get-AzBatchSupportedImages',
130+
'Get-AzBatchSupportedImage',
131131
'New-AzBatchPool',
132132
'Remove-AzBatchPool',
133133
'Set-AzBatchPool',

src/Batch/Batch/BatchAccounts/GetBatchAccountSupportedImagesCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
namespace Microsoft.Azure.Commands.Batch
2121
{
22-
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzurePrefix + "BatchSupportedImages"),OutputType(typeof(PSImageInformation))]
22+
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzurePrefix + "BatchSupportedImage"),OutputType(typeof(PSImageInformation))]
2323
public class GetBatchAccountSupportedImagesCommand : BatchObjectModelCmdletBase
2424
{
2525
private int maxCount = Constants.DefaultMaxCount;

src/Batch/Batch/ChangeLog.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
* Renamed `CurrentOSVersion` to `OSVersion` on `PSCloudServiceConfiguration`.
4040
* Removed `DataEgressGiB` and `DataIngressGiB` from `PSPoolUsageMetrics`.
4141

42-
* Removed **Get-AzBatchNodeAgentSku** and replaced it with **Get-AzBatchSupportedImages**.
43-
- **Get-AzBatchSupportedImages** returns the same data as **Get-AzBatchNodeAgentSku** but in a more friendly format.
42+
* Removed **Get-AzBatchNodeAgentSku** and replaced it with **Get-AzBatchSupportedImage**.
43+
- **Get-AzBatchSupportedImage** returns the same data as **Get-AzBatchNodeAgentSku** but in a more friendly format.
4444
- New non-verified images are also now returned. Additional information about `Capabilities` and `BatchSupportEndOfLife` for each image is also included.
4545
* Added ability to mount remote file-systems on each node of a pool via the new `MountConfiguration` parameter of **New-AzBatchPool**.
4646
* Now support network security rules blocking network access to a pool based on the source port of the traffic. This is done via the `SourcePortRanges` property on `PSNetworkSecurityGroupRule`.

src/Batch/Batch/help/Disable-AzBatchAutoScale.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ This command disables automatic scaling for the pool named MyPool.
3434

3535
### -BatchContext
3636
Specifies the **BatchAccountContext** instance that this cmdlet uses to interact with the Batch service.
37-
If you use the Get-AzBatchAccount 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-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.
37+
If you use the Get-AzBatchAccount 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-AzBatchAccountKey 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.
3838

3939
```yaml
4040
Type: Microsoft.Azure.Commands.Batch.BatchAccountContext

src/Batch/Batch/help/Disable-AzBatchComputeNodeScheduling.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Tasks stopped in this manner will not be rescheduled.
4343

4444
### Example 1: Disable task scheduling on a compute node
4545
```
46-
PS C:\>$Context = Get-AzBatchAccountKeys -AccountName "contosobatchaccount"
46+
PS C:\>$Context = Get-AzBatchAccountKey -AccountName "contosobatchaccount"
4747
PS C:\> Disable-AzBatchComputeNodeScheduling -PoolId "myPool" -Id "tvm-1783593343_34-20151117t222514z" -BatchContext $Context
4848
```
4949

@@ -55,7 +55,7 @@ Because the *DisableComputeNodeSchedulingOptions* parameter was not included any
5555

5656
### Example 2: Disable task scheduling on all compute nodes in a pool
5757
```
58-
PS C:\>$Context = Get-AzBatchAccountKeys -AccountName "contosobatchaccount"
58+
PS C:\>$Context = Get-AzBatchAccountKey -AccountName "contosobatchaccount"
5959
PS C:\> Get-AzBatchComputeNode -PoolId "Pool06" -BatchContext $Context | Disable-AzBatchComputeNodeScheduling -BatchContext $Context
6060
```
6161

@@ -70,7 +70,7 @@ Because the *DisableComputeNodeSchedulingOptions* parameter was not included any
7070

7171
### -BatchContext
7272
Specifies the **BatchAccountContext** instance that this cmdlet uses to interact with the Batch service.
73-
If you use the Get-AzBatchAccount 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-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.
73+
If you use the Get-AzBatchAccount 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-AzBatchAccountKey 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.
7474

7575
```yaml
7676
Type: Microsoft.Azure.Commands.Batch.BatchAccountContext
@@ -193,7 +193,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
193193
194194
## RELATED LINKS
195195
196-
[Get-AzBatchAccountKeys](./Get-AzBatchAccountKeys.md)
196+
[Get-AzBatchAccountKey](./Get-AzBatchAccountKey.md)
197197
198198
[Enable-AzBatchComputeNodeScheduling](./Enable-AzBatchComputeNodeScheduling.md)
199199

src/Batch/Batch/help/Disable-AzBatchJob.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ PS C:\>Disable-AzBatchJob -Id "Job-000001" -DisableJobOption "Terminate" -BatchC
3333

3434
This command disables the job that has the ID Job-000001.
3535
The command terminates active tasks for the job.
36-
Use the **Get-AzBatchAccountKeys** cmdlet to assign a context to the $Context variable.
36+
Use the **Get-AzBatchAccountKey** cmdlet to assign a context to the $Context variable.
3737

3838
## PARAMETERS
3939

4040
### -BatchContext
4141
Specifies the **BatchAccountContext** instance that this cmdlet uses to interact with the Batch service.
42-
If you use the Get-AzBatchAccount 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-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.
42+
If you use the Get-AzBatchAccount 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-AzBatchAccountKey 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.
4343

4444
```yaml
4545
Type: Microsoft.Azure.Commands.Batch.BatchAccountContext
@@ -122,7 +122,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
122122
123123
[Enable-AzBatchJob](./Enable-AzBatchJob.md)
124124
125-
[Get-AzBatchAccountKeys](./Get-AzBatchAccountKeys.md)
125+
[Get-AzBatchAccountKey](./Get-AzBatchAccountKey.md)
126126
127127
[Get-AzBatchJob](./Get-AzBatchJob.md)
128128

src/Batch/Batch/help/Disable-AzBatchJobSchedule.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ PS C:\>Disable-AzBatchJobSchedule -Id "JobSchedule17" -BatchContext $Context
3131
```
3232

3333
This command disables the job schedule that has the ID JobSchedule17.
34-
Use the **Get-AzBatchAccountKeys** cmdlet to assign a context to the $Context variable.
34+
Use the **Get-AzBatchAccountKey** cmdlet to assign a context to the $Context variable.
3535

3636
## PARAMETERS
3737

3838
### -BatchContext
3939
Specifies the **BatchAccountContext** instance that this cmdlet uses to interact with the Batch service.
40-
If you use the Get-AzBatchAccount 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-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.
40+
If you use the Get-AzBatchAccount 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-AzBatchAccountKey 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.
4141

4242
```yaml
4343
Type: Microsoft.Azure.Commands.Batch.BatchAccountContext
@@ -100,7 +100,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
100100
101101
[Enable-AzBatchJobSchedule](./Enable-AzBatchJobSchedule.md)
102102
103-
[Get-AzBatchAccountKeys](./Get-AzBatchAccountKeys.md)
103+
[Get-AzBatchAccountKey](./Get-AzBatchAccountKey.md)
104104
105105
[Get-AzBatchJobSchedule](./Get-AzBatchJobSchedule.md)
106106

src/Batch/Batch/help/Enable-AzBatchAutoScale.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Accept wildcard characters: False
6868
6969
### -BatchContext
7070
Specifies the **BatchAccountContext** instance that this cmdlet uses to interact with the Batch service.
71-
If you use the Get-AzBatchAccount 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-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.
71+
If you use the Get-AzBatchAccount 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-AzBatchAccountKey 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.
7272
7373
```yaml
7474
Type: Microsoft.Azure.Commands.Batch.BatchAccountContext

src/Batch/Batch/help/Enable-AzBatchComputeNodeScheduling.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ A compute node is an Azure virtual machine dedicated to a specific application w
3333

3434
### Example 1: Enable task scheduling on a compute node
3535
```
36-
PS C:\>$Context = Get-AzBatchAccountKeys -AccountName "contosobatchaccount"
36+
PS C:\>$Context = Get-AzBatchAccountKey -AccountName "contosobatchaccount"
3737
PS C:\> Enable-AzBatchComputeNodeScheduling -PoolId "myPool" -Id "tvm-1783593343_34-20151117t222514z" -BatchContext $Context
3838
```
3939

@@ -44,7 +44,7 @@ The second command then uses this object reference and the **Enable-AzBatchCompu
4444

4545
### Example 2: Enable task scheduling on compute nodes in a pool
4646
```
47-
PS C:\>$Context = Get-AzBatchAccountKeys -AccountName "contosobatchaccount"
47+
PS C:\>$Context = Get-AzBatchAccountKey -AccountName "contosobatchaccount"
4848
PS C:\> Get-AzBatchComputeNode -PoolId "Pool06" -BatchContext $Context | Enable-AzBatchComputeNodeScheduling -BatchContext $Context
4949
```
5050

@@ -58,7 +58,7 @@ That collection is then piped to the **Enable-AzBatchComputeNodeScheduling** cmd
5858

5959
### -BatchContext
6060
Specifies the **BatchAccountContext** instance that this cmdlet uses to interact with the Batch service.
61-
If you use the Get-AzBatchAccount 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-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.
61+
If you use the Get-AzBatchAccount 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-AzBatchAccountKey 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.
6262

6363
```yaml
6464
Type: Microsoft.Azure.Commands.Batch.BatchAccountContext

src/Batch/Batch/help/Enable-AzBatchJob.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ PS C:\>Enable-AzBatchJob -Id "Job-000001" -BatchContext $Context
3030
```
3131

3232
This command enables the job that has the ID Job-000001.
33-
Use the Get-AzBatchAccountKeys cmdlet to assign a context to the $Context variable.
33+
Use the Get-AzBatchAccountKey cmdlet to assign a context to the $Context variable.
3434

3535
## PARAMETERS
3636

3737
### -BatchContext
3838
Specifies the **BatchAccountContext** instance that this cmdlet uses to interact with the Batch service.
39-
If you use the Get-AzBatchAccount 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-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.
39+
If you use the Get-AzBatchAccount 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-AzBatchAccountKey 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.
4040

4141
```yaml
4242
Type: Microsoft.Azure.Commands.Batch.BatchAccountContext

src/Batch/Batch/help/Enable-AzBatchJobSchedule.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ PS C:\>Enable-AzBatchJobSchedule -Id "JobSchedule17" -BatchContext $Context
3030
```
3131

3232
This command enables the job schedule that has the ID JobSchedule17.
33-
Use the **Get-AzBatchAccountKeys** cmdlet to assign a context to the $Context variable.
33+
Use the **Get-AzBatchAccountKey** cmdlet to assign a context to the $Context variable.
3434

3535
## PARAMETERS
3636

3737
### -BatchContext
3838
Specifies the **BatchAccountContext** instance that this cmdlet uses to interact with the Batch service.
39-
If you use the Get-AzBatchAccount 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-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.
39+
If you use the Get-AzBatchAccount 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-AzBatchAccountKey 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.
4040

4141
```yaml
4242
Type: Microsoft.Azure.Commands.Batch.BatchAccountContext
@@ -99,7 +99,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
9999
100100
[Disable-AzBatchJobSchedule](./Disable-AzBatchJobSchedule.md)
101101
102-
[Get-AzBatchAccountKeys](./Get-AzBatchAccountKeys.md)
102+
[Get-AzBatchAccountKey](./Get-AzBatchAccountKey.md)
103103
104104
[Get-AzBatchJobSchedule](./Get-AzBatchJobSchedule.md)
105105

src/Batch/Batch/help/Enable-AzBatchTask.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ The command reactivates that task.
5151

5252
### -BatchContext
5353
Specifies the **BatchAccountContext** instance that this cmdlet uses to interact with the Batch service.
54-
If you use the Get-AzBatchAccount 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-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.
54+
If you use the Get-AzBatchAccount 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-AzBatchAccountKey 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.
5555

5656
```yaml
5757
Type: Microsoft.Azure.Commands.Batch.BatchAccountContext
@@ -176,7 +176,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
176176
177177
## RELATED LINKS
178178
179-
[Get-AzBatchAccountKeys](./Get-AzBatchAccountKeys.md)
179+
[Get-AzBatchAccountKey](./Get-AzBatchAccountKey.md)
180180
181181
[Get-AzBatchTask](./Get-AzBatchTask.md)
182182

src/Batch/Batch/help/Get-AzBatchCertificate.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ The *Filter* parameter specifies the state.
105105

106106
### -BatchContext
107107
Specifies the **BatchAccountContext** instance that this cmdlet uses to interact with the Batch service.
108-
If you use the Get-AzBatchAccount 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-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.
108+
If you use the Get-AzBatchAccount 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-AzBatchAccountKey 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.
109109

110110
```yaml
111111
Type: Microsoft.Azure.Commands.Batch.BatchAccountContext
@@ -231,7 +231,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
231231
232232
## RELATED LINKS
233233
234-
[Get-AzBatchAccountKeys](./Get-AzBatchAccountKeys.md)
234+
[Get-AzBatchAccountKey](./Get-AzBatchAccountKey.md)
235235
236236
[New-AzBatchCertificate](./New-AzBatchCertificate.md)
237237

0 commit comments

Comments
 (0)