You are on page 1of 2

Add-AzureAccount

Select-AzureSubscription

Visual Studio Professional with MSDN


Visual Studio Enterprise

Check the Service Names for vms:

Get-AzureService |fl ServiceName

Set Reserved DNS:

Set-AzureService �ServiceName "OBProdMailAPI7321" �Description "Reverse DNS"


�ReverseDnsFqdn "mail.rigaps.com."

Set-AzureService �ServiceName "OBProdMailAPI7321" �Description "Reverse DNS"


�ReverseDnsFqdn "mail.onblick.com."

Set-AzureService �ServiceName "onblicksmtpqa" �Description "Reverse DNS"


�ReverseDnsFqdn "qamail.onblick.com."

Set-AzureService �ServiceName "onblicksmtp1" �Description "Reverse DNS"


�ReverseDnsFqdn "uksmtp.onblick.com."

Reserved IP

New-AzureReservedIP �ReservedIPName uksmtp -Location "East US" -ServiceName


uksmtp8626

Login-AzureRMAccount

Select-AzureRmSubscription -SubscriptionId 1875734c-0efc-47e7-85bd-accfca796b70

Get-AzureRmPublicIpAddress -ResourceGroupName Dev-Env -Name smtp-ip

New-AzureRmPublicIpAddress -ReverseFqdn smtp.riglogs.tk -ResourceGroupName Dev-Env


-Name smtp-ip -Location "eastus" -AllocationMethod Static -DomainNameLabel
riglogsrdns

New-AzureRmPublicIpAddress -ReverseFqdn focus1.focuslyte.com -ResourceGroupName


focussmtp -Name focus1-ip -Location "southindia" -AllocationMethod Static
-DomainNameLabel focusrdns

$pip = Get-AzureRmPublicIpAddress -ResourceGroupName Dev-Env -Name smtp-ip


$pip.DnsSettings.ReverseFqdn = 'smtp.riglogs.tk.'
Set-AzureRmPublicIpAddress -PublicIpAddress $pip

Commands on Powershell as admin:

Set-ExecutionPolicy RemoteSigned

Install-Module AzureRM

Import-Module AzureRM

Login-AzureRmAccount

Get-AzureRmSubscription

Select-AzureRmSubscription -SubscriptionId ID_HERE

Get-AzureRmPublicIpAddress -ResourceGroupName RESOURCE_GROUP-NAME_HERE -Name


IP_NAME_HERE

New-AzureRmPublicIpAddress -ReverseFqdn yourdomain.com -ResourceGroupName


YOUR_RES_GROUP_NAME_HERE
-Name YOUR_PUBLIC_IP_NAME_HERE -Location "LOCATION_HERE" -AllocationMethod Static
-DomainNameLabel YOUR_LABEL
--------------------------------------------------------------------------------
No copyright music used in this video:
No-Copyright-Music-Smells-Like-Summer-Del
Krys Talk - Fly Away (Mendum Remix)
Disfigure - Blank VIP (feat. Tara Louise)
Cartoon - Immortality (feat. Kristel Aaslaid) [Futuristik Remix]

You might also like