Disclaimer: For those of you who are expecting to learn or read about new technical information and cool new product features or roadmaps I have bad news: almost everything that Microsoft shares with MVPs during the Summit is under an NDA (Non-Disclosure Agreement) which means that what I’ve learned in Redmond stays with me, inside my head.
So last week I was in a rush to find a fast and easy way to consume events from Azure Event Hubs and send them to a Kafka topic.
After googling a bit I found this project: Kafka Connect Azure IoT Hub. Yes the name of the project can be misleading, but since IoT Hub is a service which relies on Event Hubs and also taking a close look to the code showed that it uses the Event Hubs client for java, I decided to give it a try.
Greetings readers! Hope you all a Happy New Year!
Last post I was about running a Precompiled .NET Core Azure Function in a Container. This time let’s go one step further and Run a Durable Azure Function in a Container
Prerequisites:
Docker installed and basic knowledge. .NET Core Azure Storage Account Azure Durable Functions Knowledge Create a .NET Core lib project # Create a .NET Core lib project.
So this morning I found my self browsing through the images Microsoft has published in the Docker Hub and then I saw this one: microsoft/azure-functions-runtime and decided to Run a Precompiled .NET Core Azure Function in a Container.
Prerequisites:
Docker installed and basic knowledge. .NET Core Create a .NET Core lib project # Create a .NET Core lib project.
In this post I’ll show you how to Deploy your first Service to Azure Container Services (AKS).
Prerequisites:
Azure CLI installed and basic knowledge experience. Docker installed and basic knowledge. Azure Subscription Kubernetes experience. Create a resource group: # Firt create a Resource Group. Be aware that at the time of writing AKS is not available in all Azure regions.
For those of you who have been trying to automate anything related to Microsoft Teams, let me tell you that there is a new PowerShell Module in town: Microsoft Teams 0.9.0 which you can install with the following command:
Install-Module MicrosoftTeams Now to automate the channel creation In A Team you can simply:
In this post I’ll show you how to Use PowerShell to enable Azure Storage Account Firewall Rules.
Be sure to be have AzureRM PowerShell 4.4.1 module installed.
Login to your Azure Account # Launch Powershell and start by Login to your Azure Account.
In this post I’ll show you how to Use PowerShell to Enable and Automate Azure Analysis Backup.
Enable Azure Analysis Service Backup # Enable-AzureRmAnalysisServicesBackup is a small powershell script that uses the the Set-AzureRmResource cmdlet to enable backup location to an Azure Analysis Service instance.
Last week I had the luck to attend the Microsoft Azure OpenHack in Amsterdam. We spent two and a half days learning a lot about kubernetes, Azure Container Services, Azure Container Registry, Azure OMS and Minecraft!
In one of the challenges we decided to implement a sidecar container for logging purposes. So using .NET Core we created a console application with proper handling of the"Control+C" and"Control+Break" key shortcuts.
Last week, firewall support was added to Azure Analysis Service (https://azure.microsoft.com/en-us/blog/azure-analysis-services-adds-firewall-support/). The thing is that, at the time of writing, there is no AzureRM cmdlet available to Use PowerShell to Enable Azure Analysis Services Firewall
So, with the help of Resource Explorer I found which properties must be added to the service (resource) in order to enable the firewall:
This is a small .NET Core CLI and MSBUILD Cheat Sheet with the list of commands and settings I use almost on daily basis when working with .NET Core, the command line and Visual Studio Code.
Checks # Check installed CLI version: # dotnet --version Show available templates: # dotnet new Solutions # Create a solution with the name of current the folder: # dotnet new sln Create a solution with a specific name: # dotnet new sln --name [solution name] Add a project to a solution: # dotnet add sln [relative path to csproj file] Packages # Add package reference to the project in the current folder: # dotnet add package [package name] Remove a package reference from the project in the current folder: # dotnet remove package [package name] Add a specific package version reference to the project in the current folder: # dotnet add package [package name]-v [version] Restore packages: # dotnet restore Create a nuget package for the project in current folder: # dotnet pack Project Templates # Install a new project template: # dotnet new --install [dotnet template name] Remove a project template: # dotnet new --uninstall [dotnet template name] Run test defined in current folder project # dotnet test Builds # Build current’s folder solution or project # dotnet build Build current’s folder solution or project with release configuration # dotnet build -c Release Publish artifacts for current’s folder solution or project. # dotnet publish MSBUILD # To add a reference to a local assembly without nuget package, edit your csproj and add a Reference as shown in the following sample: # <code> <ItemGroup> <Reference Include="[Relative path to the Assembly dll file]" /> </ItemGroup> </code> Force a file to be copied to the output folder, edit your csproj and add a Content section as shown in the following sample: # <code> <ItemGroup> <Content Include="[name of the file]"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </Content> </ItemGroup> </code> Hope it helps!
Today I’ll show you how to Toggle Raspberry Pi GPIO Pins with ASP.NET Core 2.0.
First be aware of the following prerequisites:
.NET Core 2.0 SDK A Raspberry Pi 3 Running Raspbian Install linux dependencies: sudo apt-get install curl libunwind8 gettext Now let’s start:
Create a folder for your new project # Open a command prompt an run:
So now that .NET Core and .NET Standard 2.0 have been released some of you may be migrating applications or even creating new ones with it. As you progress you are starting to worry about the quality of your code so what you want is to at least check your code against design and style guidelines don’t you?
Step by step: .Net Core and Azure Search is small introduction on how to connect to Azure Search, create and delete indexes, models, add documents and perform basic queries.
Let’s go for it:
Create an Azure Search service # Create an Azure Search service in your Azure subscription, and get the Azure Search name and primary Read-Write key.
This week there was a small outage within the Azure Data Lake Store service and as consequence I wondered how could I Read Azure Service Health Activity Logs with .NET Core.
Let’s go for it:
Create a folder for your new project # Open a command promt an run:
This week I had to repeat the process of creating a Service Principal in order to use the Microsoft.Azure.Management.Fluent lib with .NET Core so I decided it was time to script the process. With the following script you can Create a Service Principal and write required parameters to a .azureauth file.
Today I’ll show you how to Run ASP.NET Core on OpenShift.
First be aware of the following prerequisites:
You’ll need a working Docker installation. If you are using Windows 10 you can get Docker for Windows here. Be sure to Disable TLS for 127.0.0.1:2375 for your Docker installation Be sure to set 172.30.0.0/16 as an Insecure Registry in your Docker installation Be sure to set 172.30.1.1:5000 as a Registry Mirror in your Docker installation You’ll need download the oc Client Tools Note: If you want to learn about OpenShift and what can you do with it, I recommend the free book: Openshift for Developers.
After reading the following articles:
How to create your own templates for dotnet new Custom Project Templates Using dotnet new and having a twitter conversation with Sayed-Ibrahim-Hashimi I decided it was a nice idea to create some templates based on the code of some of my posts.
So here are the results:
HDInsight: Scale Horizontally with Scale-HDInsightClusterNodes.ps1 a PowerShell workflow that will help you automate the process of scaling your cluster.
The script receives 4 parameters:
ResourceGroupName: The name of the resource group where the cluster resides ClusterName: The name of your HDInsight cluster Nodes: The number of nodes you want for the cluster ConnectionName: The name of your automation connection account and requires the following PowerShell modules: AzureRM.Profile, AzureRM.HDInsight
Today I’ll show you how to Deploy your ASP.NET Core Web API to AWS Lambda.
First be aware of the following prerequisites:
You’ll need an AWS account: https://aws.amazon.com/ You’ll need AWS CLI installed: http://docs.aws.amazon.com/cli/latest/userguide/installing.html You’ll need your AWS security credentials Some basic knowledge on AWS Stacks, API Gateway, Lambda and Buckets Now let’s start:
Create a folder for your new project # Open a command promt an run