Azure backup server, SMTP with anonymous authentication

While configuring an Azure backup server, I was trying to set the SMTP settings with anonymous authentication to email notifications, but kept getting the following error:

ID: 2013
Details: The user name or password is incorrect

ID: 2013 Details: The user name or password is incorrect

Quick Fix

Create a local user (with stupidly long and complex password). Add the user to the Adminstrators group. Use these details for the Username (servername\username) and Password.

Overview

To configure the SMTP server settings go to Management on the left hand side

Azure backup management menu

The click Options in the tool bar across the top.

Azure backup options button

Ideally, I did not want to enter any details here because there because it technically there aren’t any (our SMTP server is provided by our ISP and is authenticated by our IP address). I kept getting the ID 2013 error. When I used a domain user, I still got the error. Creating a local user and using those details, the same error. It was only when I made the user a member of the local Administrators group was I able to send a test email successfully.

Azure backup SMTP server settings

Despite it saying “The username entered should domain account name of person whose “From” address is mentioned above, otherwise notification delivery will fail” it didn’t matter. A local server account was fine as long as it was in the Administrators group… not ideal but at least notifications will work.

This issue is in Data Protection Manager (DPM) and thanks to this post, Anonymous SMTP for DPM  which gave me the solution of adding the local user to the Administrators group (number 2 on the page, deleting the registry keys as described in solution 1 did not work for me).

 

Cheers.

Unblocking Files downloaded from the Internet

First off, make sure you trust the source of where you downloaded the files from, only download from legitimate sites you trust and check the SSL certificate if needs be.

Browse to the excellent Sysinternals page on Microsoft’s technet site. Right click the Download Sysinternals Suite link and select “Save link as…” and choose a location to save it to your PC.

If you were to right click on the download zip file and extract the contents and run the programs or view the help files, you will get the Open File – Security Warning dialogue box pop up each time you run it and the help files will not have any contents.

Open File Security Warning
Open File Security Warning

To remove this warning (you of course got the file(s) from a trustworthy source), you can right click on the downloaded zip file, select “Properties”, check the “Unblock” checkbox and click apply. When you extract the zip file, all the files will be unblocked.

unblock a file
Unblock a file

To do this in PowerShell use the Unblock-File command.

This will have the same effect checking the Unblock checkbox.

If you’ve already extracted the files and forgot to unblock them, use the PowerShell command again with the path to the folder containing the files with \* on the end.

 

Azure PowerShell login and create resource group

I’ve been doing lots of work with Azure recently (especially using PowerShell) so thought I’d dump some of the stuff I’ve learnt along the way here… it’s been a while.

This small guide will show you how to login to Azure using PowerShell, view and select your subscriptions and then create a Resource Group that will be provisioned in the Azure Portal.

I’ve messed about with the classic portal a bit, but Resource Manager (RM) is the way to go… you’ll see Rm in the PowerShell nouns to signify that it is a Resource Manager cmdlet.

First you need to install Azure PowerShell to get all that Azure PowerShell goodness… once you’re done (the instructions are clear and easy to follow) come back here and continue below.

Login to your Azure RM account

Get Azure RM subscriptions

Set your Azure RM subscription to work in (one of mine is called Pay-As-You-Go)

Create an Azure RM resource group

This creates a Resource Group called ps-test in the North Europe region with the tag “Created By Matt”

Go to the portal and you should see the newly created resource group (make sure you have selected the correct subscription if you have more than one).

Azure Resource Group deployed by PowerShell
Azure Portal

 

Tags are great and an excellent way to organise your resources, you can also use them to report on costs and usage.

That’s a simple demo of login into Azure with PowerShell, selecting a subscription and then deploying a resource group which is used as a container to help keep track of resources for VMs, Apps, Databases etc.