Author Archive: Roy Apalnes
Not ready to jump on JSON template modification when the Marketplace template doesn’t fit your requirements? We can use PowerShell to get the same marketplace image deployed with our own modified configuration.
Select-AzureRmSubscription -SubscriptionId dc9b2339-0138-4de6-b2c2-c7e9408fdfa4
$ComputerName = 'labroynepa02'
$CredentialVM = Get-Credential
#Create Network Interface
$nic0 = New-AzureRmNetworkInterface -Name "labroynepa02-eth0" -ResourceGroupName "LAB-ROY-NE-NETWORK" -Location "West Europe" -SubnetId "/subscriptions/dc9b2339-0138-4de6-b2c2-c7e9408fdfa4/resourceGroups/LAB-ROY-NE-NETWORK/providers/Microsoft.Network/virtualNetworks/fwVNET/subnets/MgMt" -IpConfigurationName "IPConfiguration0"
$nic1 = New-AzureRmNetworkInterface -Name "labroynepa02-eth1" -ResourceGroupName "LAB-ROY-NE-NETWORK" -Location "West Europe" -SubnetId "/subscriptions/dc9b2339-0138-4de6-b2c2-c7e9408fdfa4/resourceGroups/LAB-ROY-NE-NETWORK/providers/Microsoft.Network/virtualNetworks/fwVNET/subnets/Untrust" -IpConfigurationName "IPConfiguration1"
$nic2 = New-AzureRmNetworkInterface -Name "labroynepa02-eth2" -ResourceGroupName "LAB-ROY-NE-NETWORK" -Location "West Europe" -SubnetId "/subscriptions/dc9b2339-0138-4de6-b2c2-c7e9408fdfa4/resourceGroups/LAB-ROY-NE-NETWORK/providers/Microsoft.Network/virtualNetworks/fwVNET/subnets/Trust" -IpConfigurationName "IPConfiguration2"
#Get Availability Set
$avset = Get-AzureRmAvailabilitySet -ResourceGroupName LAB-ROY-NE-NETWORK -Name LAB-ROY-NE-NETWORK-PA
#Set VM name, size and availability set
$vmconfig = New-AzureRmVMConfig -VMName DEMO-ROY-TEST02 -VMSize "Standard_D3_V2" -AvailabilitySetId $avset.ID
#Set VM OS disk
#$vmconfig = Set-AzureRmVMOSDisk -VM $vmconfig -Name DEMO-ROY-TEST01-vmseries1-byol.vhd -VhdUri https://demoroytestdisks767.blob.core.windows.net/vhds/DEMO-ROY-TEST01-vmseries1-byol.vhd -CreateOption attach -Linux
#Set VM data disk
#$vmconfig = Add-AzureRmVMDataDisk -VM $vmConfig -Name appdisk01 -VhdUri <Specify VHD URL> -Lun 0 -CreateOption attach -Caching none -DiskSizeInGB 500
#Set Network Interface
$vmconfig = Add-AzureRmVMNetworkInterface -VM $vmconfig -Id $nic0.Id -Primary
$vmconfig = Add-AzureRmVMNetworkInterface -VM $vmconfig -Id $nic1.Id
$vmconfig = Add-AzureRmVMNetworkInterface -VM $vmconfig -Id $nic2.Id
#Set Plan for Marketplace Image
$vmconfig = Set-AzureRmVMPlan -VM $vmconfig -Publisher "paloaltonetworks" -Product "vmseries1" -Name "byol"
#Set Operating System, ComputerName and Local credentials for VM
$vmconfig = Set-AzureRmVMOperatingSystem -VM $vmconfig -linux -ComputerName $ComputerName -Credential $CredentialVM
#Set Configuration for Marketplace Image
$vmconfig = Set-AzureRmVMSourceImage -VM $vmconfig -PublisherName "paloaltonetworks" -Offer "vmseries1" -Skus "byol" -Version "7.1.1"
#Deploy new VM with Marketplace Image as Source
New-AzureRmVM -ResourceGroupName LAB-ROY-NE-NETWORK -vm $vmconfig -Location "West Europe"
This image from Palo Alto can only…
Not only Palo Alto, but alot of the templates hosted in the Azure Marketplace has restrictions to how we can deploy these resources. And it is mostly because the vendor wants to help you, but it doesn’t always fit with…
Sadly, there is still (not yet) an easy graphical way of listing who in your organization is enjoying administrator roles in Office 365, but there is a way using PowerShell. I had my hopes up when we received an Azure…
Automapping mailboxes to Outlook means the mailbox you gain access to will be automatically added to your Outook Client or Outlook Web Access (Exchange Online). No need to add additional mailboxes after an administrator have granted you permission. Life is…
Users are always allowed or forced to change their passwords, either by a phone call to servicedesk or from their domain joined computer when at the Office. By enabling this feature in ADFS, you make self-service password change more available for your end-users. Possible reducing the incoming…
The Publisher is still MicrosoftWindowsServer and the Offer is WindowsServer, but what are the new Skus and Images? 2016-DataCenter 2016-DataCenter-with-Containers 2016-Nano-Server The first and at the moment only version or build of 2016-DataCenter is 2016.0.20161010. 2016-DataCenter build 2016.0.20161010 2016-DataCenter-with-Containers build 2016.0.20161012…
Everyone working with Azure Active Directory are used to have multiple browsers opened, in order to simulate mutiple users. And I often find myself even using In-Cognito or In-Private mode in my browsers to. At the moment I am running…
ADFS prompts for credentials and successfully authenticates, but you receive HTTP 400 bad request or page not found with the address https://adfs.domina.com/adfs/ls/wia. This is usually because someone tempered With the Service Principal Names, and that can be for multiple reasons….