Last active
November 15, 2019 06:35
-
-
Save dbjpanda/31c3f6dc75967fe9b633bf216a55f8a5 to your computer and use it in GitHub Desktop.
Domain transfer from other registrar to Azure . Copy below snippets and paste it on Azure Cloud Shell here https://shell.azure.com/?prompt=True
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ResourceLocation = "Global" | |
$ResourceName = "outingbay.com" #user's domain (constoso.com) | |
$ResourceGroupName = "outingbay" # This should be an existing resource group in your Azure subscription | |
$PropertiesObject = @{ | |
'Consent' = @{ | |
'AgreementKeys' = @("DNPA","DNTA"); | |
'AgreedBy' = '10.5.50.11'; #user's IP address (192.168.1.1) | |
'AgreedAt' = '2019-11-15 10:17:42Z'; #roughly the current time (2017-13-05T12:25:30.6850404Z) | |
}; | |
'authCode' = '<The code you received from other registrar>'; #code obtained from their current provider in order to transfer out the domain | |
'Privacy' = 'true'; | |
'autoRenew' = 'true'; | |
} | |
New-AzureRmResource -ResourceName $ResourceName -Location $ResourceLocation -PropertyObject $PropertiesObject -ResourceGroupName $ResourceGroupName -ResourceType Microsoft.DomainRegistration/domains -ApiVersion 2015-02-01 -Verbose |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment