When you install Azure Pack you need to add a cloud and userole on each VM.
Manually this is a boring click job..
PowerShell makes this a lot easier, first change the cloud and then the user role:
1 2 3 4 |
Import-Module virtualmachinemanager $VMs = Get-VM | where { $_.Name -Match 'SQL' } $SSRole = Get-SCUserRole -Name "USERROLE" $VMs | foreach Name | set-scvirtualmachine -Owner "OWNER" -UserRole $SSRole |
1 2 3 4 |
Import-Module virtualmachinemanager $VMs = Get-VM | where { $_.Name -Match 'SQL' } $Cloud = get-sccloud -Name "NAME" $VMs | foreach Name | set-scvirtualmachine -Cloud $Cloud |