Windows Azure – Exam preperation Links 70-533, 70-532 – Part 3


Virtual Network FAQ
http://msdn.microsoft.com/en-us/library/azure/dn133803.aspx

Creating a Stretched Network on Microsoft Azure
http://blogs.msdn.com/b/niallsblog/archive/2014/05/22/creating-a-stretched-network-on-

microsoft-azure.aspx

Microsoft Azure: Connecting multiple VNET’s to a VNET.
http://blogs.technet.com/b/cloudpfe/archive/2014/07/18/microsoft-azure-connecting-multiple-vnet-39-s-to-a-vnet.aspx

Connecting Web or Worker Roles to a Simple Virtual Network in Windows Azure
http://michaelwasham.com/2012/08/06/connecting-web-or-worker-roles-to-a-simple-virtual-

network-in-windo-azure/

http://blog.kloud.com.au/2013/06/02/connecting-cloud-services-with-virtual-machines-in-

windows-azure/

Register Servers with Azure Backup
http://msdn.microsoft.com/en-us/library/azure/hh831677.aspx

Install Azure Backup Agent and upload the certificate
http://msdn.microsoft.com/en-us/library/azure/hh831761.aspx

http://blogs.msdn.com/b/cie/archive/2013/10/10/storage-analytics-logging-how-to-enable-and-where-to-find-the-logs.aspx

Read Azure Storage Blob Logs
http://blogs.msdn.com/b/windowsazurestorage/archive/2011/08/03/windows-azure-storage-logging-using-logs-to-track-storage-requests.aspx

Adding, Updating, and Removing an Application
http://msdn.microsoft.com/en-us/library/azure/dn132599.aspx

Azure AD Graph API
http://msdn.microsoft.com/en-us/library/azure/hh974476.aspx

Windows Azure – Exam preperation Links 70-533, 70-532 – Part 2


How to move Windows Azure Virtual Machines from one Subscription to another
http://gauravmantri.com/2012/07/04/how-to-move-windows-azure-virtual-machines-from-one-

subscription-to-another/

How to convert exist Block Blob to PageBlob
http://stackoverflow.com/questions/12851764/how-to-convert-exist-block-blob-to-pageblob

How to change the content type of Windows Azure blob storage
https://code.msdn.microsoft.com/How-to-change-the-content-605b3df5

How to use Blob Storage from .NET
http://azure.microsoft.com/en-us/documentation/articles/storage-dotnet-how-to-use-blobs/

Password hash synchronization for Azure AD stops working and event ID 611 is logged
http://support.microsoft.com/kb/2867278

How to troubleshoot password synchronization when using the Azure Active Directory Sync

tool
http://support.microsoft.com/kb/2855271

http://www.asp.net/aspnet/overview/developing-apps-with-windows-azure/building-real-world-

cloud-apps-with-windows-azure/single-sign-on

Adding, Updating, and Removing an Application
http://msdn.microsoft.com/en-us/library/dn132599.aspx#BKMK_Native

How to Deploy Azure WebJobs to Azure Websites
http://azure.microsoft.com/en-us/documentation/articles/websites-dotnet-deploy-webjobs/

ASP.NET MVC With Google OpenID and OAuth 2.0
http://msdn.microsoft.com/en-us/library/azure/gg185929.aspx
Azure AD integration with Google Apps
http://azure.microsoft.com/en-us/documentation/articles/integration-azure-google-apps/

Refresh Tokens for Multiple Resources
http://msdn.microsoft.com/en-us/library/azure/dn645538.aspx

Service to Service Calls Using Client Credentials
http://msdn.microsoft.com/en-us/library/azure/dn645543.aspx

How to: Use the Import and Export Service in Azure SQL Database
http://msdn.microsoft.com/en-us/library/hh335292.aspx

Copying Databases in Azure SQL Database
http://msdn.microsoft.com/en-us/library/ff951624.aspx

