This commit is contained in:
Michael Crump 2019-02-21 16:16:26 -08:00
Родитель 1f743d7254
Коммит 38484e22b6
169 изменённых файлов: 624 добавлений и 615 удалений

Двоичные данные
.DS_Store поставляемый

Двоичный файл не отображается.

Просмотреть файл

@ -1,6 +1,6 @@
---
type: post
title: "Azure Tips and Tricks Part 10 - Quickly Connect to a Linux VM with SSH"
title: "Tip 10 - Quickly Connect to a Linux VM with SSH"
excerpt: "Learn how to quickly connect to a Linux VM with SSH"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2017-09-04 17:00:00

Просмотреть файл

@ -1,15 +1,15 @@
---
type: post
title: "Azure Tips and Tricks Part 100 - Creating an Email Subscription with Azure Functions - Sending Emails"
title: "Tip 100 - Creating an Email Subscription with Azure Functions - Sending Emails"
excerpt: "Learn how to generate a weekly digest email for a blog using Azure Functions, SendGrid and Azure Storage"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-03-04 17:00:00
---
## Where are we?
#### Where are we?
**Full Source Code** The source code for the app can be found on [GitHub](https://github.com/mbcrump/EmailSubscription)
{: .notice--info}
This blog post is part of a series on how to generate a weekly digest email for a blog using Azure Functions, SendGrid and Azure Storage.
@ -22,11 +22,11 @@ We're trying to build a Email Subscription similar to the following. If you want
<img :src="$withBase('/files/emailsub1.png')">
## Generating and Sending Emails
#### Generating and Sending Emails
In our last post, we left off by creating a frontend that used HTML5, jQuery and some light CSS work. When the user filled out the form and clicked **Submit**, then it would check to ensure the email is valid and then use an AJAX call to POST the data to our Azure Function that we wrote in part 2. Today, we'll wrap things up by using SendGrid, C# and Azure Functions to send emails every Sunday at 9:30AM.
## Use the Azure Functions Template inside of Visual Studio
#### Use the Azure Functions Template inside of Visual Studio
Return to the project we created earlier and right-click the project and select **Add Item** and select **Azure Functions**. Now give it a name such as **SendEmail** and select **Timer Trigger** and provide the following schedule **0 30 9 * * SUN**.

Просмотреть файл

@ -1,13 +1,13 @@
---
type: post
title: "Azure Tips and Tricks Part 101 - Day 1 - An end to end scenario with Azure App Service, API Apps, SQL, VSTS and CI/CD"
title: "Tip 101 - Day 1 - An end to end scenario with Azure App Service, API Apps, SQL, VSTS and CI/CD"
excerpt: "A tutorial on creating a To-Do list app with .NET and using Azure App Service, API Apps, SQL, VSTS and CI/CD"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-03-11 17:00:00
---
## A multi-part series showing an end-to-end possibility
#### A multi-part series showing an end-to-end possibility
[Crystal Tenn](https://www.linkedin.com/in/crystal-tenn-6a0b9b67/) and I teamed up to bring an E2E blog series that features an Azure App Service website that communicates with an API project, which communicates to an Azure SQL back-end. The app is a traditional To-Do application based on an existing sample that used ADO.NET, but adapted for Azure deploy and to Visual Studio 2017. The technology/tooling stack is Visual Studio, VSTS, C#, Angular, and SQL.
@ -27,7 +27,7 @@ Keep in mind : While we won't be going into the deep specifics of how to code, y
<img :src="$withBase('/files/todolist-diagram.png')">
## Prerequisites
#### Prerequisites
Please download the required software listed below. If you already have the software and a different version, that is no problem at all, but probably best to use the latest version. If you have access to paid versions of the software, these are fine as well.
@ -39,7 +39,7 @@ The tutorial can be completed for free, but will require a Azure account. Note:
* SQL Server Management Studio: [https://docs.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms](https://docs.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms)
* Basic understanding of coding & installation
## Local Setup - SQL Server
#### Local Setup - SQL Server
The local setup will start with setting up your database. You will then open the solution in Visual Studio. You need to connect the API project to your SQL Server. Then connect your front end Angular project to the API project.

Просмотреть файл

@ -1,13 +1,13 @@
---
type: post
title: "Azure Tips and Tricks Part 102 - Day 2 - An end to end scenario with Azure App Service, API Apps, SQL, VSTS and CI/CD"
title: "Tip 102 - Day 2 - An end to end scenario with Azure App Service, API Apps, SQL, VSTS and CI/CD"
excerpt: "A tutorial on creating a To-Do list app with .NET and using Azure App Service, API Apps, SQL, VSTS and CI/CD"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-03-12 17:00:00
---
## A multi-part series showing an end-to-end possibility
#### A multi-part series showing an end-to-end possibility
[Crystal Tenn](https://www.linkedin.com/in/crystal-tenn-6a0b9b67/) and I teamed up to bring an E2E blog series that features an Azure App Service website that communicates with an API project, which communicates to an Azure SQL back-end. The app is a traditional To-Do application based on an existing sample that used ADO.NET, but adapted for Azure deploy and to Visual Studio 2017. The technology/tooling stack is Visual Studio, VSTS, C#, Angular, and SQL.
@ -27,7 +27,7 @@ Keep in mind : While we won't be going into the deep specifics of how to code, y
<img :src="$withBase('/files/todolist-diagram.png')">
## Local Setup - Visual Studio to talk to our SQL Database
#### Local Setup - Visual Studio to talk to our SQL Database
1.) Open the project in Visual Studio by double clicking **ToDoList.sln**, if it is not already open from Part 1.
@ -54,7 +54,7 @@ Mine looks like:
<img :src="$withBase('/files/e2e-run.jpg')">
Note: If you get **The Web server is configured to not list the contents of this directory.**, then just proceed to step 6.
{: .notice--info}
6.) Add /swagger to the URL if it is not already there for you. The page should look like this if everything is working properly:

Просмотреть файл

@ -1,13 +1,13 @@
---
type: post
title: "Azure Tips and Tricks Part 103 - Day 3 - An end to end scenario with Azure App Service, API Apps, SQL, VSTS and CI/CD"
title: "Tip 103 - Day 3 - An end to end scenario with Azure App Service, API Apps, SQL, VSTS and CI/CD"
excerpt: "A tutorial on creating a To-Do list app with .NET and using Azure App Service, API Apps, SQL, VSTS and CI/CD"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-03-13 17:00:00
---
## A multi-part series showing an end-to-end possibility
#### A multi-part series showing an end-to-end possibility
[Crystal Tenn](https://www.linkedin.com/in/crystal-tenn-6a0b9b67/) and I teamed up to bring an E2E blog series that features an Azure App Service website that communicates with an API project, which communicates to an Azure SQL back-end. The app is a traditional To-Do application based on an existing sample that used ADO.NET, but adapted for Azure deploy and to Visual Studio 2017. The technology/tooling stack is Visual Studio, VSTS, C#, Angular, and SQL.
@ -27,12 +27,12 @@ Keep in mind : While we won't be going into the deep specifics of how to code, y
<img :src="$withBase('/files/todolist-diagram.png')">
## Local Setup - Working with Swagger
#### Local Setup - Working with Swagger
If you noticed in the last post, we started working with Swagger.
**What is Swagger UI?** is a collection of HTML, Javascript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.
{: .notice--info}
The nice thing about Swagger is that you can create an existing **Web API** app using the VS Templates and add **Swagger** via Nuget.
@ -42,7 +42,7 @@ Then if you spin up a project, you simply add **/swagger** to see the UI. In the
Learn more about Swagger [here](https://github.com/swagger-api/swagger-ui).
## Continuing where we left off
#### Continuing where we left off
1.) Open the project in Visual Studio by double clicking **ToDoList.sln**, if it is not already open from the previous parts. Navigate to the **ToDoListDataAPI** project.

Просмотреть файл

@ -1,13 +1,13 @@
---
type: post
title: "Azure Tips and Tricks Part 104 - Day 4 - An end to end scenario with Azure App Service, API Apps, SQL, VSTS and CI/CD"
title: "Tip 104 - Day 4 - An end to end scenario with Azure App Service, API Apps, SQL, VSTS and CI/CD"
excerpt: "A tutorial on creating a To-Do list app with .NET and using Azure App Service, API Apps, SQL, VSTS and CI/CD"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-03-18 17:00:00
---
## A multi-part series showing an end-to-end possibility
#### A multi-part series showing an end-to-end possibility
[Crystal Tenn](https://www.linkedin.com/in/crystal-tenn-6a0b9b67/) and I teamed up to bring an E2E blog series that features an Azure App Service website that communicates with an API project, which communicates to an Azure SQL back-end. The app is a traditional To-Do application based on an existing sample that used ADO.NET, but adapted for Azure deploy and to Visual Studio 2017. The technology/tooling stack is Visual Studio, VSTS, C#, Angular, and SQL.
@ -57,7 +57,7 @@ The **connection string** will look like this (save this in a Notepad for the we
<img :src="$withBase('/files/e2e-07SSMS.png')">
**Note** if you cannot login, please go to the Portal and add your **IP address** by clicking on the **SQL Server** you created, then going to **Firewall**. You may also be able to set the firewall prompt through the SQL Server tool.
{: .notice--info}
<img :src="$withBase('/files/e2e-10.PNG')">

Просмотреть файл

@ -1,13 +1,13 @@
---
type: post
title: "Azure Tips and Tricks Part 105 - Day 5 - An end to end scenario with Azure App Service, API Apps, SQL, VSTS and CI/CD"
title: "Tip 105 - Day 5 - An end to end scenario with Azure App Service, API Apps, SQL, VSTS and CI/CD"
excerpt: "A tutorial on creating a To-Do list app with .NET and using Azure App Service, API Apps, SQL, VSTS and CI/CD"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-03-19 17:00:00
---
## A multi-part series showing an end-to-end possibility
#### A multi-part series showing an end-to-end possibility
[Crystal Tenn](https://www.linkedin.com/in/crystal-tenn-6a0b9b67/) and I teamed up to bring an E2E blog series that features an Azure App Service website that communicates with an API project, which communicates to an Azure SQL back-end. The app is a traditional To-Do application based on an existing sample that used ADO.NET, but adapted for Azure deploy and to Visual Studio 2017. The technology/tooling stack is Visual Studio, VSTS, C#, Angular, and SQL.
@ -30,7 +30,7 @@ Keep in mind : While we won't be going into the deep specifics of how to code, y
We will use Visual Studio to deploy to Azure in this tutorial. This can also be done by packaging up the files and uploading manually to Azure. Or, you could do it via an automated CI/CD (Build and Release) process which will be shown in upcoming posts.
## Front-end Angular + Back-end API projects
#### Front-end Angular + Back-end API projects
Before we begin, I'm assuming you're using the same email address for VSTS that you are using for Azure.

Просмотреть файл

@ -1,12 +1,12 @@
---
type: post
title: "Azure Tips and Tricks Part 107 - Day 6 - An end to end scenario with Azure App Service, API Apps, SQL, VSTS and CI/CD"
title: "Tip 107 - Day 6 - An end to end scenario with Azure App Service, API Apps, SQL, VSTS and CI/CD"
excerpt: "A tutorial on creating a To-Do list app with .NET and using Azure App Service, API Apps, SQL, VSTS and CI/CD"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-03-25 17:00:00
---
## A multi-part series showing an end-to-end possibility
#### A multi-part series showing an end-to-end possibility
[Crystal Tenn](https://www.linkedin.com/in/crystal-tenn-6a0b9b67/) and I teamed up to bring an E2E blog series that features an Azure App Service website that communicates with an API project, which communicates to an Azure SQL back-end. The app is a traditional To-Do application based on an existing sample that used ADO.NET, but adapted for Azure deploy and to Visual Studio 2017. The technology/tooling stack is Visual Studio, VSTS, C#, Angular, and SQL.
@ -28,12 +28,12 @@ Keep in mind : While we won't be going into the deep specifics of how to code, y
**Pre-requisite:** Install [Git](https://git-scm.com/downloads)
## Create the VSTS Account
#### Create the VSTS Account
1.) Sign up for VSTS if you do not have an account by clicking the [Sign Up button](https://www.visualstudio.com/team-services/) on the homepage.
Make sure to use the same email address that you used for Azure.
{: .notice--info}
2.) Create a new VSTS Account by hitting the button on the top right.

Просмотреть файл

@ -1,12 +1,12 @@
---
type: post
title: "Azure Tips and Tricks Part 108 - Day 7 - An end to end scenario with Azure App Service, API Apps, SQL, VSTS and CI/CD"
title: "Tip 108 - Day 7 - An end to end scenario with Azure App Service, API Apps, SQL, VSTS and CI/CD"
excerpt: "A tutorial on creating a To-Do list app with .NET and using Azure App Service, API Apps, SQL, VSTS and CI/CD"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-03-26 17:00:00
---
## A multi-part series showing an end-to-end possibility
#### A multi-part series showing an end-to-end possibility
[Crystal Tenn](https://www.linkedin.com/in/crystal-tenn-6a0b9b67/) and I teamed up to bring an E2E blog series that features an Azure App Service website that communicates with an API project, which communicates to an Azure SQL back-end. The app is a traditional To-Do application based on an existing sample that used ADO.NET, but adapted for Azure deploy and to Visual Studio 2017. The technology/tooling stack is Visual Studio, VSTS, C#, Angular, and SQL.
@ -26,7 +26,7 @@ Keep in mind : While we won't be going into the deep specifics of how to code, y
<img :src="$withBase('/files/todolist-diagram.png')">
## Two ways to skin a cat
#### Two ways to skin a cat
We have one Visual Studio Solution and 2 web projects that need to be deployed to Azure. We can tackle this in different ways depending on the operation of our team.
@ -35,9 +35,9 @@ We have one Visual Studio Solution and 2 web projects that need to be deployed t
2. Some enterprises will choose to put all pieces of their solution through as a whole, and some places only want to deploy one part at a time. It depends on the complexity of the code, the amount of CI/CD setup you are willing to setup, how the solution(s)/project(s) are divided, and performance requirements (speed/size of CI/CD process).
Note: For the simplicity of this little project and to just teach the basics, I am choosing to group these as one solution that gets built as a whole, then I will have one Release that deploys both parts.
{: .notice--info}
## Getting Started
#### Getting Started
1.) Make sure that you've completed the following two steps before moving forward:

Просмотреть файл

@ -1,12 +1,12 @@
---
type: post
title: "Azure Tips and Tricks Part 109 - Day 8 - An end to end scenario with Azure App Service, API Apps, SQL, VSTS and CI/CD"
title: "Tip 109 - Day 8 - An end to end scenario with Azure App Service, API Apps, SQL, VSTS and CI/CD"
excerpt: "A tutorial on creating a To-Do list app with .NET and using Azure App Service, API Apps, SQL, VSTS and CI/CD"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-03-27 17:00:00
---
## A multi-part series showing an end-to-end possibility
#### A multi-part series showing an end-to-end possibility
[Crystal Tenn](https://www.linkedin.com/in/crystal-tenn-6a0b9b67/) and I teamed up to bring an E2E blog series that features an Azure App Service website that communicates with an API project, which communicates to an Azure SQL back-end. The app is a traditional To-Do application based on an existing sample that used ADO.NET, but adapted for Azure deploy and to Visual Studio 2017. The technology/tooling stack is Visual Studio, VSTS, C#, Angular, and SQL.

Просмотреть файл

@ -1,12 +1,13 @@
---
type: post
title: "Azure Tips and Tricks Part 11 - Access Cloud Shell from within Microsoft Docs"
title: "Tip 11 - Access Cloud Shell from within Microsoft Docs"
excerpt: "Learn how to quickly access Azure Cloud Shell from within the Microsoft Docs"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2017-09-05 17:00:00
---
#### Access Cloud Shell from within Microsoft Documentation
Most everyone is aware that you can access the Azure Cloud Shell from within the [Azure Portal](https://docs.microsoft.com/en-us/azure/cloud-shell/overview) or from mobile apps such as iOS and Android. But a little known fact is that a lot of the Azure documentation pages include an embedded Cloud Shell experience that can be found with the "Try It" button as shown below.
<img :src="$withBase('/files/azuretip11.gif')">

Просмотреть файл

@ -1,12 +1,12 @@
---
type: post
title: "Azure Tips and Tricks Part Part 110 - Day 9 - An end to end scenario with Azure App Service, API Apps, SQL, VSTS and CI/CD"
title: "Tip Part 110 - Day 9 - An end to end scenario with Azure App Service, API Apps, SQL, VSTS and CI/CD"
excerpt: "A tutorial on creating a To-Do list app with .NET and using Azure App Service, API Apps, SQL, VSTS and CI/CD"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-04-01 17:00:00
---
## A multi-part series showing an end-to-end possibility
#### A multi-part series showing an end-to-end possibility
[Crystal Tenn](https://www.linkedin.com/in/crystal-tenn-6a0b9b67/) and I teamed up to bring an E2E blog series that features an Azure App Service website that communicates with an API project, which communicates to an Azure SQL back-end. The app is a traditional To-Do application based on an existing sample that used ADO.NET, but adapted for Azure deploy and to Visual Studio 2017. The technology/tooling stack is Visual Studio, VSTS, C#, Angular, and SQL.
@ -27,7 +27,7 @@ Keep in mind : While we won't be going into the deep specifics of how to code, y
<img :src="$withBase('/files/todolist-diagram.png')">
## Clean-up Resources
#### Clean-up Resources
We've finally made it to the end of the series and I wanted to use this post to remind you to delete the resources that you created in Azure during this tutorial or during development.

Просмотреть файл

@ -1,28 +1,28 @@
---
type: post
title: "Azure Tips and Tricks Part Part 111 - Deployment Slots for Web Apps using the Azure CLI"
title: "Tip Part 111 - Deployment Slots for Web Apps using the Azure CLI"
excerpt: "Learn how to work with deployment slots with this quick tutorial"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-04-02 17:00:00
---
## The Complete List of Azure Tips and Tricks
#### The Complete List of Azure Tips and Tricks
[Available Now!](https://michaelcrump.net/azure-tips-and-tricks-complete-list/){: .btn .btn--success}
This post was brought to you by [Lohith (kashyapa)](https://www.twitter.com/kashyapa).
{: .notice--info}
## What are Deployment Slots?
#### What are Deployment Slots?
Deployment Slots are a feature of Azure App Service. They actually are live apps with their own hostnames. You can create different slots for your application (for e.g. Dev, Test or Stage). The Production slot is the slot where your live app resides. With deploymet slots, you can validate app changes in staging before swapping it with your production slot. You can read more about deployment slots [here](https://docs.microsoft.com/en-us/azure/app-service/web-sites-staged-publishing "Set up staging environments in Azure App Service").
## Pre-Requisites
#### Pre-Requisites
* Microsoft Azure Subscription (Sign up for [free](https://azure.microsoft.com/en-us/free/ "Create your Azure free account today"))
* Microsoft Azure CLI (Install from [here](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest "Install Azure CLI 2.0"))
## Log in to Azure
#### Log in to Azure
Before executing any Azure CLI commands, you will need to login first.
@ -33,28 +33,28 @@ Before executing any Azure CLI commands, you will need to login first.
The command will prompt you to log in with an authentication code via a website.
## Listing Deployment Slots
#### Listing Deployment Slots
To list **deployment slots** in an **Azure App Service**, execute the following command:
`az webapp deployment slot list -n "web app name" -g "resource group name"`
## Creating Deployment Slot
#### Creating Deployment Slot
To create a **new deployment slot** in an Azure App Service, execute the following command:
`az webapp deployment slot create -n "web app name" -g "resource group name" -s "deployment slot name"`
## Swapping Deployment Slot
#### Swapping Deployment Slot
To **swap a deployment slot** in an Azure App Service, execute the following command:
`az webapp deployment slot swap -n "web app name" -g "resource group name" -s "source slot name" --target-slot "target slot"`
## Deleting a Deployment Slot
#### Deleting a Deployment Slot
To **delete a deployment slot** in an Azpp Service, execute the following command:
`az webapp deployment slot create -n "web app name" -g "resource group name" -s "deployment slot name"`
## Conclusion
#### Conclusion

Просмотреть файл

@ -6,18 +6,18 @@ tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-04-08 17:00:00
---
## What is Quick and Dirty User Authentication?
#### What is Quick and Dirty User Authentication?
When I'm building out a website with MVC5 and Azure, it typically lands on *.azurewebsites.net and generally I don't need any user authentication. But if I need it, I typically need 1 administrator account and 0 users. So why didn't I just go to **Settings** -> **Authentication/Authorization** and turn on AAD or create a gmail, twitter, etc. login? Turns out that I could have set something like that up (after spending time researching how), but I really just needed a layer of authentication for myself (the one and only administrator) and prevent anyone else without that password to my site. I didn't want to use any of the built-in authentications methods of ASP.NET either as I didn't want/need a database to maintain.
## My Requirements
#### My Requirements
* My requirements are a login page that has a username and password.
* I will store the actual username and password as a setting in Azure App Settings for my web app.
* I'll use Forms authentication.
* I want to do this with the FREE Tier of Azure Web App Service
## How I roll Single User Authentication with Azure Web Apps and MVC5
#### How I roll Single User Authentication with Azure Web Apps and MVC5
Part 1:

Просмотреть файл

@ -1,22 +1,22 @@
---
type: post
title: "Azure Tips and Tricks Part 113 - Prevent secrets from getting out with .NET Core"
title: "Tip 113 - Prevent secrets from getting out with .NET Core"
excerpt: "A tutorial on how to quickly hide secrets with .NET Core"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-04-09 17:00:00
---
## Prevent secrets from getting out with .NET Core
#### Prevent secrets from getting out with .NET Core
I was recently building out a .NET Core Console App and it had secrets such as my **Bit.ly API key** and **Azure Storage Table DB Connection string** (which also has my password). I got busy and forgot what I was doing and **committed it to GitHub**. That really sucks, but
## I had options, but didn't take them
#### I had options, but didn't take them
So why didn't I use [Azure Key Vault](https://azure.microsoft.com/en-us/services/key-vault/) or [Secret Manager](https://docs.microsoft.com/en-us/aspnet/core/security/app-secrets?tabs=visual-studio)
For Azure Key Vault, I felt there was some overhead (such as learning it) that I didn't want to pay. It also is a very cheap service, but I wanted FREE. Regarding Secret Manager, that information is always stored in the user profile directory such as `%APPDATA%\microsoft\UserSecrets\<userSecretsId>\secrets.json` for Windows or `~/.microsoft/usersecrets/<userSecretsId>/secrets.json` for Mac/Linux. This means if other folks want to get your key store, they can target those directories b/c the JSON file is unencrypted. Not that my version is encrypted, it just isn't stored in the user profile directory.
## How I Prevent secrets from getting pushed to GitHub with .NET Core
#### How I Prevent secrets from getting pushed to GitHub with .NET Core
Part 1:
@ -69,8 +69,8 @@ Part 5: **VERY IMPORTANT**
* Set your `/.gitignore` to ignore the `appSecrets.json` that we added.
```markdown
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
#### Ignore Visual Studio temporary files, build results, and
#### files generated by popular Visual Studio add-ons.
appSecrets.json
```

Просмотреть файл

@ -1,12 +1,12 @@
---
type: post
title: "Azure Tips and Tricks Part 114 - Send JSON to Azure IoT Hub with C#"
title: "Tip 114 - Send JSON to Azure IoT Hub with C#"
excerpt: "A tutorial on how to quickly send JSON to IoT Hub with C#"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-04-15 17:00:00
---
## Easily Send JSON to IoT Hub with C#
#### Easily Send JSON to IoT Hub with C#
I recently needed to send JSON that an IoT Hub could receive and display on an AZ3166 device. Once the AZ3166 device receives the message, then it could do a number of things with the data such as open an door.

Просмотреть файл

@ -1,12 +1,12 @@
---
type: post
title: "Azure Tips and Tricks Part 115 - Remove Azure Secrets committed to GitHub"
title: "Tip 115 - Remove Azure Secrets committed to GitHub"
excerpt: "A tutorial on how to quickly remove Azure secrets committed to GitHub"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-04-16 17:00:00
---
## Remove Azure Secrets committed to GitHub
#### Remove Azure Secrets committed to GitHub
Writing code day after day means secrets, connection strings and more get added to your code. And if you are like me, they get committed to your GitHub database and then you are embarrassed. In this post, I'll walk you through cleaning up a repo.

Просмотреть файл

@ -1,22 +1,22 @@
---
type: post
title: "Azure Tips and Tricks Part 117 - Enable HTTP 2.0 support for Azure App Service"
title: "Tip 117 - Enable HTTP 2.0 support for Azure App Service"
excerpt: "A tutorial on how to enable HTTP/2.0 support for Azure App Service"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-04-23 17:00:00
---
## The Complete List of Azure Tips and Tricks
#### The Complete List of Azure Tips and Tricks
[Available Now!](https://michaelcrump.net/azure-tips-and-tricks-complete-list/){: .btn .btn--success}
## Enable HTTP/2.0 support for Azure App Service
#### Enable HTTP/2.0 support for Azure App Service
Azure has recently rolled out the ability for you to switch any app service to use HTTP/2.0 Support. It really is as easy as toggling a field in Azure Resource Manager, but first why should you care about HTTP/2.0?
HTTP/2 supports queries multiplexing, headers compression, priority and more intelligent packet streaming management. All of this results in reduced latency and accelerates content download on modern web pages which you should be writing now. :) If you want more details, then [this source](https://daniel.haxx.se/http2/) is the one that I personally trust.
## Getting Started
#### Getting Started
Before you go to the Azure Portal, take your *.azurewebsites.net url and test it [here](https://tools.keycdn.com/http2-test). It will quickly tell you whether or not your site supports HTTP/2.0. The reason that I want to start with this site is because in the future HTTP/2.0 will be automatically enabled on future *.azurewebsites.net urls.

Просмотреть файл

@ -1,20 +1,20 @@
---
type: post
title: "Azure Tips and Tricks Part 119 - Determine the outbound IP addresses of your Azure App Service"
title: "Tip 119 - Determine the outbound IP addresses of your Azure App Service"
excerpt: "Learn how to determine the outbound IP addresses of your Azure App Service"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-04-29 17:00:00
---
## Determine the outbound IP addresses of your Azure App Service
#### Determine the outbound IP addresses of your Azure App Service
Because some networks are locked down and only allow whitelisted IP addresses, I hear these questions a lot.
* What is my Azure Web Apps outbound IP address?
* What IP addresses do I need to whitelist?
### Question 1
##### Question 1
For an individual Azure Web App, you can simply go to the **Properties** of the application:
@ -22,7 +22,7 @@ For an individual Azure Web App, you can simply go to the **Properties** of the
You can click the copy button to add them to your clipboard.
### Question 2
##### Question 2
If you need to whitelist a region, I first lookup to see what region it is currently deployed in. You can find this information from the **Overview** page of the application.

Просмотреть файл

@ -1,11 +1,12 @@
---
type: post
title: "Azure Tips and Tricks Part 12 - Easily Start, Restart, Stop or Delete Multiple VMs"
title: "Tip 12 - Easily Start, Restart, Stop or Delete Multiple VMs"
excerpt: "Learn how to quickly start, restart, stop or delete Multiple VMs with just one click"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2017-09-06 17:00:00
---
## Easily Start, Restart, Stop or Delete Multiple VMs
#### Easily Start, Restart, Stop or Delete Multiple VMs
<img :src="$withBase('/files/azuretip12.gif')">

Просмотреть файл

@ -1,20 +1,20 @@
---
type: post
title: "Azure Tips and Tricks Part 120 - Run Azure PowerShell Cmdlets in Visual Studio 2017"
title: "Tip 120 - Run Azure PowerShell Cmdlets in Visual Studio 2017"
excerpt: "Learn how to run Azure PowerShell Cmdlets in Visual Studio 2017"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-04-30 17:00:00
---
## Run Azure PowerShell Cmdlets in Visual Studio 2017
#### Run Azure PowerShell Cmdlets in Visual Studio 2017
Because some folks like to work with PowerShell and Azure AND want to stay inside of Visual Studio 2017, I hear the following questions from time to time.
* I use the Windows PowerShell ISE and would like to run cmdlets using Visual Studio 2017. How can I do this?
* Is there any Nuget Packages available for referencing the library for Azure Powershell commands?
### Grab the extension or install via the VS 2017 installer
##### Grab the extension or install via the VS 2017 installer
Since folks typically have VS already installed, the easiest way is to grab the extension. If VS is open, then go to **Tools** and **Extensions** and search the online marketplace for **PowerShell**.

Просмотреть файл

@ -1,13 +1,13 @@
---
type: post
title: "Azure Tips and Tricks Part 122 - Creating an IoT Hub for the IoT Button"
title: "Tip 122 - Creating an IoT Hub for the IoT Button"
excerpt: "Learn how to configure and explore working with the IoT Button"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-05-14 17:00:00
---
## The Series So Far
#### The Series So Far
At Build 2018, we first saw the [IoT Button](http://aka.ms/button). I started [exploring the device](https://www.youtube.com/watch?v=OdGHWwRBf_c) with the very first unboxing and decided to create a mini-series to walk you how to use the device from start to finish. The series (so far) is located below
@ -20,7 +20,7 @@ I recently recorded a fun video with my daughter unboxing the new [IoT Button](h
<iframe width="560" height="315" src="https://www.youtube.com/embed/OdGHWwRBf_c?rel=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
## We need an IoT Hub, Captain!
#### We need an IoT Hub, Captain!
Before we can start enjoying the IoT Button, we first need to setup an IoT Hub.

Просмотреть файл

@ -1,12 +1,12 @@
---
type: post
title: "Azure Tips and Tricks Part 123 - Configuring and Setting up the IoT Button"
title: "Tip 123 - Configuring and Setting up the IoT Button"
excerpt: "Learn how to configure and explore working with the IoT Button"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-05-15 17:00:00
---
## The Series So Far
#### The Series So Far
At Build 2018, we first saw the [IoT Button](http://aka.ms/button). I started [exploring the device](https://www.youtube.com/watch?v=OdGHWwRBf_c) with the very first unboxing and decided to create a mini-series to walk you how to use the device from start to finish. The series (so far) is located below
@ -17,7 +17,7 @@ At Build 2018, we first saw the [IoT Button](http://aka.ms/button). I started [e
In the blog post, I spent time walking you through creating an IoT Hub that we'll be using in the rest of this series. Now we're going to take a look at configuring the actual IoT Button to make use of our IoT Hub.
## Configuring and Setting up the IoT Button
#### Configuring and Setting up the IoT Button
You first need to take the button and hold it down until you see a yellow LED and then release. This will give you access to the AP which you will connect to on your Windows or Mac. Once connected, go to the device configuration page in a web browser http://192.168.4.1 and you'll see the following:

Просмотреть файл

@ -1,12 +1,12 @@
---
type: post
title: "Azure Tips and Tricks Part 124 - Creating the Azure Logic App for our IoT Button"
title: "Tip 124 - Creating the Azure Logic App for our IoT Button"
excerpt: "Learn how to configure and explore working with the IoT Button"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-05-20 17:00:00
---
## The Series so Far
#### The Series so Far
At Build 2018, we first saw the [IoT Button](http://aka.ms/button). I started [exploring the device](https://www.youtube.com/watch?v=OdGHWwRBf_c) with the very first unboxing and decided to create a mini-series to walk you how to use the device from start to finish. The series (so far) is located below
@ -15,7 +15,7 @@ At Build 2018, we first saw the [IoT Button](http://aka.ms/button). I started [e
* [Creating the Azure Logic App for our IoT Button](http://www.michaelcrump.net/azure-tips-and-tricks124/)
* [Using Azure Function to call our Logic App with the IoT Button](http://www.michaelcrump.net/azure-tips-and-tricks125/)
## Creating the Azure Logic App for our IoT Button
#### Creating the Azure Logic App for our IoT Button
Now that we know how to setup an IoT Hub and configure out device to get on the network and use said IoT Hub, now we need to actually get to what we are going to build:

Просмотреть файл

@ -1,16 +1,16 @@
---
type: post
title: "Azure Tips and Tricks Part 125 - Using Azure Function to call our Logic App with the IoT Button"
title: "Tip 125 - Using Azure Function to call our Logic App with the IoT Button"
excerpt: "Learn how to use Azure Function to call our Logic App with the IoT Button"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-05-21 17:00:00
---
## Special Thanks
#### Special Thanks
Special Thanks to [Stefan Wick](http://twitter.com/StefanWickDev) on the Azure IoT Team for his review and edits on this post.
## The Series so Far
#### The Series so Far
At Build 2018, we first saw the [IoT Button](http://aka.ms/button). I started [exploring the device](https://www.youtube.com/watch?v=OdGHWwRBf_c) with the very first unboxing and decided to create a mini-series to walk you how to use the device from start to finish. The series (so far) is located below
@ -21,7 +21,7 @@ At Build 2018, we first saw the [IoT Button](http://aka.ms/button). I started [e
We know how to setup an IoT Hub and configure our device to get on the network, we've worked with Logic Apps that will automatically add a row to an excel sheet that includes a time along with a status (such as start or stop). All that is left is to add an Azure Function that calls the Logic Apps and passes a parameter.
## Using Azure Function to call our Logic App with the IoT Button
#### Using Azure Function to call our Logic App with the IoT Button
Open Visual Studio and click on **Cloud** and then **Azure Functions** and give it a name and click OK.

Просмотреть файл

@ -1,16 +1,16 @@
---
type: post
title: "Azure Tips and Tricks Part 126 - Getting Started with Azure IoT Central"
title: "Tip 126 - Getting Started with Azure IoT Central"
excerpt: "Learn how to use Azure IoT Central with the MX Chip"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-05-28 17:00:00
---
## IoT Exploration so Far
#### IoT Exploration so Far
Back in [post #96](tip96/), I started exploring the Azure IoT DevKit that included the new [MXChip](http://mxchip.com/az3166). While I was exploring the device with my son, we eventually made the device send a tweet every time the button was pressed and I haven't done much with it until recently. So what does that have to do with Azure IoT Central? Well, we'll be exploring the SaaS offering and connecting the same MXChip to it.
## Getting Started with Azure IoT Central
#### Getting Started with Azure IoT Central
Azure IoT Central (as defined by Microsoft) is a fully managed SaaS solution that makes it easy to connect, monitor and manage your IoT assets at scale. It simplifies the initial setup of your IoT solution and reduces the management burden, operational costs, and overhead of a typical IoT project. So, when I think of this, my initial reaction is that I can setup different roles and manage an IoT project without getting too deep into the weeds. Obviously, I can if I want, but this should get me up and running fast.
@ -29,7 +29,7 @@ Go to Device Explorer -> MX Chip -> + New -> Real -> Connect this device -> and
<img :src="$withBase('/files/iotcentral3.png')">
## Setting up the MX Chip
#### Setting up the MX Chip
Before proceeding, I'd like to load the IoT Central firmware to the MX Chip.
@ -47,7 +47,7 @@ If everything is correct, you'll be able to see data being sent. Here is an exam
Yep, 70K sent! :)
## Back to Azure IoT Central
#### Back to Azure IoT Central
Back in the [Azure IoT Central Application Manager page](https://aka.ms/iotcentral), if we go to Device and look for our MX Chip (this one should Not say Simulated), then you'll begin to see data for the telemetry measurements that we selected when setting it up.

Просмотреть файл

@ -1,16 +1,16 @@
---
type: post
title: "Azure Tips and Tricks Part 127 - Mount a drive and upload files to Cloud Shell"
title: "Tip 127 - Mount a drive and upload files to Cloud Shell"
excerpt: "Learn how to mount a drive and upload files to Cloud Shell"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-05-29 17:00:00
---
## Overview
#### Overview
When working with [Azure Cloud Shell](http://shell.azure.com), you sometimes need the ability to upload files to work with later. I'm going to call out the two methods that I use to accomplish this task all the time.
## Mount a drive and upload via the Azure Portal
#### Mount a drive and upload via the Azure Portal
In method one, we'll update the file share that's associated with Cloud Shell by using the `clouddrive mount` command. Note: that you may already have a cloud drive that is created upon initial start of cloud shell. Go ahead and spin up Azure Cloud Shell and type `clouddrive -h` to see the commands to mount and unmount a drive.
@ -51,7 +51,7 @@ total 53
michael@Azure:~/clouddrive$
```
## Upload via Cloud Shell button
#### Upload via Cloud Shell button
The second method involves pressing the **Upload** button built right into Azure Cloud Shell.

Просмотреть файл

@ -1,12 +1,12 @@
---
type: post
title: "Azure Tips and Tricks Part 128 - Download all Azure Documentation for offline viewing"
title: "Tip 128 - Download all Azure Documentation for offline viewing"
excerpt: "Learn how to quickly download all of the Azure documentation for offline viewing"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-06-03 17:00:00
---
## Download all Azure Documentation for offline viewing
#### Download all Azure Documentation for offline viewing
There have been several times when I've wished to have all the Azure documentation on my local computer whether it be a flight, etc.. I've never found a way except finding the [pieces of the documentation](https://docs.microsoft.com/en-us/azure/security-center/) that I wanted and pressing the **Download PDF** button.
@ -22,7 +22,7 @@ If you want to download **ALL** of the Azure documentation, then follow the inst
Michaels-MBP:Documents mbcrump$ brew install jq
==> Installing jq
==> Downloading https://homebrew.bintray.com/bottles/jq-1.5_3.high_sierra.bottle
######################################################################## 100.0%
################################################################################################################################################ 100.0%
==> Pouring jq-1.5_3.high_sierra.bottle.tar.gz /usr/local/Cellar/jq/1.5_3: 19 files, 946.6KB
```

Просмотреть файл

@ -1,12 +1,12 @@
---
type: post
title: "Azure Tips and Tricks Part 129 - Using OCR to extract text from images from the Azure Portal"
title: "Tip 129 - Using OCR to extract text from images from the Azure Portal"
excerpt: "Learn how to use OCR to extract text from images from the Azure Portal"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-06-04 17:00:00
---
## Using OCR to extract text from images from the Azure Portal
#### Using OCR to extract text from images from the Azure Portal
I recently needed the ability to extract text from an image. I was very cautious as several free alternatives that exist on the web said they may keep the image (and or text). So I did what any developer would do and just rolled my own. But instead of creating an application, I took it upon myself to use the power of the Azure Portal to accomplish this.

Просмотреть файл

@ -1,12 +1,13 @@
---
type: post
title: "Azure Tips and Tricks Part 13 - Demystifying storage in Cloud Shell"
title: "Tip 13 - Demystifying storage in Cloud Shell"
excerpt: "Understand what the Azure Cloud Shell is using storage for."
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2017-09-10 17:00:00
---
#### What's under the hood of Azure Cloud Shell?
The [Azure Cloud Shell](https://azure.microsoft.com/en-us/features/cloud-shell/) is something that I've took for granted since it launched at Build 2017. I always knew that I could use it to run [CLI 2.0](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest) commands and didn't really stop to think what is "Under the hood"... until now.
When you first open the Cloud Shell, you will find that it requires you to create a Storage account. The reason for that Storage Account is to persist the scripts, keys, etc that you'll use over and over as you interact with your resources.

Просмотреть файл

@ -1,12 +1,12 @@
---
type: post
title: "Azure Tips and Tricks Part 130 - Manage Application Settings for Azure Functions within Visual Studio"
title: "Tip 130 - Manage Application Settings for Azure Functions within Visual Studio"
excerpt: "Learn how to use OCR to extract text from images from the Azure Portal"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-06-10 17:00:00
---
## Manage Application Settings for Azure Functions within Visual Studio
#### Manage Application Settings for Azure Functions within Visual Studio
Generally when I'm working with Azure Functions and Visual Studio and need to add an **Application Setting**, then I'll head over to the Azure Portal, click on my Function, Configuration and add the Application Setting.

Просмотреть файл

@ -1,12 +1,12 @@
---
type: post
title: "Azure Tips and Tricks Part 131 - Quickly display a list of all Azure Web Apps URL from Azure Cloud Shell"
title: "Tip 131 - Quickly display a list of all Azure Web Apps URL from Azure Cloud Shell"
excerpt: "Learn how to quickly display a list of all Azure Web Apps URL from Azure Cloud Shell"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-06-11 17:00:00
---
## Quickly display a list of all Azure Web Apps URL from Azure Cloud Shell
#### Quickly display a list of all Azure Web Apps URL from Azure Cloud Shell
Often I need to quickly list out the URLs for all Azure App Services in a given resource. In the past, when it just a small number then I'd do it manually, but it has recently grown to a point where I needed to find a better way.

Просмотреть файл

@ -1,16 +1,16 @@
---
type: post
title: "Azure Tips and Tricks Part 132 - Increase the timeout of ASP.NET Core 2.0 API hosted in Azure App Service"
title: "Tip 132 - Increase the timeout of ASP.NET Core 2.0 API hosted in Azure App Service"
excerpt: "Learn how to quickly increase the timeout of ASP.NET Core 2.0 API hosted in Azure App Service"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-06-17 17:00:00
---
## The Complete List of Azure Tips and Tricks
#### The Complete List of Azure Tips and Tricks
[Available Now!](https://michaelcrump.net/azure-tips-and-tricks-complete-list/){: .btn .btn--success}
## Increase the timeout of ASP.NET Core 2.0 API hosted in Azure App Service
#### Increase the timeout of ASP.NET Core 2.0 API hosted in Azure App Service
There are reasons that you **might** have a request that takes 2-3 minutes to complete and this post is for you. For most, you should probably look at decoupling these long running request.

Просмотреть файл

@ -1,13 +1,13 @@
---
type: post
title: "Azure Tips and Tricks Part 133 - Use the Azure Portal for Durable Functions Development"
title: "Tip 133 - Use the Azure Portal for Durable Functions Development"
excerpt: "Learn how to quickly use the Azure Portal for Durable Functions Development"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-06-18 17:00:00
---
## Use the Azure Portal for Durable Functions Development
#### Use the Azure Portal for Durable Functions Development
Durable Functions addresses the task of managing state for an application. They are intended to address a variety of patterns and scenarios that would quickly get complicated using triggers, timers, etc. especially when orchestrating a range of activities with a set of tasks that need to happen each time a particular event occurs.
@ -15,7 +15,7 @@ Here is one example: I have one task, that causes another task to occur, and so
Head over to our [docs](https://docs.microsoft.com/en-us/azure/azure-functions/durable-functions-sequence) for more info or follow along with this tutorial and it might make sense.
### Getting Started
##### Getting Started
Log into the Azure Portal and create a new Azure Function project like the following:

Просмотреть файл

@ -1,13 +1,13 @@
---
type: post
title: "Azure Tips and Tricks Part 134 - Use Run-From-Zip to deploy a site to Azure Web Apps or Functions"
title: "Tip 134 - Use Run-From-Zip to deploy a site to Azure Web Apps or Functions"
excerpt: "Learn how to use Run-From-Zip to deploy a site to Azure Web Apps or Functions"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-06-24 17:00:00
---
## Use Run-From-Zip to deploy a site to Azure Web Apps or Functions
#### Use Run-From-Zip to deploy a site to Azure Web Apps or Functions
Here is a neat feature that I just discovered dispite it being added about 6 months or so ago. It is the ability to deploy a site to Azure Web Apps or Azure Functions from a zip file.

Просмотреть файл

@ -1,13 +1,13 @@
---
type: post
title: "Azure Tips and Tricks Part 135 - Use Run-From-Zip without Azure Storage to deploy a site to Azure Web Apps or Functions"
title: "Tip 135 - Use Run-From-Zip without Azure Storage to deploy a site to Azure Web Apps or Functions"
excerpt: "Learn how to use Run-From-Zip to deploy a site to Azure Web Apps or Functions with Azure Storage"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-06-25 17:00:00
---
## Use Run-From-Zip without Azure Storage to deploy a site to Azure Web Apps or Functions
#### Use Run-From-Zip without Azure Storage to deploy a site to Azure Web Apps or Functions
[Yesterday](http://www.michaelcrump.net/azure-tips-and-tricks134/) I discussed a feature that gives you the ability to deploy a site to Azure Web Apps or Azure Functions from a zip file. It is called **Run-From-Zip** which you simply point to the location in your App Settings and it automatically gets mounted on wwwroot as read-only.

Просмотреть файл

@ -1,13 +1,13 @@
---
type: post
title: "Azure Tips and Tricks Part 136 - Quickly Restore your Local Settings File for Azure Functions"
title: "Tip 136 - Quickly Restore your Local Settings File for Azure Functions"
excerpt: "Learn how to quickly restore your local settings file for Azure Functions"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-07-01 17:00:00
---
## Quickly Restore your Local Settings File for Azure Functions
#### Quickly Restore your Local Settings File for Azure Functions
If you've ever worked with Azure Functions then no doubt you've seen the `local.settings.json` file before. This file stores app settings, connection strings, etc. for local development.
@ -34,8 +34,8 @@ It looks like the following to refresh your memory:
This file is also by default **not** checked into source control. If you open your `.gitignore` file you'll see the following:
```text
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
#### Ignore Visual Studio temporary files, build results, and
#### files generated by popular Visual Studio add-ons.
# Azure Functions localsettings file
local.settings.json

Просмотреть файл

@ -1,13 +1,13 @@
---
type: post
title: "Azure Tips and Tricks Part 137 - Export Azure Resources to CSV files with PowerShell"
title: "Tip 137 - Export Azure Resources to CSV files with PowerShell"
excerpt: "Learn how to quickly export Azure resources to CSV files with PowerShell"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-07-02 17:00:00
---
## Export Azure Resources to CSV files with PowerShell
#### Export Azure Resources to CSV files with PowerShell
If you've ever had a need to create a CSV file of various Azure Resources for reports, etc. than this post is for you. I'm going to quickly show you how to generate a CSV file with PowerShell that lists VMs in the active subscription along with a couple of additional details.

Просмотреть файл

@ -1,13 +1,13 @@
---
type: post
title: "Azure Tips and Tricks Part 138 - Host a Static Website with Azure Storage"
title: "Tip 138 - Host a Static Website with Azure Storage"
excerpt: "Learn how to quickly host a static website with Azure Storage"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-07-08 17:00:00
---
## Host a Static Website with Azure Storage
#### Host a Static Website with Azure Storage
A feature that was recently announced was the ability to run a static website using Azure Storage. I decided to take it for a quick test spin and show you the experience.

Просмотреть файл

@ -1,16 +1,16 @@
---
type: post
title: "Azure Tips and Tricks Part 139 - Prevent AzCopy Uploads from maxing out Internet Connection Speed"
title: "Tip 139 - Prevent AzCopy Uploads from maxing out Internet Connection Speed"
excerpt: "Learn how to prevent AzCopy uploads from maxing out internet connection speed"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-07-09 17:00:00
---
## Prevent AzCopy Uploads from maxing out Internet Connection Speed
#### Prevent AzCopy Uploads from maxing out Internet Connection Speed
**What is AzCopy?** AzCopy is a command-line utility designed for copying data to/from Microsoft Azure Blob, File, and Table storage, using simple commands designed for optimal performance. You can copy data between a file system and a storage account, or between storage accounts. *(courtesy of docs)*
{: .notice--info}
You can download either the latest version of AzCopy on [Windows](http://aka.ms/downloadazcopy) or [Linux](https://docs.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-linux).

Просмотреть файл

@ -1,12 +1,13 @@
---
type: post
title: "Azure Tips and Tricks Part 14 - Generate SSH public key to log into Linux VM with Cloud Shell"
title: "Tip 14 - Generate SSH public key to log into Linux VM with Cloud Shell"
excerpt: "Learn how to generate SSH keys to log into a Linux VM with Cloud Shell and BASH on Windows 10"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2017-09-11 17:00:00
---
## Generate SSH keys to log into Linux VM with Cloud Shell
#### Generate SSH keys to log into Linux VM with Cloud Shell
For these instructions, I'll assume you have a Linux VM already setup and connecting via Cloud Shell.
@ -92,7 +93,7 @@ Last login: Sun Sep 10 23:49:35 2017 from 40.83.147.69
<img :src="$withBase('/files/cloudshellpersistdata.gif')">
## BONUS: If you want to disable the password you previously set on the Linux machine
#### BONUS: If you want to disable the password you previously set on the Linux machine
If you want to disable the password on the Linux machine that you previously set:
@ -110,7 +111,7 @@ If you want to disable the password on the Linux machine that you previously set
3.) You can see if the password authentication is disabled by logging out and then trying to connect with key file authentication disabled with `ssh user@ipaddress -o PubkeyAuthentication=no`. You should get "Permission denied".
## BONUS #2: You can easily do the same with BASH on Windows 10
#### BONUS #2: You can easily do the same with BASH on Windows 10
You can have the same goodness that you have with Azure Cloud Shell on your local machine. In my case, I'm using BASH on Windows and can just run steps 1-5 listed above. Boom!

Просмотреть файл

@ -1,20 +1,20 @@
---
type: post
title: "Azure Tips and Tricks Part 140 - Easily copy your SQL Azure database to your local development server"
title: "Tip 140 - Easily copy your SQL Azure database to your local development server"
excerpt: "Learn how to easily copy your SQL Azure database to your local development server"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-07-15 17:00:00
---
## Easily copy your SQL Azure database to your local development server
#### Easily copy your SQL Azure database to your local development server
I've ran across folks at conferences that asked me "How do you copy a SQL Azure database to my local development machine?" While chatting with them, I always found it difficult to understand why (as it is dirt cheap to have a development SQL Azure instance in the cloud) but nevertheless it is their data and there is an easy way to do this.
First off, [download SQL Server Management Studio (SSMS)](https://docs.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms?view=sql-server-2017) and connect to your SQL Azure database that you want to copy locally.
**Note by cbattlegear** One important caveat to this process (as shown below). If any writes are happening on the database while you do the export the import will be broken. Best practice is to run `CREATE DATABASE AS COPY` to create a copy of the database and create an export of the copy.
{: .notice--info}
Right-click on the **Database** -> click **Tasks** > **Export data-tier application**

Просмотреть файл

@ -1,13 +1,13 @@
---
type: post
title: "Azure Tips and Tricks Part 141 - Generate a Zip file from Azure Blob Storage Files"
title: "Tip 141 - Generate a Zip file from Azure Blob Storage Files"
excerpt: "Learn how to easily generate a Zip file from Azure Blob Storage Files"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-07-16 17:00:00
---
## Generate a Zip file from Azure Blob Storage Files
#### Generate a Zip file from Azure Blob Storage Files
You might have a task that pops up where you need to generate a zip file from a number of files in your Azure blob storage account. For 1 or 2 files, this may not be a problem but for 20-2000, you might want to find a way to automate this.

Просмотреть файл

@ -1,13 +1,13 @@
---
type: post
title: "Azure Tips and Tricks Part 142 - Quickly edit files within Cloud Shell using Code"
title: "Tip 142 - Quickly edit files within Cloud Shell using Code"
excerpt: "Learn how to quickly edit files within Cloud Shell using Code"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-07-22 17:00:00
---
## Quickly edit files within Cloud Shell using Code
#### Quickly edit files within Cloud Shell using Code
I recently had a reader that read my **Cloud Shell** list of [Azure Tips and Tricks](tip-sorted-list/) and noticed that I didn't mention using Code with Cloud Shell. Today's tip is to make that right!

Просмотреть файл

@ -1,13 +1,13 @@
---
type: post
title: "Azure Tips and Tricks Part 143 - Keep your Azure Web App Hydrated and Responsive"
title: "Tip 143 - Keep your Azure Web App Hydrated and Responsive"
excerpt: "Learn how to easily keep your Azure Web App hydrated and responsive"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-07-23 17:00:00
---
## Keep your Azure Web App Hydrated and Responsive
#### Keep your Azure Web App Hydrated and Responsive
If you have ever noticed that after a publish or restart of your Azure web app it might load slowly the first time, then when you refresh with F5 it is ok again.

Просмотреть файл

@ -1,13 +1,13 @@
---
type: post
title: "Azure Tips and Tricks Part 144 - Swiftly understand what versions of .NET are supported on Azure App Service"
title: "Tip 144 - Swiftly understand what versions of .NET are supported on Azure App Service"
excerpt: "Learn how to swiftly understand what versions of .NET are supported on Azure App Services"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-07-29 17:00:00
---
## Swiftly understand what versions of .NET are supported on Azure App Service
#### Swiftly understand what versions of .NET are supported on Azure App Service
With the release of .NET Framework 4.7.2, I've been asked multiple times it Azure App Services (Websites) supports it yet. While I can quickly answer this question, there will always be a vNext and this question may come up again. So how do you check to see what version of the .NET Framework Azure App Services Supports?

Просмотреть файл

@ -1,13 +1,13 @@
---
type: post
title: "Azure Tips and Tricks Part 145 - Easily reset the Administrator password for an Azure SQL database"
title: "Tip 145 - Easily reset the Administrator password for an Azure SQL database"
excerpt: "Learn how to easily reset the password for Azure SQL database"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-07-30 17:00:00
---
## Easily reset the Administrator password for an Azure SQL database
#### Easily reset the Administrator password for an Azure SQL database
A common scenario that I have heard folks ask is "How do I reset the Admin password for an Azure SQL database that I've forgotten or lost?"

Просмотреть файл

@ -1,17 +1,17 @@
---
type: post
title: "Azure Tips and Tricks Part 146 - Rename an Azure SQL database"
title: "Tip 146 - Rename an Azure SQL database"
excerpt: "Learn how to easily rename an Azure SQL database"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-08-05 17:00:00
---
## Rename an Azure SQL database
#### Rename an Azure SQL database
Last week, I did a SQL post on [Easily reset the Administrator password for an Azure SQL database](http://www.michaelcrump.net/azure-tips-and-tricks145/) and it did rather well. So I'm back with another SQL post that addresses another common scenario that folks ask "How do I rename an Azure SQL database"?
### Rename with command-line - TSQL
##### Rename with command-line - TSQL
1. Connect with **SQL Server Management Studio** to your Azure database server
@ -19,7 +19,7 @@ Last week, I did a SQL post on [Easily reset the Administrator password for an A
3. In the **New Query window** type `ALTER DATABASE [dbname] MODIFY NAME = [newdbname]`. (Make sure you include the square brackets around both database names.)
### Rename with a GUI - SQL Server Management Studio
##### Rename with a GUI - SQL Server Management Studio
1. Connect with SQL Server Management Studio

Просмотреть файл

@ -1,17 +1,17 @@
---
type: post
title: "Azure Tips and Tricks Part 147 - Run TSQL on an Azure SQL database with Azure Functions"
title: "Tip 147 - Run TSQL on an Azure SQL database with Azure Functions"
excerpt: "Learn how to run TSQL on an Azure SQL database with Azure Functions"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-08-06 17:00:00
---
## Run TSQL on an Azure SQL database with Azure Functions
#### Run TSQL on an Azure SQL database with Azure Functions
I've recently been adding Azure SQL tips such as [Easily reset the Administrator password for an Azure SQL database](http://www.michaelcrump.net/azure-tips-and-tricks145/) and [Rename an Azure SQL database](http://www.michaelcrump.net/azure-tips-and-tricks146/). and you all seem to like them. So I'm back with another SQL post that addresses another common scenario that folks ask "How do I run TSQL on an Azure SQL database with Azure Functions"?
### SQL Database
##### SQL Database
Before we begin you'll need to grab the connection string from the database you created earlier. Simply select **SQL Databases** and select your database on the SQL databases page.
@ -21,7 +21,7 @@ Click **Show database connection strings** and copy the string to your clipboard
Go ahead and replace {your_username} and {your_password} placeholders with real values and save it somewhere easily accessible.
### Azure Functions
##### Azure Functions
Create a new Azure Function and select Timer Trigger. You typically want to store this secret in **Platform features > Application settings** in the **Connection strings** placeholder. So go ahead and do that as shown below:

Просмотреть файл

@ -1,6 +1,6 @@
---
type: post
title: "Azure Tips and Tricks Part 148 - Share Business Logic between Azure Functions"
title: "Tip 148 - Share Business Logic between Azure Functions"
excerpt: "Learn how to run share business logic between Azure Functions"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-08-12 17:00:00

Просмотреть файл

@ -1,6 +1,6 @@
---
type: post
title: "Azure Tips and Tricks Part 149 - Use PowerShell to quickly see if your Deployment Slot Swapped Successfully"
title: "Tip 149 - Use PowerShell to quickly see if your Deployment Slot Swapped Successfully"
excerpt: "Learn how to run share business logic between Azure Functions"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-08-13 17:00:00

Просмотреть файл

@ -1,18 +1,19 @@
---
type: post
title: "Azure Tips and Tricks Part 15 - Underlying Software in Azure Cloud Shell"
title: "Tip 15 - Underlying Software in Azure Cloud Shell"
excerpt: "Learn about some of the software found inside a Azure Cloud Shell instance"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2017-09-12 17:00:00
---
## Underlying Software in Azure Cloud Shell
#### Underlying Software in Azure Cloud Shell
When you spin up an Azure Cloud Shell, it create a container that contains things such the OS and other runtimes. By default you get Linux, Node.js and more (covered later). The storage account setup the first time you use Cloud Shell then persist data (like shell scripts, SSH keys, etc.) that you can use once you are connected to the container. It also persist things automatically such as your `.bash_history` and stores your Azure authentication token in `./azure/accessTokens.json`.
With that information, let's see what is under the hood. Spin up your Azure Cloud Shell now!
### Host Operating System
##### Host Operating System
The container that your Azure Cloud Shell instance is running in is Ubuntu Linux. You can gather additional information about the release with the following commands.
@ -35,7 +36,7 @@ Things like `arch` gives you architecture information
michael@Azure:~$ arch
x86_64
## You have access to typical Linux apps
#### You have access to typical Linux apps
You can type `man` for access to the manual.
@ -49,7 +50,7 @@ You have access to vim, nano and other editors.
<img :src="$withBase('/files/azuretip15.gif')">
### Additional Software Installed in Cloud Shell
##### Additional Software Installed in Cloud Shell
The container also contains things like Git, Python, Node.js, .NET Core. You can test this by the following commands:

Просмотреть файл

@ -1,12 +1,12 @@
---
type: post
title: "Azure Tips and Tricks Part 150 - Use the Mac Touch Bar to launch the Azure Portal"
title: "Tip 150 - Use the Mac Touch Bar to launch the Azure Portal"
excerpt: "Learn how to create a shortcut to Azure using the Mac Touch Bar "
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-08-19 17:00:00
---
## Use the Mac Touch Bar to launch the Azure Portal
#### Use the Mac Touch Bar to launch the Azure Portal
For those new to the Mac Touch Bar, it sits at the top of your keyboard and adapts to what you're doing and provides intuitive shortcuts and app controls when you need them. For example, the controls will change when you are in Chrome vs Outlook. Below is a screenshot of the default layout before you switch to an application:

Просмотреть файл

@ -1,12 +1,12 @@
---
type: post
title: "Azure Tips and Tricks Part 152 - Get the Record Count in Cosmos DB"
title: "Tip 152 - Get the Record Count in Cosmos DB"
excerpt: "Learn how to get the record count in Azure Cosmos DB"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-08-26 17:00:00
---
## Get the Record Count in Cosmos DB
#### Get the Record Count in Cosmos DB
When working with Azure Cosmos DB, it is guaranteed that at some point that you'll need to get the record count of a document. There are a couple of quick ways of how to do this through the Azure Portal by navigating to the Cosmos DB resource you wish to query and selecting the **Data Explorer** tab and using the following query: `SELECT VALUE COUNT(1) FROM c`

Просмотреть файл

@ -1,12 +1,12 @@
---
type: post
title: "Azure Tips and Tricks Part 153 - How to get the Azure Account Tenant Id?"
title: "Tip 153 - How to get the Azure Account Tenant Id?"
excerpt: "Learn how to quickly get the Azure Account Tenant ID"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-08-27 17:00:00
---
## How to get the Azure Account Tenant Id?
#### How to get the Azure Account Tenant Id?
Your Office 365 tenant ID is a globally unique identifier (GUID) that is different than your tenant name or domain. On rare occasion, you might need this identifier, such as when configuring Windows group policy for OneDrive for Business.

Просмотреть файл

@ -1,12 +1,12 @@
---
type: post
title: "Azure Tips and Tricks Part 154 - How to quickly check the EndPoint API of QnA Maker"
title: "Tip 154 - How to quickly check the EndPoint API of QnA Maker"
excerpt: "Learn how to quickly test the QnA Maker knowledge base with Fiddler"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-09-02 17:00:00
---
## How to quickly check the EndPoint API of QnA Maker
#### How to quickly check the EndPoint API of QnA Maker
If you haven't experimented with [QnA Maker](https://qnamaker.ai/) then it is time. It enables you to quickly create a question and answer service from content like FAQ documents, URLs, and product manuals. You can create a knowledge base with existing data sources that you already have. Once complete, you might want to consume the endpoint API through applications such as Fiddler or cURL. In this post, I'll show you quickly how you can do both.

Просмотреть файл

@ -1,12 +1,12 @@
---
type: post
title: "Azure Tips and Tricks Part 155 - Archive the Azure Activity Log"
title: "Tip 155 - Archive the Azure Activity Log"
excerpt: "Learn how to archive the Azure Activity Log"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-09-09 17:00:00
---
## Archive the Azure Activity Log
#### Archive the Azure Activity Log
The Azure Activity Log is a subscription log that provides insight into subscription-level events that have occurred in Azure. This includes a range of data, from Azure Resource Manager operational data to updates on Service Health events. You may want to Archive the Azure Activity Log if you want to retain your Activity Log longer than 90 days (with full control over the retention policy) for audit, static analysis, or backup. In this post, I'll show you now to archive it with a couple of clicks.

Просмотреть файл

@ -1,12 +1,12 @@
---
type: post
title: "Azure Tips and Tricks Part 156 - Use Azure Logic Apps to Detect when a new SQL record is inserted"
title: "Tip 156 - Use Azure Logic Apps to Detect when a new SQL record is inserted"
excerpt: "Learn how to use Azure Logic Apps to detect when a new SQL record is inserted"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-09-10 17:00:00
---
## Use Azure Logic Apps to Detect when a new SQL record is inserted
#### Use Azure Logic Apps to Detect when a new SQL record is inserted
I recently needed the ability to detect when a new SQL record was added and send an email. Since the customer didn't want the existing logic in their app to be modified, I relied on Azure Logic Apps and all their powerful connectors.

Просмотреть файл

@ -1,19 +1,19 @@
---
type: post
title: "Azure Tips and Tricks Part 157 - Part 1 Create Thumbnail Images with Azure Functions and Azure Storage"
title: "Tip 157 - Part 1 Create Thumbnail Images with Azure Functions and Azure Storage"
excerpt: "Learn how to create a thumbnail images with Azure Functions and Azure Storage"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-09-16 17:00:00
---
## Create Thumbnail Images with Azure Functions and Azure Storage
#### Create Thumbnail Images with Azure Functions and Azure Storage
In this mini-series, we're going to create an Azure Function that detects when a new image is added to Azure Storage and automatically creates a thumbnail image for us.
* [Azure Tips and Tricks Part 157 - Part 1 Create Thumbnail Images with Azure Functions and Azure Storage](http://www.michaelcrump.net/azure-tips-and-tricks157/)
* [Azure Tips and Tricks Part 158 - Part 2 Create Thumbnail Images with Azure Functions and Azure Storage](http://www.michaelcrump.net/azure-tips-and-tricks158/)
## Part 1 (Setup) Azure Portal
#### Part 1 (Setup) Azure Portal
Go ahead and open the **Azure Portal** and click **Create a Resource** and select **Azure Storage**. Well keep it simple as shown below to get started.
@ -26,18 +26,18 @@ Once complete, go into the resource and look under **Services**.
Go ahead and click on **Blobs** and create a **Container** and give it the name **originals** and then create another one called **thumbs**.
**Remember this!** Think of a container in this sense as a folder. https://myblob/**container**/image1.jpg
{: .notice--primary}
<img :src="$withBase('/files/imageresizer2.png')">
We're going to need our Access Key shortly, so look under **Settings**, then **Access Keys** and copy the **connection string** to your clipboard.
**What is an Access Key?** This string will allow us to connect to the Storage Account.
{: .notice--primary}
<img :src="$withBase('/files/storagethroughcsharp1.png')">
## Part 2 (Setup) Visual Studio
#### Part 2 (Setup) Visual Studio
Create a C# Azure Function application by opening Visual Studio and selecting the template under the **Cloud** node as shown below:

Просмотреть файл

@ -1,19 +1,19 @@
---
type: post
title: "Azure Tips and Tricks Part 158 - Part 2 Create Thumbnail Images with Azure Functions and Azure Storage"
title: "Tip 158 - Part 2 Create Thumbnail Images with Azure Functions and Azure Storage"
excerpt: "Learn how to create a thumbnail images with Azure Functions and Azure Storage"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-09-17 17:00:00
---
## Create Thumbnail Images with Azure Functions and Azure Storage
#### Create Thumbnail Images with Azure Functions and Azure Storage
In this mini-series, we're going to create an Azure Function that detects when a new image is added to Azure Storage and automatically creates a thumbnail image for us.
* [Azure Tips and Tricks Part 157 - Part 1 Create Thumbnail Images with Azure Functions and Azure Storage](http://www.michaelcrump.net/azure-tips-and-tricks157/)
* [Azure Tips and Tricks Part 158 - Part 2 Create Thumbnail Images with Azure Functions and Azure Storage](http://www.michaelcrump.net/azure-tips-and-tricks158/)
## Part 3 Time to Code
#### Part 3 Time to Code
Make sure you read [Part 1 Create Thumbnail Images with Azure Functions and Azure Storage](http://www.michaelcrump.net/azure-tips-and-tricks157/) before proceeding with this post.
@ -31,7 +31,7 @@ Inside of your Azure Function app in Visual Studio, open your **local.settings.j
```
Be sure to include the NuGet package called **ImageResizer**
{: .notice--primary}
Copy the following code into your `Function1.cs`:

Просмотреть файл

@ -1,16 +1,16 @@
---
type: post
title: "Azure Tips and Tricks Part 159 - Use Azure Logic Apps and CosmosDB to monitor and archive Twitter hashtags"
title: "Tip 159 - Use Azure Logic Apps and CosmosDB to monitor and archive Twitter hashtags"
excerpt: "Learn how to use Azure Logic Apps and CosmosDB to monitor and archive Twitter hashtags"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2018-09-23 17:00:00
---
## Use Azure Logic Apps and CosmosDB to monitor and archive Twitter hashtags
#### Use Azure Logic Apps and CosmosDB to monitor and archive Twitter hashtags
I love data and use it constantly to improve everything in my personal life as well as my professional life. As we are about to begin the Microsoft Ignite conference, I wanted to collect tweets that use the #MSIgnite hashtag and save them to a database. I also don't want to code as I'm working on 3 sessions right now. Here's how I did it.
## Create an Cosmos DB instance
#### Create an Cosmos DB instance
Inside of the Azure Portal, create a Cosmos DB instance.
@ -24,13 +24,13 @@ For Cosmos DB :
<img :src="$withBase('/files/azlogiccosmos1.png')">
<img :src="$withBase('/files/azlogiccosmos3.png')">
## Create an Logic App instance
#### Create an Logic App instance
Inside of the Azure Portal, create a Logic App instance per the screenshot below
<img :src="$withBase('/files/azlogiccosmos2.png')">
## Logic App Designer
#### Logic App Designer
Open the Logic App that you just created and select **When a new tweet is posted** and log in with your Twitter credentials and select the interval and text you wish to search for. In my case I'm using #MSIgnite.
@ -60,7 +60,7 @@ Fill out the following fields:
```
Please note that these are dynamic fields, so you might not be able to copy and paste that text.
{: .notice--primary}
<img :src="$withBase('/files/azlogiccosmos7.png')">

Просмотреть файл

@ -1,6 +1,6 @@
---
type: post
title: "Deploy Jekyll Site Hosted on GitHub Pages to Azure"
title: "Tip 16 - Deploy Jekyll Site Hosted on GitHub Pages to Azure"
excerpt: "Learn how to quickly deploy a Jekyll based site hosted on GitHub Pages to Azure"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2017-09-13 17:00:00

Просмотреть файл

@ -1,12 +1,12 @@
---
type: post
title: "Azure Tips and Tricks Part 161 - Change the Azure Function runtime version after Deployment"
title: "Tip 161 - Change the Azure Function runtime version after Deployment"
excerpt: "Learn how to use change the azure function runtime version after deployment"
tags: [azure, app service, portal, resources]
date: 2018-10-01 17:00:00
---
## Change the Azure Function runtime version after Deployment
#### Change the Azure Function runtime version after Deployment
If you have used Azure Functions since the beginning, then chances are you've started with a 1.x runtime. Since 2.x is out, you may want to upgrade to it but will be greeted with the following message:

Просмотреть файл

@ -1,22 +1,22 @@
---
type: post
title: "Azure Tips and Tricks Part 162 - ARM Templates Demystified"
title: "Tip 162 - ARM Templates Demystified"
excerpt: "Learn how to get started with ARM Templates"
tags: [azure, arm, templates]
date: 2018-10-07 17:00:00
---
## Azure Tips and Tricks - ARM Templates Demystified
#### Azure Tips and Tricks - ARM Templates Demystified
* [Part 1 - This Post](tip162/)
* [Part 2](tip163/)
* [Part 3](tip164/)
## Intro
#### Intro
Ive been hearing that a lot of people are having trouble with ARM templates. Either they dont understand them and dont know how to use them, or they do use them but the templates are too hard to use. This feedback really surprised me and calls out for a quick demystification. In this post, Im going to explain what ARM templates are and why you should care.
## ARM Templates Demystified
#### ARM Templates Demystified
First off, it occurred to me that the name might be confusing. **ARM** here doesnt have anything to do with CPU architecture such as what is used in phones and tablets, which would be an honest misunderstanding. ARM stands for [Azure Resource Manager](https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-overview), which is how you organize all your stuff on Azure—virtual machines, databases, storage accounts, containers, web apps, bots, and more. In Azure, we call your stuff resources.
@ -24,11 +24,11 @@ First off, it occurred to me that the name might be confusing. **ARM** here does
You will tend to create many related items together in Azure, like a web app and a database will be contained in a single resource group. But what if you had to do this frequently for many different clients? Wouldnt it be nice to have an easy way to keep track of all the repeatable groups of resources you are creating for people? Good news, this is exactly what ARM Templates do!
## What are some real-world scenarios for using ARM Templates?
#### What are some real-world scenarios for using ARM Templates?
When you need an easy way to repeat infrastructure deployments on Azure, ARM templates are going to save you a lot of time. If you ever need to share your infrastructure with other people—like for open source projects or for blogs, tutorials, and documentation—ARM templates will be a lifesaver and will let your readers and users replicate what you did. Finally, if you just need a way to keep track of what you deployed on Azure, ARM templates are a great way to help you remember.
## An ARM Template is just a JSON file
#### An ARM Template is just a JSON file
This is where ARM templates come in. ARM templates are **JSON files** that act like blueprints for the related resources you want to deploy together. Youll also hear this called “infrastructure as code,” which is geek speak for being able to upload your infrastructure notes to GitHub if you want to. Its a structured format for keeping track of your Azure infrastructure with some superpowers. The biggest ARM template superpower is that you can use templates to automate your infrastructure deployments because Azure knows how to read them.
@ -81,7 +81,7 @@ In the example below, we are creating an ARM template that creates a Notificatio
But more on that later!
## Getting Started
#### Getting Started
You can make an ARM template in Visual Studio, in Visual Studio Code, or in the Azure portal. The last way is probably the easiest since it walks you through the process. Start creating a resource through the portal the way you normally would, by clicking on the **Create Resource** on your Azure Portal Dashboard. Now select what you'd like to create. I'm going to create a **Web App**. Look at the bottom of this page and you'll see **Automation options**.

Просмотреть файл

@ -1,6 +1,6 @@
---
type: post
title: "Azure Tips and Tricks Part 163 - Provide Static App Settings Values in an ARM Template"
title: "Tip 163 - Provide Static App Settings Values in an ARM Template"
excerpt: "Learn how to use provide static values to ARM templates"
tags: [azure, arm, templates, appsettings]
date: 2018-10-08 17:00:00
@ -12,11 +12,11 @@ date: 2018-10-08 17:00:00
* [Part 2 - This Post](tip163/)
* [Part 3](tip164/)
## Yesterday on Azure Tips and Tricks
#### Yesterday on Azure Tips and Tricks
Building on my previous Azure Tips and Tricks post about what ARM templates are and why you should care, I wanted to give you a quick recipe for a common development task. Youve already seen that you can automate deploying a web app (and many other resources), but can you also copy configuration information like app settings with your ARM template? Yes!
## Getting Started
#### Getting Started
Go ahead and click **Create a resource** inside the Azure Portal and select **Web App**.
@ -30,7 +30,7 @@ After you click **Automation options**, then this is what you will see:
The template to create a web app (or any other Azure resource) is simply a JSON file with multiple values describing how your web app is going to be deployed.
## Create Static App Settings for your Azure App Service
#### Create Static App Settings for your Azure App Service
To make things as easy as possible, lets assume for now that you want to add the exact same settings every time you deploy your web app template.
@ -74,7 +74,7 @@ Press **Save** and ensure the **Basic** and **Settings** is filled out. Agree to
<img :src="$withBase('/files/customdeployment.png')">
Note: If it says failure to deploy, then give it a shot again. I have had this happened but maybe it is only happening since I use the Preview.
{: .notice--primary}
Your Azure App Settings (for **MyFirstName**, **MyLastName**, and **MySSN**) will now be deployed.

Просмотреть файл

@ -1,6 +1,6 @@
---
type: post
title: "Azure Tips and Tricks Part 164 - Defining Parameters to be used with ARM Templates"
title: "Tip 164 - Defining Parameters to be used with ARM Templates"
excerpt: "Learn how to use provide parameters with ARM templates"
tags: [azure, arm, templates, appsettings]
date: 2018-10-14 17:00:00
@ -12,11 +12,11 @@ date: 2018-10-14 17:00:00
* [Part 2](tip163/)
* [Part 3 - This Post]
## Yesterday on Azure Tips and Tricks
#### Yesterday on Azure Tips and Tricks
Youve already seen that you can automate deploying static configuration information like app settings with your ARM template. But what about providing parameters that allows end-users to input values **BEFORE** deployment. That is what we'll learn today!
## Getting Started
#### Getting Started
Go ahead and search for **Templates** inside the Azure Portal and click **Add** to create a new one.
@ -24,7 +24,7 @@ Enter a **name** and a **description** on the ARM Template.
<img :src="$withBase('/files/customdeploy5.png')">
## Fill-in-the-blank settings
#### Fill-in-the-blank settings
We want to have dynamic settings that are customizable every time you deploy your web app instead of having them be the same each time, you just need to add the parameter values for what you want to your ARM template.
@ -64,7 +64,7 @@ We'll add the same parameters called `FirstNameValue`, `LastNameValue` and `SSNV
}
```
## Putting it all together
#### Putting it all together
Our full template file looks like the following:

Просмотреть файл

@ -1,33 +1,33 @@
---
type: post
title: "Azure Tips and Tricks Part 166 - Data Storage Options with Azure Storage and Cosmos DB"
title: "Tip 166 - Data Storage Options with Azure Storage and Cosmos DB"
excerpt: "Learn about different storage options in Azure"
tags: [azure, cosmosdb, portal, cloud, tablestorage]
date: 2018-10-21 17:00:00
---
## Azure Table Storage and Azure Cosmos DB
#### Azure Table Storage and Azure Cosmos DB
Before you dive into this article, keep in mind that this is not a comparison and use what you feel is right for your scenario.
## Azure Table Storage in a nutshell
#### Azure Table Storage in a nutshell
[Azure Table Storage](https://azure.microsoft.com/services/storage/tables/) offers a NoSQL key-value store for semi-structured data.
Unlike a traditional relational database, each entity (such as a row - in relational database terminology) can have a different structure, allowing your application to evolve without downtime to migrate between schemas.
## Azure Cosmos DB in a nutshell
#### Azure Cosmos DB in a nutshell
[Azure Cosmos DB](https://azure.microsoft.com/services/cosmos-db/) is a multimodal database service designed for global use in mission-critical systems. Not only does it expose a Table API, it also has a SQL API, Apache Cassandra, MongoDB, Gremlin and Azure Table Storage. These allow you to easily swap out existing dbs with a Cosmos DB implementation.
## Performance
#### Performance
Azure Table Storage has no upper bound on latency. Cosmos DB defines latency of single-digit milliseconds for reads and writes along with operations at sub-15 milliseconds at the 99th percentile worldwide. (That was a mouthful) Throughput is limited on Table Storage to 20,000 operations per second. On Cosmos DB, there is no upper limit on throughput, and more than 10 million operations per second are supported. Unlike Table Storage, Cosmos DB automatically indexes on all properties, and queries can take advantage of this to improve performance.
## Global Distribution
#### Global Distribution
Azure Table Storage supports a single region with an optional read-only secondary region for availability. Cosmos DB supports distribution from 1 to more than 30 regions with automatic failovers worldwide. You can easily manage this from the Azure portal and define the failover behavior. Five defined consistency levels allow you to select the right balance between availability, latency, throughput, and consistency.
## Billing
#### Billing
Azure Table Storage uses storage volume to determine billing. It is priced per GB and the rates vary depending on the redundancy level selected. Pricing is tiered to get progressively cheaper per GB the more storage you use. Operations incur a charge measured per 10,000 transactions. All operation types are treated the same.
@ -37,11 +37,11 @@ For Cosmos DB, throughput is measured in request units (RU)is also billed. The d
Calculator for estimating request units and data storage can be found at : https://www.documentdb.com/capacityplanner.
## Consistent API
#### Consistent API
Both Azure Table Storage and Azure Cosmos DB support the same [Table API](https://docs.microsoft.com/en-us/azure/cosmos-db/table-introduction). SDKs are available for common programming environments along with a generic REST API. Because Cosmos DB exposes a superset of functionality, there are some overloaded API methods to specify additional options. The common API makes it easier to migrate a solution from Azure Table Storage to Cosmos DB as it grows. It also makes learning the API easier. You can target Azure Table Storage, Azure Cosmos DB, or the Azure storage emulator running location by simply replacing the connection string.
## A Code Sample
#### A Code Sample
Sometimes I like to just look at the code vs. writing a full app and here is an example of accessing the Table API mentioned above.
@ -65,11 +65,11 @@ table.Execute(insertOperation);
In addition to **Insert**, **Retrieve**, **Replace**, and **Delete** operations, there is an **InsertOrReplace** operation that will overwrite an entity matching the partition and row key.
## Migration
#### Migration
If you have existing data in Azure Table Storage, you can migrate it to Cosmos DB using the [Data Migration tool](https://docs.microsoft.com/en-us/azure/cosmos-db/import-data) or [AzCopy](https://docs.microsoft.com/en-us/azure/storage/common/storage-use-azcopy). Cosmos also supports import from other databases such as MongoDB. You may choose to start development with Table Storage and then migrate to Cosmos as your requirements evolve. Because the API is the same there is no impact to the code you write.
## Wrapping up
#### Wrapping up
So far we've covered a lot of information, this handy table below should help make sense of it all.

Просмотреть файл

@ -1,19 +1,19 @@
---
type: post
title: "Azure Tips and Tricks Part 167 - Migrating Data from Cosmos DB to Local JSON files"
title: "Tip 167 - Migrating Data from Cosmos DB to Local JSON files"
excerpt: "Learn how to use migrating data from cosmos db to local json files"
tags: [azure, database, json, cosmosdb]
date: 2018-10-22 17:00:00
---
## Migrating Data from Cosmos DB to Local JSON files
#### Migrating Data from Cosmos DB to Local JSON files
## Using the Data Migration Tool with Cosmos DB
#### Using the Data Migration Tool with Cosmos DB
One tasks that seems to come up over and over is migrating data from one database/format into another. I recently used Cosmos DB as my database to store every tweet that came out of Ignite. Once I had the data and wouldn't be using Cosmos DB any more for that exercise, I needed to dump the data out to a local file to preserve the data and save money. Here is how I did it.
## The Tools
#### The Tools
Download and install the [Azure DocumentDB Data Migration Tool](https://www.microsoft.com/en-us/download/confirmation.aspx?id=46436)

Просмотреть файл

@ -1,19 +1,19 @@
---
type: post
title: "Azure Tips and Tricks Part 168 - Part 1 - A quick tour around Azure DevOps Projects using Node.js and AKS"
title: "Tip 168 - Part 1 - A quick tour around Azure DevOps Projects using Node.js and AKS"
excerpt: "Learn how to use Azure DevOps Projects"
tags: [azure, devops, devops projext, nodejs, kubernetes]
date: 2018-10-28 17:00:00
---
## A quick tour around Azure DevOps Projects and Node.js and Kubernetes Service
#### A quick tour around Azure DevOps Projects and Node.js and Kubernetes Service
* [Part 1 - This post](http://www.michaelcrump.net/azure-tips-and-tricks168/)
* [Part 2 - Coming tomorrow](http://www.michaelcrump.net/azure-tips-and-tricks169/)
In this post, I will walk you through creating a new [Azure Kubernetes Service](https://azure.microsoft.com/en-us/services/kubernetes-service/) (AKS) cluster using an [Azure DevOps Projects](https://azure.microsoft.com/en-us/features/devops-projects/) and take a look under the hood to help understand how to get started with AKS.
## Hold up - What is Azure DevOps and AKS (in a nutshell)?
#### Hold up - What is Azure DevOps and AKS (in a nutshell)?
Azure DevOps Services is a cloud service for collaborating on code development such as:
@ -26,7 +26,7 @@ Azure DevOps Services is a cloud service for collaborating on code development s
Azure Kubernetes Service (AKS) manages your hosted Kubernetes environment, making it quick and easy to deploy and manage containerized applications without container orchestration expertise. It also eliminates the burden of ongoing operations and maintenance by provisioning, upgrading, and scaling resources on demand, without taking your applications offline.
## Create the DevOps Project
#### Create the DevOps Project
In the Azure portal, search for **DevOps** and choose the **DevOps Project** from the results. Click the **Add** button, select the **Node.js** application, **click** it and then the **Next** button. Select **Express.js** for the application framework and click **Next**. For deploying the application, select **Kubernetes Service** and click Next. Now just give the DevOps project an **Organization name** and **Project name**. Provide a subscription and a **cluster name** and click the **Done** button.
@ -44,7 +44,7 @@ You should also have received an email letting you know the project is ready. Yo
<img :src="$withBase('/files/devops-k8s20.png')">
## Taking a peek at the code
#### Taking a peek at the code
In the CI/CD pipeline, **click** on the commit to see the code or you can optionally click on **Master** to take you to the full file list.
<img :src="$withBase('/files/devops-k8s4.png')">
@ -55,7 +55,7 @@ This takes you to the commit for the repo we just deployed containing the deploy
When you created the DevOps project, it cloned the source from the [devops-project-samples](https://github.com/Microsoft/devops-project-samples) GitHub project and added it your DevOps projects and did a lot of the initial plumbing for you. How cool is that?
## Taking a look at the Build
#### Taking a look at the Build
Back on the DevOps Project dashboard, click the **Build link** that has the successful build number.

Просмотреть файл

@ -1,22 +1,22 @@
---
type: post
title: "Azure Tips and Tricks Part 169 - Part 2 - A quick tour around Azure DevOps Projects using Node.js and AKS"
title: "Tip 169 - Part 2 - A quick tour around Azure DevOps Projects using Node.js and AKS"
excerpt: "Learn how to use Azure DevOps Projects"
tags: [azure, devops, devops projext, nodejs, kubernetes]
date: 2018-10-29 17:00:00
---
## A quick tour around Azure DevOps Projects and Node.js and Kubernetes Service
#### A quick tour around Azure DevOps Projects and Node.js and Kubernetes Service
* [Part 1](http://www.michaelcrump.net/azure-tips-and-tricks168/)
* [Part 2 - This post](http://www.michaelcrump.net/azure-tips-and-tricks169/)
## Yesterday on Azure Tips and Tricks
#### Yesterday on Azure Tips and Tricks
We discussed what Azure DevOps Projects are and began creating a project that uses Node.js and Azure Kubernetes Services (AKS). We walked through creating a project from scratch and began looking at the pipeline which included **code** and **build**. Today we'll finish up the pipeline section by looking at **dev**. We'll also review the resources section. In case you haven't read [Part 1](http://www.michaelcrump.net/azure-tips-and-tricks168/) then I'd suggest you do so now.
## Finish up the pipelines section
#### Finish up the pipelines section
Back on the DevOps Project dashboard, click the **Release** link with the number Please make sure it is green - for a successful build)
@ -49,7 +49,7 @@ You now see the list of tasks that need to be run such as Creating the AKS clust
That wraps up the Pipelines section and gives you a taste of how powerful Azure DevOps is. In this next section, we'll look at the Azure Resources section.
## Azure resources in a nutshell
#### Azure resources in a nutshell
Back in the DevOps Project dashboard, lets look at the Azure resources and [Application Insights](https://azure.microsoft.com/en-us/services/application-insights/). The resources are the URL to your live site running in Kubernetes and a link to the AKS cluster. The last link will take you to see the live telemetry for your site provided by Application Insights.

Просмотреть файл

@ -1,12 +1,13 @@
---
type: post
title: "Azure Tips and Tricks Part 17 - Use PowerShell with Azure Cloud Shell"
title: "Tip 17 - Use PowerShell with Azure Cloud Shell"
excerpt: "Learn how to take advantage of PowerShell within Azure Cloud Shell"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2017-09-18 17:00:00
---
## Use PowerShell within Azure Cloud Shell
#### Use PowerShell within Azure Cloud Shell
<img :src="$withBase('/files/bashscreenshot.png')">

Просмотреть файл

@ -1,31 +1,31 @@
---
type: post
title: "Azure Tips and Tricks Part 170 - SAP on Azure in Plain English Part 1 of 2"
title: "Tip 170 - SAP on Azure in Plain English Part 1 of 2"
excerpt: "Learn about SAP hosted on Azure"
tags: [azure, sap, portal, tipsandtricks]
date: 2018-11-04 17:00:00
---
## SAP on Azure in Plain English Part 1 of 2
#### SAP on Azure in Plain English Part 1 of 2
In this series, I take a look at SAP coming from someone who hasn't used it before.
* [Part 1 - This post](http://www.michaelcrump.net/azure-tips-and-tricks170)
* [Part 2](http://www.michaelcrump.net/azure-tips-and-tricks171)
## SAP - A brief history lesson from 1973 - 2018
#### SAP - A brief history lesson from 1973 - 2018
SAP, the world's third-largest software company, produces business applications including customer relationship management (CRM) and enterprise resource planning (ERP) solutions. Since its first product was released in 1973, the company has made major changes to its software to accommodate industry trends from mainframes through to cloud computing.
In 2010, with a focus on cloud computing, SAP developed the new SAP HANA platform, which is built on a proprietary database engine and forms the foundation of all its latest offerings. In 2015, SAP launched S/4HANA, which is a Business Suite implementation on this HANA platform. Microsoft and SAP have partnered to provide a range of SAP solutions running in the Azure cloud.
### Tell me more about SAP on Azure?
##### Tell me more about SAP on Azure?
Traditionally, SAP systems were designed to be hosted on-premises and required a significant hardware investment. Using Azure we support both the traditional NetWeaver-based and HANA-based solutions.
You can also run your SAP applications in Azure which features the broadest global footprint, the largest compliance portfolio, embedded security, enterprise-grade SLAs, and industry-leading support. Azure supports the largest SAP HANA workloads of any hyperscale cloud provider.
### What offerings are available?
##### What offerings are available?
Azure has a number of preconfigured (and SAP certified) virtual machine images, published by SAP and third-party Linux vendors, so that you can spin up your infrastructure in minutes rather than the weeks it would take on-premises. You can select from a wide range of virtual machine SKUs and even add your own license. Just search for **Marketplace** and click on **Compute** and filter by **SAP**.

Просмотреть файл

@ -1,23 +1,23 @@
---
type: post
title: "Azure Tips and Tricks Part 171 - SAP on Azure in Plain English Part 2 of 2"
title: "Tip 171 - SAP on Azure in Plain English Part 2 of 2"
excerpt: "Learn about SAP hosted on Azure"
tags: [azure, sap, portal, tipsandtricks]
date: 2018-11-05 17:00:00
---
## SAP on Azure in Plain English Part 2 of 2
#### SAP on Azure in Plain English Part 2 of 2
In this series, I take a look at SAP coming from someone who hasn't used it before.
* [Part 1](http://www.michaelcrump.net/azure-tips-and-tricks170)
* [Part 2 - This Post](http://www.michaelcrump.net/azure-tips-and-tricks171)
## Yesterday on Azure Tips and Tricks
#### Yesterday on Azure Tips and Tricks
Yesterday, we took a look at SAP on Azure and learned a little about the history and what offerings were available. We set up a VM using the **SAP HANA express edition (Server + Applications)** image and left off with a deployed SAP VM. Today, we'll take a look at connecting to the instance and configuring it.
## Connecting to our VM
#### Connecting to our VM
Once Azure has created the VM and configured the storage and virtual network you can connect to the server via RDP or SSH.
@ -30,7 +30,7 @@ In my case, I'm using SSH.
Below shows how I configured SAP Hana, you can follow along with what I did if you want.
**Pro Tip** The default password is `HXEHana1` if you have any trouble logging in via the `su - hxeadm` login.
{: .notice--primary}
SSH into the Linux VM with `sh hxehost@<the ip provided from azure portal>`
@ -79,11 +79,11 @@ Run `su - hxeadm` to log into the express edition and use `HXEHana1` for the pas
```text
SAPTestMC:~ # su - hxeadm
Password:
##############################################################################
############################################################################################################################################################
# Welcome to SAP HANA, express edition 2.0. #
# #
# The system must be configured before use. #
##############################################################################
############################################################################################################################################################
Password must be at least 8 characters in length. It must contain at least
@ -106,9 +106,9 @@ You'll now see the Summary.
```text
##############################################################################
############################################################################################################################################################
# Summary before execution #
##############################################################################
############################################################################################################################################################
HANA, express edition
Host name : SAPTestMC
Domain name : x.dx.internal.cloudapp.net
@ -147,9 +147,9 @@ Change SYSTEM user password on HXE database...
##############################################################################
############################################################################################################################################################
# Security keys change summary #
##############################################################################
############################################################################################################################################################
HANA system ID : HXE
HANA instance number : 90
system password : ********
@ -157,9 +157,9 @@ Change SYSTEM user password on HXE database...
root key backup directory : /usr/sap/HXE/home/root_key.bck
#############################
#########################################################
# Changing SSFS Master keys #
#############################
#########################################################
Re-encrypt master key of the instance SSFS...
Record Statistics
=============================================
@ -178,9 +178,9 @@ Encrypted and not readable : 0
Plaintext : 0
Removed by compacting : 0
#########################################
#################################################################################
# Change root key for SystemDB database #
#########################################
#################################################################################
Root key backup password set for SYSTEMDB!
Root key generated for data volume of SYSTEMDB!
Root key generated for redo log of SYSTEMDB!
@ -189,9 +189,9 @@ Root key for SYSTEMDB is backed up to /usr/sap/HXE/home/root_key.bck/SYSTEMDB.rk
Root key activated for data volume of SYSTEMDB!
Root key activated for redo log of SYSTEMDB!
Root key activated for internal application of SYSTEMDB!
###########################################
#####################################################################################
# Change root key for tenant database HXE #
###########################################
#####################################################################################
Root key backup password set for HXE!
Root key generated for data volume of HXE!
Root key generated for redo log of HXE!
@ -397,11 +397,11 @@ Once complete open up your browser and go to the **Public IP Address** with port
<img :src="$withBase('/files/azure-sap-browser.png')">
## Before I go - A Managed Solution is available
#### Before I go - A Managed Solution is available
For a completely managed solution, [SAP Cloud Platform (CP) on Azure](https://azure.microsoft.com/en-us/blog/agile-sap-development-with-sap-cloud-platform-on-azure/) is a platform-as-a-service implementation that is completely managed by SAP but hosted in the Azure cloud. This arrangement still offers Azure integration so that you can connect with Event Hubs, Azure SQL, Cosmos DB, etc. With this approach, applications are deployed via SAP CP Cockpit, which is a marketplace of apps and components.
## Wrap-up
#### Wrap-up
Whether you are looking at how to manage a SAP NetWeaver system in Azure, or you want to migrate to a more flexible, cloud-first, SAP HANA system, you'll find a lot more detailed information, along with case studies, on the [SAP for Azure website](https://azure.microsoft.com/en-us/solutions/sap/).

Просмотреть файл

@ -1,36 +1,36 @@
---
type: post
title: "Azure Tips and Tricks Part 172 - Getting Started with HDInsight"
title: "Tip 172 - Getting Started with HDInsight"
excerpt: "Learn about Azure HDInsight clusters"
tags: [azure, analytics, hdinsight, portal, cloud, tipsandtricks]
date: 2018-11-11 17:00:00
---
## What is Azure HDInsight?
#### What is Azure HDInsight?
[Azure HDInsight](https://azure.microsoft.com/services/hdinsight/) is a managed cloud service for analyzing large sets of data. This big data is often collected rapidly and may be relatively unstructured. By itself this data might not be very useful, but when cleaned, analyzed, and presented, it can provide actionable insights. You can use Azure HDInsight to power machine learning, IoT, or data warehousing projects.
The service is available in most Azure regions and has the security and compliance standards you would expect from an Azure managed service. You can use whichever language you prefer to develop with. Python, Java, and C# are just a few examples.
## The elephant in the room?
#### The elephant in the room?
When you read about [Azure HDInsight](https://azure.microsoft.com/services/hdinsight/) (or see it in the Azure portal, you'll probably notice a little elephant icon. This is the logo for Apache Hadoop, which is an open-source distributed data analysis solution (which MS contributes to).
Hadoop manages the processing of large datasets across large clusters of computers and it detects and handles failures. There are related projects in the Hadoop stack such as Hive, Spark, and Kafka that HDInsight also contains.
## Why Hadoop on Azure?
#### Why Hadoop on Azure?
As we already know, Azure provides dynamic machines that are billed only when active. This enables elastic computing, where you can add machines for particular workloads or projects and then remove them when not needed. HDInsight can take advantage of this scalable platform. It can also capitalize on the security and management features of Azure, integration with Azure Active Directory and Log Analytics.
HDInsight can also integrate with familiar business intelligence tools such as Excel, PowerPivot, and SQL Server Analysis Services and Reporting Services. This is facilitated with special ODBC drivers.
## Hardoop for Devs
#### Hardoop for Devs
Hadoop uses the [MapReduce](https://docs.microsoft.com/en-us/azure/hdinsight/hadoop/hdinsight-use-mapreduce) programming model. This allows you to map (filter and sort) data sources and reduce (summarize, count, etc.) to produce meaningful output from a large unstructured data source. For developing with HDInsight, you can use Visual Studio, Visual Studio Code, Eclipse, and IntelliJ development environments. You can create user-defined functions (UDFs) written in a number of languages for the Pig Latin programming language or use HiveQL, which is an SQL dialect, to treat the data like a relational model. A third tool, [Sqoop](https://docs.microsoft.com/en-us/azure/hdinsight/hadoop/hdinsight-use-sqoop), allows you to export to a conventional relational database.
<img :src="$withBase('/files/hadoop-ecosystem.png')">
## Into the action - Setting up your cluster
#### Into the action - Setting up your cluster
Adding a new HDInsight cluster is a three-step process. First, search the Azure Portal for **HDInsight cluster** and create a new cluster. We'll stay on the **Quick create** for this sample.
@ -62,7 +62,7 @@ Finally, you are presented with a summary of the options you have chosen and an
Once you click **Create**, the cluster nodes will be configured and you will be billed for the cluster until you remove it.
NOTE: It may take a while to spin this up. The information dialog says up to 20 minutes.
{: .notice--primary}
You can now open the cluster in the Azure Portal and do things such as scale up or scale out, manage policies (such as mask a column) or review audit logs.
@ -72,7 +72,7 @@ Click **Cluster dashboards** to open your Apache Ambari dashboard which simplifi
<img :src="$withBase('/files/azure-hdinsight-summary2.png')">
## Wrap-up
#### Wrap-up
You can read about the Hadoop project in more detail [here](http://hadoop.apache.org). There is also a range of third-party applications [to explore](https://azure.microsoft.com/services/hdinsight/partner-ecosystem).

Просмотреть файл

@ -1,16 +1,16 @@
---
type: post
title: "Azure Tips and Tricks Part 173 - Get the most out of Azure Advisor"
title: "Tip 173 - Get the most out of Azure Advisor"
excerpt: "Learn how to use Azure Advisor"
tags: [azure, azure advisor, high availability, security, performance, cost]
date: 2018-11-12 17:00:00
---
## Get the most out of Azure Advisor
#### Get the most out of Azure Advisor
[Azure Advisor](https://azure.microsoft.com/services/advisor/) is a simple dashboard that helps you implement best practices across your Azure resources. In this blog post, Ill walk you through the types of recommendations it provides and how easy it is to implement them.
### Recommendation categories
##### Recommendation categories
Advisor looks at the Azure resources in your subscriptions and comes up with recommendations that fall into these categories:
* [High Availability](https://docs.microsoft.com/azure/advisor/advisor-high-availability-recommendations): Suggestions that are important for business-critical and production-worthy applications.
@ -18,7 +18,7 @@ Advisor looks at the Azure resources in your subscriptions and comes up with rec
* [Performance](https://docs.microsoft.com/azure/advisor/advisor-performance-recommendations): Recommendations that are tailored to the configurations of your resources and that compile together items from [SQL Database Advisor](https://docs.microsoft.com/azure/sql-database/sql-database-advisor), [Redis Cache Advisor](https://docs.microsoft.com/azure/redis-cache/cache-configure#redis-cache-advisor), and other best practices.
* [Cost](https://docs.microsoft.com/azure/advisor/advisor-cost-recommendations): Information on past usage of things like VMs generates cost-saving recommendations as well as sizing and other resource configurations that affect cost.
### Use Advisor to implement recommendations
##### Use Advisor to implement recommendations
Inside the Azure portal, search for **Advisor** and open the **Advisor recommendations** dashboard. At first glance, we can see Advisor has a few recommendations for me, one performance, two for high availability and three for security. At the bottom of the screen, you'll also notice that you can export the recommendations to PDF or CSV files - which is great for mangers to prove you need to work on this task. It is very cool that Azure is watching my back "out of the box"!
@ -56,7 +56,7 @@ If you click on the **Security** tab and drill into a recommendation, then you'l
Again, we see that not only did it tell me what posed the greatest threat, but it walks me through what I need to do to follow the recommendation.
## Summary
#### Summary
To sum it up, the flow for all four categories of recommendations is:
1. Select the recommendation category in the dashboard.

Просмотреть файл

@ -1,22 +1,22 @@
---
type: post
title: "Azure Tips and Tricks Part 174 - Machine Learning with ML.NET and Azure Functions - Part 1 of 2"
title: "Tip 174 - Machine Learning with ML.NET and Azure Functions - Part 1 of 2"
excerpt: "ML.NET is the machine learning framework that Microsoft Research made just for .NET developers so you can do everything inside Visual Studio. And when you are ready to deploy your ML.NET algorithm, you can use serverless architecture through Azure Functions--the “dont worry about it” option when you want to get an app up and running."
tags: [azure, ML.NET, Azure Functions, Machine Learning, AI]
date: 2018-11-18 17:00:00
---
## Azure Tips and Tricks Part 174 - Machine Learning with ML.NET and Azure Functions - Part 1 of 2
#### Azure Tips and Tricks Part 174 - Machine Learning with ML.NET and Azure Functions - Part 1 of 2
## Intro
#### Intro
Machine learning can be tricky. Fortunately, Azure is coming up with ways to make it easier for developers to jump into machine learning. [ML.NET](https://azure.microsoft.com/en-us/updates/ml-net/) is the machine learning framework that Microsoft Research made just for .NET developers so you can do everything inside Visual Studio. If you havent already been playing with it, I think youre going to love it. And when you are ready to deploy your ML.NET algorithm, you can use serverless architecture through [Azure Functions](https://azure.microsoft.com/en-us/services/functions/)— the “dont worry about it” option when you want to get an app up and running but dont necessarily want to mess around with servers and containers.
## Serverless Machine Learning
#### Serverless Machine Learning
This is [part 1](tip174/) of a [two part](tip175/) post on ML.NET inspired by Luis Quintanillas [article](http://luisquintanilla.me/2018/08/21/serverless-machine-learning-mlnet-azure-functions/) about using ML.NET with Azure Functions, where he took these two great ideas and combined them. You will use ML.NET locally to train your machine learning model. Then you will create an Azure environment with a storage account and Azure Function to host your machine learning app. The final step, building an app that uses your model, will be covered in the next post.
## Create your model
#### Create your model
For the ML.NET portion of this quick project, lets build the iris categorization model from the [Getting started in 10 minutes](https://www.microsoft.com/net/learn/machine-learning-and-ai/get-started-with-ml-dotnet-tutorial) ML.NET tutorial. As a prerequisite, youll want to install [Azure CLI 2.0](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest), [Azure Functions Core Tools](https://docs.microsoft.com/en-us/azure/azure-functions/functions-run-local) and a recent version of [.NET Core](https://www.microsoft.com/net/download/dotnet-core/2.2).
@ -156,7 +156,7 @@ Predicted flower type is: Iris-virginica
Congratulations! Youve trained a machine learning model with ML.NET that categorizes irises.
## Set up your Azure environment using Cloud Shell
#### Set up your Azure environment using Cloud Shell
We'll use Azure Cloud Shell which uses the [Azure CLI](https://docs.microsoft.com/cli/azure/?view=azure-cli-latest) to set up our Azure environment. The easiest way to do this is to sign in to your Azure portal account and click on the **cloud shell icon** shown below to open a bash shell or go to [shell.azure.com](http://shell.azure.com).
@ -184,7 +184,7 @@ $ az functionapp create --name mlnetdemoazfunction1 --storage-account mlnetdemos
$ az functionapp config appsettings set --name mlnetdemoazfunction1 --resource-group mlnetdemo --settings FUNCTIONS_EXTENSION_VERSION=beta
`
## Deploy your machine learning model
#### Deploy your machine learning model
To get your model up to the server, you will need to get the keys to your storage account. Use the following command in the bash window to get it.

Просмотреть файл

@ -1,19 +1,19 @@
---
type: post
title: "Azure Tips and Tricks Part 175 - Machine Learning with ML.NET and Azure Functions - Part 2 of 2"
title: "Tip 175 - Machine Learning with ML.NET and Azure Functions - Part 2 of 2"
excerpt: "In part 1 of this post on ML.NET and Azure Functions, you created a machine learning model with ML.NET that categorizes irises. You also set up a serverless architecture environment with Azure Functions and uploaded your model to it. In this post, youre going to finish by building an app that uses your machine learning model."
tags: [azure, ML.NET, Azure Functions, Machine Learning, AI]
date: 2018-11-19 17:00:00
---
## Azure Tips and Tricks Part 175 - Machine Learning with ML.NET and Azure Functions - Part 2 of 2
#### Azure Tips and Tricks Part 175 - Machine Learning with ML.NET and Azure Functions - Part 2 of 2
## Intro
#### Intro
Machine learning can be tricky. Fortunately, Azure is coming up with ways to make it easier for developers to jump into machine learning. In part 1 of this post on ML.NET and Azure Functions, you created a machine learning model with [ML.NET](https://www.microsoft.com/net/apps/machinelearning-ai/ml-dotnet) that categorizes irises. You also set up a serverless architecture environment with Azure Functions and uploaded your model to it. In this post, youre going to finish by building an app that uses your machine learning model.
## Identify irisis like a Machine
#### Identify irisis like a Machine
This is [part 2](tip175/) of a two part post on ML.NET inspired by Luis Quintanillas [article](http://luisquintanilla.me/2018/08/21/serverless-machine-learning-mlnet-azure-functions/) about using ML.NET with Azure Functions, where he took these two great ideas and combined them. Picking up [with Part 1](tip145/), you are going to create a new Azure Function project using Visual Studio.
@ -75,7 +75,7 @@ Open up the **demo** solution from part 1 in Visual Studio and create a new proj
```
These lines use your model to evaluate new iris data to make a prediction. Your app is ready for testing.
## Test locally before deploying
#### Test locally before deploying
To test the Azure Function app on your local machine, check your **local.settings.json** file to make sure that **AzureWebJobsStorage** has a value associated with it. This is how your local app will find your uploaded model on your Azure storage account. If this has a value (and it should if you bound the project to your account when you created it), you can just _F5_ the _serverless_ai_ project in order to run it.
Now open up [Postman](https://www.getpostman.com/apps) (or a similar REST API tool) and send a POST call to http://localhost:7071/api/Predict with the following body:
@ -90,7 +90,7 @@ Now open up [Postman](https://www.getpostman.com/apps) (or a similar REST API t
If all is well, the categorizer will return “Iris-verginica”.
## To deploy Skynet
#### To deploy Skynet
… or whatever AI you are deploying from Visual Studio, go to your build settings in the toolbar.
@ -102,7 +102,7 @@ Select “Publish serverless_ai” to deploy your Azure Function app.
To test the app deployment in the Azure Portal, select you Azure Function app under **mlnetdemo** (or however you named it) and then pick the **Predict** function under that. Use the **Test** panel to the right of the screen to see your deployed app in action.
## Wrap-up
#### Wrap-up
This will place your iris categorizer out on Azure for other people to try. Congratulations! You are now able to deploy artificial intelligences to the cloud.

Просмотреть файл

@ -1,18 +1,18 @@
---
type: post
title: "Azure Tips and Tricks Part 176 - Azure Lab Services Demystified"
title: "Tip 176 - Azure Lab Services Demystified"
excerpt: "Learn how to get started with Azure Lab Services"
tags: [azure, lab, vm, lab, training]
date: 2018-11-25 17:00:00
---
## Azure Lab Services Demystified
#### Azure Lab Services Demystified
## I was working in the lab late one night
#### I was working in the lab late one night
Historically, if you wanted to set up a lab for educational or research use, you'd have to fill a room with identical PCs and load them all with a custom disk image with the OS and software required so that each user has exactly the same experience. Azure already supports hosting virtual machines with custom images, but this doesn't handle access management, user quotas, etc. With Azure Lab Service, you can build and manage your computer lab in the cloud.
## Lab equipment
#### Lab equipment
Azure Lab Services does everything you'd expect from a traditional computer lab and then some. Because you're running on virtual machines, there's no painful copy-and-install process. Instead, you can scale your lab up easily from a common template.
Use the Azure portal to create a new Lab Services account. This must have a unique name and can be in a new or existing resource group.
@ -33,11 +33,11 @@ Users register with the lab using a unique link that you can distribute to them
There are three tiers of virtual machine instance you can select from depending on the workload required. The service is billed for the number of minutes each machine is active. You're not charged for virtual machines that are shut down.
## Securing your lab
#### Securing your lab
Lab Services only allows users with the Lab Creator role to create and edit labs. This role is managed through the Azure portal. This means that regular lab users only have access to a virtual machine and can't make any changes to the lab setup. The virtual machine itself is protected by a default username and password, which the lab creator set on creation, and this has to be shared with valid users in order to access the lab content.
### Why should I care?
##### Why should I care?
Beyond just creating a virtual machine image, there is a great deal of admin involved in successfully running a lab. Azure Lab Services manages a lot of this work for you. You can use the service for facilitating classroom labs or providing a controlled environment for customers to trial your software. You can even go beyond the features available here by creating a customized environment with Azure DevTest Labs to deploy to another user's Azure subscription, respecting their own organization's restrictions and infrastructure. To deploy your first lab, visit https://labs.azure.com.

Просмотреть файл

@ -1,12 +1,12 @@
---
type: post
title: "Azure Tips and Tricks Part 177 - Getting Started with Azure Information Protection"
title: "Tip 177 - Getting Started with Azure Information Protection"
excerpt: "Learn how to use get started with Azure Information Protection"
tags: [azure, security, office365]
date: 2018-11-26 17:00:00
---
## Getting Started with Azure Information Protection
#### Getting Started with Azure Information Protection
[Azure Information Protection (AIP)](https://azure.microsoft.com/en-us/services/information-protection/) is a Microsoft Azure offering that works in conjunction with Microsoft Online services (Exchange Online, SharePoint Online, etc.) and Office 365 to categorize and protect documents and emails using labels and policies defined by an administrator. As a cloud-based solution, AIP is an [evolution](https://docs.microsoft.com/en-us/azure/information-protection/aka) of a variety of technologies all focused on rights management, and it uses [Azure Rights Management](https://docs.microsoft.com/en-us/azure/information-protection/what-is-azure-rms) as its protection technology.

Просмотреть файл

@ -1,17 +1,17 @@
---
type: post
title: "Azure Tips and Tricks Part 178 - A Lap Around Azure Media Player"
title: "Tip 178 - A Lap Around Azure Media Player"
excerpt: "Learn how to use azure media player"
tags: [azure, app service, portal, resources]
date: 2019-01-13 17:00:00
---
## Happy New Year!
#### Happy New Year!
Happy New Year! I hope you all enjoyed your break and are ready to hit the ground running in 2019! As I've spent some of my break exploring video tutorials, I decided to start the new year with Azure Media Player. So, welcome back to Azure Tips and Tricks 2019 Edition!
## A Lap Around Azure Media Player
#### A Lap Around Azure Media Player
More and more, video has become an integral part of immersive, modern applications, and with the Azure Media Player your applications can easily surface audio and video content—hosted in Azure Media Services—in the format best for the current viewing device.

Просмотреть файл

@ -1,12 +1,12 @@
---
type: post
title: "Azure Tips and Tricks Part 179 - Using Azure Media Analytics to search for specific terms in a Video"
title: "Tip 179 - Using Azure Media Analytics to search for specific terms in a Video"
excerpt: "Learn how to use azure media analytics to search for specific terms in a video"
tags: [azure, media, analytics, tipsandtricks]
date: 2019-01-14 17:00:00
---
## Using Media Analytics to search for specific terms in a Video
#### Using Media Analytics to search for specific terms in a Video
Check out [Part 1 - A Lap Around Azure Media Player](tip178/) if you would like a quick intro before diving in.

Просмотреть файл

@ -1,12 +1,13 @@
---
type: post
title: "Azure Tips and Tricks Part 18 - Use Tags to quickly organize Azure Resources"
title: "Tip 18 - Use Tags to quickly organize Azure Resources"
excerpt: "Learn how to take advantage of tags to organize your Azure resources"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2017-09-19 17:00:00
---
## Use Tags to quickly organize Azure Resources
#### Use Tags to quickly organize Azure Resources
Head over to the Azure Portal and select service. In my example, I'm going to select a Web App that I want to tag as a production app. Select the **Tags** menu and provide a Name and Value as shown below.

Просмотреть файл

@ -1,13 +1,13 @@
---
type: post
title: "Azure Tips and Tricks Part 180 - Taking a peek at Azure Key Vault Part 1 of 2"
title: "Tip 180 - Taking a peek at Azure Key Vault Part 1 of 2"
excerpt: "Learn how to use taking a peek at azure key vault part 1 of 2"
tags: [azure, app service, portal, resources]
date: 2019-01-27 17:00:00
---
## Taking a peek at Azure Key Vault Part 1 of 2
#### Taking a peek at Azure Key Vault Part 1 of 2
[This post]() | [Part 2 - coming tomorrow]()
@ -21,7 +21,7 @@ Addressing these concerns is the primary objective of [Azure Key Vault](https://
In this post, you're going to see how to create and manage a secret, but keys work in much the same way. Certificates are a little more complex, and in fact themselves used keys and secrets. Check out [Get started with Key Vault Certificates](https://docs.microsoft.com/en-us/azure/key-vault/certificate-scenarios) for more information specifically on certificates.
## Creating a Key Vault Account
#### Creating a Key Vault Account
Let's start by creating a new Key Vault service in the Azure portal. In the Create Key Vault blade (below), provide a unique name for your vault (which, as with most services, becomes an endpoint for invoking the service) and pick (or create) a resource group and a pricing tier. There are currently two tiers, Standard and Premium; the latter supports keys protected by a hardware security module (HSM). Use the standard option for this exercise.
@ -33,7 +33,7 @@ Access to the Key Vault is managed via policies to which principals (like users
Indeed, across the three entities (keys, secrets, and certificates), there are 40 permissions that can be individually granted, thus supporting the [principle of least privilege](https://docs.microsoft.com/en-us/windows-server/identity/ad-ds/plan/security-best-practices/implementing-least-privilege-administrative-models). For instance, a web API that is accessing SQL Server might have GET permission on the secrets store, but only members of the security team would have SET permission to modify the database password. That's a simplistic example, so [here's another scenario](https://docs.microsoft.com/en-us/azure/key-vault/key-vault-secure-your-key-vault#example) involving developers, the security team, and even auditors.
### Adding a Secret
##### Adding a Secret
On the left sidebar menu of the Key Vault blade in the Azure portal, you can easily create or import a secret, key, or certificate. Since we're just interested in a secret now, we simply provide a name-value pair and options to manage the window of accessibility to that secret.

Просмотреть файл

@ -1,13 +1,13 @@
---
type: post
title: "Azure Tips and Tricks Part 181 - Taking a peek at Azure Key Vault Part 2 of 2"
title: "Tip 181 - Taking a peek at Azure Key Vault Part 2 of 2"
excerpt: "Learn how to use taking a peek at azure key vault part 2 of 2"
tags: [azure, app service, portal, resources]
date: 2019-01-28 17:00:00
---
## Taking a peek at Azure Key Vault Part 2 of 2
#### Taking a peek at Azure Key Vault Part 2 of 2
In the [previous post](tip180), you set up Key Vault and added a secret via the Azure portal. Now you'll see how to securely access that secret programmatically. Let's start by creating a ASP.NET Core API app in Visual Studio (or you can [grab the completed project here](https://github.com/mbcrump/azure-key-vault)):

Просмотреть файл

@ -1,24 +1,24 @@
---
type: post
title: "Azure Tips and Tricks Part 182 - Use VNET peering to connect existing VNETs"
title: "Tip 182 - Use VNET peering to connect existing VNETs"
excerpt: "Learn how to use vnet peering to connect existing vnets"
tags: [azure, VNET, Peering, IaaS]
date: 2019-02-03 17:00:00
---
## Use VNET peering to connect existing VNETs
#### Use VNET peering to connect existing VNETs
Recently a question came up about how to securely connect existing VNETs. This got me thinking about how I have VMs deployed in their own VNETs.
Often when I set up a VM for a demo, Ill use the default settings, which creates a VNET for each VM. In this post, Ill walk you through how to set up a [hub-spoke network topology](https://docs.microsoft.com/en-us/azure/architecture/reference-architectures/hybrid-networking/hub-spoke?toc=%2fazure%2fvirtual-network%2ftoc.json) to connect existing VNETs.
### My requirements
##### My requirements
* Connect three VNETs, one of which has a Point-to-Site gateway configured
* No public IPs attached to VM network interfaces
* Ability to connect to all VMs
### How I connect three existing VNETs
##### How I connect three existing VNETs
I am starting with these resources:

Просмотреть файл

@ -1,12 +1,13 @@
---
type: post
title: "Azure Tips and Tricks Part 19 - Deploy an Azure Web App using only the CLI"
title: "Tip 19 - Deploy an Azure Web App using only the CLI"
excerpt: "Learn how to deploy an Azure Web App using only the CLI tools from scratch"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2017-09-20 17:00:00
---
#### Deploy an Azure Web App using only the CLI
While I love working with the Azure Portal or even Visual Studio, it is sometimes nice to do everything from the command line. While I'm a power Windows user, in this tutorial I'll be using a Linux VM and BASH to do everything.
Step 1) Ensure you have the following stack installed.

Просмотреть файл

@ -1,6 +1,6 @@
---
type: post
title: "Working with Files in Azure App Service"
title: "Tip 20 - Working with Files in Azure App Service"
excerpt: "Learn how to work with files that you've uploaded to Azure App Service"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2017-09-21 17:00:00
@ -8,6 +8,7 @@ date: 2017-09-21 17:00:00
In the [last post](http://www.michaelcrump.net/azure-tips-and-tricks19/), we created a web app and uploaded it to Azure App Service. In this post, we'll take a look at the files uploaded and three tools that I use to work with them
I can go to the Azure Portal and select my App Service and click on **Console** under **Development Tools** to have a command prompt to quickly work with my Azure App Service.
<img :src="$withBase('/files/myquizconsole.png')">
@ -44,7 +45,7 @@ I can do basic commands here and even use `type <filename>` to parse the output
### A VS Code experience to my App Service
##### A VS Code experience to my App Service
There is also another option that is called "**App Service Editor**" located just two items down from **"Console"** that you picked before.
@ -58,7 +59,7 @@ Just like in VS Code, you can modify your settings and even change your theme.
<img :src="$withBase('/files/vscodechangetheme.png')">
### Kudu Diagnostic Console
##### Kudu Diagnostic Console
No App Service tutorial is complete without mentioning Kudu Diagnostic Console. You can access it from within the **App Service Editor** under **your app name** -> **Open Kudu Console** or through the portal under **Advanced Tools**.

Просмотреть файл

@ -1,17 +1,17 @@
---
type: post
title: "Azure Tips and Tricks Part 21 - Adding Extensions to Web Apps in Azure App Service"
title: "Tip 21 - Adding Extensions to Web Apps in Azure App Service"
excerpt: "Learn how to work with extensions in Azure App Service"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2017-09-23 17:00:00
---
## Adding Extensions to Web Apps in Azure App Service
#### Adding Extensions to Web Apps in Azure App Service
We've recently created a [web app](http://www.michaelcrump.net/azure-tips-and-tricks19/) and uploaded it to Azure App Service. We also took a look at [multiple ways](http://www.michaelcrump.net/azure-tips-and-tricks19/) to examine those files through the Azure portal interface. In this post, we'll take a look at extensions that you can add to Azure app services to add additional functionality.
### Back in the Azure Portal
##### Back in the Azure Portal
I can go to the Azure Portal and select my App Service and click on **Extensions** under **Development Tools** to get started. Then click on the **Add** button.
@ -24,7 +24,7 @@ In the choose extension screen, you have a vast variety of extensions to select
Select `Azure Web Apps Disk Usage` by Rajrang Rapuri and agree to the terms and press OK. It should only take a moment to install and then navigate back to Extensions.
**What does this thing do?** Azure Web Apps Disk Usage is a web based File Explorer which lists all folders for your website with size. It provides detailed information about files and folders name, size, number of files, last date modified and percentage of disk usage. This tool provides a tree like folder view for easier parsing.
{: .notice--info}
If you right-click on the item that you just installed, then you'll see that you can pin, browse, update or delete it.
@ -36,11 +36,11 @@ We'll select browse and it will redirect us to the extension that we installed.
Cool! We're able to see the extension working.
### Exploring the Extension in the File System
##### Exploring the Extension in the File System
You may be wondering what happened when we clicked on the Extension. Well, if we click on the *Kudu Advanced Tools** option in the Azure Portal, then navigate inside `SiteExtensions` and then `DiskUsage`, then we'll see that here is where the extension was installed into.
<img :src="$withBase('/files/webappext5.png')">
**Source Code** The source code to the extension that we installed can be found [here](https://github.com/rajkumar-rangaraj/MAWSFileExplorer)
{: .notice--info}

Просмотреть файл

@ -1,20 +1,20 @@
---
type: post
title: "Azure Tips and Tricks Part 22 - Deployment Slots for Web Apps using Azure App Service"
title: "Tip 22 - Deployment Slots for Web Apps using Azure App Service"
excerpt: "Learn how to use Deployment Slots for Web Apps using Azure App Service"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2017-09-24 17:00:00
---
## Test Web Apps in Production with Azure App Service
#### Test Web Apps in Production with Azure App Service
We've recently created a [web app](http://www.michaelcrump.net/azure-tips-and-tricks19/) and uploaded it to Azure App Service. We also took a look at [multiple ways](http://www.michaelcrump.net/azure-tips-and-tricks20/) to examine those files through the Azure portal interface and how we'd add [extensions](http://www.michaelcrump.net/azure-tips-and-tricks21/) to our web apps. In this post, we'll take a look at using deployment slots for web apps.
### Creating Deployment Slot
##### Creating Deployment Slot
**Hold Up. What's a Deployment Slot?** Deployment slots let you deploy different versions of your web app to different URLs. You can test a certain version and then swap content and configuration between slots.
{: .notice--info}
Go to the Azure Portal and select my App Service and click on **Deployment Slots** under **Deployment** to get started. Then click on the **Add Slots** button. Give it a name such as `staging` then use an existing configuration source. We'll use our "production" web app. You know, the cool [quiz application](http://myquizapplication.azurewebsites.net/).

Просмотреть файл

@ -1,25 +1,25 @@
---
type: post
title: "Azure Tips and Tricks Part 23 - Testing Web Apps in Production with Azure App Service"
title: "Tip 23 - Testing Web Apps in Production with Azure App Service"
excerpt: "Learn how to use test Web Apps for production using Azure App Service"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2017-09-25 17:00:00
---
## Intro
#### Intro
We've recently created a [web app](http://www.michaelcrump.net/azure-tips-and-tricks19/) and uploaded it to Azure App Service. We also took a look at [multiple ways](http://www.michaelcrump.net/azure-tips-and-tricks20/) to examine those files through the Azure portal interface and how we'd add [extensions](http://www.michaelcrump.net/azure-tips-and-tricks21/) and [deployment slots](http://www.michaelcrump.net/azure-tips-and-tricks22/) for our web app. In this post, we'll look at a feature called `Testing in Production` which isn't as scary as it sounds.
### Testing Web Apps in Production with Azure App Service
##### Testing Web Apps in Production with Azure App Service
**Hold up!** You'll want to take a look at the [deployment slots](http://www.michaelcrump.net/azure-tips-and-tricks22/) post if you haven't worked with deployment slots before.
{: .notice--info}
Go to the Azure Portal and select my App Service and click on **Testing in Production** under **Development Tools** to get started. The first thing you'll see is `Static Routing` and you'll notice that it's looking for a deployment slot and traffic percentage.
**What is Static Routing** This section lets you control how traffic is distributed between your production and other slots. This is useful if you want to try out a new change with a small percentage of requests and then gradually increase the percentage of requests that get the new behavior.
{: .notice--info}
We'll want to split the traffic to our site into 2 groups to test our new site and see if customers like it. Since this is just a demo, I want to send a large number of folks to our new `staging` site as shown below.

Просмотреть файл

@ -1,20 +1,20 @@
---
type: post
title: "Azure Tips and Tricks Part 24 - Add logic to your Testing in Production sites with PowerShell"
title: "Tip 24 - Add logic to your Testing in Production sites with PowerShell"
excerpt: "Learn how to use additional logic in your Testing in Production sites with PowerShell and the CLI"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2017-09-26 17:00:00
---
## Intro
#### Intro
We've recently created a [web app](http://www.michaelcrump.net/azure-tips-and-tricks19/) and uploaded it to Azure App Service. We also took a look at [multiple ways](http://www.michaelcrump.net/azure-tips-and-tricks20/) to examine those files through the Azure portal interface and how we'd add [extensions](http://www.michaelcrump.net/azure-tips-and-tricks21/) and [deployment slots](http://www.michaelcrump.net/azure-tips-and-tricks22/) for our web app. We also took a look at a feature called [Testing in Production](http://www.michaelcrump.net/azure-tips-and-tricks23/) which allows us to distribute traffic between our production and other slots. In this post, we'll look at adding additional logic by using PowerShell to automatically distribute the load between your Production and deployment slot sites with the Testing in Production feature.
### Install the PowerShell Azure CLI first
##### Install the PowerShell Azure CLI first
**Hold up!** You'll want to take a look at the [deployment slots](http://www.michaelcrump.net/azure-tips-and-tricks22/) and the [Testing in Production](http://www.michaelcrump.net/azure-tips-and-tricks23/) post to have context on what we're going to do here.
{: .notice--info}
Go to the [Azure CLI Projects page](https://azure.github.io/projects/clis/) and select select the WebPI Installer or use the PowerShell gallery to bring together the power of Windows PowerShell and Azure.
@ -22,7 +22,7 @@ Once it has been setup, type `az` from your PowerShell Window to see the shiny n
<img :src="$withBase('/files/powershellcli1.png')">
### PowerShell + Azure App Service + Your Web App = Win
##### PowerShell + Azure App Service + Your Web App = Win
Keep in mine that we [left off](http://www.michaelcrump.net/azure-tips-and-tricks23/) with two versions of our site. One that is `production` and `staging`. They are identical except for the staging site has a large font that says `jsQuizEngine version 2`. We just **distributed** traffic manually between the two sites by going into the Azure Portal and changing this value from the Testing in Production blade.
@ -48,7 +48,7 @@ If you open the Azure Portal and navigate to your site page and then `Testing in
<img :src="$withBase('/files/powershellcli2.gif')">
**What did the script do again?** This script added a rule for our staging environment that set the `staging` route to a hard coded value of `90%`.
{: .notice--info}
If you wanted to scale this number up, for instance, start at 5% for 60 minutes and then increase the value by 5% until the traffic reaches 50% for that slot. You could do so with this script.

Просмотреть файл

@ -1,17 +1,17 @@
---
type: post
title: "Azure Tips and Tricks Part 25 - Use the Azure Resource Explorer to quickly explore REST APIs"
title: "Tip 25 - Use the Azure Resource Explorer to quickly explore REST APIs"
excerpt: "Learn how to use the Azure Resource Explorer to quickly explore REST APIs"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2017-10-01 17:00:00
---
## Intro
#### Intro
We've recently created a [web app](http://www.michaelcrump.net/azure-tips-and-tricks19/) and uploaded it to Azure App Service. We also took a look at [multiple ways](http://www.michaelcrump.net/azure-tips-and-tricks20/) to examine those files through the Azure portal interface and how we'd add [extensions](http://www.michaelcrump.net/azure-tips-and-tricks21/) and [deployment slots](http://www.michaelcrump.net/azure-tips-and-tricks22/) for our web app. We also took a look at a feature called [Testing in Production](http://www.michaelcrump.net/azure-tips-and-tricks23/) which allows us to distribute traffic between our production and other slots. We also looked at using [PowerShell](http://www.michaelcrump.net/azure-tips-and-tricks24/) to automatically distribute the load between your Production and deployment slot sites with the Testing in Production feature. In this post, we'll continue exploring our web app with a feature called Azure Resource Explorer which will allow us to quickly explore REST APIs.
## Use the Azure Resource Explorer to quickly explore REST APIs
#### Use the Azure Resource Explorer to quickly explore REST APIs
The Azure Resource Manager allows you to explore (and learn) REST APIs in your Azure Subscription in a friendly fashion. If you log into your Azure account and go to your App Service that you created and look under **Development Tools** then you will see it.
@ -26,7 +26,7 @@ There is a navigation tree that you can click on to drill into the current web a
<img :src="$withBase('/files/azureresourceexplorer3.gif')">
**Note:** Keep in mind that you'll need to be in `Read\Write` mode to do this which can be found in the top panel by your name.
{: .notice--info}
You can also perform a POST or DELETE on some resources as well as Create. There is documentation, but what is very interesting to me is the **PowerShell** and **CLI 2.0** options. If you click on **CLI 2.0** for a resource then you'll see the following.

Просмотреть файл

@ -1,17 +1,17 @@
---
type: post
title: "Azure Tips and Tricks Part 26 - Load Testing web apps with Azure App Services"
title: "Tip 26 - Load Testing web apps with Azure App Services"
excerpt: "Learn how to quickly load test your web application with Azure App Services"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2017-10-02 17:00:00
---
## Intro
#### Intro
We've recently created a [web app](http://www.michaelcrump.net/azure-tips-and-tricks19/) and uploaded it to Azure App Service. We also took a look at [multiple ways](http://www.michaelcrump.net/azure-tips-and-tricks20/) to examine those files through the Azure portal interface and how we'd add [extensions](http://www.michaelcrump.net/azure-tips-and-tricks21/) and [deployment slots](http://www.michaelcrump.net/azure-tips-and-tricks22/) for our web app. We also took a look at a feature called [Testing in Production](http://www.michaelcrump.net/azure-tips-and-tricks23/) which allows us to distribute traffic between our production and other slots. We also looked at using [PowerShell](http://www.michaelcrump.net/azure-tips-and-tricks24/) to automatically distribute the load between your Production and deployment slot sites with the Testing in Production feature and looking briefly at the [Azure Resource Explorer](http://www.michaelcrump.net/azure-tips-and-tricks24/) to explore REST APIs. In this post, we'll look at a simple and quick way to perform load testing of your web app.
## Load Testing web apps with Azure App Services
#### Load Testing web apps with Azure App Services
Load Testing allows you to test your web app's performance and determine if your app can handle increased traffic during peak times. If you log into your Azure account and go to your App Service that you created and look under **Development Tools** then you will see it.
@ -24,7 +24,7 @@ Inside the blade, select **New** and you will see the following options:
You have the option to **Configure Test** and you can leave this as **Manual Test** or **Visual Studio Web Test**. The main difference between the two is that with the latter you can select multiple URLs and even use a HTTP Archive file (such as one created by Fiddler). Leave the testing option as manual and select a name and location and make sure you leave the defaults as 250 users for 5 minutes.
**Use Case Scenario** Suppose you have a web app and you have something for sale. You have an upcoming promo that last year had 175 users connected for 5 minutes. Users complained that the site was slow and since your site has grown, you want to improve customer satisfaction by reducing the page load time and test your web app with a load of 250 users for 5 minutes.
{: .notice--info}
Let the test run and you'll be presented with the following information once it has completed.
@ -35,4 +35,4 @@ For this demo, We can see that the average response time decreased while request
<img :src="$withBase('/files/azureperformance4.png')">
**Look out!** Keep in mind that there is a charge for performing a load test in terms of virtual-users as indicated in the screen-shot.
{: .notice--info}

Просмотреть файл

@ -1,17 +1,17 @@
---
type: post
title: "Azure Tips and Tricks Part 27 - Working with App Settings and Azure App Services"
title: "Tip 27 - Working with App Settings and Azure App Services"
excerpt: "Learn how to work with App Settings and Azure App Services"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2017-10-03 17:00:00
---
## Intro
#### Intro
We've recently created a [web app](http://www.michaelcrump.net/azure-tips-and-tricks19/) and uploaded it to Azure App Service. We also took a look at [multiple ways](http://www.michaelcrump.net/azure-tips-and-tricks20/) to examine those files through the Azure portal interface and how we'd add [extensions](http://www.michaelcrump.net/azure-tips-and-tricks21/) and [deployment slots](http://www.michaelcrump.net/azure-tips-and-tricks22/) for our web app. We also took a look at a feature called [Testing in Production](http://www.michaelcrump.net/azure-tips-and-tricks23/) and how to use [PowerShell](http://www.michaelcrump.net/azure-tips-and-tricks24/) to automatically distribute the load between your Production and deployment slot. We wrapped up by looking at the [Azure Resource Explorer](http://www.michaelcrump.net/azure-tips-and-tricks25/) to explore REST APIs and how to [perform load testing](http://www.michaelcrump.net/azure-tips-and-tricks26/). In this post, we'll take advantage of App Settings to store a Key/Value pair securely in Azure and access it in your web app.
## Working with App Settings and Azure App Services
#### Working with App Settings and Azure App Services
App Settings are used to store configurable items without making any changes to the code. The key-value pairs are stored behind the scenes in a configuration store which is nice because sensitive information never shows up in a web.config, etc. file. In order to take advantage of this, you'll need to log into your Azure account and go to your App Service that you created and look under **Development Tools** then you will see **Application Settings**. Open it and scroll down and you'll see **App Settings** as shown below.

Просмотреть файл

@ -1,13 +1,13 @@
---
type: post
title: "Azure Tips and Tricks Part 28 - Configure a Backup for your Azure App Service and Database"
title: "Tip 28 - Configure a Backup for your Azure App Service and Database"
excerpt: "Learn how to configure a Backup for your Azure App Service and Database"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2017-10-04 17:00:00
---
## Configure a Backup for your Azure App Service and Database
#### Configure a Backup for your Azure App Service and Database
Most folks don't realize how easy it is to configure a backup copy of your Azure App Service to ensure you have restorable archive copies of your app and database. In order to take advantage of this, you'll need to log into your Azure account and go to your App Service that you created and look under **Settings** then you will see **Backup**.

Просмотреть файл

@ -1,20 +1,20 @@
---
type: post
title: "Azure Tips and Tricks Part 29 - Cloning Web Apps Using and Azure App Services"
title: "Tip 29 - Cloning Web Apps Using and Azure App Services"
excerpt: "Learn how to clone web apps using Azure App Services"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2017-10-08 17:00:00
---
## Cloning Web Apps Using and Azure App Services
#### Cloning Web Apps Using and Azure App Services
Keep in mind that this feature is only available to apps hosted on Premium App Service Plans - Thanks to **Mike Kauspedas** for reminding me!
**Cloning** is the ability to clone an existing Web App to a newly created app that is often in a different region. This will enable customers to deploy a number of apps across different regions quickly and easily.
**Scenario:** A company has an existing web app in **West US**, they would like to clone the app to **East US** to serve folks that live on that site with better performance such as latency.
{: .notice--info}
In order to take advantage of this, you'll need to log into your Azure account and go to your App Service that you created and look under **Development Tools** then you will see **Clone App**. Open it and you'll see the following:
@ -27,7 +27,7 @@ Ensure you give it an:
* Give it a App Service Plan/Location - This is a good time to associate a new plan that will determine the location, features, cost and compute resources associated with your app.
**Hold Up** Besides changing the location, this is also a great time to determine the plan needed. You might not need all the horsepower to serve this site if you expect very low traffic in that region.
{: .notice--info}
* Clone Settings - e clone will copy the content and certificates of your app into a newly created application. You can also copy things like **App Settings**, **Connection Strings**, **Deployment Source**, and **Custom Domains**.
@ -38,6 +38,6 @@ Ensure you give it an:
Finally, there is **Automation Options** which brings you to the [Azure Resource Manager](https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-template-deploy) templates that are so valuable.
**What is a Azure Resource Manager again?** Azure Resource Manager enables you to work with the resources in your solution as a group. You can deploy, update, or delete all the resources for your solution in a single, coordinated operation. You use a template for deployment and that template can work for different environments such as testing, staging, and production. Resource Manager provides security, auditing, and tagging features to help you manage your resources after deployment. [source](https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-overview)
{: .notice--info}
Once everything is setup then press **Create** and you'll see the **Deployment in Progress** begin. You can click on it while deploying to see details as shown below:

Просмотреть файл

@ -1,13 +1,13 @@
---
type: post
title: "Azure Tips and Tricks Part 30 - Working with Log Stream and Azure App Services"
title: "Tip 30 - Working with Log Stream and Azure App Services"
excerpt: "Learn how to work with Log stream and the Azure App Services"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2017-10-09 17:00:00
---
## Working with Log Stream and Azure App Services
#### Working with Log Stream and Azure App Services
The **Log Stream** is the ability to see logging information in real-time (or as close to it as possible). You can do this by using the Azure Portal or through some of CLI tooling such as PowerShell or BASH.
@ -26,7 +26,7 @@ Here you'll see the following options:
* Failed request tracing - Gathers diagnostic information on failed request.
**Hold Up** You can easily change options such as the size of log files that it will keep as well as the number of days to keep the log files in retention. You can also download the log files via FTP and FTPS.
{: .notice--info}
Go ahead and turn **Application Logging(Filesystem)** to On and the **Level** to **Info** press save. Go back and click on the **Log Stream** setting and visit your web page (that is hosted on *.azurewebsites.net).
@ -36,7 +36,7 @@ You should see the following:
If you look at the first couple of lines, then you'll see a **ReadyForRequest** on port 80. Then a request coming from our web browser that includes pulling down the `favicon.ico` file (which is the only image being sent down).
### Adding Trace Logging in Code
##### Adding Trace Logging in Code
If youre using ASP.NET MVC, then navigate to your **appname/Controllers/HomeController.cs** file (or wherever you'd like to test this functionality) and add the following line as shown below :

Просмотреть файл

@ -1,13 +1,13 @@
---
type: post
title: "Azure Tips and Tricks Part 31 - Setting up Email Alerts with Azure App Services"
title: "Tip 31 - Setting up Email Alerts with Azure App Services"
excerpt: "Learn how to setup email alerts with Azure App Services"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2017-10-10 17:00:00
---
## Setting up Email Alerts with Azure App Servicess
#### Setting up Email Alerts with Azure App Servicess
**Alerts** allows you to receive an alert based on monitoring metric for your Azure app services. You can be notified in a variety of ways such as the Azure Portal, Webhooks or Email. In this post, we'll setup an alert based on a 404 error message and send it via email.
@ -23,7 +23,7 @@ Here you'll see the following options:
* Alert on Metric or Events - You can trigger an alert on some metric or an event.
**Metric vs. Event** A metric would be something like "If we receive 5 or more Http Server Errors over the last 5 minutes then trigger an alert". An Event would be if something Started, Stopped, Deleted or all of the above happened with our App Service than trigger an alert.
{: .notice--info}
Go ahead and select a resource and provide a **Name** and **Description** and select **Http 404** for the metric with the **Greater than** condition set for **O threshold** and **Over the last 5 minutes**. Go ahead and add a checkmark for the email and provide an additional email address as shown below.

Просмотреть файл

@ -1,13 +1,13 @@
---
type: post
title: "Azure Tips and Tricks Part 32 - Using Application Insights with Azure App Service"
title: "Tip 32 - Using Application Insights with Azure App Service"
excerpt: "Learn how to setup Application Insights in an MVC application using Azure App Service"
tags: [azure, windows, portal, cloud, developers, tipsandtricks]
date: 2017-10-11 17:00:00
---
## Using Application Insights with Azure App Service
#### Using Application Insights with Azure App Service
**Application Insights** is a simple way to detect and diagnose exceptions and application performance issues in your web apps and web services. In this blog post, I'll walk you through adding it to an ASP.NET MVC application.

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше