Azure – “VMScaleSetCannotReferenceLoadbalancerWhenLargeScaleIsEnabled”

‘VM scale set cannot reference a load balancer when LargeScale property is enabled.’ The error may well leave you as puzzled as I was! There is a checklist of things you require https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-placement-groups STANDARD not BASIC for the Load-Balancer is the first thing to check.. https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-ip-addresses-overview-arm and you probably need a Standard SKU for your…

0

Azure – Virtual machine scale set does not support disk encryption

New-AzureRmResourceGroupDeployment : 3:49:21 PM – Resource Microsoft.Compute/virtualMachineScaleSets ‘vmssfp6s’ failed with message ‘{ “error”: { “code”: “NotSupported”, “message”: “Virtual machine scale set does not support disk encryption. Please remove Azure Disk Encryption extension from virtual machine scale set model.” } }’ #Yet I see examples in GitHub – so is it supposed to work? $namespaces=(Get-AzureRMresourceprovider).ProviderNamespace foreach…

0

Azure – PowerShell setting Blob Tiers

function Set-AgedBlobsToTier  { PARAM ( [Parameter(Mandatory = $true)] [int] $AgeInDays, [Parameter(Mandatory = $true)] [Microsoft.WindowsAzure.Storage.Blob.Standardblobtier] $StorageTier, [Parameter(Mandatory = $true)] [string]$ResourceGroupName, [Parameter(Mandatory = $true)] [string]$StorageAccountName )    $StorageAccountName = $StorageAccountName.ToLower()      if  (Get-AzureRmStorageAccount -ResourceGroupName $ResourceGroupName -Name $StorageAccountName -EA SilentlyContinue)  { $StorageAccountKeys    = Get-AzureRmStorageAccountKey -ResourceGroupName $ResourceGroupName -Name $StorageAccountName $StorageAccountKey     = $StorageAccountKeys[0].Value $StorageAccountContext = New-AzureStorageContext -StorageAccountName $StorageAccountName -StorageAccountKey…

1

PowerShell Azure – Get-AzureExtensionHighestVersion

function Get-AzureExtensionHighestVersion {    [CmdletBinding()]    PARAM ([string]$extension, [string] $location=’AustraliaEast’)     $sortProps = @{Expression = “PublisherName”; Descending = $True}, @{Expression = “Type”; Descending = $True},@{Expression = “Version”; Descending = $True}    $Results= Get-AzureRmVmImagePublisher -Location $location |      Get-AzureRmVMExtensionImageType |       Get-AzureRmVMExtensionImage |        Where-Object {$_.Type -LIKE “*$extension*”}   #replace version…

0

Azure – DSC automation (Windows vs Linux)

{ “$schema”: “https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#”, “contentVersion”: “1.0.0.0”, “parameters”: { “OS”: { “type”: “string”, “defaultValue”: “Windows”, “allowedValues”: [ “Linux”, “Windows” ], “metadata”: { “description”: “DSC extension selection setting. Linux, Windows” } }, “vmName”: { “type”: “string”, “metadata”: { “description”: “Name of the existing VM to apply the DSC configuration to” } }, “modulesUrl”: { “type”: “string”, “defaultValue”: “https://github.com/Azure/azure-quickstart-templates/raw/master/dsc-extension-azure-automation-pullserver/UpdateLCMforAAPull.zip”,…

0

PowerShell Azure – Invoke-AzureRmVMRunCommand

Invoke-AzureRmVMRunCommand has a parameter -CommandId which the single example shows as -CommandId ‘RunPowerShellScript’ -ScriptPath ‘sample.ps1’ but the question that raises is – what other values can I give? A colleague showed me how to get the list of various CommandId values: Get-AzureRmVMRunCommandDocument -Location AustraliaEast EnableRemotePS – Configure the machine to enable remote PowerShell. (Windows) Ipconfig – List…

2

PowerShell Azure – find a sku offer publisher

# who is the publisher for FreeBSD? What offer? What sku? # Find-AzureSKU bsd function Find-AzureSKU  {   Param ([parameter(Mandatory=$true,HelpMessage=’Enter a partial string of the  product’)]   [String] $sku,   [String] $location=’australiaeast’  )   $publishers = Get-AzureRmVMImagePublisher -location $location   foreach ($publisher in $publishers) {      $offers=Get-AzureRmVMImageOffer -location $location `        …

0

Azure – DSC howto

my colleague Mark has posted an excellent walk-through to guide you in using DSC in Azure. Deploying a DC to Azure IaaS with ARM and DSC  

0

Azure – Azure Stack is a game changer

https://azure.microsoft.com/en-us/overview/azure-stack/webcast/ Snover and Russinovitch give an excellent presentation discussing, explaining and demonstrating Azure Stack. If you have not seen it – watch it. Azure Stack is a MAJOR shift in IT. https://azure.microsoft.com/en-us/blog/announcing-the-first-technical-preview-of-microsoft-azure-stack/

1

Azure – MS loves Linux!

an awesome collection – go look! https://azure.microsoft.com/en-us/blog/microsoft-loves-linux-deep-dive-blog-series/

0