Backing Up Your SQL Azure Database Using Database Copy
http://azure.microsoft.com/blog/2010/08/25/backing-up-your-sql-azure-database-using-

database-copy/

How to: Use the Import and Export Service in Azure SQL Database
http://msdn.microsoft.com/en-us/library/azure/hh335292.aspx

Using Windows Azure Page Blobs and How to Efficiently Upload and Download Page Blobs
http://blogs.msdn.com/b/windowsazurestorage/archive/2010/04/11/using-windows-azure-page-

blobs-and-how-to-efficiently-upload-and-download-page-blobs.aspx

Uploading and Downloading VHDs to Windows Azure
http://michaelwasham.com/windows-azure-powershell-reference-guide/uploading-and-

downloading-vhds-to-windows-azure/

Azure SQL Database Standard Geo-Replication
http://azure.microsoft.com/blog/2014/09/03/azure-sql-database-standard-geo-replication/

Shared Access Signatures, Part 2: Create and Use a SAS with the Blob Service
http://azure.microsoft.com/en-us/documentation/articles/storage-dotnet-shared-access-

signature-part-2/

Create and Use a Shared Access Signature
http://msdn.microsoft.com/en-us/library/azure/jj721951.aspx

How Can I Reserve an IP address in Microsoft Azure?
http://azure.microsoft.com/blog/2014/05/14/reserved-ip-addresses/

How to Assign a Private Static IP to an Azure VM
http://social.technet.microsoft.com/wiki/contents/articles/23447.how-to-assign-a-private-

static-ip-to-an-azure-vm.aspx

Azure Service Definition Schema (.csdef File)
http://msdn.microsoft.com/en-us/library/ee758711.aspx

WorkerRole Schema
http://msdn.microsoft.com/en-us/library/gg557552.aspx

WebRole Schema
http://msdn.microsoft.com/en-us/library/gg557553.aspx#Endpoints

http://fabriccontroller.net/blog/posts/setting-up-software-based-site-to-site-vpn-for-

windows-azure-with-windows-server-2012-routing-and-remote-access/

http://msdn.microsoft.com/en-us/library/azure/jj156075.aspx

Configure a Multi-Site VPN
http://msdn.microsoft.com/en-us/library/azure/dn690124.aspx

Configure a Site-to-Site VPN in the Management Portal
http://msdn.microsoft.com/en-us/library/azure/dn133795.aspx

How to connect your on-premise network to Windows Azure using Windows Server as a VPN

gateway
http://morgansimonsen.wordpress.com/2012/10/24/how-to-connect-your-on-premise-network-to-

windows-azure-using-windows-server-as-a-vpn-gateway-2/

Site-to-Azure VPN using Windows Server 2012 RRAS
http://www.concurrency.com/blog/site-to-azure-vpn-using-windows-server-2012-rras/

Windows Azure – Exam preperation Links 70-533, 70-532


Troubleshooting Scenario 5 – Internal Server Error 500 in WebRole

http://blogs.msdn.com/b/kwill/archive/2013/09/19/troubleshooting-scenario-5

internal-server-error-500-in-webrole.aspx

Connecting Web or Worker Roles to a Simple Virtual Network in Windows Azure
http://michaelwasham.com/2012/08/06/connecting-web-or-worker-roles-to-a-simple-virtual-

network-in-windows-azure/

How to Configure Cloud Services
http://azure.microsoft.com/en-us/documentation/articles/cloud-services-how-to-configure/

Azure VM Extensions and Features
http://msdn.microsoft.com/en-us/library/azure/dn606311.aspx

Configuring Azure Virtual Machines for Optimal Storage Performance
http://blogs.msdn.com/b/mast/archive/2014/10/14/configuring-azure-virtual-machines-for-

optimal-storage-performance.aspx

Exploring Windows Azure Drives, Disks, and Images
http://blogs.msdn.com/b/windowsazurestorage/archive/2012/06/28/exploring-windows-azure-

