![]() ![]() $StorageAccount = Get-AzureRmStorageAccount | Where-Object New-AzureRmStorageAccount -ResourceGroupName $ResourceGroup -Name $StorageAccountName -Location $Location -SkuName Standard_LRS -Kind StorageV2 -AccessTier Hot $StorageAccountName = "mikrotik" (Get-Random) New-AzureRmResourceGroup -Name $ResourceGroup -Location $Location Write-Host "Create Resource Group $ResourceGroup" If ((Get-AzureRmResourceGroup -Name $ResourceGroup -ErrorAction Silentl圜ontinue) -eq $null) ![]() Select-AzureRmSubscription -SubscriptionId $SubscriptionId #You can use Get-AzureRmSubscription to determine your SubscriptionID If ((Test-Path -Path $MikrotikVHD) -eq $false)Ĭonvert-VHD -Path $MikrotikVHDX -DestinationPath $MikrotikVHD -VHDType Fixed $MikrotikVHD = "C:\Downloads\mt01-vm.vhd" #Convert Mikrotik CHR image from VHDX to VHD #Install-Module -Name AzureRM -AllowClobber This VHD will be attached to your CHR, so name it accordingly. Than upload the VHD to your storage account using PowerShell, or the Azure Storage Explorer. For this we need to download the current CHR system image in VHDX format from (I recommend the “current” edition).įirst of all you need to convert Mikrotik CHR image form VHDX to VHD format. To run MVA we need a Mikrotik image for Hyper-V. Note that your new CHR will have a blank password, so be conscious of exposing it to the internet in this configuration. It’s also a good idea to attach a static public IP address to the NIC, and set up a security group allowing winbox access. ![]() Moreover you will need a resource group (RG), two network interfaces (NICs), and storage account if you don’t already have these. In this scenario I assumed that you already have Azure subscription. Today I will show you how to run the Mikrotik CHR router in Azure virtual machine, in order to be able to create for example SSTP VPN or S2S VPN.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |