Category: Uncategorized

  • Summary

    In this module, you set up your development environment to create and build Blazor web apps. You then:

    • Created and ran a new Blazor web app.
    • Reused a Razor component.
    • Added a parameter to a component.

    Congratulations on building your first Blazor web app!

    Learn more

    • Blazor homepage
    • Blazor docs
    • ASP.NET Core Blazor project structure

    ccnp certification training courses malaysia

  • Summary

    In this module, you created an ASP.NET Core web API running on .NET. The web API creates, reads, updates, and deletes pizzas from an in-memory cache.

    red hat linux administration training courses malaysia

    You learned that creating a web API with ASP.NET Core entails:

    1. Creating a new application by using the ASP.NET Core Web API template.
    2. Creating classes that inherit from the ControllerBase class and that contain methods that respond to HTTP requests.

    Because this pattern allows you to focus on a single controller action at a time, you can create functional web APIs fairly quickly with a little practice.

    red hat enterprise linux rhel training courses malaysia

    In this module, you used an in-memory cache. This approach helped you to focus on learning web API concepts, but it has some obvious limitations for real-world applications. If the application stops, all your changes are lost!

    red hat certified specialist in server hardening malaysia

    Videos for learning more

    • .NET for Beginners
    • C# for Beginners
    • All .NET Beginner Videos

    Articles for learning more

    • Tutorial: Create a web API with ASP.NET Core
    • Create web APIs with ASP.NET Core
    • Controller action return types in ASP.NET Core web API

    red hat certified specialist in linux performance tuning malaysia

  • Exercise – Create a web API project

    This module uses the .NET 8.0 SDK. Ensure that you have .NET 8.0 installed by running the following command in your preferred command terminal:

    .NET CLI

    dotnet --list-sdks
    

    Output similar to the following example appears:

    Console

    6.0.317 [C:\Program Files\dotnet\sdk]
    7.0.401 [C:\Program Files\dotnet\sdk]
    8.0.100 [C:\Program Files\dotnet\sdk]
    

    Ensure that a version that starts with 8 is listed. If none is listed or the command isn’t found, install the most recent .NET 8.0 SDK.

    dynamics 365 sales training courses malaysia

    Create and explore a web API project

    To set up a .NET project to work with the web API, we use Visual Studio Code. Visual Studio Code includes an integrated terminal that makes creating a new project easy. If you don’t want to use a code editor, you can run the commands in this module in a terminal.

    1. In Visual Studio Code, select File > Open Folder.
    2. Create a new folder named ContosoPizza in the location of your choice, and then choose Select Folder.
    3. Open the integrated terminal from Visual Studio Code by selecting View > Terminal from the main menu.
    4. In the terminal window, copy and paste the following command:.NET CLIdotnet new webapi -controllers -f net8.0 This command creates the files for a basic web API project that uses controllers, along with a C# project file named ContosoPizza.csproj that returns a list of weather forecasts. If you get an error, ensure that you have the .NET 8 SDK installed. ImportantWeb API projects are secured with https by default. If you have problems, configure the ASP.NET Core HTTPS development certificate.You might receive a prompt from Visual Studio Code to add assets to debug the project. Select Yes in the dialog.The command uses an ASP.NET Core project template aliased as webapi to scaffold a C#-based web API project. A ContosoPizza directory is created. This directory contains an ASP.NET Core project running on .NET. The project name matches the ContosoPizza directory name.You should now have access to these files and directories:Bash-| Controllers -| obj -| Properties -| appsettings.Development.json -| appsettings.json -| ContosoPizza.csproj -| ContosoPizza.http -| Program.cs -| WeatherForecast.cs
    5. Examine the following files and directories:NameDescriptionControllers/Contains classes with public methods exposed as HTTP endpoints.Program.csConfigures services and the app’s HTTP request pipeline, and contains the app’s managed entry point.ContosoPizza.csprojContains configuration metadata for the project.ContosoPizza.httpContains configuration to test REST APIs directly from Visual Studio Code.

    dynamics 365 finance training courses malaysia

    Build and test the web API

    1. Run the following .NET Core CLI command in the command shell:.NET CLIdotnet run The preceding command:
      • Locates the project file at the current directory.
      • Retrieves and installs any required project dependencies for this project.
      • Compiles the project code.
      • Hosts the web API with the ASP.NET Core Kestrel web server at both an HTTP and HTTPS endpoint.
      A port from 5000 to 5300 is selected for HTTP, and from 7000 to 7300 for HTTPS, when the project is created. You can easily change the ports that you use during development by editing the project’s launchSettings.json file. This module uses the secure localhost URL that begins with https.You should get output similar to the following, indicating that your app is running:ConsoleBuilding... info: Microsoft.Hosting.Lifetime[14] Now listening on: https://localhost:7294 info: Microsoft.Hosting.Lifetime[14] Now listening on: http://localhost:5118 info: Microsoft.Hosting.Lifetime[0] Application started. Press Ctrl+C to shut down. info: Microsoft.Hosting.Lifetime[0] Hosting environment: Development If you’re running this app on your own machine, you could direct a browser to the HTTPS link displayed in the output (in the preceding case, https://localhost:7294) to view the resulting page. Remember this port, because you use it throughout the module where {PORT} is used. ImportantCheck the terminal output if you encounter any unexpected behavior. If the build fails or other errors occur, the log file’s information helps you troubleshoot. As you make changes to the code, you’ll need to stop the web API by selecting CTRL+C on the keyboard and rerunning the dotnet run command.
    2. Open a web browser and go to:Bashhttps://localhost:{PORT}/weatherforecast You should see JSON output similar to this example:JSON[ { "date": "2021-11-09T20:36:01.4678814+00:00", "temperatureC": 33, "temperatureF": 91, "summary": "Scorching" }, { "date": "2021-11-09T20:36:01.4682337+00:00", "temperatureC": -8, "temperatureF": 18, "summary": "Cool" }, // ... ]

    dynamics 365 field service training courses malaysia

    Optional: Explore with .http files

    Included in the project is ContosoPizza.http, a file that is used to test API endpoints through a standard format. .http files are supported in several Integrated development environments (IDEs) including Visual Studio and inside of Visual Studio Code with the REST Client extension installed.

    1. Open the ContosoPizza.http file.In some IDEs, this file is preconfigured with the @ContosoPizza_HostAddress variables and a GET command calling /weatherforecast/ that accepts application/json.
    2. If it’s present in your file, select the Sent Request command above the GET which sends a request to the running service.Calling this command opens a response window with output similar to what we saw in the browser:OutputHTTP/1.1 200 OK Connection: close Content-Type: application/json; charset=utf-8 Date: Wed, 17 Jan 2024 16:46:40 GMT Server: Kestrel Transfer-Encoding: chunked [ { "date": "2024-01-18", "temperatureC": -2, "temperatureF": 29, "summary": "Warm" }, { "date": "2024-01-19", "temperatureC": 24, "temperatureF": 75, "summary": "Chilly" }, // .. ]

    dynamics 365 customer service training courses malaysia

    Optional: Explore APIs with Command Line HTTP REPL

    1. Open a new integrated terminal from Visual Studio Code by selecting Terminal > New Terminal from the main menu, then run the following command:.NET CLIdotnet tool install -g Microsoft.dotnet-httprepl The preceding command installs the .NET HTTP Read-Eval-Print Loop (REPL) command-line tool that you use to make HTTP requests to the web API.
    2. Connect to the web API by running the following command:.NET CLIhttprepl https://localhost:{PORT} Alternatively, run the following command at any time while HttpRepl is running:.NET CLIconnect https://localhost:{PORT}  TipIf the HttpRepl tool warns Unable to find an OpenAPI description, the most likely cause is an untrusted development certificate. HttpRepl requires a trusted connection. Before you can continue, you must configure your system to trust the dev certificate with dotnet dev-certs https --trust
    3. Explore available endpoints by running the following command:.NET CLIls The preceding command detects all APIs available on the connected endpoint and lists them, as in the following output:Outputhttps://localhost:{PORT}/> ls . [] WeatherForecast [GET]
    4. Go to the WeatherForecast endpoint by running the following command:.NET CLIcd WeatherForecast The preceding command shows an output of available APIs for the WeatherForecast endpoint:Outputhttps://localhost:{PORT}/> cd WeatherForecast /WeatherForecast [GET]
    5. Make a GET request in HttpRepl by using the following command:.NET CLIget The preceding command makes a GET request similar to going to the endpoint in the browser:OutputHTTP/1.1 200 OK Content-Type: application/json; charset=utf-8 Date: Fri, 02 Apr 2021 17:31:43 GMT Server: Kestrel Transfer-Encoding: chunked [ { "date": 4/3/2021 10:31:44 AM, "temperatureC": 13, "temperatureF": 55, "summary": "Sweltering" }, { "date": 4/4/2021 10:31:44 AM, "temperatureC": -13, "temperatureF": 9, "summary": "Warm" }, // .. ]
    6. End the current HttpRepl session by using the following command:.NET CLIexit
    7. Return to the dotnet terminal in the drop-down list in Visual Studio Code. Shut down the web API by selecting CTRL+C on your keyboard.

    Now that you created the web API, we can modify it to meet the needs of the pizza web API.

    devops certification training courses malaysia

  • Use tools in Copilot Studio – Online workshop

    In this module, you extend your agent’s capabilities in Microsoft Copilot Studio by giving it access to tools, learn the difference between the different tools, build a custom prompt, and execute an order cancellation using an agent flow.

    Learning objectives

    This module explains how to:

    • Understand the difference between the tools available in Copilot Studio.
    • Add prebuilt tools using connectors to perform real-time tasks.
    • Build and test a custom agent flow that initiates an order cancellation.
    • Control how tools are utilized.
    • Link multiple elements like topics and actions into seamless conversational experiences.

    web development

  • Make your agent autonomous in Copilot Studio – Online workshop

    In this module, you extend your agent’s capabilities in Microsoft Copilot Studio by giving it access to autonomous triggers, customize the agent’s triggers to perform conditionally when specific conditions are met, learn how to test and validate your trigger’s behavior, monitor the agent’s activity, and publish changes to the agent.

    Learning objectives

    This module explains how to:

    • Understand the purpose and structure of autonomous triggers.
    • Create a trigger that activates when a new email is received in a monitored Outlook inbox.
    • Test and validate your trigger with real-world data.

    testing

  • Build a conversational agent in Copilot Studio – Online workshop

    In this module, you build a conversational agent in Microsoft Copilot Studio, starting with the importing an agent solution, building an agent using natural language, and preparing the agent with knowledge sources to ground its answers in real-world data.

    Learning objectives

    This module explains how to:

    • Import a Dataverse solution.
    • Build an agent in Copilot Studio using natural language input and configure advanced behavior settings.
    • Navigate Copilot Studio’s interface, including key sections in the Overview page like, Topics, Knowledge, and Tools.
    • Control the agent’s pretrained data by modifying its knowledge sources.
    • Add internal and external data as agent knowledge sources.

    supply chain

  • Build agents in Copilot Chat – Online workshop

    Microsoft 365 Copilot Chat makes it easy to build declarative agents that enhance productivity across your organization. In this module, you’ll explore the fundamentals of agent creation using Microsoft 365 Copilot Chat with templates and starting from scratch for a customer service declarative agent.

    Learning objectives

    In this module, you begin building agents in Microsoft 365 Copilot Chat, starting with a template agent, and ending with a custom agent built for customer service scenarios.

    staff augmentation service

  • Discover Microsoft guidelines for responsible conversational AI development

    Learn Microsoft guidelines for the development of responsible conversational AI, such as chat bots and voice-controlled systems.

    Learning objectives

    In this module, you will:

    • Identify the different types of conversational AI bots and common stakeholders
    • Learn the benefits of making bots transparent and trustworthy
    • Discover guidelines to ensure bots are reliable and accessible

    software development

  • Build an autonomous agent in Copilot Studio

    Discover how to build an autonomous agent by using Microsoft Copilot Studio to transform routine tasks into intelligent, automated workflows. This module introduces the fundamental concepts of autonomous agent capabilities, explores real-world applications, and provides exercises to help you practice building and deploying an agent effectively. Designed for learners with beginner to intermediate experience, this module offers a step-by-step approach to creating an autonomous agent. Throughout this module, you explore the core components of Copilot Studio, gain practical experience in building a no-code autonomous agent, and learn how to deploy and manage it in a live environment.

    Learning objectives

    This module explains how to:

    • Explore use cases for creating an autonomous agent.
    • Identify the core components of an autonomous agent.
    • Build an autonomous agent in Copilot Studio.
    • Integrate knowledge and configure actions, instructions, and triggers to your agent.
    • Test and refine an autonomous agent in Copilot Studio.
    • Deploy and publish the agent that’s built to Microsoft Teams.

    school management

  • Use Azure AI Services for Language in a Microsoft Copilot Studio

    This module describes the setup that’s required to use Azure AI Services for Language to enhance the capabilities of a Microsoft Copilot Studio. Additionally, you’ll learn about Azure AI Services for Language and how to incorporate it into an agent.

    Learning objectives
    In this module, you’ll:

    Explore why using more services is important for your agent functionality.
    Learn about Azure AI Services for Language and its capabilities.
    Review how to create an agent and prepare it for use with Azure AI Services for Language.
    Learn how to call your Azure AI Services for Language service from within an agent with a Power Automate flow.

    quote