You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/ResourceManager/Resources/Commands.ResourceManager/Cmdlets/Implementation/Resource/GetAzureResourceCmdlet.cs
+11-3Lines changed: 11 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -67,11 +67,16 @@ public sealed class GetAzureResourceCmdlet : ResourceManagerCmdletBase
67
67
/// </summary>
68
68
internalconststringGetResourceByNameGroupParameterSet="Get resource by name and group";
69
69
70
-
/// <summary>
71
-
/// The list resources by name and resource group set.
70
+
/// <summary>
71
+
/// The list resources by name, type and resource group set.
72
72
/// </summary>
73
73
internalconststringGetResourceByNameGroupTypeParameterSet="Get resource by name, group and type";
/// Caches the current subscription ids to get all subscription ids in the pipeline.
77
82
/// </summary>
@@ -100,6 +105,7 @@ public sealed class GetAzureResourceCmdlet : ResourceManagerCmdletBase
100
105
/// <summary>
101
106
/// Gets or sets the resource type parameter.
102
107
/// </summary>
108
+
[Parameter(ParameterSetName=GetAzureResourceCmdlet.ListResourceCollection,Mandatory=true,HelpMessage="When specified, ensures that the query is run against a collection instead of a resource.")]
103
109
[Parameter(ParameterSetName=GetAzureResourceCmdlet.GetTenantResourceParameterSet,Mandatory=true,ValueFromPipelineByPropertyName=true,HelpMessage="The resource type. e.g. Microsoft.Sql/Servers/Databases.")]
104
110
[Parameter(ParameterSetName=GetAzureResourceCmdlet.ListTenantResourcesParameterSet,Mandatory=false,ValueFromPipelineByPropertyName=true,HelpMessage="The resource type. e.g. Microsoft.Sql/Servers/Databases.")]
105
111
[Parameter(ParameterSetName=GetAzureResourceCmdlet.GetResourceByNameTypeParameterSet,Mandatory=true,ValueFromPipelineByPropertyName=true,HelpMessage="The resource type. e.g. Microsoft.Sql/Servers/Databases.")]
@@ -121,6 +127,7 @@ public sealed class GetAzureResourceCmdlet : ResourceManagerCmdletBase
121
127
/// <summary>
122
128
/// Gets or sets the extension resource type.
123
129
/// </summary>
130
+
[Parameter(ParameterSetName=GetAzureResourceCmdlet.ListResourceCollection,Mandatory=false,HelpMessage="When specified, ensures that the query is run against a collection instead of a resource.")]
124
131
[Parameter(ParameterSetName=GetAzureResourceCmdlet.GetTenantResourceParameterSet,Mandatory=false,ValueFromPipelineByPropertyName=true,HelpMessage="The extension resource type. e.g. Microsoft.Sql/Servers/Databases.")]
125
132
[Parameter(ParameterSetName=GetAzureResourceCmdlet.ListTenantResourcesParameterSet,Mandatory=false,ValueFromPipelineByPropertyName=true,HelpMessage="The extension resource type. e.g. Microsoft.Sql/Servers/Databases.")]
126
133
[Parameter(ParameterSetName=GetAzureResourceCmdlet.GetResourceByNameGroupParameterSet,Mandatory=false,ValueFromPipelineByPropertyName=true,HelpMessage="The extension resource type. e.g. Microsoft.Sql/Servers/Databases.")]
@@ -138,11 +145,11 @@ public sealed class GetAzureResourceCmdlet : ResourceManagerCmdletBase
138
145
/// <summary>
139
146
/// Gets or sets the is collection.
140
147
/// </summary>
148
+
[Parameter(ParameterSetName=GetAzureResourceCmdlet.ListResourceCollection,Mandatory=true,HelpMessage="When specified, ensures that the query is run against a collection instead of a resource.")]
141
149
[Parameter(ParameterSetName=GetAzureResourceCmdlet.GetTenantResourceParameterSet,Mandatory=false,HelpMessage="When specified, ensures that the query is run against a collection instead of a resource.")]
142
150
[Parameter(ParameterSetName=GetAzureResourceCmdlet.ListTenantResourcesParameterSet,Mandatory=false,HelpMessage="When specified, ensures that the query is run against a collection instead of a resource.")]
143
151
[Parameter(ParameterSetName=GetAzureResourceCmdlet.GetResourceByNameTypeParameterSet,Mandatory=false,HelpMessage="When specified, ensures that the query is run against a collection instead of a resource.")]
144
152
[Parameter(ParameterSetName=GetAzureResourceCmdlet.GetResourceByNameGroupParameterSet,Mandatory=false,HelpMessage="When specified, ensures that the query is run against a collection instead of a resource.")]
145
-
[Parameter(ParameterSetName=GetAzureResourceCmdlet.GetResourceByNameGroupTypeParameterSet,Mandatory=false,HelpMessage="When specified, ensures that the query is run against a collection instead of a resource.")]
146
153
publicSwitchParameterIsCollection{get;set;}
147
154
148
155
/// <summary>
@@ -162,6 +169,7 @@ public sealed class GetAzureResourceCmdlet : ResourceManagerCmdletBase
162
169
/// <summary>
163
170
/// Gets or sets the resource group name.
164
171
/// </summary>
172
+
[Parameter(ParameterSetName=GetAzureResourceCmdlet.ListResourceCollection,Mandatory=true,HelpMessage="When specified, ensures that the query is run against a collection instead of a resource.")]
165
173
[Parameter(ParameterSetName=GetAzureResourceCmdlet.GetResourceByNameGroupParameterSet,Mandatory=true,ValueFromPipelineByPropertyName=true,HelpMessage="The resource group name.")]
166
174
[Parameter(ParameterSetName=GetAzureResourceCmdlet.GetResourceByNameGroupTypeParameterSet,Mandatory=true,ValueFromPipelineByPropertyName=true,HelpMessage="The resource group name.")]
0 commit comments