The “Hey, Scripting Guys!” blog has been retired. There are many useful posts in this blog, so we keep the blog here for historical reference. However, some information might be very outdated and many of the links might not work anymore.
New PowerShell content is being posted to the PowerShell Community blog where members of the community can create posts by submitting content in the GitHub repository.
Summary: Change the keys to authenticate to Azure RM Cognitive Services, by using Windows PowerShell.
(image) Hey, Scripting Guy! I created the keys for my Rest API. I know I can change them in the web portal, but is there a faster way of doing it through Windows PowerShell?
(image) There absolutely is! Just use the New-...
Summary: You can use Windows PowerShell to authenticate to the Microsoft Cognitive Services Text-to-Speech component through the Rest API.
Q: Hey, Scripting Guy!
I heard about the cool Microsoft Cognitive Services, and had heard they have a REST API. Does that mean I can use PowerShell to consume them? Could you show me how to authenticate ...
Summary: “Hey, Scripting Guy!” shows you how to use Invoke-RestMethod to read a list of entries from an RSS feed.
(image) How can I use Windows PowerShell to see the list of articles from an RSS feed?
(image) Just use the Invoke-RestMethod and provide the full path to the link to the RSS feed. Here is an example:
Invoke-...
Summary: This post provides a quick introduction to what the REST API is, and how it applies to Windows PowerShell.
Q: Hey, Scripting Guy!
I can see there is this cool cmdlet called Invoke-RestMethod. I've been told REST API's are all around, and this allows me to consume that data. Could you give me a hand getting started?
—SH
A: Hello SH...
Just like I mentioned in my first post, PowerShell supports a lot of stuff that makes it pretty easy to dive in and get stuff running. The following two examples are supported in PowerShell, but not something you should really be doing for any reusable tool set.
Putting your parameters (arguments) next to the function name in parenthesis ...