You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: samples/manage/azure-arc-enabled-sql-server/report-reclass&extensionstatus/Get-SQLAzureArcReclassReport.ps1
+12-4Lines changed: 12 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,5 @@
1
-
# This script return a report of the instances that should return SQL Reclass from the Azure Arc servers perspective
This script provides a report of the Azure Arc SQL resources that generate SQL Reclass, including the following information from each resource in a CSV format:
|name|Azure Arc server where the SQL extension is installed
43
+
|Status|Status of the SQL extension
44
+
|ExVersion|Version of the SQL extension
45
+
|provisioningState|Provision state of the WindowsAgent.SqlServer extension
46
+
47
+
The information is stored in the local folder with the name ***SQLExtensionStatus.csv***
48
+
49
+
<br>
50
+
51
+
# Prerequisites
52
+
53
+
- The following powershell modules are needed: *Az.ResourceGraph, Az.ConnectedMachine, Az.Accounts*
54
+
- You must have at least a *Reader* role in each subscription from wich you want to extract the information
55
+
- You must be connected to Azure AD and logged in to your Azure account. If your account have access to multiple tenants, make sure to log in with a specific tenant ID.
56
+
57
+
58
+
# Launching the script
59
+
60
+
The script doesn't have any parameter and it is launched as is:
61
+
62
+
## Example 1
63
+
64
+
The following example gets a report from the subcriptions wich the users have access to
0 commit comments