Iaas, sql, rest and powershell


Published on

Building Sql Server in a Windows Azure Virtual Machine

Published in: Technology
  • Be the first to comment

  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide
  • This use case is when you already have a “golden image(s)” your company uses for server provisioning or you have a VM running on premises that you would just like to run in our data center. You take the vhd – use CSUpload to upload as a page blob to a storage account. From there use the portal to add as an image (sysprepped) or disk (configured VM) and there you can create a VM based off of the vhd.
  • Iaas, sql, rest and powershell

    1. 1. Installing a SQL VM viaPowershellTypes and info on caches
    2. 2. • Download and install WAPP CmdLets• Download a .publishsettings file• Use Import-AzurePublishSettingsFile CmdLet• Use Set-AzureSubscription or Select-AzureSubscription to set the correct subscription• To see a list of gallery and saved images Get-AzureVMImage• You need to specify an image name, a cloud service name, a machine name, a VM size, a Windows password and a location• Use New-AzureVMConfig to provide the config, Add-AzureProvisioningConfig to add the Windows provisioning, Add-AzureDataDisk to add an additional disk, Add-AzureEndpoint to setup an Azure endpoint on 1433• Use Get-AzureDisk | Select DiskName and Remove-AzureDisk –DiskName – DeleteVHD to remove
    3. 3. • Remote desktop on to the machine• Update the SQL Server to use Mixed Mode authentication• Create and login and user with a password• Add the user to the dbowner role• Open an incoming port on the firewall to allow access to port 1433• Open up SSMS• Enter the credentials to the DNS endpoint• Login and manipulate the database• Take all of the above and script into a powershell script!
    4. 4. POSThttps://management.core.windows.net/<subscription- • Deployment • RoleListid>/services/hostedservices/<service- • Rolename>/deployments/ • ConfigurationSet • Windows • Domain Join • Certificates • Linux • SSHRequests are • Network • Endpointsasynchronous so you • Endpoint • Loadbalancer • Subnetneed to poll for success • Availability Set • DataDiskswith the “x-ms-request-id” • DataDisk • OS Disk • Role Size • Virtual Network • DNS Servers
    5. 5. DEMOFluent Management
    6. 6. Patterns with IaaSMigrating applications and using AD in the cloud
    7. 7. Cloud Service Acts as a Networking BoundaryAll VMs in the same service can communicate directlyName resolution between VMs is automatic with Windows Azureprovided DNS Cloud Service Load Balancer Public IP Name: myapp1.cloudapp.net Virtual Machine Virtual Machine VM Name: appsrv1 DIP VM Name: appsrv2 Virtual Machine VM Name: SQLServer1
    8. 8. Hardware Load Balancer on client side for loadbalancing across internal only VPN tunnel. Cloud Service Web/App Mirrored DBs Load Balancer VPN Gateway Site to Site VPN Tunnel Web/App
    9. 9. Software Load Balancer for Internal LBUse an SLB such as the ARR extension of IIS7.5 when site-to-site onlyconnectivity is a requirement. Cloud Service Web/App Mirrored DBs SLB VPN Gateway Site to Site VPN Tunnel Web/App
    10. 10. Contoso.com Active Directory Contoso.com Active Directory Site to Site VPN Tunnel AD Authentication + On-Premises Resources Load Balancer Public IP
    11. 11. Contoso.com Active Directory Contoso.com Active Directory Site to Site VPN Tunnel AD Replication + On Premises Resources AD Auth Load Balancer Public IP
    12. 12. Contoso.com Active Directory Extranet Active Directory Site to Site VPN Tunnel On Premises Resources AD Auth Load Balancer Public IP
    13. 13. Best Practice GuidelinesSQL Dos and Donts
    14. 14. Q&ASee http://blog.elastacloud.com or follow @azurecoder fordetails of using mirroring