Sunday, December 16, 2012

On Sunday, December 16, 2012 by Test   No comments
  1. Run the following cmdlet:
    Import-Module 'C:\Program Files (x86)\Microsoft SDKs\Windows Azure\PowerShell\Azure\Azure.psd1'
  2. Run the following cmdlet:
    Get-AzurePublishSettingsFile
    You will be prompted to sign on to the Windows Azure portal and then prompted to save a .publishsettings file. Save the file in a directory, for example, E:\PowerShell\MyAccount.publishsettings. To subsequently run any other Windows Azure PowerShell cmdlets, steps 4 through 6 do not need to be repeated because they only need to be completed once.
  3. Run the following cmdlet to open Windows Azure PowerShell ISE:
    powershell ise
  4. Paste the following script into Windows Azure PowerShell ISE, replacing the placeholders (such as subscriptionname) with your own values, and the run the script. If necessary, click Networks in the Management Portal to obtain the subscription name. The storage account name is the name you specified in step 1. The image name used in following script installs Windows Server 2008 R2 with Service Pack 1 (SP1), but the image names are updated periodically. To get a list of currently available images, run Get-AzureVMImage. You can install Windows Server 2012, but be aware that the virtualized domain controller safeguards that are built into Windows Server 2012 are not available on Windows Azure Virtual Networks. The virtualized domain controller safeguards require support for VM-GenerationID, which Windows Azure Virtual Networks do not provide at the present time. For more information about virtualized domain controller safeguards, see Introduction to Active Directory Domain Services (AD DS) Virtualization (Level 100).

0 comments:

Post a Comment