drives-disks-and-images.aspx

Manage the availability of virtual machines
http://azure.microsoft.com/en-us/documentation/articles/virtual-machines-manage-

availability/

Why using an Afinity Group
http://msdn.microsoft.com/en-us/library/hh973190.aspx

http://msdn.microsoft.com/en-us/library/azure/gg981929.aspx

Virtual Network FAQ
http://msdn.microsoft.com/en-us/library/azure/dn133803.aspx

How to Create a Virtual Network in Azure
http://social.technet.microsoft.com/wiki/contents/articles/17789.how-to-create-a-virtual-

network-in-azure.aspx

Connecting Windows Azure Virtual Machines with PowerShell
http://michaelwasham.com/tag/powershell/

Network Isolation Options for Machines in Windows Azure Virtual Networks
http://azure.microsoft.com/blog/2014/03/28/network-isolation-options-for-machines-in-

windows-azure-virtual-networks/

Health Endpoint Monitoring Pattern
http://msdn.microsoft.com/en-us/library/dn589789.aspx

Azure Web Sites Diansotics
http://azure.microsoft.com/en-us/documentation/articles/web-sites-dotnet-troubleshoot-

visual-studio/#readlogfiles

Simple Powershell scripting with Azure Powershell cmdlets
http://codebetter.com/glennblock/2012/12/26/simple-powershell-scripting-for-azure-

powershell-cmdlets/

Windows Azure Web Sites: How Application Strings and Connection Strings Work
http://azure.microsoft.com/blog/2013/07/17/windows-azure-web-sites-how-application-

strings-and-connection-strings-work/

How to Configure Websites
http://azure.microsoft.com/en-us/documentation/articles/web-sites-configure/

Enabling Remote PowerShell for SharePoint Maintainence and Deployments


While working with higher number of servers in the farm it some times become hard to execute maintainence scripts on every server in the farm including SharePoint, SQL and OWA Servers.  I recently worked on script to enable PowerShell remoting from the working server.  The process will be the following

Step 1: Enable Delegation for Credentials

First I will Enable the Working server to do enable delegation for credentials.  This basicly allows me to execute script with any user who has access to SharePoint. 

Step 2: Copy Script Files on all SharePoint Servers

This step will allow you to copy scripts folder to all servers you have specified.  You can completly automate this step if you are executing the copy script on one of the SharePoint Servers using Get-SPServer but In the example I was running the scripts out of SharePoint Farms.  I have another blog that

Step 3: Enable Remote PowerShell

Execute the 4 lines PowerShell script that will enable PowerShell Remoting and increase the memory and shell per users.

Step 4: Test the Remote PowerShell is Working

This script will perform some basic testing if the Remote PowerShell is working.  For SharePoint Servers it will Load the SharePoint Snapin and then check the version of SharePoint Farm as well as List the content database title and description.  For Non SharePoint Server it will try to get the server name using Get-WmiObject.

The scripts are given below.

1-Enable-DeletgationforSearchServersOnToolsServer.ps1

Write-Host "==================================================================" -ForegroundColor Green
Write-Host "You may need to Restart the Tools server for changes to take effect..." -ForegroundColor Yellow
Write-Host "==================================================================" -ForegroundColor Green
$Servers = @("Server1", "Server2", "Server3", "Server4")
foreach($Server in $Servers)
{
    $FQDN = $Server + ".fullyqualitydomain.contoso.com"
    Write-Host $FQDN -ForegroundColor Yellow
    Enable-WSManCredSSP -Role client -DelegateComputer $FQDN
    Write-Host "Delegation is Completed for $Server" -ForegroundColor Green
}
Write-Host "Delegation is Completed for all servers..."
Write-Host "Run the 2nd Copy-RemoteScript script and then Restart the Tools Server..." -ForegroundColor Red

2-Copy-RemoteScriptFolderToAllServers.ps1

