Skip to content

Instantly share code, notes, and snippets.

View rob-derosa's full-sized avatar
🍕

Rob DeRosa rob-derosa

🍕
  • GitHub Staff
  • Colorado
View GitHub Profile
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using MyCompany.Bot.Dialogs.MakeReservation.Resources;
using Microsoft.Bot.Builder;
using Microsoft.Bot.Builder.TemplateManager;
using Microsoft.Bot.Schema;
namespace MyCompany.Bot.Dialogs.MakeReservation
{
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
async Task GetData()
{
try
{
vinQueryMediationWS request = new vinQueryMediationWS();
request.vinQueryMediationReq = new VINQueryMediationRequest();
request.vinQueryMediationReq.VINQueryMediationReq = new VINQueryMediationReq();
request.vinQueryMediationReq.VINQueryMediationReq.vin = "JA4JS4AX5BU007615";
VINQueryMediationWSClient client = new VINQueryMediationWSClient();
@rob-derosa
rob-derosa / ConversationLogger.cs
Last active April 9, 2019 19:06
ConversationLogger middleware that outputs log data to the console
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using System.Linq;
using System.Net;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Bot.Builder;
using Microsoft.Bot.Configuration;
Develop Azure Infrastructure as a Service (IaaS) Compute Solutions (10-15%)
• Implement solutions that use virtual machines (VM)
○ Provision VMs
○ Create ARM templates
○ Configure Azure Disk Encryption for VMs
• Implement batch jobs by using Azure Batch Services
○ Manage batch jobs by using Batch Service API
○ Run a batch job by using Azure CLI, Azure portal, and other tools
○ Write code to run an Azure Batch Services batch job
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using UpNextApi.Models;
namespace UpNextApi.Controllers
{
[Route("api/[controller]")]
async confirmAgePrompt(step) {
const user = await this.userProfile.get(step.context, {});
user.name = step.result;
const request = require('request-promise');
const options = {
method: `GET`
,json: true
,uri: `https://jsonplaceholder.typicode.com/todos/1`

Adding a bot to Teams from different Azure Active Directories

If you are adding a bot to Teams where the bot and Teams are in different Azure Active Directories, please follow this guide to add your bot:

  1. Create your bot in Azure portal and note the bot's Application ID.
    • You can locate the ID of your app by clicking on the Settings tab within your Web App Bot and look for value in the disabled field Microsoft App ID and note it down
  2. Install the App Studio app into Teams and open it
  3. Click on the Manifest Editor tab
  4. Click Create an App button and complete the required app info fields