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

Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
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
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
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
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
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
 
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
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
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
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 

Recently uploaded (20)

Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
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
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
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 - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
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
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
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
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 

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.