Help: SQL Server

Sharing my knowlege about SQL Server Troubleshooting Skills

  • Blog Stats

    • 2,050,858 hits
  • Select GETDATE()

    July 2015
    M T W T F S S
     12345
    6789101112
    13141516171819
    20212223242526
    2728293031  

Help : Get-AzureVM – WARNING: No deployment found in service: ‘domainctrler’.

Posted by blakhani on July 9, 2015


As a part of my role, I also assist customers in getting their issue fixed on Microsoft Azure environment as well. Sometime to reproduce the error, I also need to create replica of their environment. In one of such deployment, while create domain controller, one of the step was to set static internal IP for domain controller. Here is the command which I ran.

PS C:\> Get-AzureVM -ServiceName domainctrler -Name MyAzureDC1 | Set-AzureStaticVNetIP -IPAddress 10.0.0.4 | Update-AzureVM

and I was welcomed with below message.

WARNING: No deployment found in service: ‘domainctrler’.

PS-01

While researching, I realized that I recently added another subscription to my account and now I have two subscriptions associated with my login. You can confirm that using below command

Get-AzureSubscription | Select SubscriptionName

PS-02

To switch to a different subscription, I used

Select-AzureSubscription -SubscriptionName "Your-Desired-Subscription-Name-Here"

… and after that whole world was so beautiful because I was able to execute the command which I needed. To avoid this in future, I have changed my login default to the one which I would be using frequently.

Select-AzureSubscription -SubscriptionName "Your-Default-Subscription-Name-Here" –default

In summary, if you have multiple subscription then you might face the error. You can either switch “current” subscription or set most used one as “default” using Set-AzureSubscription command.

  • Cheers,
  • Balmukund Lakhani
  • Twitter @blakhani
  • Author: SQL Server 2012 AlwaysOnPaperback, Kindle
  • Advertisement

    5 Responses to “Help : Get-AzureVM – WARNING: No deployment found in service: ‘domainctrler’.”

    1. Morgan said

      Thanks!

    2. Mathijs said

      Hi, I have same error message “No deployment found in service [myservicename]. However, I have only 1 Subscriptionname .

      So, basically I have same error, but the fix you suggested doesnt help me..

      Do you have another tip for me?

    3. Aleksandr said

      Thank you for this. I did not understand what the problem was. It was in wrong subscription. Thanks!!!

    4. pantsesnyi said

      Thanks! I did not understand what the problem was. It was in wrong default subscription. Thank you for your tip!!!

    5. Amogh Natu said

      I still get the same message.

    Leave a Reply

    Fill in your details below or click an icon to log in:

    WordPress.com Logo

    You are commenting using your WordPress.com account. Log Out /  Change )

    Facebook photo

    You are commenting using your Facebook account. Log Out /  Change )

    Connecting to %s

    This site uses Akismet to reduce spam. Learn how your comment data is processed.

     
    %d bloggers like this: