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/Resources/MSGraph.Autorest/custom/New-AzADServicePrincipal.ps1
+9-23Lines changed: 9 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -297,17 +297,11 @@ function New-AzADServicePrincipal {
297
297
# Supports $filter (eq, ne, NOT, ge, le, in, startsWith), $search, and $orderBy.
298
298
${DisplayName},
299
299
300
-
[Parameter(ParameterSetName='ApplicationObjectWithPasswordCredentialParameterSet',Mandatory,ValueFromPipeline,HelpMessage="The application object, could be used as pipeline input.")]
301
-
[Parameter(ParameterSetName='ApplicationObjectWithKeyCredentialParameterSet',Mandatory,ValueFromPipeline,HelpMessage="The application object, could be used as pipeline input.")]
302
-
[Parameter(ParameterSetName='ApplicationObjectWithPasswordPlainParameterSet',Mandatory,ValueFromPipeline,HelpMessage="The application object, could be used as pipeline input.")]
303
-
[Parameter(ParameterSetName='ApplicationObjectWithKeyPlainParameterSet',Mandatory,ValueFromPipeline,HelpMessage="The application object, could be used as pipeline input.")]
300
+
[Parameter(ParameterSetName='ApplicationObjectParameterSet',Mandatory,ValueFromPipeline,HelpMessage="The application object, could be used as pipeline input.")]
@@ -341,33 +335,23 @@ function New-AzADServicePrincipal {
341
335
# Not nullable.
342
336
${ReplyUrl},
343
337
344
-
[Parameter(ParameterSetName='ApplicationWithKeyPlainParameterSet',Mandatory,HelpMessage="The value of the 'asymmetric' credential type. It represents the base 64 encoded certificate.")]
345
-
[Parameter(ParameterSetName='ApplicationObjectWithKeyPlainParameterSet',Mandatory,HelpMessage="The value of the 'asymmetric' credential type. It represents the base 64 encoded certificate.")]
346
338
[Parameter(ParameterSetName='DisplayNameWithKeyPlainParameterSet',Mandatory,HelpMessage="The value of the 'asymmetric' credential type. It represents the base 64 encoded certificate.")]
[Parameter(ParameterSetName='ApplicationWithKeyPlainParameterSet',HelpMessage="The effective start date of the credential usage. The default start date value is today. For an 'asymmetric' type credential, this must be set to on or after the date that the X509 certificate is valid from.")]
352
-
[Parameter(ParameterSetName='ApplicationObjectWithPasswordPlainParameterSet',HelpMessage="The effective start date of the credential usage. The default start date value is today. For an 'asymmetric' type credential, this must be set to on or after the date that the X509 certificate is valid from.")]
353
-
[Parameter(ParameterSetName='ApplicationObjectWithKeyPlainParameterSet',HelpMessage="The effective start date of the credential usage. The default start date value is today. For an 'asymmetric' type credential, this must be set to on or after the date that the X509 certificate is valid from.")]
354
343
[Parameter(ParameterSetName='DisplayNameWithKeyPlainParameterSet',HelpMessage="The effective start date of the credential usage. The default start date value is today. For an 'asymmetric' type credential, this must be set to on or after the date that the X509 certificate is valid from.")]
[Parameter(ParameterSetName='ApplicationWithKeyPlainParameterSet',HelpMessage="The effective end date of the credential usage. The default end date value is one year from today. For an 'asymmetric' type credential, this must be set to on or before the date that the X509 certificate is valid.")]
361
-
[Parameter(ParameterSetName='ApplicationObjectWithPasswordPlainParameterSet',HelpMessage="The effective end date of the credential usage. The default end date value is one year from today. For an 'asymmetric' type credential, this must be set to on or before the date that the X509 certificate is valid.")]
362
-
[Parameter(ParameterSetName='ApplicationObjectWithKeyPlainParameterSet',HelpMessage="The effective end date of the credential usage. The default end date value is one year from today. For an 'asymmetric' type credential, this must be set to on or before the date that the X509 certificate is valid.")]
363
349
[Parameter(ParameterSetName='DisplayNameWithKeyPlainParameterSet',HelpMessage="The effective end date of the credential usage. The default end date value is one year from today. For an 'asymmetric' type credential, this must be set to on or before the date that the X509 certificate is valid.")]
364
350
[Parameter(ParameterSetName='SimpleParameterSet',HelpMessage="The effective end date of the credential usage. The default end date value is one year from today. For an 'asymmetric' type credential, this must be set to on or before the date that the X509 certificate is valid.")]
[Parameter(ParameterSetName='ApplicationWithKeyCredentialParameterSet',Mandatory,HelpMessage="key credentials associated with the service principal.")]
370
-
[Parameter(ParameterSetName='ApplicationObjectWithKeyCredentialParameterSet',Mandatory,HelpMessage="key credentials associated with the service principal.")]
371
355
[Parameter(ParameterSetName='DisplayNameWithKeyCredentialParameterSet',Mandatory,HelpMessage="key credentials associated with the service principal.")]
@@ -379,8 +363,6 @@ function New-AzADServicePrincipal {
379
363
# To construct, see NOTES section for KEYCREDENTIALS properties and create a hash table.
380
364
${KeyCredential},
381
365
382
-
[Parameter(ParameterSetName='ApplicationWithPasswordCredentialParameterSet',Mandatory,HelpMessage="Password credentials associated with the service principal.")]
383
-
[Parameter(ParameterSetName='ApplicationObjectWithPasswordCredentialParameterSet',Mandatory,HelpMessage="Password credentials associated with the service principal.")]
384
366
[Parameter(ParameterSetName='DisplayNameWithPasswordCredentialParameterSet',Mandatory,HelpMessage="Password credentials associated with the service principal.")]
0 commit comments