Book Image

Learn PowerShell Core 6.0

By : David das Neves, Jan-Hendrik Peters
Book Image

Learn PowerShell Core 6.0

By: David das Neves, Jan-Hendrik Peters

Overview of this book

Beginning with an overview of the different versions of PowerShell, Learn PowerShell Core 6.0 introduces you to VSCode and then dives into helping you understand the basic techniques in PowerShell scripting. You will cover advanced coding techniques, learn how to write reusable code as well as store and load data with PowerShell. This book will help you understand PowerShell security and Just Enough Administration, enabling you to create your own PowerShell repository. The last set of chapters will guide you in setting up, configuring, and working with Release Pipelines in VSCode and VSTS, and help you understand PowerShell DSC. In addition to this, you will learn how to use PowerShell with Windows, Azure, Microsoft Online Services, SCCM, and SQL Server. The final chapter will provide you with some use cases and pro tips. By the end of this book, you will be able to create professional reusable code using security insight and knowledge of working with PowerShell Core 6.0 and its most important capabilities.
Table of Contents (26 chapters)
Title Page
Dedication
Packt Upsell
Contributors
Preface
Index

Working with APIs


APIs have been around for some time, as has the concept of REST. You will know that RESTful endpoints created with Swagger are everywhere, and not only development but also operations people need to interact with APIs.

Note

An Application Programming Interface (API) is a way for developers to interface with, for example, the operating system, as is possible with the Win32 API.Representational State Transfer (REST) describes the architectural principle that developers can follow to create interoperable web services.

Whether it is a monitoring system that you want to grab logs off, a web interface to a build system, or the Graph API of one of the big IT businesses, PowerShell is ideal for working with APIs (read: RESTful endpoints). Especially services delivering JSON data make it very easy to interact with. In this chapter, we will explore how to interact with APIs. JSON stands for JavaScript Object Notation and describes a way to represent complex objects as lightweight strings...