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 of "Iaas, sql, rest and powershell"
Installing a SQL VM viaPowershellTypes and info on caches
• 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
• 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!
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
Patterns with IaaSMigrating applications and using AD in the cloud
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
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
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
Contoso.com Active Directory Contoso.com Active Directory Site to Site VPN Tunnel AD Authentication + On-Premises Resources Load Balancer Public IP
Contoso.com Active Directory Contoso.com Active Directory Site to Site VPN Tunnel AD Replication + On Premises Resources AD Auth Load Balancer Public IP
Contoso.com Active Directory Extranet Active Directory Site to Site VPN Tunnel On Premises Resources AD Auth Load Balancer Public IP