Monday, October 09, 2017

If you don't really know Ishtar and Nimrod, then you don't know "confusion by mixing"...you don't know whose road you are walking.

If you don't really know Ishtar and Nimrod, then you don't know "confusion by mixing"...you don't know whose road you are walking.
Many will claim that Jesus is the savior, and will teach using His name, yet they are like the adversary who tells a thousand truths just to make their followers believe a single lie.

We need to understand the true context of Matthew 24:5 in line with the false prophets of Deuteronomy 13 and their blind, non-testing, euphoria-driven followers in 2 Timothy 4:3. Remember: if you think death of the soul (living body) is the worst, imagine losing your inheritance again and instead being destroyed by the flaming sword, the second death (your unique signature, your spirit…only the one who created it can destroy it.).

Many will say on the day of judgement, "did we not prophesy in God's name and in Jesus name drive out demons and in Jesus name performed many miracles?" Jesus will tell them plainly, "I never knew you. Away from me, you evildoers!
[original meaning: 'workers who disobey the laws of God']".

"As our gifts to God are meant to please Him not us, ask this: is your service to God pleasing you (euphoria), or Him? What actually please Him? Does he consider earthly things as gifts of any value to Him, when the man giving the earthly gift does not follow His laws? Nothing will please Him more than to be able to say to you 'well done, good and faithful servant!' because you follow His laws."




How do we love God with all of our heart, soul, and mind? If you asked someone at any typical church if they love God, chances are they would say “yes.”

"If you love Me, keep My commandments." - ALL commandments. He didn't say "cherry-pick my commandments that are suitable for you and your church."

What would you think if your husband or your wife told you and everyone else that they loved you, but always ignored you or did whatever they wanted to do day after day without considering your wishes? What if they simply did whatever was right in their own eyes based on how they decided they should love you. You’d know they were either lying or that they don’t really know what the word “love” means.

The Adversary has taken advantage of our biblical ignorance of love: Christians are persuaded that proclaiming and obeying God’s commands is not “love” at all but is instead “legalism.” Instead we are sometimes told we should focus on "grace" and His love for us. They are saying that we should not focus on loving God but instead, focus on being loved by God. If you are married, imagine how your spouse would react to that.

Some actually praise God in their belief that God abolished His law. In reality, God defines His character and His own heart through the law that He gave us, yet some praise Him for abolishing it.

Fear God and keep his commandments.


Please bear in mind that these words are not my own. I am in no means a good man more so clean...most likely you are way better than I am. I too carry the chains of my sin, and is doing what I can to action the process of forgiving others, and thus to be forgiven myself. Truly, there are kind and selfless people in this world who painstakingly took most of their time and effort to learn and piece these together, in order to give sense and clarity to these topics that seemed impossible and illogical to do.

Thursday, October 05, 2017

"Sacrifice and Hardships are the Path to Salvation!"

The one who has the right to pay for man's sin (breaking of the Law of God) must be Himself perfectly sinless. He died so he can reclaim the adulterous wife He lost.

The Word suffered and died not because of God, but because of us! The Word proved that we are His people and the Word died for us to take us back! Would you die for your adulterous wife just to have her back? How much do you love your adulterous wife? Now you know how much God loves us! The Word suffered and died for you so you will not need to suffer and die just to obey His laws.
The law of God is a path to blessings. If you understand the law and follow it correctly, by not adding nor removing anything from the law, you will experience the sweetness of the law's blessings.

If you feel you are always being "tested" remember that Job was only tested a very short part of his life compared to the blessings he had and has been given back to him!
Even if he was tested for almost a year, although highly unlikely, that is NOTHING compared to the blessings he received in his whole life (hint: they lived much longer than people of today as dying at age 100 is like dying middle aged today) because of his devotion to obeying the law of God! You need to ascertain whether you are either being "frequently" tested or in reality you are following the WRONG law that causes corruption and struggles in your life!

