@@ -17,6 +17,7 @@ namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation
17
17
using Microsoft . Azure . Commands . ResourceManager . Cmdlets . Implementation . CmdletBase ;
18
18
using Microsoft . Azure . Commands . ResourceManager . Cmdlets . SdkModels ;
19
19
using Microsoft . Azure . Commands . ResourceManager . Cmdlets . Utilities ;
20
+ using Microsoft . Azure . Commands . ResourceManager . Common . ArgumentCompleters ;
20
21
using Microsoft . Azure . Commands . ResourceManager . Common . Tags ;
21
22
using Microsoft . Azure . Management . Resources . Models ;
22
23
using Microsoft . WindowsAzure . Commands . Common . CustomAttributes ;
@@ -45,6 +46,7 @@ public class NewAzSubscriptionDeploymentStack : DeploymentStacksCreateCmdletBase
45
46
46
47
[ Parameter ( Mandatory = true , ValueFromPipelineByPropertyName = true ,
47
48
HelpMessage = "Location of the stack." ) ]
49
+ [ ValidateNotNullOrEmpty ]
48
50
public string Location { get ; set ; }
49
51
50
52
[ Parameter ( Mandatory = false , HelpMessage = "Signal to delete both resources and resource groups after updating stack." ) ]
@@ -69,16 +71,16 @@ public class NewAzSubscriptionDeploymentStack : DeploymentStacksCreateCmdletBase
69
71
[ Parameter ( Mandatory = false , HelpMessage = "Apply to child scopes." ) ]
70
72
public SwitchParameter DenySettingsApplyToChildScopes { get ; set ; }
71
73
72
- [ Parameter ( Mandatory = false ,
73
- HelpMessage = "The ResourceGroup at which the deployment will be created. If none is specified, it will default to the " +
74
- "subscription level scope of the deployment stack." ) ]
74
+ [ Parameter ( Mandatory = false , HelpMessage = "The ResourceGroup at which the deployment will be created. If none is specified, " +
75
+ "it will default to the subscription level scope of the deployment stack." ) ]
76
+ [ ResourceGroupCompleter ]
77
+ [ ValidateNotNullOrEmpty ]
75
78
public string DeploymentResourceGroupName { get ; set ; }
76
79
77
80
[ Parameter ( Mandatory = false , HelpMessage = "The tags to put on the deployment." ) ]
78
81
public Hashtable Tag { get ; set ; }
79
82
80
- [ Parameter ( Mandatory = false ,
81
- HelpMessage = "Do not ask for confirmation when overwriting an existing stack." ) ]
83
+ [ Parameter ( Mandatory = false , HelpMessage = "Do not ask for confirmation when overwriting an existing stack." ) ]
82
84
public SwitchParameter Force { get ; set ; }
83
85
84
86
[ Parameter ( Mandatory = false , HelpMessage = "Run cmdlet in the background." ) ]
0 commit comments