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
{{ message }}
Repository navigation
Connect using BYOT via a Managed Identity in Azure Functions #46
I have tons of use cases for running Powershell scripts in Azure Functions. What I do at the moment is obtain my Managed Identity bearer token (which I have previously granted permissions to) and the use the Invoke-WebRequest commandlet against the raw Graph API.
It would be great if as part of the Connect commandlet I was able to either pass in my already obtained bearer token, or even maybe ask the Connect commandlet to go get it for me. AB#5613
Reacted by Brett McKenzie, Paul Schaeflein, Edwin Young, tomatsue, tobvil and Garry Trinder
Colin Rippey (@colinrippeyfinarne) we have added a new CmdLet Invoke-GraphRequest, inspired by Invoke-WebRequest.
The new cmdlet has a -Token parameter that enables you to pass your required token as a SecureString.
For example:- Invoke-GraphRequest -Uri https://graph.microsoft.com/beta/me -Token $token -Authentication UserProvidedToken
Colin Rippey (@colinrippeyfinarne) we have added a new CmdLet Invoke-GraphRequest, inspired by Invoke-WebRequest.
The new cmdlet has a -Token parameter that enables you to pass your required token as a SecureString.
For example:- Invoke-GraphRequest -Uri https://graph.microsoft.com/beta/me -Token $token -Authentication UserProvidedToken
Thanks for the details, but I hope that this is not the resolution to the request? I hope you are still looking to add a -Token parameter to the Connect commandlet as I want to use all the lovely wrapper commandlets after connecting via Connect.
It will of course be useful to have the Invoke-GraphRequest commandlet, but surely one of the points of this library is to abstract away having to craft up raw urls and deal in a higher level scripting model?
Thanks again though for the details, it will be very useful.
Colin Rippey (@colinrippeyfinarne) We have added -AccessToken to Connect-Graph cmdlet in v1.0.1. Please take a look and give us feedback if it suits your needs. Thanks
Colin Rippey (@colinrippeyfinarne) We have added -AccessToken to Connect-Graph cmdlet in v1.0.1. Please take a look and give us feedback if it suits your needs. Thanks
Activity
darrelmiller commentedon Nov 29, 2019
This is a scenario that is definitely on our roadmap.
edyoung commentedon Dec 6, 2019
This will also enable transparent auth in Cloud Shell
darrelmiller commentedon Jan 21, 2020
This functionality is dependent on work we are doing in .Graph SDK .NET 2.0.
tobvil commentedon Apr 4, 2020
Would be awesome if would could use the module in Azure Functions.
8 remaining items
ddyett commentedon Aug 5, 2020
This is for Connect-Graph having a -token option to allow bypassing the normal code.
georgend commentedon Aug 15, 2020
Colin Rippey (@colinrippeyfinarne) we have added a new CmdLet
Invoke-GraphRequest, inspired byInvoke-WebRequest.The new cmdlet has a
-Tokenparameter that enables you to pass your required token as aSecureString.For example:-
Invoke-GraphRequest -Uri https://graph.microsoft.com/beta/me -Token $token -Authentication UserProvidedTokencolinrippeyfinarne commentedon Aug 15, 2020
Thanks for the details, but I hope that this is not the resolution to the request? I hope you are still looking to add a -Token parameter to the Connect commandlet as I want to use all the lovely wrapper commandlets after connecting via Connect.
It will of course be useful to have the Invoke-GraphRequest commandlet, but surely one of the points of this library is to abstract away having to craft up raw urls and deal in a higher level scripting model?
Thanks again though for the details, it will be very useful.
georgend commentedon Oct 14, 2020
Colin Rippey (@colinrippeyfinarne) We have added
-AccessTokentoConnect-Graphcmdlet in v1.0.1. Please take a look and give us feedback if it suits your needs. Thankscolinrippeyfinarne commentedon Oct 14, 2020
Brilliant, thanks for the update.