If you are following the wrong law, you do not need to be tested in the first place, because you ARE already under the control of the adversary and are very much influenced by his demons! The adversary is in control of your mind and heart already! David (origin: "one who is loved") made the worse mistake of his life by allowing the adversary to "persuade" him that the king is wise to count his men. God delays His judgement to the unrepentant (one who does not intend to obey the law of God) to allow sin to come to full bloom. The Amorites were highly corrupt within their genes and thus can never be unrepentant as they only seek bloodshed and destruction in their path.

The "tests" you are experiencing frequently in your life are actually the effect of not receiving the blessing because you are not following the true law of God! Do not confuse corruption and struggles of the mind and heart and its repeating negative effects in your life, with a "test" of your obedience!


You must realize that the greatest curse you have in your life is the blessing you missed. Because of your lack of righteousness (original meaning: "to walk within the laws of God"), because of your sins (original meaning: "breaking the laws of God"). To receive God's blessings you need to be perfect (tamiym; original meaning: "to rebuke sin"). Self-righteousness is thinking that you are moral above one person or above others, thinking you are better than one person or better than others. Self-righteousness is a lack of love, and is breaking the commandments, and therefore breaking one of the weightier laws.

Do not believe the Pharisees who preach that obedience with sacrifice and hardships are the path to salvation! We are given the law because God loves us so much and He intends for us to be BLESSED and have the sweetness of life! HE GAVE BACK OUR INHERITANCE! It is up to us to make sure we are not deceived again!

YOU MUST KNOW THE IMMENSITY OF GOD'S LOVE TO UNDERSTAND HE NEVER WANTED PAIN AND SUFFERING FOR US! He does not intend for us to be tested again and again! He is not cruel in any way! Believing otherwise means you misunderstood his love, as his love only brings blessings!

The Pharisees leads the people away to God because they make people think that God brings hardships and frequent tests which He never does. Anyone who makes someone turn away from God, either intentionally or unintentionally, by adding or removing from his law, is awaiting harsh judgement.

Obedience only brings the sweetness of blessings! Again, be like the Bereans...test the teachings you follow, because the law of God will only bring you blessings in life!

Understand this: Obedience does NOT cause salvation. Salvation causes obedience.


The ignorant and unstable twist Paul's letters (e.g., Romans 6:14, Romans 10:4, Galatians 3:10) to their own destruction, as they do the other scriptures, because they do not understand the context of Paul. The Word is never changing, and no new law adds to nor removes from the law of God. The law of God never contradicts nor changes itself. There is nothing new under the sun.

Would you like to cut snippets and follow the steps from Matthew 27:5, be convinced by Luke 10:37, and then hurry to "follow the scriptures" as written by John 13:27? Or probably having to try a new "dish" according to John 6:53-56. Or perhaps be "blindingly" obedient as written in Matthew 5:29 and totally disregard the blessings He gave you? Do you think John 9:3 is even possible for a man except Jesus?

If you like to listen to snippets to suit your own desires and satisfy your itching ears, not fully testing the context from the law of God, then you will foolishly follow and believe the snippets. God's law only intends you blessings, not tests nor struggles. Understand the context, and you will understand the sweetness of his blessings.


His commandments are NOT burdensome!


Please bear in mind that these words are not my own. I am in no means a good man more so clean...most likely you are way better than I am. I too carry the chains of my sin, and is doing what I can to action the process of forgiving others, and thus to be forgiven myself. Truly, there are kind and selfless people in this world who painstakingly took most of their time and effort to learn and piece these together, in order to give sense and clarity to these topics that seemed impossible and illogical to do.

Saturday, September 09, 2017

Shall we ignore someone stuck in a ditch, and instead judge people's mistakes, just because we think we are not our "brother's keeper"?


If you give him no warning nor speak to warn him from his evil ways, he will be punished, but his punishment will also be on you. 

But if you warn him and he does not turn from his evil ways, he shall be punished, but you have delivered yourself from sin.

You shall not see other people's family and belongings astray and ignore them. You shall not see other people's family and belongings fallen down by the way and ignore them. You shall help him to lift them up again.

To him who knows to do good and does not do it, has sinned.

"Because when [other] people are stuck in a ditch or make mistakes, that's when who we really are that actually comes out."

