[BUG]
#2470
Replies: 1 comment
-
Any updates on this folks? Wondering why this was changed to a discussion item. Thanks |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to run PnP cmdlets from an Azure Automation Account, where we have configured the ManagedIdentity to have access to Sharepoint Online.
Cannot use:
Connect-PnPOnline -ManagedIdentity -URL $SiteURL
If I run
Connect-PnPOnline -ManagedIdentity
it connects, but subsequent PNP cmdlets fail with "The current connection holds no SharePoint context. Please use one of the Connect-PnPOnline commands which uses the -Url argument to connect."
if I run
Connect-PnPOnline -ManagedIdentity -URL $SiteURL
I get this error:
System.Management.Automation.ParameterBindingException: Parameter set cannot be resolved using the specified named parameters.
at System.Management.Automation.CmdletParameterBinderController.ThrowAmbiguousParameterSetException(UInt32 parameterSetFlags, MergedCommandParameterMetadata bindableParameters)
at System.Management.Automation.CmdletParameterBinderController.ValidateParameterSets(Boolean prePipelineInput, Boolean setDefault)
at System.Management.Automation.CmdletParameterBinderController.BindCommandLineParametersNoValidation(Collection
1 arguments) at System.Management.Automation.CmdletParameterBinderController.BindCommandLineParameters(Collection
1 arguments)at System.Management.Automation.CommandProcessor.BindCommandLineParameters()
at System.Management.Automation.CommandProcessorBase.DoPrepare(IDictionary psDefaultParameterValues)
at System.Management.Automation.Internal.PipelineProcessor.Start(Boolean incomingStream)
at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input)
at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean ignoreInput, CommandParameterInternal[][] pipeElements, CommandBaseAst[] pipeElementAsts, CommandRedirection[][] commandRedirections, FunctionContext funcContext)
at System.Management.Automation.Interpreter.ActionCallInstruction`6.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
According to the documentation, this should be a valid line.
We're running 1.11.0
Beta Was this translation helpful? Give feedback.
All reactions