none
"Provisioning a Virtual Machine that is Domain Joined on Boot" RRS feed

  • 질문

  • Dear Engineer,

    Ref.URL : http://www.windowsazure.com/en-us/manage/services/networking/active-directory-forest/

    i have installed active directory and dns to my windows 2008 r2 vm.

    and last step, i need deploy script to azure vm using powershell on local.

    but i don't know some element means.

    what means is this element ?

    =========================================================
    [ this script have written by ref.url. ]

    # # Point to IP Address of Domain Controller Created Earlier 
    $dns1 = New-AzureDns -Name 'dc-name' -IPAddress 'IP ADDRESS'

    # Configuring VM to Automatically Join Domain
    $advm1 = New-AzureVMConfig -Name 'advm1' -InstanceSize Small -ImageName
    $imgname | Add-AzureProvisioningConfig -WindowsDomain -Password '[YOUR-PASSWORD]' ` -Domain 'contoso' -DomainPassword '[YOUR-PASSWORD]' ` -DomainUserName 'administrator' -JoinDomain 'contoso.com' | Set-AzureSubnet -SubnetNames 'AppSubnet'

    # New Cloud Service with VNET and DNS settings
    New-AzureVM –ServiceName 'someuniqueappname' -AffinityGroup 'adag' ` -VMs $advm1 -DnsSettings $dns1 -VNetName 'ADVNET'

    =========================================================
    [ this is my Question. ]

    this is pre-information about my vm configuration.

    my domain in VM is 'hjpoc.localwinsvr.com'
    just one vm have installed active directory that is windows 2008 r2 server.

    1. 'dc-name' : if Active directory installed to vm that means 'Host Name' in this VM?
    2. 'IP ADDRESS' : i think this ip address is Internal IP Address about VM that have installed DC.
    3.  'advm1' : what means is this?
    4. $imagename line how can i written ?

    i think it have three option.

    First, Add-AzureProvisioningConfig -WindowsDomain -Password '[YOUR-PASSWORD]'
    Second, ` -Domain 'contoso' -DomainPassword '[YOUR-PASSWORD]' ` -DomainUserName 'administrator' -JoinDomain 'contoso.com'
    Third, Set-AzureSubnet -SubnetNames 'AppSubnet'

    I want just Provisioning a Virtual Machine that is Domain Joined on Boot.

    5. if i just use vm, then"# New Cloud Service with VNET and DNS settings" line is not necessity? or need more setting ?

    Regards,

    2012년 9월 18일 화요일 오전 8:29

답변

  • Hello, MahoMay.

    1 & 2. New-AzureDns cmdlet enables you to register single or triple A record (A/AAA) in internal Azure DNS server. In above example, dc-name is canonical domain controller hostname and IPAddress is domain controller's IPv4 address.
    Reference: http://msdn.microsoft.com/en-us/library/windowsazure/jj152856.aspx

    3. New-AzureVMConfig's -Name switch takes new computer's identifier. So you can go with your unique host name in this parameter.
    Reference: http://msdn.microsoft.com/en-us/library/windowsazure/jj152883.aspx

    4. Sorry. I'm not sure about your question. In above example, there are three steps to configuring relationships and setup networking profiles to new VM. Also, you can select a valid parameter set whether your new computer joins dc or not.

    Parameter Set: Windows
    Add-AzureProvisioningConfig -VM <IPersistentVM> -Windows [-Certificates <CertificateSettingList> ] [-DisableAutomaticUpdates] [-NoRDPEndpoint] [-Password <String> ] [-ResetPasswordOnFirstLogon] [-TimeZone <String> ] [ <CommonParameters>]

    Parameter Set: WindowsDomain
    Add-AzureProvisioningConfig -Domain <String> -DomainPassword <String> -DomainUserName <String> -JoinDomain <String> -VM <IPersistentVM> -WindowsDomain [-Certificates <CertificateSettingList> ] [-DisableAutomaticUpdates] [-MachineObjectOU <String> ] [-NoRDPEndpoint] [-Password <String> ] [-ResetPasswordOnFirstLogon] [-TimeZone <String> ] [ <CommonParameters>]

    Reference: http://msdn.microsoft.com/en-us/library/windowsazure/jj152870.aspx

    5. If you want to create a new virtual machine with no-linkage from existing virtual network. I think it is up to your decision.

    Thank you.


    남정현 (rkttu@rkttu.com) - Windows Azure Cafe SYSOP - http://cafe.naver.com/wazure | DEVPIA C# Forum SYSOP - http://www.devpia.com/CSharp.MAEUL | ContentStory (http://www.ineat.co.kr)

    • 답변으로 표시됨 MahoMay 2012년 9월 18일 화요일 오후 10:47
    2012년 9월 18일 화요일 오후 1:49
    중재자

모든 응답

  • Hello, MahoMay.

    1 & 2. New-AzureDns cmdlet enables you to register single or triple A record (A/AAA) in internal Azure DNS server. In above example, dc-name is canonical domain controller hostname and IPAddress is domain controller's IPv4 address.
    Reference: http://msdn.microsoft.com/en-us/library/windowsazure/jj152856.aspx

    3. New-AzureVMConfig's -Name switch takes new computer's identifier. So you can go with your unique host name in this parameter.
    Reference: http://msdn.microsoft.com/en-us/library/windowsazure/jj152883.aspx

    4. Sorry. I'm not sure about your question. In above example, there are three steps to configuring relationships and setup networking profiles to new VM. Also, you can select a valid parameter set whether your new computer joins dc or not.

    Parameter Set: Windows
    Add-AzureProvisioningConfig -VM <IPersistentVM> -Windows [-Certificates <CertificateSettingList> ] [-DisableAutomaticUpdates] [-NoRDPEndpoint] [-Password <String> ] [-ResetPasswordOnFirstLogon] [-TimeZone <String> ] [ <CommonParameters>]

    Parameter Set: WindowsDomain
    Add-AzureProvisioningConfig -Domain <String> -DomainPassword <String> -DomainUserName <String> -JoinDomain <String> -VM <IPersistentVM> -WindowsDomain [-Certificates <CertificateSettingList> ] [-DisableAutomaticUpdates] [-MachineObjectOU <String> ] [-NoRDPEndpoint] [-Password <String> ] [-ResetPasswordOnFirstLogon] [-TimeZone <String> ] [ <CommonParameters>]

    Reference: http://msdn.microsoft.com/en-us/library/windowsazure/jj152870.aspx

    5. If you want to create a new virtual machine with no-linkage from existing virtual network. I think it is up to your decision.

    Thank you.


    남정현 (rkttu@rkttu.com) - Windows Azure Cafe SYSOP - http://cafe.naver.com/wazure | DEVPIA C# Forum SYSOP - http://www.devpia.com/CSharp.MAEUL | ContentStory (http://www.ineat.co.kr)

    • 답변으로 표시됨 MahoMay 2012년 9월 18일 화요일 오후 10:47
    2012년 9월 18일 화요일 오후 1:49
    중재자
  • Dear Nam,

    thanks for your answer,

    Each time your answer was helped to me.

    Question No4 means,

    $imgname | Add-AzureProvisioningConfig -WindowsDomain -Password '[YOUR-PASSWORD]' ` -Domain 'contoso' -DomainPassword '[YOUR-PASSWORD]' ` -DomainUserName 'administrator' -JoinDomain 'contoso.com' | Set-AzureSubnet -SubnetNames 'AppSubnet'

    $imgname statement is Separation by fife ( '|' symbol ) , so i think this statement have three operations.

    First option is started by "Add-AzureProvisioningConfig" word
    Second option is started by "-Domain word"
    And Third option is started by "Set-AzureSubnet -SubnetNames" word

    but i want just my VM Provisioning that is Domain Joined on Boot.

    Regards,

     

    2012년 9월 18일 화요일 오후 10:54
  • Dear MahoMay,

    I figured out your question. You're right. The character '|' is kind of conjunction between each commands. I think you already understand that PowerShell's each cmdlet handles their own resultset or parameter everytime they run.

    In above example, just three commands are illustrated. But if you want to extend or customize your query, you can resemble your own cmdlet query. If you are not sure run some command, I recommend you to try some PowerShell based IDEs.

    Thank you.


    남정현 (rkttu@rkttu.com) - Windows Azure Cafe SYSOP - http://cafe.naver.com/wazure | DEVPIA C# Forum SYSOP - http://www.devpia.com/CSharp.MAEUL | ContentStory (http://www.ineat.co.kr)

    2012년 9월 19일 수요일 오전 12:53
    중재자