"Everyone falls every now and then. They might lose their job, have a marriage problem, or might even fall into sin. We are never to hide from our brother. We are to do just the opposite. We are to extend our hand and reach out."

"What do we tend to do when we discover someone has sinned or is struggling in their walk?"

Do not judge so you will not be judged, as you will be judged the same with the same measure. And why do you look at the frailties of others, but do not consider the sins you are committing? You condescend to point out the frailties of others while you deny yourself of your grave sins. First restore yourself from your sins, and then you will know better on how to help others restore from their frailties.

Show your faith with deeds. Even the demons believe and are afraid of God. A person is considered righteous by what they do and not by faith alone.


"If we are to judge [original translation: 'to make final verdict as both judge and executioner'], we must be in a position to judge, meaning we must know all the facts, must hear both sides, and must have been given the authority [from the Bible] to do something with the judgment. A judgment rendered by a person not in authority [from the Bible] is a foolish one because the one judging takes the risk of being judged by God in the exact same way but carries no reward whatsoever. Who would do that? Only a fool."
- The original context of this being translated in English is to be "both a judge and executioner", not only the English meaning of "judging". Understand the context here.

"That means we are not allowed to judge ourselves either. How many of us beat ourselves up over something we're going through, blaming ourselves, hating ourselves even? We are not allowed to judge even ourselves."

"If Korah was alive today and had all the counsel of God on the matter, he would have known that he should have gone to Moses privately with his concerns. If Moses did not take his advice, but continued to operate the way he believed was best and Korah did not like it, Korah was to leave. Talking behind his back and mounting [others to think and act against Moses] caused him and his followers to be swallowed by the earth."

"If a believer discovered that their friend was stealing from their employer and the company policy said that if you find such a person, you need to swiftly bring them to justice or you will be fired, what would you do? According to the law of God, you are to go directly to them FIRST and in PRIVATE and try to get them to see their sin and make it right. God's law always trumps man's law. Our motive is not to turn our brother in, even if he is found in sin. Our motive is to restore our brother and elevate him spiritually."

The Greek context of the word AMEN is 'I believe', 'so be it', or 'I affirm'. The Biblical origin of AMEN is meant to be translated to English as 'I accept and obey' or 'I prove my faith'. In Greek, believing is just accepting but not obeying...which is how we got the context wrong because we translated from Greek meaning instead of the original Biblical meaning, which is the same with demons who accept God exists, because of the fact that they actually do know His existence because of their fathers [who used to dwell with God], but is still evil by nature.

The Pharisees are called hypocrites because they say something but do another. Also, the Pharisees added man's laws into God's laws that consequently made it very difficult to follow God's laws. Anyone who makes someone turn away from God, either intentionally or unintentionally, is awaiting harsh judgement.


"Let me illustrate how far we've fallen from actually following the Law on this level."

"When you think of a prostitute, what kind of feelings or thoughts come up? Disgust? It's sin? An abomination? Those are not the thoughts our Lord and Savior thought. His thoughts were ones of compassion and great sorrow. He might have thought to Himself, 'It breaks my heart to see that young woman doing that. I wonder what terrible thing happened in her life that set her on that path? I wonder if she was molested by a family member or raped as a young girl? I wonder if she's homeless and feels there's no other way to make money to eat? Or worse yet, maybe she was forced at an early age by sinful men to do such things and has been threatened that if she even thinks of leaving, she will be killed.' I believe that at that moment Yeshua would have prayed for her. This, my friends, is separating the sin from the sinner."

"Religion judges and condemns people that have fallen on the road and are in the ditch. Love reaches out a hand to help them back up. The religious hide from their neighbor. Those filled with the love of God understand that 'we all have sinned and have fallen short of the glory of God' (Romans 3:23) and that 'the wages of sin is death' for all of us (Romans 6:23).

We lost our chance to immortality, and we will all have our first death, because of our sins and the sin that originated from our great grandfather. And we will all experience sadness, pain, and suffering, because of the corruption that were brought to us by angels aligned with the adversary. Sin (breaking the Law of God) causes death. Corruption causes pain and suffering.

