-
Notifications
You must be signed in to change notification settings - Fork 4k
Open
Labels
AADAzAd cmdlets in Az.ResourcesAzAd cmdlets in Az.ResourcesAzure PS TeambugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedneeds-team-attentionThis issue needs attention from Azure service team or SDK teamThis issue needs attention from Azure service team or SDK team
Description
Description
Hi,
while updating this service principal I get the following error.
Issue script & Debug output
Connect-AzAccount
$appId = "00000015-0000-0000-c000-000000000000"
$sp = Get-AzADServicePrincipal -ApplicationId $appId
$sp | Set-AzADServicePrincipal -ReplyUrl $sp.ReplyUrl
Update-AzADApplication : Cannot bind argument to parameter 'Id' because it is an empty string.
At C:\Program
Files\WindowsPowerShell\Modules\Az.Resources\6.0.1\MSGraph.Autorest\custom\Update-AzADServicePrincipal.ps1:617 char:5
+ Update-AzADApplication @param
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Update-AzADApplication], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Update-AzADApplication
Environment data
$PSVersionTable
Name Value
---- -----
PSVersion 5.1.19041.1682
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.19041.1682
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Module versions
Get-Module Az*
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Script 2.9.0 Az.Accounts {Add-AzEnvironment, Clear-AzConfig, Clear-AzContext, Clear...
Script 6.0.1 Az.Resources {Export-AzResourceGroup, Export-AzTemplateSpec, Get-AzDeny...
Error output
HistoryId: 5
Message : Cannot bind argument to parameter 'Id' because it is an empty string.
StackTrace : at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext
funcContext, Exception exception)
at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame
frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame
frame)
at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0)
at System.Management.Automation.PSScriptCmdlet.RunClause(Action`1 clause, Object dollarUnderbar,
Object inputToProcess)
at System.Management.Automation.PSScriptCmdlet.DoProcessRecord()
at System.Management.Automation.CommandProcessor.ProcessRecord()
Exception : System.Management.Automation.ParameterBindingValidationException
InvocationInfo : {Update-AzADApplication}
Line : Az.MSGraph.internal\Update-AzADApplication @PSBoundParameters
Position : At C:\Program Files\WindowsPowerShell\Modules\Az.Resources\6.0.1\MSGraph.Autorest\custom\Update-AzADAp
plication.ps1:545 char:48
+ Az.MSGraph.internal\Update-AzADApplication @PSBoundParameters
+ ~~~~~~~~~~~~~~~~~~
HistoryId : 5
The Azure PowerShell team is listening, please let us know how we are doing: https://aka.ms/azpssurvey?Q_CHL=ERROR.
Metadata
Metadata
Assignees
Labels
AADAzAd cmdlets in Az.ResourcesAzAd cmdlets in Az.ResourcesAzure PS TeambugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedneeds-team-attentionThis issue needs attention from Azure service team or SDK teamThis issue needs attention from Azure service team or SDK team