Skip to content

Instantly share code, notes, and snippets.

@dbjpanda
Last active November 15, 2019 06:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dbjpanda/31c3f6dc75967fe9b633bf216a55f8a5 to your computer and use it in GitHub Desktop.
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
$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