There are no stones to throw for those who understand the power of the Law in the life of every believer. The written Law may be forced to point out sin, but the LIVING Word that was made flesh, the One we're supposed to emulate, points the way out! And He needs real people to do it.

"My friends, this is how we 'love our neighbor as ourselves.' We reach out our hand when someone has lost their way. We go the extra mile when we see an opportunity to love instead of judge. When someone is cranky and says something mean, this passage says that that person has just fallen on the road and needs a bit of help. Instead of letting them get to you, why not try to get them to smile? Why not say to them, 'I can see that you're having a rough day. I've been there, man. Is there anything I can pray about for you?' If hurt people hurt people, why not defer to the possibility that if they're hurting you, it's because they've probably been hurt themselves?"

"If you are on the outside looking in and you see a brother or sister that is going through the fiery furnace, you can play the role of Yeshua and decide to love them enough to get in the fire with them to make sure that they make it through without being singed. Real brotherly love is to help them and pray with them to pass the test!"


Can you think of any common sinful traits that you have that your ancestors also struggled with? How have you dealt with them? Have you renounced that trait from your bloodline and taken steps to repeal the power of the adversary over you and your family in that area? If not, I encourage you to do so.

"No one ever questioned Moses’ authority while everything was going well, but the second he was surrounded by controversy and the giants were before them with what appeared to be no way out, everyone and their brother started to question whether Moses was actually still fit to lead. Instead of basing their decision on the fact that it was Yahweh that put Moses in charge of His people, they based their decisions on circumstance, logic, and man's constant self-motivated desire for control."


"Truth has a habit of standing on its own. It has time on its side and will choose the moment to reveal its reality."

Please bear in mind that these words are not my own. I am in no means a good man more so clean...most likely you are way better than I am. I too carry the chains of my sin, and is doing what I can to action the process of forgiving others, and thus to be forgiven myself. Truly, there are kind and selfless people in this world who painstakingly took most of their time and effort to learn and piece these together, in order to give sense and clarity to these topics that seemed impossible and illogical to do.

Thursday, July 27, 2017

Human Behavioral Patterns and Fundamentalism


"Once you have understood what forgiveness truly is according to the Bible, all of the Ten Commandments will perfectly and logically align with each other, and everything will make sense, especially the meaning of 'love' in 'love your enemy'."


Analysing recurring patterns are very important when observing people. Once you put those patterns down to their fundamentalist behaviours that will never change, you get to predict the next steps that person will most likely do. Fundamentalists rarely, if ever, will go outside of their behaviour.



For example, in a fictional story Les Misérables that mirrors the society and specific human behaviours, you will never expect a person like Javert to do something that Val jean will do. Javert's upbringing and fundamentalist thinking "boxed" him into a specific predictability. Val jean, on the other hand, is a counter-fundamentalist so to speak: always questions his actions if he is right, always reflects what could have been done otherwise, always checks his conscience, always strives to right what was done wrong. In this way, Val jean is changing and cannot be "boxed" into a fundamental set of behaviours.

The original meaning of a "lie" is "vain words spoken to deceive, cause failure or disappoint. What does not function within its intended capacity". A spring that does not flow is a "lying" spring because it does not function properly. One who gives vain words is a "liar" and one who causes disappointment in another through his words is also a "liar". If God had said, "Why did Sarah laugh, and say, `Shall I indeed bear a child, when my husband is old?'" then God might have instigated an argument between Sarah and Abraham. So he said that Sarah was "old" and he ignored the fact that she said that her husband was "old." Our Western mindset makes us think that God "lied" to Abraham, but in fact, He did not "deceive" (original: "to cause damage for personal gain") nor disappointed Abraham, and He did function within His intentions as He is a God of love and never intends to bring harm.



I used to think when I was in college that the song "Stars" upheld the law and justice of the heaven. It took me years listening to numerous versions of the music, and eventually the movie musical, to refine my observations and realize that such a song is the embodiment of fundamentalism. And as with Javert, with all the wrong interpretations of heavenly punishment, one can later realize that every single justice that was done was not punishment, but rather an act of kindness and consolation to the people who have sinned yet continues to struggle to right their wrong. Thus bringing to the truth that God truly loves his people, and the extent of sacrifice and restraint he has done is too immense to put in human words. Only in the last days man will be judged.

