Friday, November 25, 2016

Azure file share service

1. The Age of Cloud Share Services File Share Service Market Trends 
●  OpenStack  ->  Manila 
●  Microsoft  -> Azure Files  
●  Amazon Web Services -> Elastic File Services

Tuesday, November 22, 2016

Creating Virtual Machines

Connectivity:

Endpoints are defined access protocols that you can use to connect to the VM.
There are tricks that will let you access a VM if you messed up networking.


You will charged for VMs untill unless you deallocate it. Also, you will be charged for storage.
Login to check your bills based on services.

[7] Azure Virtual Networks - Part 1 (Exam 70-533)

  1. Virtual Networks - Part 1
  2.  Configure a virtual network
  3.  • Design subnets 
  4. • Deploy a VM into a virtual network 
  5. • Deploy a cloud service into a virtual network 
  6. • Configure static IPs 
  7. • Configure internal load balancing 

  8. Modify a network configuration 
  9. • Modify a subnet 
  10. • Import and export a network configuration 

  11. Design and implement a multi-site or hybrid network 
  12. • Choose the appropriate solution between ExpressRoute, site-to-site, and point-to-site 
  13. • Choose the appropriate gateway 
  14. • Identify supported devices and software VPN solutions 
  15. • Identify networking prerequisites 
  16. • Configure regional virtual networks and multi-site virtual networks

  17.  
  18. Building block of Azure IaaS 
  19. 1. Compute 
  20. 2. Networking 
  21. 3. Storage 

  22. What is a Virtual Network (VNET)? 
  23. Customer managed secure, isolated virtual networks; it’s a network overlay that can be configured in Azure.

  24. Services and VMs that are part of the same VNET can access each other 
  25. Subscription can have as many as 100 VNETS; 10 default 
  26. Each VNET can have as many Subnets Virtual Networks are limited to single region 
  27. No IPv6 support 
  28. All services deployed within a VNET can access internet 


  29. Cloud only VNETs 
  30. When a VNET is created in Azure 
  31. Clouds and VMs are accessed through endpoints 
  32. Do not have to consider on premise network addressing 
  33. No configuration of VPN devices are required

  34. Cross-Premises Virtual Networks (Hybrid Networks) 
  35. Connection of On-premise network with the Cloud VNET 
  36. Requires a VPN device 

  37. On-premise Virtual Network 
  38.  VNET Address Space and Subnets 
  39. Specify topology during VNET creation;  address space and subnet 

  40. Private Address Spaces 
  41. • This is the range VMs and Services can use 
  42. • Non-routable 
  43. • Specified in CIDR notation (Classless Inter-Domain Routing) 10.0.0.0/8 : 10.0.0.0 – 10.255.255.255 172.16.0.0/12 : 172.16.0.0 – 172.31.255.255 192.168.0.0/16 : 192.168.0.0 – 192.168.255.255
  44.  
  45. VNET Address Space and Subnets Subnets 
  46. Break up the network for more manageable sections 
  47. All services can be access across subnets 
  48. Network Security groups can be utilized to implement ACLs 
  49. Subnet1: 192.168.1.0/24 – Web Servers 
  50. Subnet2: 192.168.2.0/24 – FTP Servers

Sunday, November 20, 2016

Connecting to MS azure CLI using MAC


Azure PowerShell Basics:

Three modules are installed as part of the Azure CLI installation:
1. Azure (Azure Service Management) 
2. AzureResourceManager 
3. AzureProfile 

Two Modes 
Azure Service management  (using subscription certificate and account mode)
Azure Resource Manager (account mode)

--
Download azure CLI code for MAC:

https://go.microsoft.com/fwlink/?LinkId=253471&clcid=0x409

After Installation, Use following commands to use Azure account:
--
$azure config mode asm
$azure account download
$cd Downloads/
$azure account import Microsoft\ Azure\ Sponsorship-11-20-2016-credentials.publishsettings

---
And, the magic begins:

$ azure vm list
info:    Executing command vm list
+ Getting virtual machines
data:    Name          Status              Location      DNS Name                    IP Address
data:    ------------  ------------------  ------------  --------------------------  ----------
data:    JumboTest     StoppedDeallocated  North Europe  jumbotest.cloudapp.net
data:    ADPOCEXCH01   StoppedDeallocated  North Europe  adpocexchange.cloudapp.net
data:    TestExchange  StoppedDeallocated  North Europe  adpocexchange.cloudapp.net
data:    ADPOCNDES01   StoppedDeallocated  North Europe  adpocndes.cloudapp.net
data:    testndes      StoppedDeallocated  North Europe  adpocndes.cloudapp.net
data:    ADPOCAD01     StoppedDeallocated  North Europe  adpocad01.cloudapp.net
data:    ADPOCADFS01   ReadyRole           North Europe  adpocad01.cloudapp.net      10.0.0.7
data:    Alphademorms  ReadyRole           North Europe  rmsalphademo.cloudapp.net   10.0.0.8
data:    Alphapocor01  StoppedDeallocated  North Europe  alphapocor01.cloudapp.net
info:    vm list command OK

-------
ram$ azure vm show testndes
info:    Executing command vm show
+ Getting virtual machines
data:    DNSName "adpocndes.cloudapp.net"
data:    Location "North Europe"
data:    VMName "testndes"
data:    IPAddress ""
data:    InstanceStatus "StoppedDeallocated"
data:    Image "a699494373c04fc0bc8f2bb1389d6106__Windows-Server-2012-R2-20160229-en.us-127GB.vhd"
data:    OSDisk hostCaching "ReadWrite"
data:    OSDisk name "ADPOCNDES01-testndes-0-201604131622120668"
data:    OSDisk mediaLink "https://4wportalvhds1lvpsrpsb7n8.blob.core.windows.net/vhds/ADPOCNDES-testndes-2016-04-13.vhd"
data:    OSDisk sourceImageName "a699494373c04fc0bc8f2bb1389d6106__Windows-Server-2012-R2-20160229-en.us-127GB.vhd"
data:    OSDisk operatingSystem "Windows"
data:    OSDisk iOType "Standard"
data:    ReservedIPName ""
data:    Network Endpoints 0 localPort 5986
data:    Network Endpoints 0 name "PowerShell"
data:    Network Endpoints 0 port 53720
data:    Network Endpoints 0 protocol "tcp"
data:    Network Endpoints 0 enableDirectServerReturn false
data:    Network Endpoints 1 localPort 3389
data:    Network Endpoints 1 name "Remote Desktop"
data:    Network Endpoints 1 port 57498
data:    Network Endpoints 1 protocol "tcp"
data:    Network Endpoints 1 enableDirectServerReturn false
info:    vm show command OK

---Help menu --
ram$ azure help vm

Always check for right login:

etisalat:~ ram$ azure account show
info:    Executing command account show
data:    Name                        : Microsoft Azure Sponsorship
data:    ID                          : 36051sfb8-1ebe-401b-8a07-7ef8f037c747
data:    State                       : Enabled
data:    Tenant ID                   : 2b83df51-c613-s4215-90e2-96265dcf83a2
data:    Is Default                  : true
data:    Environment                 : AzureCloud
data:    Has Certificate             : Yes
data:    Has Access Token            : Yes
data:    User name                   : ramsays@icloud.com


Reference: https://docs.microsoft.com/en-us/azure/virtual-machines-command-line-tools?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json

https://github.com/Azure/azure-xplat-cli