Write-Host "===================================================" -ForegroundColor Green
Write-Host "Copying Files to all servers" -ForegroundColor Green
Write-Host "===================================================" -ForegroundColor Green
$Servers = @("Server1", "Server2", "Server3", "Server4")
foreach($Server in $Servers)
{
    $Location = "\\$Server\e$\RemoteScripts"
    Write-Host $Location
    Robocopy.exe E:\RemoteScripts\ $Location /MIR 
}
Write-Host "Files are Copy to All serversin E:\RemoteScripts..." -ForegroundColor Green

3-Enable-RemotingOnThisServer.ps1 (Execute on All Servers one by one)

Write-Host "===================================================" -ForegroundColor Green
Write-Host "Enabling Remote PowerShell and setting WRM Memory" -ForegroundColor Green
Write-Host "===================================================" -ForegroundColor Green
Set-ExecutionPolicy -ExecutionPolicy unrestricted
winrm quickconfig
Enable-WSManCredSSP -Role server
winrm set winrm/config/winrs '@{MaxShellsPerUser="25"}'
winrm set winrm/config/winrs '@{MaxMemoryPerShellMB="600"}'
Write-Host "Enabling Remote PowerShell and setting WRM Memory Completed.  Run the same on other servers one by one" -ForegroundColor Green

4-Test-RemotePowerShellOnAllServers.ps1 (Execute this script on Working Server from where you want to execute the script)

Write-Host "==================================================================" -ForegroundColor Green
Write-Host "You Must be a SharePoint Administrator to Test this script" -ForegroundColor Green
Write-Host "==================================================================" -ForegroundColor Green
Write-host "Press enter if you are a SharePoint Administrator or Press Ctrl + C to Cancel" -ForegroundColor Yellow
Read-Host 
Write-Host "Testing Remote PowerShell Completed on all Non SharePoint Servers..." -ForegroundColor Green

$farm = Get-Credential
$Servers = @("Server1", "Server2")
foreach($Server in $Servers)
{
    $FQDN = $Server + ".fullyqualitydomain.contoso.com"
    Write-Host "Testing Remote PowerShell on SharePoint : $FQDN" -ForegroundColor Yellow
    $s = New-PSSession -ComputerName $FQDN -Authentication CredSSP -Credential $farm
    Invoke-Command -Session $s -ScriptBlock { add-pssnapin Microsoft.SharePoint.PowerShell -ea 0 }
    Invoke-Command -Session $s -ScriptBlock { get-spfarm | Select Version }
    Invoke-Command -Session $s -ScriptBlock { get-spcontentdatabase | Select Id, Name }
    Get-PSSession | Remove-PSSession
    Write-Host "Testing Remote PowerShell Completed on $Server" -ForegroundColor Green
}

Write-Host "Testing Remote PowerShell Completed on SharePoint Servers..." -ForegroundColor Green
Write-Host "Starting on Non SharePoint Servers..." -ForegroundColor Yellow
$Servers = @("Server3", "Server4")
foreach($Server in $Servers)
{
    $FQDN = $Server + ".fullyqualitydomain.contoso.com"
    Write-Host "Testing Remote PowerShell on Non SharePoint : $FQDN" -ForegroundColor Yellow   
    $s = New-PSSession -ComputerName $FQDN -Authentication CredSSP -Credential $farm
    Write-Host "Getting Server name using WMI..." -ForegroundColor Yellow
    Invoke-Command -Session $s -ScriptBlock { $(Get-WmiObject Win32_Computersystem).name }
    Get-PSSession | Remove-PSSession
    Write-Host "Testing Remote PowerShell Completed on $Server" -ForegroundColor Green
}
Write-Host "Testing Remote PowerShell Completed on all Non SharePoint Servers..." -ForegroundColor Green

Note: If you do not see the right output fromt his command you must restart the server.  I have to restart the working server in 2 seperate occasions.  Now you can do anything on SharePoint Servers without even loggin to the servers.