We have been brought up in a culture that "forgiving" is synonymous to "forgetting", while totally ignoring the fact that forgiveness is giving the chance for the sinner to pay for his sins, and for the trespassed to take the "effort" to ask the sinner to pay...in other words, to show love to the sinner because you are giving the chance for the sinner to be forgiven. I'll expound on this realization in a different article to avoid going off on a tangent, but suffice it to say: once you have understood what forgiveness truly is according to the Bible, all of the Ten Commandments will perfectly and logically align with each other, and everything will make sense, especially the meaning of "love" in "love your enemy". The forgiving will truly understand what forgiveness is, and will be able to sleep well at night knowing that the commandments all makes perfect sense. You will never be forgiven for your own sins if you don't give others the opportunity to be forgiven. And with what Val jean had done in his life, his sin of stealing is not really a sin if you only look at the context, unlike what Javert fundamentally thought of.



What I'm trying to put forward here is that there is a way to know good people to the core, and to separate them from vindictive people, by knowing their fundamentalist ideals and thus their predictable patterns of behaviour.

My next article will be about how to forgive; however, please bear in mind that these words are not my own. I am in no means a good man more so clean...most likely you are way better than I am. I too carry the chains of my sin, and is doing what I can to action the process of forgiving others, and thus to be forgiven myself. Truly, there are kind and selfless people in this world who painstakingly took most of their time and effort to learn and piece these together, in order to give sense and clarity to these topics that seemed impossible and illogical to do.



Although my article is not meant to be denominational, one good observation of Javert can also be found in this article.

Monday, January 16, 2017

SharePoint Server 2016 Dev/Test Environment in Azure

Original Article Summary: Create a single-server SharePoint 2016 dev/test farm in Microsoft Azure infrastructure services.

The purpose of this blog is to help you avoid copy-pasting each and every code snippet in the original article, and to facilitate a single script flow of commands. Hopefully this will cut down your time in accomplishing the tasks. I've added some codes and comments as necessary that may help you navigate the article and resolve some of the possible issues you may encounter.



### Follow: https://technet.microsoft.com/library/mt723354(v=office.16).aspx ###

##AD VM##

# Bypass proxy
[System.Net.WebRequest]::DefaultWebProxy.Credentials = [System.Net.CredentialCache]::DefaultCredentials
Login-AzureRMAccount

# Select subscription
$subsopt = Get-AzureRMSubscription | Sort SubscriptionName | Select SubscriptionName
$subscr=$subsopt[1].SubscriptionName #change index to selection
Get-AzureRmSubscription -SubscriptionName $subscr | Select-AzureRmSubscription

# Create resource group
Get-AzureRMResourceGroup | Sort ResourceGroupName | Select ResourceGroupName
$rgName="DEVRESGRP0" #change name to unique
$locName="Southeast Asia" #change to available location
New-AzureRMResourceGroup -Name $rgName -Location $locName

# Create storage account
Get-AzureRMStorageAccount | Sort StorageAccountName | Select StorageAccountName
Get-AzureRmStorageAccountNameAvailability "devstore20"  #change name to unique, lowercase
$saName="devstore20"
New-AzureRMStorageAccount -Name $saName -ResourceGroupName $rgName -Type Standard_LRS -Location $locName

