01 Sign in to your Trend Cloud One™ – Conformity account, access Configure Preferred Maintenance Window for Scheduled Updates conformity rule settings, and identify the preferred maintenance window defined for your Azure Cache for Redis servers.
02 Run account list command (Windows/macOS/Linux) with custom output filters to list the IDs of the cloud subscriptions available in your Azure cloud account:
az account list
--query '[*].id'
03 The command output should return the requested subscription identifiers (IDs):
[
"abcdabcd-1234-abcd-1234-abcdabcdabcd",
"abcd1234-abcd-1234-abcd-abcd1234abcd"
]
04 Run account set command (Windows/macOS/Linux) with the ID of the Azure cloud subscription that you want to examine as the identifier parameter to set the selected subscription to be the current active subscription (the command does not produce an output):
az account set
-subscription abcdabcd-1234-abcd-1234-abcdabcdabcd
05 Run redis list command (Windows/macOS/Linux) with custom output filters to list the name and the associated resource group for each Azure Cache for Redis server available in the selected subscription:
az redis list
--output table
--query '[*].{name:name, resourceGroup:resourceGroup}'
06 The command output should return the requested cache server identifiers:
Name ResourceGroup
------------------------- ------------------------------
cc-project5-redis-cache cloud-shell-storage-westeurope
cc-main-app-redis-cache cloud-shell-storage-westeurope
07 Run redis patch-schedule show command (Windows/macOS/Linux) with the name of the Azure Cache for Redis server that you want to examine as the identifier parameter and custom output filters to determine the maintenance window configured for scheduled updates, for the selected cache server:
az redis patch-schedule show
--name cc-project5-redis-cache
--resource-group cloud-shell-storage-westeurope
--query 'scheduleEntries'
08 The command output should return the maintenance window start hour (UTC) for each active (enabled) day of the week:
[
{
"dayOfWeek": "Sunday",
"maintenanceWindow": "5:00:00",
"startHourUtc": 10
},
{
"dayOfWeek": "Friday",
"maintenanceWindow": "5:00:00",
"startHourUtc": 10
},
{
"dayOfWeek": "Saturday",
"maintenanceWindow": "5:00:00",
"startHourUtc": 10
}
]
If the
redis patch-schedule show command output returns the
ResourceNotFound error, i.e.,
(ResourceNotFound) There are no patch schedules found for redis cache '\<cache-server-name\>', maintenance window for scheduled updates is not enabled for the selected Redis cache server. If the command output returns the patching schedule for one or more days, as shown in the example above, check the start hour (i.e.,
"startHourUtc" attribute value) for each active day of the week to determine the maintenance window configured for the selected cache server. Compare the cache server maintenance window with the one defined in the conformity rule settings. If the server maintenance window is different than the one identified in step no. 1, the preferred maintenance window set for the selected Azure Cache for Redis server is not compliant.
09 Repeat step no. 6 and 7 for each Azure Cache for Redis server available within the current Azure subscription.
10 Repeat steps no. 3 – 8 for each Azure subscription created in your Microsoft Azure cloud account.