Iaas, sql, rest and powershell
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share

Iaas, sql, rest and powershell

  • 335 views
Uploaded on

Building Sql Server in a Windows Azure Virtual Machine

Building Sql Server in a Windows Azure Virtual Machine

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
335
On Slideshare
335
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
2
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    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.

Transcript

  • 1. Installing a SQL VM viaPowershellTypes and info on caches
  • 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. • 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. 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. DEMOFluent Management
  • 6. Patterns with IaaSMigrating applications and using AD in the cloud
  • 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 10.1.5.6 10.1.5.7 Virtual Machine VM Name: SQLServer1 10.1.5.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. 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. Contoso.com Active Directory Contoso.com Active Directory Site to Site VPN Tunnel AD Authentication + On-Premises Resources Load Balancer Public IP
  • 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. Contoso.com Active Directory Extranet Active Directory Site to Site VPN Tunnel On Premises Resources AD Auth Load Balancer Public IP
  • 13. Best Practice GuidelinesSQL Dos and Donts
  • 14. Q&ASee http://blog.elastacloud.com or follow @azurecoder fordetails of using mirroring