This commit is contained in:
Zhiyi Huang 2023-02-08 11:17:37 +08:00
Родитель b428b5961e
Коммит 048f0bc348
2 изменённых файлов: 11 добавлений и 0 удалений

Просмотреть файл

@ -14,3 +14,8 @@ Create a configuration profile
```bash
automanage configuration-profile create -n {profile_name} -g {rg} --configuration '{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}'
```
- create with datatime array
```bash
automanage configuration-profile create -n {profile_name} -g {rg} --configuration '{"Backup/SchedulePolicy/ScheduleRunTimes":["2023-02-10T18:25:43.511Z", "2023-02-12T01:02:03.456Z"],"Backup/RetentionPolicy/DailySchedule/RetentionTimes":["2023-02-10T18:25:43.511Z", "2023-02-12T01:02:03.456Z"]}'
```

Просмотреть файл

@ -338,6 +338,12 @@
"automanage configuration-profile create -n {profile_name} -g {rg} --configuration '{\"Antimalware/Enable\":false,\"Backup/Enable\":false,\"VMInsights/Enable\":true,\"AzureSecurityCenter/Enable\":true,\"UpdateManagement/Enable\":true,\"ChangeTrackingAndInventory/Enable\":true,\"GuestConfiguration/Enable\":true,\"LogAnalytics/Enable\":true,\"BootDiagnostics/Enable\":true}'"
],
"name": "create configuration-profile"
},
{
"commands": [
"automanage configuration-profile create -n {profile_name} -g {rg} --configuration '{\"Backup/SchedulePolicy/ScheduleRunTimes\":[\"2023-02-10T18:25:43.511Z\", \"2023-02-12T01:02:03.456Z\"],\"Backup/RetentionPolicy/DailySchedule/RetentionTimes\":[\"2023-02-10T18:25:43.511Z\", \"2023-02-12T01:02:03.456Z\"]}'"
],
"name": "create with datatime array"
}
],
"name": "2022-05-04",