Jump to content

How to check if Azure SQL Managed Instances are enrolled (or not) on November 2022 Feature Wave?


Recommended Posts

Guest luisaranda
Posted

Recently, we have received a few questions from customers on how they can check if all the Azure SQL Managed Instances on a subscription have been enrolled in the November 2022 Feature Wave.

 

 

Resource graph query to the rescue!

 

 

 

Running this query is quite easy from the Azure portal. Follow the instructions on this article to understand how to run Kusto queries against resource graph.

 

 

 

Use the query below.

 

 

 

resources
| where type =~ "microsoft.sql/virtualclusters"
| extend parsed_properties = parse_json(properties)
| extend version = tostring(parsed_properties.version)
| extend NovemberFeatureWave2022Enabled = iif(['version'] == '2.0','Yes','No')
| extend childResources = tostring(parsed_properties.childResources)
| mv-expand childResource = parse_json(childResources)
| extend subscriptionId = tostring(split(childResource, "/")[2])
| extend resourceGroup = tostring(split(childResource, "/")[4])
| extend managedInstance = tostring(split(childResource, "/")[-1])
| project subscriptionId, resourceGroup, managedInstance, VirtualCluster=name, NovemberFeatureWave2022Enabled
| order by ['subscriptionId'], resourceGroup, VirtualCluster, managedInstance

 

 

 

 

 

The output will show you at the subscription level if the instances have been enrolled or not.

 

 

 

[ATTACH type=full" alt="luisaranda_0-1723506280824.png]62640[/ATTACH]

 

Continue reading...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...