Connecting to Azure via local PowerShell [Windows 10]

So to make life more interesting we will try to manage our Azure resources via PowerShell, running on our local workstation with Windows 10 Pro.

Before going to the details, its nice ot have updated help, which is done by typing:

To connect to Azure, there are some basics steps, before typing

There are some modulels that need to be installed and in order to do so, the appropriate policy should be set on your local instance:

After that, some modules must be installed

Wait some time, after which you could import the modules:

After that, connecting to Azure is as simple as typing:

Then you will be prompted to enter your Azure credentials on a form like this:

And in the end you should get something looking like this displayed on your PowerShell CLI:

You can also test by typing:

Which will dislplay all resouces, available within the current env.

Connectivity overview for the lab

After some time spent installing, configuring, reading and rebooting, the lab is going quite well. Also, it might look like there are too many tools or too many solutions with overlapping capabilities, but its all in the name of lab testing :).

 

On the bellow diagram,  you could find the connectivity overview of the lab – inculind the on-premise secion and the two public clouds that will be integrated.

In future posts, there will be more info how to configure some of the components, for example the virtual router of MicroTik and so on.

Using VNC in Google Cloud

  1. Setup the firewall rules
    1. ingress rule for the inbound machine, port: tcp:5901-5910
    2. egress rule for the outbound machine, port: tcp:5901-5910
  2. Create the Linux instance:
    1. Choose the desirable config
    2. sudo apt-get update
    3. sudo apt-get install gnome-core
    4. sudo apt-get install vnc4server
    5. apply the network tag for the ingress rule
  3. Modify the vnc configuration on the Linux instance.
    1. vim .vnc/xstartup // as shown in the bottom of the post, credits to http://onkea.com/ubuntu-vnc-grey-screen/ for the config file
    2. :wq!
    3. sudo shutdown -r now
  4. On the other machine:
    1. apply the egress networking tag
    2. install vnc viewer of your choice
    3. connect to x.x.x.x:5901

Should work like a charm :).

Continue reading “Using VNC in Google Cloud”