# Create virtual network, subnet, and security group
$locShortName="southeastasia" #get this from translated $locName
$spSubnet=New-AzureRMVirtualNetworkSubnetConfig -Name SP2016Subnet -AddressPrefix 10.0.0.0/24
New-AzureRMVirtualNetwork -Name SP2016Vnet -ResourceGroupName $rgName -Location $locName -AddressPrefix 10.0.0.0/16 -Subnet $spSubnet -DNSServer 10.0.0.4
$rule1=New-AzureRMNetworkSecurityRuleConfig -Name "RDPTraffic" -Description "Allow RDP to all VMs on the subnet" -Access Allow -Protocol Tcp -Direction Inbound -Priority 100 -SourceAddressPrefix Internet -SourcePortRange * -DestinationAddressPrefix * -DestinationPortRange 3389
$rule2 = New-AzureRMNetworkSecurityRuleConfig -Name "WebTraffic" -Description "Allow HTTP to the SharePoint server" -Access Allow -Protocol Tcp -Direction Inbound -Priority 101 -SourceAddressPrefix Internet -SourcePortRange * -DestinationAddressPrefix "10.0.0.6/32" -DestinationPortRange 80
New-AzureRMNetworkSecurityGroup -Name SP2016Subnet -ResourceGroupName $rgName -Location $locShortName -SecurityRules $rule1, $rule2
$vnet=Get-AzureRMVirtualNetwork -ResourceGroupName $rgName -Name SP2016Vnet
$nsg=Get-AzureRMNetworkSecurityGroup -Name SP2016Subnet -ResourceGroupName $rgName
Set-AzureRMVirtualNetworkSubnetConfig -VirtualNetwork $vnet -Name SP2016Subnet -AddressPrefix "10.0.0.0/24" -NetworkSecurityGroup $nsg

# Get the Azure storage account name
$sa=Get-AzureRMStorageaccount | where {$_.ResourceGroupName -eq $rgName}
$saName=$sa.StorageAccountName

# Create an availability set for domain controller virtual machines
New-AzureRMAvailabilitySet -Name dcAvailabilitySet -ResourceGroupName $rgName -Location $locName

# Create the domain controller virtual machine
$vnet=Get-AzureRMVirtualNetwork -Name SP2016Vnet -ResourceGroupName $rgName
$pip = New-AzureRMPublicIpAddress -Name adVM-NIC -ResourceGroupName $rgName -Location $locName -AllocationMethod Dynamic
$nic = New-AzureRMNetworkInterface -Name adVM-NIC -ResourceGroupName $rgName -Location $locName -SubnetId $vnet.Subnets[0].Id -PublicIpAddressId $pip.Id -PrivateIpAddress 10.0.0.4

$avSet=Get-AzureRMAvailabilitySet -Name dcAvailabilitySet -ResourceGroupName $rgName
$vm=New-AzureRMVMConfig -VMName adVM -VMSize Standard_D1_v2 -AvailabilitySetId $avSet.Id

$storageAcc=Get-AzureRMStorageAccount -ResourceGroupName $rgName -Name $saName
$vhdURI=$storageAcc.PrimaryEndpoints.Blob.ToString() + "vhds/adVM-SP2016Vnet-ADDSDisk.vhd"
Add-AzureRMVMDataDisk -VM $vm -Name ADDS-Data -DiskSizeInGB 20 -VhdUri $vhdURI  -CreateOption empty
$cred=Get-Credential -Message "Type the name and password of the local administrator account for adVM."

$vm=Set-AzureRMVMOperatingSystem -VM $vm -Windows -ComputerName adVM -Credential $cred -ProvisionVMAgent -EnableAutoUpdate
$vm=Set-AzureRMVMSourceImage -VM $vm -PublisherName MicrosoftWindowsServer -Offer WindowsServer -Skus 2012-R2-Datacenter -Version "latest"
$vm=Add-AzureRMVMNetworkInterface -VM $vm -Id $nic.Id
$osDiskUri=$storageAcc.PrimaryEndpoints.Blob.ToString() + "vhds/adVM-SP2016Vnet-OSDisk.vhd"
$vm=Set-AzureRMVMOSDisk -VM $vm -Name adVM-SP2016Vnet-OSDisk -VhdUri $osDiskUri -CreateOption fromImage
New-AzureRMVM -ResourceGroupName $rgName -Location $locName -VM $vm -DisableBginfoExtension

# Before: adVM\devadmin

# adVM Server:
Install-WindowsFeature AD-Domain-Services -IncludeManagementTools
Install-ADDSForest -DomainName corp.contoso.com -DatabasePath "F:\NTDS" -SysvolPath "F:\SYSVOL" -LogPath "F:\Logs"

# After adVM installation of domain controller and DNS server: CORP\devadmin

