Skip to content

Commit c405eef

Browse files
aashish1987markcowlAashish Rajaram Salokheyang-hai-fenganineela
authored andcommitted
Guest Configuration: Add new API version - 2022-01-25 for SET scenario (Azure#17811)
* Add blockchain to latest profile * Add additional types * Add GET all methods for resource group and subscription * Fix Linter Validation issue * Fix Swagger Correctness S360 items * Fix swagger validation comments * Fix model validaiton * Fix Lint errors * Fix model validation for examples * IoT Central Public API 1.1-preview Oct Release (Azure#16514) * Add new 2.0-preview.1 version for IoT Central * fix typo on enum value * rollback 1.0 changes, applied 2.0-preview.1 * fix typo * remove non-used examples * fix style * update version from 2.0-preview.1 to 1.1-preview * update code review comments, fix patch consumes with json-patch support, fix examples for fileupload * add nextLink to collection of orgs * fix typo * fix wrong position of paging * fix the paging * add . to description * update default to use enum for api-version * add oct release with query, cde v2, device filter, device template filter, relationship, edge template, simplified template patching * update examples * fix lint error, model validation * fix missing type in examples, remove url format * fix ID case * fix id case * fix ID case * add iotc query language reference * fix typo * Make ConfigurationSetting read-only property * Fix Swagger S360 issues * Remove the unknown file * Fix prettier check * Changing the vmssResourceId to camelCasing * Revert the readOnly tag on name property * Guest Configuration - Add new API version 2022-01-25 for SET Scenario * fix LinDiff errors * Run prettier check * Fix review comments * Keep the parameter sequence same as before * Update GO SDK read me file * Fix LinttDiff errors * Fix Prettier check * adding assignmentSource field * fixing lint issues raised by current PR * fixing pageable placement * making nextLink null * fixing policheck error to replace whitelisted Co-authored-by: Mark Cowlishaw <[email protected]> Co-authored-by: Aashish Rajaram Salokhe <[email protected]> Co-authored-by: Johnson Yang <[email protected]> Co-authored-by: Anika Tabassum Sardar Neela <[email protected]>
1 parent 2cbb371 commit c405eef

23 files changed

+2948
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "mySubscriptionId",
4+
"resourceGroupName": "myResourceGroupName",
5+
"vmName": "myVMName",
6+
"guestConfigurationAssignmentName": "NotInstalledApplicationForWindows",
7+
"api-version": "2022-01-25",
8+
"parameters": {
9+
"location": "westcentralus",
10+
"name": "NotInstalledApplicationForWindows",
11+
"properties": {
12+
"context": "Azure policy",
13+
"guestConfiguration": {
14+
"name": "NotInstalledApplicationForWindows",
15+
"version": "1.*",
16+
"contentUri": "https://thisisfake/pacakge",
17+
"contentHash": "123contenthash",
18+
"assignmentType": "ApplyAndAutoCorrect",
19+
"configurationParameter": [
20+
{
21+
"name": "[InstalledApplication]NotInstalledApplicationResource1;Name",
22+
"value": "NotePad,sql"
23+
}
24+
]
25+
}
26+
}
27+
}
28+
},
29+
"responses": {
30+
"201": {
31+
"headers": {},
32+
"body": {
33+
"location": "westcentralus",
34+
"id": "/subscriptions/mysubscriptionid/resourceGroups/myResourceGroupName/providers/Microsoft.Compute/virtualMachines/myvm/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/NotInstalledApplicationForWindows",
35+
"name": "NotInstalledApplicationForWindows",
36+
"properties": {
37+
"complianceStatus": "Pending",
38+
"assignmentHash": null,
39+
"latestReportId": null,
40+
"lastComplianceStatusChecked": null,
41+
"context": "Azure policy",
42+
"resourceType": null,
43+
"vmssVMList": null,
44+
"guestConfiguration": {
45+
"kind": null,
46+
"name": "NotInstalledApplicationForWindows",
47+
"version": "1.0.0.3",
48+
"contentUri": null,
49+
"contentHash": null,
50+
"contentType": null,
51+
"assignmentSource": "AzurePolicy",
52+
"configurationParameter": [
53+
{
54+
"name": "[InstalledApplication]NotInstalledApplicationResource1;Name",
55+
"value": "NotePad,sql"
56+
}
57+
]
58+
},
59+
"provisioningState": "Succeeded"
60+
}
61+
}
62+
},
63+
"200": {
64+
"headers": {},
65+
"body": {
66+
"location": "westcentralus",
67+
"id": "/subscriptions/mysubscriptionid/resourceGroups/myResourceGroupName/providers/Microsoft.Compute/virtualMachines/myvm/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/NotInstalledApplicationForWindows",
68+
"name": "NotInstalledApplicationForWindows",
69+
"properties": {
70+
"complianceStatus": "Pending",
71+
"assignmentHash": null,
72+
"latestReportId": null,
73+
"lastComplianceStatusChecked": null,
74+
"context": "Azure policy",
75+
"resourceType": null,
76+
"vmssVMList": null,
77+
"guestConfiguration": {
78+
"kind": null,
79+
"name": "NotInstalledApplicationForWindows",
80+
"version": "1.0.0.3",
81+
"contentUri": null,
82+
"contentHash": null,
83+
"contentType": null,
84+
"assignmentSource": "AzurePolicy",
85+
"configurationParameter": [
86+
{
87+
"name": "[InstalledApplication]NotInstalledApplicationResource1;Name",
88+
"value": "NotePad,sql"
89+
}
90+
]
91+
},
92+
"provisioningState": "Succeeded"
93+
}
94+
}
95+
}
96+
}
97+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "mySubscriptionId",
4+
"resourceGroupName": "myResourceGroupName",
5+
"machineName": "myMachineName",
6+
"guestConfigurationAssignmentName": "NotInstalledApplicationForWindows",
7+
"api-version": "2022-01-25",
8+
"parameters": {
9+
"location": "westcentralus",
10+
"name": "NotInstalledApplicationForWindows",
11+
"properties": {
12+
"context": "Azure policy",
13+
"guestConfiguration": {
14+
"name": "NotInstalledApplicationForWindows",
15+
"version": "1.*",
16+
"contentUri": "https://thisisfake/pacakge",
17+
"contentHash": "123contenthash",
18+
"assignmentType": "ApplyAndAutoCorrect",
19+
"configurationParameter": [
20+
{
21+
"name": "[InstalledApplication]NotInstalledApplicationResource1;Name",
22+
"value": "NotePad,sql"
23+
}
24+
]
25+
}
26+
}
27+
}
28+
},
29+
"responses": {
30+
"201": {
31+
"headers": {},
32+
"body": {
33+
"location": "westcentralus",
34+
"id": "/subscriptions/mysubscriptionid/resourceGroups/myResourceGroupName/providers/HybridRP.Compute/virtualMachines/myvm/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/NotInstalledApplicationForWindows",
35+
"name": "NotInstalledApplicationForWindows",
36+
"properties": {
37+
"complianceStatus": "Pending",
38+
"assignmentHash": "abcdr453g",
39+
"latestReportId": "a2a64e5d-a1a9-4344-a866-fb9e1541f723",
40+
"lastComplianceStatusChecked": null,
41+
"context": "Azure policy",
42+
"guestConfiguration": {
43+
"kind": null,
44+
"name": "NotInstalledApplicationForWindows",
45+
"version": "1.0.0.3",
46+
"contentUri": null,
47+
"contentHash": null,
48+
"contentType": null,
49+
"configurationParameter": [
50+
{
51+
"name": "[InstalledApplication]NotInstalledApplicationResource1;Name",
52+
"value": "NotePad,sql"
53+
}
54+
]
55+
},
56+
"provisioningState": "Succeeded"
57+
}
58+
}
59+
},
60+
"200": {
61+
"headers": {},
62+
"body": {
63+
"location": "westcentralus",
64+
"id": "/subscriptions/mysubscriptionid/resourceGroups/myResourceGroupName/providers/HybridRP.Compute/virtualMachines/myvm/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/NotInstalledApplicationForWindows",
65+
"name": "NotInstalledApplicationForWindows",
66+
"properties": {
67+
"complianceStatus": "Pending",
68+
"assignmentHash": "abcdr453g",
69+
"latestReportId": "a2a64e5d-a1a9-4344-a866-fb9e1541f723",
70+
"lastComplianceStatusChecked": null,
71+
"context": "Azure policy",
72+
"guestConfiguration": {
73+
"kind": null,
74+
"name": "NotInstalledApplicationForWindows",
75+
"version": "1.0.0.3",
76+
"contentUri": null,
77+
"contentHash": null,
78+
"contentType": null,
79+
"configurationParameter": [
80+
{
81+
"name": "[InstalledApplication]NotInstalledApplicationResource1;Name",
82+
"value": "NotePad,sql"
83+
}
84+
]
85+
},
86+
"provisioningState": "Succeeded"
87+
}
88+
}
89+
}
90+
}
91+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "mySubscriptionId",
4+
"resourceGroupName": "myResourceGroupName",
5+
"vmName": "myVMName",
6+
"guestConfigurationAssignmentName": "SecureProtocol",
7+
"api-version": "2022-01-25"
8+
},
9+
"responses": {
10+
"200": {}
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "mySubscriptionId",
4+
"resourceGroupName": "myResourceGroupName",
5+
"machineName": "myMachineName",
6+
"guestConfigurationAssignmentName": "SecureProtocol",
7+
"api-version": "2022-01-25"
8+
},
9+
"responses": {
10+
"200": {}
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "mySubscriptionId",
4+
"resourceGroupName": "myResourceGroupName",
5+
"vmssName": "myVMSSName",
6+
"name": "SecureProtocol",
7+
"api-version": "2022-01-25"
8+
},
9+
"responses": {
10+
"200": {
11+
"headers": {},
12+
"body": {
13+
"location": "centraluseuap",
14+
"id": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Compute/virtualMachineScaleSets/myVMSSName/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/AuditSecureProtocol",
15+
"name": "AuditSecureProtocol",
16+
"properties": {
17+
"complianceStatus": "Compliant",
18+
"assignmentHash": "E0D8941DD713F284284561648C00C18FA76C8602943C7CD38AFD73B56AE4C35F.E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
19+
"latestReportId": null,
20+
"lastComplianceStatusChecked": "2018-08-29T22:14:13Z",
21+
"context": null,
22+
"guestConfiguration": {
23+
"kind": null,
24+
"name": "AuditSecureProtocol",
25+
"version": "1.0.0.3",
26+
"contentUri": "https://mystorageaccount.blob.core.windows.net/builtinconfig/AuditSecureProtocol/AuditSecureProtocol_1.0.0.3.zip",
27+
"contentHash": "content hash",
28+
"configurationParameter": [],
29+
"configurationSetting": null
30+
},
31+
"provisioningState": "Succeeded",
32+
"resourceType": "VMSS",
33+
"vmssVMList": null
34+
}
35+
}
36+
},
37+
"204": {}
38+
}
39+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "mySubscriptionId",
4+
"resourceGroupName": "myResourceGroupName",
5+
"vmName": "myVMName",
6+
"guestConfigurationAssignmentName": "SecureProtocol",
7+
"api-version": "2022-01-25"
8+
},
9+
"responses": {
10+
"200": {
11+
"headers": {},
12+
"body": {
13+
"location": "centraluseuap",
14+
"id": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Compute/virtualMachines/myvm/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/AuditSecureProtocol",
15+
"name": "AuditSecureProtocol",
16+
"properties": {
17+
"complianceStatus": "Compliant",
18+
"assignmentHash": "E0D8941DD713F284284561648C00C18FA76C8602943C7CD38AFD73B56AE4C35F.E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
19+
"latestReportId": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Compute/virtualMachines/myvm/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/AuditSecureProtocol/reports/7367cbb8-ae99-47d0-a33b-a283564d2cb1",
20+
"lastComplianceStatusChecked": "2018-08-29T22:14:13Z",
21+
"context": null,
22+
"guestConfiguration": {
23+
"kind": null,
24+
"name": "AuditSecureProtocol",
25+
"version": "1.0.0.3",
26+
"contentUri": "https://mystorageaccount.blob.core.windows.net/builtinconfig/AuditSecureProtocol/AuditSecureProtocol_1.0.0.3.zip",
27+
"contentHash": "content hash",
28+
"configurationParameter": [],
29+
"configurationSetting": null
30+
},
31+
"provisioningState": "Succeeded"
32+
}
33+
}
34+
}
35+
}
36+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "mySubscriptionid",
4+
"resourceGroupName": "myResourceGroupName",
5+
"vmName": "myvm",
6+
"guestConfigurationAssignmentName": "AuditSecureProtocol",
7+
"reportId": "7367cbb8-ae99-47d0-a33b-a283564d2cb1",
8+
"api-version": "2022-01-25"
9+
},
10+
"responses": {
11+
"200": {
12+
"headers": {},
13+
"body": {
14+
"id": "/subscriptions/mysubscriptionid/resourceGroups/myResourceGroupName/providers/Microsoft.Compute/virtualMachines/myvm/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/AuditSecureProtocol/reports/7367cbb8-ae99-47d0-a33b-a283564d2cb1",
15+
"name": "7367cbb8-ae99-47d0-a33b-a283564d2cb1",
16+
"properties": {
17+
"complianceStatus": "Compliant",
18+
"assignment": {
19+
"name": "AuditSecureProtocol",
20+
"configuration": {
21+
"name": "AuditSecureProtocol",
22+
"version": "1.0.0.0"
23+
}
24+
},
25+
"reportId": "7367cbb8-ae99-47d0-a33b-a283564d2cb1",
26+
"vm": {
27+
"id": "/subscriptions/mysubscriptionid/resourceGroups/myResourceGroupName/providers/Microsoft.Compute/virtualMachines/myvm",
28+
"uuid": "vmuuid"
29+
},
30+
"details": {
31+
"complianceStatus": "Compliant",
32+
"startTime": "2018-08-29T22:13:53Z",
33+
"endTime": "2018-08-29T22:14:13Z",
34+
"jobId": "7367cbb8-ae99-47d0-a33b-a283564d2cb1",
35+
"resources": [
36+
{
37+
"complianceStatus": "Compliant",
38+
"reasons": [
39+
{
40+
"phrase": "Operation successful.",
41+
"code": "DSC::RESOURCE::SUCCESS"
42+
}
43+
],
44+
"properties": {
45+
"ConfigurationName": "IsWebServerSecure",
46+
"DependsOn": null,
47+
"IsSingleInstance": "Yes",
48+
"ModuleName": "SecureProtocolWebServer",
49+
"ModuleVersion": "1.0.0.3",
50+
"Protocols": [
51+
{
52+
"Ensure": "Absent",
53+
"Protocol": "SSL 2.0"
54+
},
55+
{
56+
"Ensure": "Absent",
57+
"Protocol": "SSL 3.0"
58+
},
59+
{
60+
"Ensure": "Absent",
61+
"Protocol": "TLS 1.0"
62+
},
63+
{
64+
"Ensure": "Absent",
65+
"Protocol": "PCT 1.0"
66+
},
67+
{
68+
"Ensure": "Absent",
69+
"Protocol": "Multi-Protocol Unified Hello"
70+
},
71+
{
72+
"Ensure": "Absent",
73+
"Protocol": "TLS 1.1"
74+
},
75+
{
76+
"Ensure": "Absent",
77+
"Protocol": "TLS 1.2"
78+
}
79+
],
80+
"PsDscRunAsCredential": null,
81+
"Reasons": null,
82+
"ResourceId": "[SecureWebServer]s1",
83+
"SourceInfo": null
84+
}
85+
}
86+
],
87+
"operationType": "Consistency"
88+
},
89+
"startTime": "2018-08-29T22:13:53Z",
90+
"endTime": "2018-08-29T22:14:13Z"
91+
}
92+
}
93+
}
94+
}
95+
}

0 commit comments

Comments
 (0)