Skip to content

Find SQL Servers in a subscription for Install of Resource provider

Notifications You must be signed in to change notification settings

markjones-msft/SQLResource-Provider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Get-SQLServersInSubscription

This script will check every VM in a subscription for the existence of SQL based on the existence of Registry Key: HKLM:\Software\Microsoft\Microsoft SQL Server\Instance Names\SQL

If the Key exists then the outputted CSV value will be set to True.

To Use

To Use, Download both scripts to your local server / machine. To Run use Get-SQLServersInSubscription and update the parameter -Script with the location of Get-SQLRegKey.ps1 and an output for the CSV that the script will generate.

Output will be a CSV which includes the ResourceGroupName, ServerName, SQLServerInstalled, Verified.

Dependencies

This script will require Invoke-AzVMRunCommand to be enabled and for for all VM's to be online.

About

Find SQL Servers in a subscription for Install of Resource provider

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published