Skip to content

Commit cc92ebb

Browse files
authored
[Resources] Fix help message for -Name parameter of deployment cmdlets (#12139)
* Fix help message for -Name parameter * Update ChangeLog.md
1 parent 3e20168 commit cc92ebb

13 files changed

+13
-22
lines changed

src/Resources/ResourceManager/Implementation/Deployments/GetAzureSubscriptionDeploymentWhatIfResultCmdlet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation
3737
public class GetAzureSubscriptionDeploymentWhatIfResultCmdlet : ResourceWithParameterCmdletBase, IDynamicParameters
3838
{
3939
[Alias("DeploymentName")]
40-
[Parameter(Mandatory = false, HelpMessage = "The name of the deployment it's going to create. Only valid when a template is used. When a template is used, if the user doesn't specify a deployment name, use the current time, like \"20131223140835\".")]
40+
[Parameter(Mandatory = false, HelpMessage = "The name of the deployment it's going to create. If not specified, defaults to the template file name when a template file is provided; defaults to the current time when a template object is provided, e.g. \"20131223140835\".")]
4141
[ValidateNotNullOrEmpty]
4242
public string Name { get; set; }
4343

src/Resources/ResourceManager/Implementation/Deployments/NewAzureManagementGroupDeploymentCmdlet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class NewAzureManagementGroupDeploymentCmdlet : ResourceWithParameterCmdl
3434
{
3535
[Alias("DeploymentName")]
3636
[Parameter(Mandatory = false,
37-
HelpMessage = "The name of the deployment it's going to create. Only valid when a template is used. When a template is used, if the user doesn't specify a deployment name, use the current time, like \"20131223140835\".")]
37+
HelpMessage = "The name of the deployment it's going to create. If not specified, defaults to the template file name when a template file is provided; defaults to the current time when a template object is provided, e.g. \"20131223140835\".")]
3838
[ValidateNotNullOrEmpty]
3939
public string Name { get; set; }
4040

src/Resources/ResourceManager/Implementation/Deployments/NewAzureSubscriptionDeploymentCmdlet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class NewAzureSubscriptionDeploymentCmdlet : ResourceWithParameterCmdletB
3838
{
3939
[Alias("DeploymentName")]
4040
[Parameter(Mandatory = false,
41-
HelpMessage = "The name of the deployment it's going to create. Only valid when a template is used. When a template is used, if the user doesn't specify a deployment name, use the current time, like \"20131223140835\".")]
41+
HelpMessage = "The name of the deployment it's going to create. If not specified, defaults to the template file name when a template file is provided; defaults to the current time when a template object is provided, e.g. \"20131223140835\".")]
4242
[ValidateNotNullOrEmpty]
4343
public string Name { get; set; }
4444

src/Resources/ResourceManager/Implementation/Deployments/NewAzureTenantDeploymentCmdlet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class NewAzureTenantDeploymentCmdlet : ResourceWithParameterCmdletBase, I
3434
{
3535
[Alias("DeploymentName")]
3636
[Parameter(Mandatory = false,
37-
HelpMessage = "The name of the deployment it's going to create. Only valid when a template is used. When a template is used, if the user doesn't specify a deployment name, use the current time, like \"20131223140835\".")]
37+
HelpMessage = "The name of the deployment it's going to create. If not specified, defaults to the template file name when a template file is provided; defaults to the current time when a template object is provided, e.g. \"20131223140835\".")]
3838
[ValidateNotNullOrEmpty]
3939
public string Name { get; set; }
4040

src/Resources/ResourceManager/Implementation/ResourceGroupDeployments/GetAzureResourceGroupDeploymentWhatIfResultCmdlet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class GetAzureResourceGroupDeploymentWhatIfResultCmdlet : ResourceWithPar
3030
{
3131
[Alias("DeploymentName")]
3232
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true,
33-
HelpMessage = "The name of the deployment it's going to create. Only valid when a template is used. When a template is used, if the user doesn't specify a deployment name, use the current time, like \"20131223140835\".")]
33+
HelpMessage = "The name of the deployment it's going to create. If not specified, defaults to the template file name when a template file is provided; defaults to the current time when a template object is provided, e.g. \"20131223140835\".")]
3434
[ValidateNotNullOrEmpty]
3535
public string Name { get; set; }
3636

