Skip to content

Commit 33c2fb0

Browse files
Clarify SQL best practice assessment enablement issues (#36030)
Added clarification on SQL best practice assessment not enabling in Azure portal after automation. --------- Co-authored-by: Masha Thomas (MSFT) <32783170+MashaMSFT@users.noreply.github.com>
1 parent 9c0d569 commit 33c2fb0

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

azure-sql/virtual-machines/windows/sql-assessment-for-sql-vm.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,18 @@ After a VM is associated with a Log Analytics workspace, it can't be changed fro
256256

257257
This error indicates that results are no longer retained in the Log Analytics workspace, based on its retention policy. You can [change the retention period](/azure/azure-monitor/logs/manage-cost-storage#change-the-data-retention-period) for the workspace.
258258

259+
### SQL best practice assessment not enabled in Azure portal after enabling via Azure Policy or other automation
260+
261+
The names of the data collection rule and data collection rule association for **SQL best practice assessment** follow a specific *case-sensitive* naming convention. If **SQL best practice assessment** is enabled by using an Azure Policy, or some other form of automation, which creates a name that fails to follow the appropriate naming convention, **SQL best practices assessment** won't be enabled.
262+
263+
Both the data collection rule and data collection rule association names are *case sensitive*, with `DCR` and `DCRA` capitalized, while the rest of the name must be lower case.
264+
265+
The names must use the following naming conventions:
266+
267+
- The data collection rule must be named using the `<guid>_<regionname>_DCR_<number>` naming convention, such as the following example: `37e0cae3-c2bd-44f3-85af-975f28b08871_eastus2_DCR_1`
268+
- The data collection rule association must be named using the `<guid>_<regionname>_DCRA_<number>` naming convention, such as the following example: `37e0cae3-c2bd-44f3-85af-975f28b08871_eastus2_DCRA_1`
269+
270+
259271
## Related content
260272

261273
- [Automatic registration with SQL IaaS Agent extension](sql-agent-extension-automatic-registration-all-vms.md)

0 commit comments

Comments
 (0)