# adVM Server:
Add-WindowsFeature RSAT-ADDS-Tools
New-ADUser -SamAccountName sp_farm_db -AccountPassword (read-host "Set user password" -assecurestring) -name "sp_farm_db" -enabled $true -PasswordNeverExpires $true -ChangePasswordAtLogon $false

##SQL VM##

# Log in to Azure
Login-AzureRmAccount

# Set up key variables
$subscrName=$subscr
$dnsName="devsql"

# Set the Azure subscription
Get-AzureRmSubscription -SubscriptionName $subscrName | Select-AzureRmSubscription

# Get the Azure storage account name
$sa=Get-AzureRMStorageaccount | where {$_.ResourceGroupName -eq $rgName}
$saName=$sa.StorageAccountName

# Create an availability set for SQL Server virtual machines
New-AzureRMAvailabilitySet -Name sqlAvailabilitySet -ResourceGroupName $rgName -Location $locName

# Create the SQL Server virtual machine
$vmName="sqlVM"
$vmSize="Standard_D3_V2"
$vnet=Get-AzureRMVirtualNetwork -Name "SP2016Vnet" -ResourceGroupName $rgName

$nicName=$vmName + "-NIC"
$pipName=$vmName + "-PublicIP"
$pip=New-AzureRMPublicIpAddress -Name $pipName -ResourceGroupName $rgName -DomainNameLabel $dnsName -Location $locName -AllocationMethod Dynamic
$nic=New-AzureRMNetworkInterface -Name $nicName -ResourceGroupName $rgName -Location $locName -SubnetId $vnet.Subnets[0].Id -PublicIpAddressId $pip.Id -PrivateIpAddress "10.0.0.5"
$avSet=Get-AzureRMAvailabilitySet -Name sqlAvailabilitySet -ResourceGroupName $rgName
$vm=New-AzureRMVMConfig -VMName $vmName -VMSize $vmSize -AvailabilitySetId $avSet.Id

$diskSize=100
$diskLabel="SQLData"
$storageAcc=Get-AzureRMStorageAccount -ResourceGroupName $rgName -Name $saName
$vhdURI=$storageAcc.PrimaryEndpoints.Blob.ToString() + "vhds/" + $vmName + "-SQLDataDisk.vhd"
Add-AzureRMVMDataDisk -VM $vm -Name $diskLabel -DiskSizeInGB $diskSize -VhdUri $vhdURI  -CreateOption empty

$cred=Get-Credential -Message "Type the name and password of the local administrator account of the SQL Server computer."
$vm=Set-AzureRMVMOperatingSystem -VM $vm -Windows -ComputerName $vmName -Credential $cred -ProvisionVMAgent -EnableAutoUpdate
$vm=Set-AzureRMVMSourceImage -VM $vm -PublisherName MicrosoftSQLServer -Offer SQL2014SP1-WS2012R2 -Skus Standard -Version "latest"
$vm=Add-AzureRMVMNetworkInterface -VM $vm -Id $nic.Id
$storageAcc=Get-AzureRMStorageAccount -ResourceGroupName $rgName -Name $saName
$osDiskUri=$storageAcc.PrimaryEndpoints.Blob.ToString() + "vhds/" + $vmName + "-OSDisk.vhd"
$vm=Set-AzureRMVMOSDisk -VM $vm -Name "OSDisk" -VhdUri $osDiskUri -CreateOption fromImage
New-AzureRMVM -ResourceGroupName $rgName -Location $locName -VM $vm -DisableBginfoExtension

# Connect: sqlVM\devsqladmin

# sqlVM Server:
Add-Computer -DomainName "corp.contoso.com" #CORP\devadmin
Restart-Computer

# Reconnect: sqlVM\devsqladmin

# sqlVM Server:

md f:\Data
md f:\Log
md f:\Backup

# CORP\devadmin

New-NetFirewallRule -DisplayName "SQL Server ports 1433, 1434, and 5022" -Direction Inbound -Protocol TCP -LocalPort 1433,1434,5022 -Action Allow # IMPORTANT

## SP2016 ##

# Set up key variables
$dnsName="devsp2016"

