SlideShare a Scribd company logo
1 of 27
Installing a SQL VM via
Powershell
Types 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!
POST
https://management.core.windows.net/<subscription-   •   Deployment
                                                         • RoleList
id>/services/hostedservices/<service-                      • Role
name>/deployments/                                                • ConfigurationSet
                                                                    • Windows
                                                                             • Domain Join
                                                                             • Certificates
                                                                    • Linux
                                                                             • SSH
Requests are                                                        • Network
                                                                             • Endpoints

asynchronous so you                                                               • Endpoint
                                                                                       • Loadbalancer
                                                                             • Subnet
need to poll for success                                          • Availability Set
                                                                  • DataDisks

with the “x-ms-request-id”                                          • DataDisk
                                                                  • OS Disk
                                                                  • Role Size
                                                                  • Virtual Network
                                                                  • DNS Servers
DEMO
Fluent Management
Patterns with IaaS
Migrating applications and using AD in the cloud
Cloud Service Acts as a Networking Boundary
All VMs in the same service can communicate directly
Name resolution between VMs is automatic with Windows Azure
provided 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 load
balancing 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 LB
Use an SLB such as the ARR extension of IIS7.5 when site-to-site only
connectivity 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
Best Practice Guidelines
SQL Dos and Donts
Q&A
See http://blog.elastacloud.com or follow @azurecoder for
details of using mirroring

More Related Content

More from Richard Conway

Azure synapse analytics overview elasta cloud3
Azure synapse analytics overview   elasta cloud3Azure synapse analytics overview   elasta cloud3
Azure synapse analytics overview elasta cloud3Richard Conway
 
Getting the most from Windows Virtual Desktop in Azure
Getting the most from Windows Virtual Desktop in AzureGetting the most from Windows Virtual Desktop in Azure
Getting the most from Windows Virtual Desktop in AzureRichard Conway
 
Building a Citizen IoT Network on Microsoft Azure
Building a Citizen IoT Network on Microsoft AzureBuilding a Citizen IoT Network on Microsoft Azure
Building a Citizen IoT Network on Microsoft AzureRichard Conway
 
Building a citizen sensor network in windows azure
Building a citizen sensor network in windows azureBuilding a citizen sensor network in windows azure
Building a citizen sensor network in windows azureRichard Conway
 
Building your own windows azure portal
Building your own windows azure portalBuilding your own windows azure portal
Building your own windows azure portalRichard Conway
 
3. hd insight on windows azure
3. hd insight on windows azure3. hd insight on windows azure
3. hd insight on windows azureRichard Conway
 
Windows azure mobile services
Windows azure mobile servicesWindows azure mobile services
Windows azure mobile servicesRichard Conway
 
Introduction to Windows Azure
Introduction to Windows AzureIntroduction to Windows Azure
Introduction to Windows AzureRichard Conway
 
Service management Dec 11
Service management Dec 11Service management Dec 11
Service management Dec 11Richard Conway
 
Caching with windows azure
Caching with windows azureCaching with windows azure
Caching with windows azureRichard Conway
 

More from Richard Conway (11)

Azure synapse analytics overview elasta cloud3
Azure synapse analytics overview   elasta cloud3Azure synapse analytics overview   elasta cloud3
Azure synapse analytics overview elasta cloud3
 
Getting the most from Windows Virtual Desktop in Azure
Getting the most from Windows Virtual Desktop in AzureGetting the most from Windows Virtual Desktop in Azure
Getting the most from Windows Virtual Desktop in Azure
 
Building a Citizen IoT Network on Microsoft Azure
Building a Citizen IoT Network on Microsoft AzureBuilding a Citizen IoT Network on Microsoft Azure
Building a Citizen IoT Network on Microsoft Azure
 
UK Azure Users Group
UK Azure Users Group UK Azure Users Group
UK Azure Users Group
 
Building a citizen sensor network in windows azure
Building a citizen sensor network in windows azureBuilding a citizen sensor network in windows azure
Building a citizen sensor network in windows azure
 
Building your own windows azure portal
Building your own windows azure portalBuilding your own windows azure portal
Building your own windows azure portal
 
3. hd insight on windows azure
3. hd insight on windows azure3. hd insight on windows azure
3. hd insight on windows azure
 
Windows azure mobile services
Windows azure mobile servicesWindows azure mobile services
Windows azure mobile services
 
Introduction to Windows Azure
Introduction to Windows AzureIntroduction to Windows Azure
Introduction to Windows Azure
 
Service management Dec 11
Service management Dec 11Service management Dec 11
Service management Dec 11
 
Caching with windows azure
Caching with windows azureCaching with windows azure
Caching with windows azure
 

Recently uploaded

Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdfChristopherTHyatt
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 

Recently uploaded (20)

Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 

Iaas, sql, rest and powershell

  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6. Installing a SQL VM via Powershell Types and info on caches
  • 7. 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
  • 8. 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!
  • 9.
  • 10.
  • 11.
  • 12.
  • 13. POST https://management.core.windows.net/<subscription- • Deployment • RoleList id>/services/hostedservices/<service- • Role name>/deployments/ • ConfigurationSet • Windows • Domain Join • Certificates • Linux • SSH Requests are • Network • Endpoints asynchronous so you • Endpoint • Loadbalancer • Subnet need to poll for success • Availability Set • DataDisks with the “x-ms-request-id” • DataDisk • OS Disk • Role Size • Virtual Network • DNS Servers
  • 15.
  • 16.
  • 17. Patterns with IaaS Migrating applications and using AD in the cloud
  • 18. Cloud Service Acts as a Networking Boundary All VMs in the same service can communicate directly Name resolution between VMs is automatic with Windows Azure provided 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
  • 19. Hardware Load Balancer on client side for load balancing across internal only VPN tunnel. Cloud Service Web/App Mirrored DBs Load Balancer VPN Gateway Site to Site VPN Tunnel Web/App
  • 20. Software Load Balancer for Internal LB Use an SLB such as the ARR extension of IIS7.5 when site-to-site only connectivity is a requirement. Cloud Service Web/App Mirrored DBs SLB VPN Gateway Site to Site VPN Tunnel Web/App
  • 21. Contoso.com Active Directory Contoso.com Active Directory Site to Site VPN Tunnel AD Authentication + On-Premises Resources Load Balancer Public IP
  • 22. Contoso.com Active Directory Contoso.com Active Directory Site to Site VPN Tunnel AD Replication + On Premises Resources AD Auth Load Balancer Public IP
  • 23. Contoso.com Active Directory Extranet Active Directory Site to Site VPN Tunnel On Premises Resources AD Auth Load Balancer Public IP
  • 25.
  • 26.
  • 27. Q&A See http://blog.elastacloud.com or follow @azurecoder for details of using mirroring

Editor's Notes

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