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:
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.
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
Step by step: .NET Core and Azure Cosmos DB is a short post on how to connect to Cosmos DB, save a document and then query to find it.
Let’s start:
Create a Cosmos DB account # Create a Cosmos DB account in your Azure subscription. Once created get the URI and the primary Read-write key from the Keys section.
Recently I client ask me to enable application and http logging for more than 20 AzureRM Web Apps. Furthermore the client wanted the logs to be stored in a Storage Account.
Issues started when I decided to Use PowerShell to Enable Logging for Azure RM Web Apps, because there is no equivalent to the ASM Enable-AzureWebsiteApplicationDiagnostic cmdlet for ARM resources.
On April 22 I had the great opportunity to give a talk on Azure Functions in the Global Azure Bootcamp hosted in Madrid. I had a great time, but weeks later when the video was published I realised that I was using a filler word way to much through my presentation.
Last week I had to provision a Docker host and I tried out the docker-machine command. The resulting host would have to use an existing Azure subnet from another resource group and I also needed to be able to reach the machine using it’s private IP.
After reading the docs and playing for some minutes I came up with the correct command to use Docker Machine with an existing Azure VNET:
This week I decided to modify the sample of my previous post: Step by step: Scale ASP.NET Core with Docker Swarm so you can add TLS to your ASP.NET Core applications and Dockerize it.
Let’s see how I changed the application in order to make it work:
Add HTTPS support for Kestrel # I added the following line to the dependencies in the project.json file.
A few weeks ago I posted Step by step: ASP.NET Core on Docker were I showed how to build and run a Docker image with an ASP.NET Core application.
Today I bring you: Step by step: Scale ASP.NET Core with Docker Swarm so you can scale out or in the same application.
Assuming you have Docker 1.12 or later installed and running, follow this steps:
If you intend to use the WindowsAzure.Storage library with .Net Core you’ll hit a"compatibility wall" trying to make it work.
So how can we use .Net Core to Create Azure Blob Storage SAS Keys?
Add the System.Security.Cryptography.Algorithms dependency # Add the following dependency in your project.json file
This week I cleared the 70-533 Implementing Microsoft Azure Infrastructure Solutions exam, and I want to share with you tips about the exam and the resources I used to study:
Should you take the exam?
If you are an Infrastructure Geek, Developer or Software Architect looking to validate your Microsoft Azure skills then this exam is for you. Also note that Microsoft expects you to:
This week I have to give an introductory talk on DevOps and Docker and therefore I decided to prepare a simple Step by step: ASP.NET Core on Docker sample.
Assuming you have Docker installed and running, follow these 4 simple steps:
Create a dockerfile # On your Docker box create a dockerfile with the following contents
Today I’ll show you how to develop a Web API to Create vCard QR Codes using Azure Functions.
But wait what are Azure Functions?
As defined by Microsoft:
Azure Functions is a serverless event driven experience that extends the existing Azure App Service platform. These nano-services can scale based on demand and you pay only for the resources you consume.
Today I’ll show you how to create a small console application that will Detect and Blur Faces with .NET Core and Face API.
First be aware of the following prerequisites:
**OS** **Prerequisites** Windows Windows: You must have .NET Core SDK for Windows or both Visual Studio 2015 Update 3* and .NET Core 1.0 for Visual Studio installed. linux, mac or docker checkout .NET Core You will also need an Azure Cognitive Services Face API account and the correct set of access keys. (Start here: Subscribe in seconds if you need a Cognitive Service Account and here for the Documentation)
Today I’ll show you how to create a small console application with a Step by step: .NET Core, Azure Service Bus and AMQP example.
First be aware of the following prerequisites:
**OS** **Prerequisites** Windows Windows: You must have .NET Core SDK for Windows or both Visual Studio 2015 Update 3* and .NET Core 1.0 for Visual Studio installed. linux, mac or docker checkout .NET Core You will also need an Azure Service Bus namespace, topic and subscription with the correct set of credentials. (Start here: How to use Service Bus topics and subscriptions if you don’t know how to configure the Service Bus)
Stop or Start all WebApps in your Azure subscription with Stop-Start-All-WebApps.ps1 a simple PowerShell workflow runbook that will help you automate the process of stopping or starting every single WebApp (Website) you’ve deployed.
The script receives two required parameters:
Stop: If set to true stop the WebApps (Websites) otherwise start the WebApps (Websites) CredentialAssetName: The name of a valid Credential Asset (AutomationPSCredential) you must have previously configured. As you can see below, the script is quite simple and uses the following PowerShell Activities and Cmdlets:
Let’s talk about NHInsights an OracleManagedDataClientDriver for NHibernate and Application Insights
If you use Oracle and NHibernate and you are trying to use Application Insights to diagnose issues with your database calls you will notice that for ASP.NET applications the out-of-the-box dependency monitor currently reports calls to these types of dependencies:
In this post I’ll just show the list of PowerShell commands needed to Create an Azure Site to Site VPN and give you some tips when using a Check Point Security Gateway.
First things first! so if you have not installed and configured Azure PowerShell go for it: How to install and configure Azure PowerShell