# Set the Azure subscription
Get-AzureRmSubscription -SubscriptionName $subscrName | Select-AzureRmSubscription

# Get the Azure storage account name
$sa=Get-AzureRMStorageaccount | where {$_.ResourceGroupName -eq $rgName}
$saName=$sa.StorageAccountName

# Create an availability set for SharePoint virtual machines
New-AzureRMAvailabilitySet -Name spAvailabilitySet -ResourceGroupName $rgName -Location $locName

# Specify the virtual machine name and size
$vmName="spVM"
$vmSize="Standard_D3_V2"
$vm=New-AzureRMVMConfig -VMName $vmName -VMSize $vmSize

# Create the NIC for the virtual machine
$nicName=$vmName + "-NIC"
$pipName=$vmName + "-PublicIP"
$pip=New-AzureRMPublicIpAddress -Name $pipName -ResourceGroupName $rgName -DomainNameLabel $dnsName -Location $locName -AllocationMethod Dynamic
$vnet=Get-AzureRMVirtualNetwork -Name "SP2016Vnet" -ResourceGroupName $rgName
$nic=New-AzureRMNetworkInterface -Name $nicName -ResourceGroupName $rgName -Location $locName -SubnetId $vnet.Subnets[0].Id -PublicIpAddressId $pip.Id -PrivateIpAddress "10.0.0.6"
$avSet=Get-AzureRMAvailabilitySet -Name spAvailabilitySet -ResourceGroupName $rgName
$vm=New-AzureRMVMConfig -VMName $vmName -VMSize $vmSize -AvailabilitySetId $avSet.Id

# Specify the image and local administrator account, and then add the NIC
$pubName="MicrosoftSharePoint"
$offerName="MicrosoftSharePointServer"
$skuName="2016"
$cred=Get-Credential -Message "Type the name and password of the local administrator account."
$vm=Set-AzureRMVMOperatingSystem -VM $vm -Windows -ComputerName $vmName -Credential $cred -ProvisionVMAgent -EnableAutoUpdate
$vm=Set-AzureRMVMSourceImage -VM $vm -PublisherName $pubName -Offer $offerName -Skus $skuName -Version "latest"
$vm=Add-AzureRMVMNetworkInterface -VM $vm -Id $nic.Id

# Specify the OS disk name and create the VM
$diskName="OSDisk"
$storageAcc=Get-AzureRMStorageAccount -ResourceGroupName $rgName -Name $saName
$osDiskUri=$storageAcc.PrimaryEndpoints.Blob.ToString() + "vhds/" + $vmName + $diskName  + ".vhd"
$vm=Set-AzureRMVMOSDisk -VM $vm -Name $diskName -VhdUri $osDiskUri -CreateOption fromImage
New-AzureRMVM -ResourceGroupName $rgName -Location $locName -VM $vm -DisableBginfoExtension

# Connect to SP2016: spVM\devspadmin

# SP2016 Server:
Add-Computer -DomainName "corp.contoso.com" # CORP\devadmin
Restart-Computer

# Connect to SP2016: CORP\devadmin

# Aletrnate access mapping (Public IP)
$pip = Get-AzureRMPublicIpaddress -Name "spVM-PublicIP" -ResourceGroup $rgName
$pip.DnsSettings.Fqdn # Note the dns name

# Public Site: http://devsp2016.southeastasia.cloudapp.azure.com
# http://devsp2016.southeastasia.cloudapp.azure.com/_layouts/15/start.aspx#/SitePages/Home.aspx

## Post-Setup ##

#Stop VMs
Stop-AzureRMVM -Name spVM -ResourceGroupName $rgName -Force
Stop-AzureRMVM -Name sqlVM -ResourceGroupName $rgName -Force
Stop-AzureRMVM -Name adVM -ResourceGroupName $rgName -Force

#Start VMs
Start-AzureRMVM -Name adVM -ResourceGroupName $rgName
Start-AzureRMVM -Name sqlVM -ResourceGroupName $rgName
Start-AzureRMVM -Name spVM -ResourceGroupName $rgName




Credit goes to source article: https://technet.microsoft.com/library/mt723354(v=office.16).aspx