Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Automate anything with Azure DevOps and Postman
Rating: 5.0 out of 5(4 ratings)
29 students

Automate anything with Azure DevOps and Postman

Use Postman to capture API requests, translate it into PowerShell code and deploy with YAML and Azure DevOps
Created byRyan Hodgson
Last updated 6/2024
English

What you'll learn

  • Capture API requests with Postman
  • Convert API request into PowerShell
  • Create a YAML pipeline with PowerShell API code
  • Run YAML pipeline in Azure DevOps to automate tasks

Course content

2 sections10 lectures46m total length
  • Introduction1:56
  • Capture API POST Request5:41

    When working with APIs, it is essential to understand how to capture API POST requests in tools like Postman. Capturing API POST requests allows you to inspect and analyze the data being sent to the server, helping you troubleshoot issues and better understand the API's functionality. In Postman, capturing API POST requests is a straightforward process that can provide valuable insights into the communication between your application and the API.

    Postman provides a feature called "Interceptor," which allows you to capture all incoming and outgoing HTTP requests. By enabling the Interceptor, you can capture the API POST request and view the details, including the request method, URL, headers, body content, and response data. This information can be instrumental in troubleshooting any issues with your API integration or automating it for pipelines.

    By capturing API POST requests in Postman, you can gain valuable insights into the communication between your application and the API server. This visibility can help you identify any issues with your request data, troubleshoot errors in the response data, and optimize the performance of your API calls. Additionally, capturing API POST requests in tools like Postman allows you to save and reuse requests, share them with team members, and collaborate on API testing and development tasks effectively. Overall, mastering the skill of capturing API POST requests in Postman is a valuable asset for any developer or API enthusiast.

  • Copy code from postman to powershell3:28

    When working with APIs, it is common to use tools like Postman to test endpoints and generate code snippets that can be used in various programming languages. One popular use case is copying code from Postman to PowerShell, which allows you to automate tasks and interact with APIs from your local machine. To do this, you can utilize the code snippets feature in Postman to generate the necessary PowerShell commands for your API requests.

    When you have a request set up in Postman and are satisfied with the outcome, you can easily convert it into PowerShell code by clicking on the code button in the upper right corner of the screen. Select PowerShell as the language, and you will see the corresponding PowerShell code snippet for your request. Copy the code snippet and paste it into your PowerShell script or console, making any necessary adjustments to variables or authentication details to fit your specific use case. This simple process makes it quick and easy to translate API requests from Postman to PowerShell.

    By copying code from Postman to PowerShell, you can streamline your workflow and automate tasks that require interacting with APIs. Whether you are fetching data, updating resources, or performing other actions through an API, PowerShell provides a convenient way to script these tasks efficiently. This integration between Postman and PowerShell empowers you to leverage the benefits of both tools, enabling you to work with APIs seamlessly and enhance your productivity as a developer or IT professional.


    See downloadable materials for code snippets.

  • Setup service principal and add permission to power apps environment7:05

    Setting up a service principal and adding permissions to a Power Apps environment is a crucial step in ensuring seamless automation and integration within your workflow. A service principal is a security identity used by applications or services to access specific resources. By creating a service principal for your Power Apps environment, you can securely authenticate and authorize applications to interact with your data and resources. This means you can automate various tasks and processes without compromising security or relying on individual user credentials.

    To set up a service principal for your Power Apps environment, you will first need to navigate to the Azure Portal and access the Azure Active Directory section. From there, you can create a new application registration, which will represent your service principal. Make sure to note down the Application ID and Directory ID, as you will need these to authenticate your application. Next, you will need to assign the necessary permissions to the service principal to access your Power Apps environment. This typically involves assigning roles such as Power Apps Maker or Power Apps User, depending on the level of access required for your automation tasks.

    Once you have set up the service principal and assigned the appropriate permissions, you can start integrating it into your automation workflows using APIs. For example, you can use the Microsoft Power Platform connectors to authenticate with the service principal and perform actions such as creating records in Dataverse or triggering Power Automate flows. By leveraging the capabilities of the service principal, you can automate repetitive tasks, streamline processes, and improve overall efficiency within your Power Apps environment. This not only saves time and effort but also ensures consistency and accuracy in your automation workflows.

  • Testing the script2:01

    Testing PowerShell scripts with API calls is essential to ensure that your scripts are functioning correctly and interacting with external services as expected. By testing your scripts, you can identify and fix any issues before deploying them into production, ultimately saving time and preventing potential errors.

    When testing a PowerShell script with an API call, it's important to consider various scenarios, such as testing different input parameters, handling different response statuses, and verifying the data returned by the API. You can automate the testing process by writing test scripts that execute the PowerShell script with different inputs and assert the expected outcomes. This helps you catch any regressions or unexpected behavior early in the development cycle.

    By incorporating API testing into your PowerShell script development workflow, you can improve the quality and reliability of your scripts while ensuring seamless interactions with external services.

Requirements

  • Minimal code needed, most is just captured and inserted into a pipeline
  • Postman App
  • PowerShell
  • Azure DevOps
  • Power Apps Environment

Description

Hey there! Ready to unlock the power of automation? In this course, we're diving headfirst into the world of YAML and APIs—your ticket to making technology work smarter, not harder. From automating mundane tasks to integrating complex systems, you'll master the art of crafting YAML files to instruct systems on what to do, all while using APIs as your universal remote for controlling web services. Whether you're keen on speeding up your workflow or looking to streamline data sharing across platforms, this course will provide you with the hands-on knowledge you need to make it happen.

Imagine a world where your daily to-dos handle themselves and data flows seamlessly from one service to another. That's the magic we're about to explore! Along the way, you'll gain the skills to automate tasks like posting to social media, updating databases, or even controlling smart devices, all with just a few lines of YAML and some clever API calls. What's more, you'll see how these tools are being used in the wild, from small startups to tech giants, enabling you to apply your new skills in situations that matter to you. Get ready to give your productivity a serious boost and join the ranks of automation aficionados!

Who this course is for:

  • People interested in using Microsoft Cloud and DevOps to automate manual tasks