src/Resources/ResourceManager/Implementation/ResourceGroupDeployments/NewAzureResourceGroupDeploymentCmdlet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class NewAzureResourceGroupDeploymentCmdlet : ResourceWithParameterCmdlet
3535
{
3636
[Alias("DeploymentName")]
3737
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true,
38-
HelpMessage = "The name of the deployment it's going to create. Only valid when a template is used. When a template is used, if the user doesn't specify a deployment name, use the current time, like \"20131223140835\".")]
38+
HelpMessage = "The name of the deployment it's going to create. If not specified, defaults to the template file name when a template file is provided; defaults to the current time when a template object is provided, e.g. \"20131223140835\".")]
3939
[ValidateNotNullOrEmpty]
4040
public string Name { get; set; }
4141

src/Resources/Resources/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
* Added `-ExcludeChangeType` parameter to `Get-AzDeploymentWhatIfResult` and `Get-AzResourceGroupDeploymentWhatIfResult`
2424
* Added `-WhatIfExcludeChangeType` parameter to `New-AzDeployment` and `New-AzResourceGroupDeployment`
2525
* Updated `Test-Az*Deployment` cmdlets to show better error messages
26+
* Fixed help message for `-Name` parameter of deployment create and What-If cmdlets
2627

2728
## Version 2.1.0
2829
* Added Tail parameter to Get-AzDeploymentScriptLog and Save-AzDeploymentScriptLog cmdlets

src/Resources/Resources/help/Get-AzDeploymentWhatIfResult.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,7 @@ Accept wildcard characters: False
206206
```
207207
208208
### -Name
209-
The name of the deployment it's going to create.
210-
Only valid when a template is used.
211-
When a template is used, if the user doesn't specify a deployment name, use the current time, like "20131223140835".
209+
The name of the deployment it's going to create. If not specified, defaults to the template file name when a template file is provided; defaults to the current time when a template object is provided, e.g. "20131223140835".
212210
213211
```yaml
214212
Type: System.String

src/Resources/Resources/help/Get-AzResourceGroupDeploymentWhatIfResult.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,7 @@ Accept wildcard characters: False
210210
```
211211
212212
### -Name
213-
The name of the deployment it's going to create.
214-
Only valid when a template is used.
215-
When a template is used, if the user doesn't specify a deployment name, use the current time, like "20131223140835".
213+
The name of the deployment it's going to create. If not specified, defaults to the template file name when a template file is provided; defaults to the current time when a template object is provided, e.g. "20131223140835".
216214
217215
```yaml
218216
Type: System.String

src/Resources/Resources/help/New-AzDeployment.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,7 @@ Accept wildcard characters: False
236236
```
237237
238238
### -Name
239-
The name of the deployment it's going to create.
240-
Only valid when a template is used.
241-
When a template is used, if the user doesn't specify a deployment name, use the current time, like "20131223140835".
239+
The name of the deployment it's going to create. If not specified, defaults to the template file name when a template file is provided; defaults to the current time when a template object is provided, e.g. "20131223140835".
242240
243241
```yaml
244242
Type: System.String

src/Resources/Resources/help/New-AzManagementGroupDeployment.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,7 @@ Accept wildcard characters: False
256256
```
257257
258258
### -Name
259-
The name of the deployment it's going to create.
260-
Only valid when a template is used.
261-
When a template is used, if the user doesn't specify a deployment name, use the current time, like "20131223140835".
259+
The name of the deployment it's going to create. If not specified, defaults to the template file name when a template file is provided; defaults to the current time when a template object is provided, e.g. "20131223140835".
262260
263261
```yaml
264262
Type: System.String

src/Resources/Resources/help/New-AzResourceGroupDeployment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ Accept wildcard characters: False
274274
```
275275
276276
### -Name
277-
Specifies the name of the resource group deployment to create.
277+
The name of the deployment it's going to create. If not specified, defaults to the template file name when a template file is provided; defaults to the current time when a template object is provided, e.g. "20131223140835".
278278
279279
```yaml
280280
Type: System.String

src/Resources/Resources/help/New-AzTenantDeployment.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,7 @@ Accept wildcard characters: False
219219
```
220220
221221
### -Name
222-
The name of the deployment it's going to create.
223-
Only valid when a template is used.
224-
When a template is used, if the user doesn't specify a deployment name, use the current time, like "20131223140835".
222+
The name of the deployment it's going to create. If not specified, defaults to the template file name when a template file is provided; defaults to the current time when a template object is provided, e.g. "20131223140835".
225223
226224
```yaml
227225
Type: String

0 commit comments

Comments
 (0)