Skip to content

Commit 02ff8e9

Browse files
committed
Unit test recode pass and update changelog
1 parent 7f80744 commit 02ff8e9

12 files changed

+162
-146
lines changed

src/Automanage/Automanage.Autorest/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
2121
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
2222
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Automanage")]
23-
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.1.0")]
24-
[assembly: System.Reflection.AssemblyVersionAttribute("1.1.0")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.1.1")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("1.1.1")]
2525
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
2626
[assembly: System.CLSCompliantAttribute(false)]

src/Automanage/Automanage.Autorest/README.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -200,22 +200,4 @@ directive:
200200
- Name
201201
- AuthorizationSet
202202
- ServicePrincipalId
203-
204-
- where:
205-
verb: Get
206-
subject: HciReport|HcrpReport|Report
207-
set:
208-
breaking-change:
209-
deprecated-output-properties:
210-
- AdditionalInfo
211-
- Detail
212-
- Resource
213-
new-output-properties:
214-
- AdditionalInfo
215-
- Detail
216-
- Resource
217-
change-description: The types of the properties 'AdditionalInfo', 'Detail' and 'Resource' will be changed from single object to 'List'.
218-
deprecated-by-version: 9.0.0
219-
deprecated-by-azversion: 15.0.0
220-
change-effective-date: 2025/11/03
221203
```

src/Automanage/Automanage.Autorest/docs/Az.Automanage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
Module Name: Az.Automanage
3-
Module Guid: 3008154d-a7cb-4ea0-ac19-475ebc2e4ae3
3+
Module Guid: e54e2b12-08b9-4e24-8906-d2acb72fb103
44
Download Help Link: https://learn.microsoft.com/powershell/module/az.automanage
55
Help Version: 1.0.0.0
66
Locale: en-US
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"generate_Id": "b9216135-f67b-4f4d-82b2-392646e5222b"
2+
"generate_Id": "d22eaae8-97d8-44a8-8ce4-a7f1bad687f2"
33
}

src/Automanage/Automanage.Autorest/test/Get-AzAutomanageBestPractice.Recording.json

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
"isContentBase64": false,
88
"Headers": {
99
"x-ms-unique-id": [ "1" ],
10-
"x-ms-client-request-id": [ "37b90ae7-aacb-4962-9cbb-8e7f04b3b852" ],
10+
"x-ms-client-request-id": [ "43be94a6-e4b5-4152-9b1f-889b37377977" ],
1111
"CommandName": [ "Get-AzAutomanageBestPractice" ],
1212
"FullCommandName": [ "Get-AzAutomanageBestPractice_List" ],
1313
"ParameterSetName": [ "__AllParameterSets" ],
14-
"User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.4", "Az.Automanage/0.1.0" ],
14+
"User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.5.2", "Az.Automanage/0.1.0" ],
1515
"Authorization": [ "[Filtered]" ]
1616
},
1717
"ContentHeaders": {
@@ -24,20 +24,22 @@
2424
"Pragma": [ "no-cache" ],
2525
"Request-Context": [ "appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d" ],
2626
"Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ],
27-
"Server": [ "Kestrel" ],
28-
"x-ms-ratelimit-remaining-tenant-reads": [ "11998" ],
29-
"x-ms-request-id": [ "b4daa78b-d111-4534-93cd-391439f79942" ],
30-
"x-ms-correlation-request-id": [ "b4daa78b-d111-4534-93cd-391439f79942" ],
31-
"x-ms-routing-request-id": [ "SOUTHEASTASIA:20221008T082203Z:b4daa78b-d111-4534-93cd-391439f79942" ],
27+
"x-ms-operation-identifier": [ "" ],
28+
"x-ms-ratelimit-remaining-tenant-reads": [ "2199" ],
29+
"x-ms-request-id": [ "1006e549-e20b-4d2e-b6d8-a7060f911174" ],
30+
"x-ms-correlation-request-id": [ "1006e549-e20b-4d2e-b6d8-a7060f911174" ],
31+
"x-ms-routing-request-id": [ "SOUTHEASTASIA:20250911T071211Z:1006e549-e20b-4d2e-b6d8-a7060f911174" ],
3232
"X-Content-Type-Options": [ "nosniff" ],
33-
"Date": [ "Sat, 08 Oct 2022 08:22:02 GMT" ]
33+
"X-Cache": [ "CONFIG_NOCACHE" ],
34+
"X-MSEdge-Ref": [ "Ref A: 416E2AE4E6764A5797005A4F98513577 Ref B: MAA201060514049 Ref C: 2025-09-11T07:12:11Z" ],
35+
"Date": [ "Thu, 11 Sep 2025 07:12:10 GMT" ]
3436
},
3537
"ContentHeaders": {
36-
"Content-Length": [ "2354" ],
38+
"Content-Length": [ "3203" ],
3739
"Content-Type": [ "application/json; charset=utf-8" ],
3840
"Expires": [ "-1" ]
3941
},
40-
"Content": "{\"value\":[{\"id\":\"/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction\",\"name\":\"AzureBestPracticesProduction\",\"type\":\"Microsoft.Automanage/bestPractices\",\"properties\":{\"configuration\":{\"Antimalware/Enable\":\"true\",\"Antimalware/EnableRealTimeProtection\":\"true\",\"Antimalware/RunScheduledScan\":\"true\",\"Antimalware/ScanType\":\"Quick\",\"Antimalware/ScanDay\":\"7\",\"Antimalware/ScanTimeInMinutes\":\"120\",\"Backup/Enable\":\"true\",\"Backup/PolicyName\":\"dailyBackupPolicy\",\"Backup/TimeZone\":\"UTC\",\"Backup/InstantRpRetentionRangeInDays\":\"2\",\"Backup/SchedulePolicy/ScheduleRunFrequency\":\"Daily\",\"Backup/SchedulePolicy/ScheduleRunTimes\":[\"2017-01-26T00:00:00Z\"],\"Backup/SchedulePolicy/SchedulePolicyType\":\"SimpleSchedulePolicy\",\"Backup/RetentionPolicy/RetentionPolicyType\":\"LongTermRetentionPolicy\",\"Backup/RetentionPolicy/DailySchedule/RetentionTimes\":[\"2017-01-26T00:00:00Z\"],\"Backup/RetentionPolicy/DailySchedule/RetentionDuration/Count\":\"180\",\"Backup/RetentionPolicy/DailySchedule/RetentionDuration/DurationType\":\"Days\",\"VMInsights/Enable\":\"true\",\"AzureSecurityCenter/Enable\":\"true\",\"UpdateManagement/Enable\":\"true\",\"ChangeTrackingAndInventory/Enable\":\"true\",\"GuestConfiguration/Enable\":\"true\",\"LogAnalytics/Enable\":\"true\",\"BootDiagnostics/Enable\":\"true\"}},\"systemData\":{\"createdAt\":\"2021-06-30T00:00:00+00:00\",\"createdBy\":\"SYSTEM\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-10-03T00:00:00+00:00\",\"lastModifiedBy\":\"SYSTEM\",\"lastModifiedByType\":\"User\"}},{\"id\":\"/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest\",\"name\":\"AzureBestPracticesDevTest\",\"type\":\"Microsoft.Automanage/bestPractices\",\"properties\":{\"configuration\":{\"Antimalware/Enable\":\"true\",\"Antimalware/EnableRealTimeProtection\":\"true\",\"Antimalware/RunScheduledScan\":\"true\",\"Antimalware/ScanType\":\"Quick\",\"Antimalware/ScanDay\":\"7\",\"Antimalware/ScanTimeInMinutes\":\"120\",\"Backup/Enable\":\"false\",\"VMInsights/Enable\":\"false\",\"AzureSecurityCenter/Enable\":\"true\",\"UpdateManagement/Enable\":\"true\",\"ChangeTrackingAndInventory/Enable\":\"true\",\"GuestConfiguration/Enable\":\"true\",\"LogAnalytics/Enable\":\"true\",\"BootDiagnostics/Enable\":\"true\",\"WindowsAdminCenter/Enable\":\"true\"}},\"systemData\":{\"createdAt\":\"2021-06-30T00:00:00+00:00\",\"createdBy\":\"SYSTEM\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-10-03T00:00:00+00:00\",\"lastModifiedBy\":\"SYSTEM\",\"lastModifiedByType\":\"User\"}}]}",
42+
"Content": "{\"value\":[{\"id\":\"/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction\",\"name\":\"AzureBestPracticesProduction\",\"type\":\"Microsoft.Automanage/bestPractices\",\"properties\":{\"configuration\":{\"Antimalware/Enable\":true,\"Antimalware/EnableRealTimeProtection\":true,\"Antimalware/RunScheduledScan\":true,\"Antimalware/ScanType\":\"Quick\",\"Antimalware/ScanDay\":\"7\",\"Antimalware/ScanTimeInMinutes\":\"120\",\"Backup/Enable\":true,\"Backup/PolicyName\":\"dailyBackupPolicy\",\"Backup/TimeZone\":\"UTC\",\"Backup/InstantRpRetentionRangeInDays\":\"2\",\"Backup/SchedulePolicy/ScheduleRunFrequency\":\"Daily\",\"Backup/SchedulePolicy/ScheduleRunTimes\":[\"2017-01-26T00:00:00Z\"],\"Backup/SchedulePolicy/SchedulePolicyType\":\"SimpleSchedulePolicy\",\"Backup/RetentionPolicy/RetentionPolicyType\":\"LongTermRetentionPolicy\",\"Backup/RetentionPolicy/DailySchedule/RetentionTimes\":[\"2017-01-26T00:00:00Z\"],\"Backup/RetentionPolicy/DailySchedule/RetentionDuration/Count\":\"180\",\"Backup/RetentionPolicy/DailySchedule/RetentionDuration/DurationType\":\"Days\",\"EnhancedBackup/Enable\":true,\"EnhancedBackup/PolicyName\":\"Automanage-Default-Enhanced\",\"EnhancedBackup/TimeZone\":\"UTC\",\"EnhancedBackup/InstantRpRetentionRangeInDays\":\"7\",\"EnhancedBackup/SchedulePolicy/ScheduleRunFrequency\":\"Hourly\",\"EnhancedBackup/SchedulePolicy/SchedulePolicyType\":\"SimpleSchedulePolicyV2\",\"EnhancedBackup/SchedulePolicy/HourlySchedule/Interval\":\"4\",\"EnhancedBackup/SchedulePolicy/HourlySchedule/ScheduleWindowStartTime\":\"2023-01-26T08:00:00Z\",\"EnhancedBackup/SchedulePolicy/HourlySchedule/ScheduleWindowDuration\":\"12\",\"EnhancedBackup/RetentionPolicy/RetentionPolicyType\":\"LongTermRetentionPolicy\",\"EnhancedBackup/RetentionPolicy/DailySchedule/RetentionTimes\":[\"2020-09-09T00:00:00Z\"],\"EnhancedBackup/RetentionPolicy/DailySchedule/RetentionDuration/Count\":\"30\",\"EnhancedBackup/RetentionPolicy/DailySchedule/RetentionDuration/DurationType\":\"Days\",\"VMInsights/Enable\":true,\"DefenderForCloud/Enable\":true,\"UpdateManagement/Enable\":true,\"ChangeTrackingAndInventory/Enable\":true,\"GuestConfiguration/Enable\":true,\"LogAnalytics/Enable\":true,\"BootDiagnostics/Enable\":true,\"WindowsAdminCenter/Enable\":false}},\"systemData\":{\"createdAt\":\"2021-06-30T00:00:00+00:00\",\"createdBy\":\"SYSTEM\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2023-03-15T00:00:00+00:00\",\"lastModifiedBy\":\"SYSTEM\",\"lastModifiedByType\":\"User\"}},{\"id\":\"/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest\",\"name\":\"AzureBestPracticesDevTest\",\"type\":\"Microsoft.Automanage/bestPractices\",\"properties\":{\"configuration\":{\"Antimalware/Enable\":true,\"Antimalware/EnableRealTimeProtection\":true,\"Antimalware/RunScheduledScan\":true,\"Antimalware/ScanType\":\"Quick\",\"Antimalware/ScanDay\":\"7\",\"Antimalware/ScanTimeInMinutes\":\"120\",\"Backup/Enable\":false,\"VMInsights/Enable\":false,\"AzureSecurityCenter/Enable\":true,\"UpdateManagement/Enable\":true,\"ChangeTrackingAndInventory/Enable\":true,\"GuestConfiguration/Enable\":true,\"LogAnalytics/Enable\":true,\"BootDiagnostics/Enable\":true,\"WindowsAdminCenter/Enable\":true}},\"systemData\":{\"createdAt\":\"2021-06-30T00:00:00+00:00\",\"createdBy\":\"SYSTEM\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-10-07T00:00:00+00:00\",\"lastModifiedBy\":\"SYSTEM\",\"lastModifiedByType\":\"User\"}}]}",
4143
"isContentBase64": false
4244
}
4345
},
@@ -49,11 +51,11 @@
4951
"isContentBase64": false,
5052
"Headers": {
5153
"x-ms-unique-id": [ "2" ],
52-
"x-ms-client-request-id": [ "948b8783-719f-43fb-9b78-93ef7a33955e" ],
54+
"x-ms-client-request-id": [ "882098ef-3d51-44f9-9c7c-e75c90126096" ],
5355
"CommandName": [ "Get-AzAutomanageBestPractice" ],
5456
"FullCommandName": [ "Get-AzAutomanageBestPractice_Get" ],
5557
"ParameterSetName": [ "__AllParameterSets" ],
56-
"User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.4", "Az.Automanage/0.1.0" ],
58+
"User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.5.2", "Az.Automanage/0.1.0" ],
5759
"Authorization": [ "[Filtered]" ]
5860
},
5961
"ContentHeaders": {
@@ -66,20 +68,22 @@
6668
"Pragma": [ "no-cache" ],
6769
"Request-Context": [ "appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d" ],
6870
"Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ],
69-
"Server": [ "Kestrel" ],
70-
"x-ms-ratelimit-remaining-tenant-reads": [ "11997" ],
71-
"x-ms-request-id": [ "769e800a-016b-4700-ba93-fae1afc905e6" ],
72-
"x-ms-correlation-request-id": [ "769e800a-016b-4700-ba93-fae1afc905e6" ],
73-
"x-ms-routing-request-id": [ "SOUTHEASTASIA:20221008T082204Z:769e800a-016b-4700-ba93-fae1afc905e6" ],
71+
"x-ms-operation-identifier": [ "" ],
72+
"x-ms-ratelimit-remaining-tenant-reads": [ "2199" ],
73+
"x-ms-request-id": [ "b849a42e-97a8-47e3-b87e-f2d2289937ee" ],
74+
"x-ms-correlation-request-id": [ "b849a42e-97a8-47e3-b87e-f2d2289937ee" ],
75+
"x-ms-routing-request-id": [ "SOUTHEASTASIA:20250911T071211Z:b849a42e-97a8-47e3-b87e-f2d2289937ee" ],
7476
"X-Content-Type-Options": [ "nosniff" ],
75-
"Date": [ "Sat, 08 Oct 2022 08:22:03 GMT" ]
77+
"X-Cache": [ "CONFIG_NOCACHE" ],
78+
"X-MSEdge-Ref": [ "Ref A: 00D5E5C79C954F288C6055B399C0711D Ref B: MAA201060514049 Ref C: 2025-09-11T07:12:11Z" ],
79+
"Date": [ "Thu, 11 Sep 2025 07:12:10 GMT" ]
7680
},
7781
"ContentHeaders": {
78-
"Content-Length": [ "1449" ],
82+
"Content-Length": [ "2322" ],
7983
"Content-Type": [ "application/json; charset=utf-8" ],
8084
"Expires": [ "-1" ]
8185
},
82-
"Content": "{\"id\":\"/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction\",\"name\":\"AzureBestPracticesProduction\",\"type\":\"Microsoft.Automanage/bestPractices\",\"properties\":{\"configuration\":{\"Antimalware/Enable\":\"true\",\"Antimalware/EnableRealTimeProtection\":\"true\",\"Antimalware/RunScheduledScan\":\"true\",\"Antimalware/ScanType\":\"Quick\",\"Antimalware/ScanDay\":\"7\",\"Antimalware/ScanTimeInMinutes\":\"120\",\"Backup/Enable\":\"true\",\"Backup/PolicyName\":\"dailyBackupPolicy\",\"Backup/TimeZone\":\"UTC\",\"Backup/InstantRpRetentionRangeInDays\":\"2\",\"Backup/SchedulePolicy/ScheduleRunFrequency\":\"Daily\",\"Backup/SchedulePolicy/ScheduleRunTimes\":[\"2017-01-26T00:00:00Z\"],\"Backup/SchedulePolicy/SchedulePolicyType\":\"SimpleSchedulePolicy\",\"Backup/RetentionPolicy/RetentionPolicyType\":\"LongTermRetentionPolicy\",\"Backup/RetentionPolicy/DailySchedule/RetentionTimes\":[\"2017-01-26T00:00:00Z\"],\"Backup/RetentionPolicy/DailySchedule/RetentionDuration/Count\":\"180\",\"Backup/RetentionPolicy/DailySchedule/RetentionDuration/DurationType\":\"Days\",\"VMInsights/Enable\":\"true\",\"AzureSecurityCenter/Enable\":\"true\",\"UpdateManagement/Enable\":\"true\",\"ChangeTrackingAndInventory/Enable\":\"true\",\"GuestConfiguration/Enable\":\"true\",\"LogAnalytics/Enable\":\"true\",\"BootDiagnostics/Enable\":\"true\"}},\"systemData\":{\"createdAt\":\"2021-06-30T00:00:00+00:00\",\"createdBy\":\"SYSTEM\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-10-03T00:00:00+00:00\",\"lastModifiedBy\":\"SYSTEM\",\"lastModifiedByType\":\"User\"}}",
86+
"Content": "{\"id\":\"/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction\",\"name\":\"AzureBestPracticesProduction\",\"type\":\"Microsoft.Automanage/bestPractices\",\"properties\":{\"configuration\":{\"Antimalware/Enable\":true,\"Antimalware/EnableRealTimeProtection\":true,\"Antimalware/RunScheduledScan\":true,\"Antimalware/ScanType\":\"Quick\",\"Antimalware/ScanDay\":\"7\",\"Antimalware/ScanTimeInMinutes\":\"120\",\"Backup/Enable\":true,\"Backup/PolicyName\":\"dailyBackupPolicy\",\"Backup/TimeZone\":\"UTC\",\"Backup/InstantRpRetentionRangeInDays\":\"2\",\"Backup/SchedulePolicy/ScheduleRunFrequency\":\"Daily\",\"Backup/SchedulePolicy/ScheduleRunTimes\":[\"2017-01-26T00:00:00Z\"],\"Backup/SchedulePolicy/SchedulePolicyType\":\"SimpleSchedulePolicy\",\"Backup/RetentionPolicy/RetentionPolicyType\":\"LongTermRetentionPolicy\",\"Backup/RetentionPolicy/DailySchedule/RetentionTimes\":[\"2017-01-26T00:00:00Z\"],\"Backup/RetentionPolicy/DailySchedule/RetentionDuration/Count\":\"180\",\"Backup/RetentionPolicy/DailySchedule/RetentionDuration/DurationType\":\"Days\",\"EnhancedBackup/Enable\":true,\"EnhancedBackup/PolicyName\":\"Automanage-Default-Enhanced\",\"EnhancedBackup/TimeZone\":\"UTC\",\"EnhancedBackup/InstantRpRetentionRangeInDays\":\"7\",\"EnhancedBackup/SchedulePolicy/ScheduleRunFrequency\":\"Hourly\",\"EnhancedBackup/SchedulePolicy/SchedulePolicyType\":\"SimpleSchedulePolicyV2\",\"EnhancedBackup/SchedulePolicy/HourlySchedule/Interval\":\"4\",\"EnhancedBackup/SchedulePolicy/HourlySchedule/ScheduleWindowStartTime\":\"2023-01-26T08:00:00Z\",\"EnhancedBackup/SchedulePolicy/HourlySchedule/ScheduleWindowDuration\":\"12\",\"EnhancedBackup/RetentionPolicy/RetentionPolicyType\":\"LongTermRetentionPolicy\",\"EnhancedBackup/RetentionPolicy/DailySchedule/RetentionTimes\":[\"2020-09-09T00:00:00Z\"],\"EnhancedBackup/RetentionPolicy/DailySchedule/RetentionDuration/Count\":\"30\",\"EnhancedBackup/RetentionPolicy/DailySchedule/RetentionDuration/DurationType\":\"Days\",\"VMInsights/Enable\":true,\"DefenderForCloud/Enable\":true,\"UpdateManagement/Enable\":true,\"ChangeTrackingAndInventory/Enable\":true,\"GuestConfiguration/Enable\":true,\"LogAnalytics/Enable\":true,\"BootDiagnostics/Enable\":true,\"WindowsAdminCenter/Enable\":false}},\"systemData\":{\"createdAt\":\"2021-06-30T00:00:00+00:00\",\"createdBy\":\"SYSTEM\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2023-03-15T00:00:00+00:00\",\"lastModifiedBy\":\"SYSTEM\",\"lastModifiedByType\":\"User\"}}",
8387
"isContentBase64": false
8488
}
8589
}

0 commit comments

Comments
 (0)