-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing path for Guest Config (#22766)
* Add missing path for Guest Config * Add missing path for Guest Config * Add missing path * Add missing path * update pattern * Add missing path * validation check fix * update pattern * validation check fix * Add Scenario test file * Add Scenario test file * Add Scenario test file * Add Scenario test file * Add Scenario test file * Add Scenario test file * Add Scenario test file * Add Scenario test file * Add Scenario test file * Add Scenario test file * Add Scenario test file * Add Scenario test file * Add Scenario test file
- Loading branch information
Showing
20 changed files
with
1,616 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
95 changes: 95 additions & 0 deletions
95
...2020-06-25/examples/createOrUpdateGuestConfigurationConnectedVMwarevSphereAssignment.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "mySubscriptionId", | ||
"resourceGroupName": "myResourceGroupName", | ||
"vmName": "myVMName", | ||
"guestConfigurationAssignmentName": "NotInstalledApplicationForWindows", | ||
"api-version": "2020-06-25", | ||
"parameters": { | ||
"location": "westcentralus", | ||
"name": "NotInstalledApplicationForWindows", | ||
"properties": { | ||
"context": "Azure policy", | ||
"guestConfiguration": { | ||
"name": "NotInstalledApplicationForWindows", | ||
"version": "1.*", | ||
"contentUri": "https://thisisfake/pacakge", | ||
"contentHash": "123contenthash", | ||
"assignmentType": "ApplyAndAutoCorrect", | ||
"configurationParameter": [ | ||
{ | ||
"name": "[InstalledApplication]NotInstalledApplicationResource1;Name", | ||
"value": "NotePad,sql" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"headers": {}, | ||
"body": { | ||
"location": "westcentralus", | ||
"id": "/subscriptions/mysubscriptionid/resourceGroups/myResourceGroupName/providers/Microsoft.ConnectedVMwarevSphere/virtualmachines/myvm/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/NotInstalledApplicationForWindows", | ||
"name": "NotInstalledApplicationForWindows", | ||
"properties": { | ||
"complianceStatus": "Pending", | ||
"assignmentHash": null, | ||
"latestReportId": null, | ||
"lastComplianceStatusChecked": null, | ||
"context": "Azure policy", | ||
"resourceType": null, | ||
"vmssVMList": null, | ||
"guestConfiguration": { | ||
"kind": null, | ||
"name": "NotInstalledApplicationForWindows", | ||
"version": "1.0.0.3", | ||
"contentUri": null, | ||
"contentHash": null, | ||
"contentType": null, | ||
"configurationParameter": [ | ||
{ | ||
"name": "[InstalledApplication]NotInstalledApplicationResource1;Name", | ||
"value": "NotePad,sql" | ||
} | ||
] | ||
}, | ||
"provisioningState": "Succeeded" | ||
} | ||
} | ||
}, | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"location": "westcentralus", | ||
"id": "/subscriptions/mysubscriptionid/resourceGroups/myResourceGroupName/providers/microsoft.ConnectedVMwarevSphere/virtualmachines/myvm/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/NotInstalledApplicationForWindows", | ||
"name": "NotInstalledApplicationForWindows", | ||
"properties": { | ||
"complianceStatus": "Pending", | ||
"assignmentHash": null, | ||
"latestReportId": null, | ||
"lastComplianceStatusChecked": null, | ||
"context": "Azure policy", | ||
"resourceType": null, | ||
"vmssVMList": null, | ||
"guestConfiguration": { | ||
"kind": null, | ||
"name": "NotInstalledApplicationForWindows", | ||
"version": "1.0.0.3", | ||
"contentUri": null, | ||
"contentHash": null, | ||
"contentType": null, | ||
"configurationParameter": [ | ||
{ | ||
"name": "[InstalledApplication]NotInstalledApplicationResource1;Name", | ||
"value": "NotePad,sql" | ||
} | ||
] | ||
}, | ||
"provisioningState": "Succeeded" | ||
} | ||
} | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
.../stable/2020-06-25/examples/deleteGuestConfigurationConnectedVMwarevSphereAssignment.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "mySubscriptionId", | ||
"resourceGroupName": "myResourceGroupName", | ||
"vmName": "myVMName", | ||
"guestConfigurationAssignmentName": "SecureProtocol", | ||
"api-version": "2020-06-25" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
...ion/stable/2020-06-25/examples/getGuestConfigurationConnectedVMwarevSphereAssignment.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "mySubscriptionId", | ||
"resourceGroupName": "myResourceGroupName", | ||
"vmName": "myVMName", | ||
"guestConfigurationAssignmentName": "SecureProtocol", | ||
"api-version": "2020-06-25" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"location": "centraluseuap", | ||
"id": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/microsoft.ConnectedVMwarevSphere/virtualmachines/myvm/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/AuditSecureProtocol", | ||
"name": "AuditSecureProtocol", | ||
"properties": { | ||
"complianceStatus": "Compliant", | ||
"assignmentHash": "E0D8941DD713F284284561648C00C18FA76C8602943C7CD38AFD73B56AE4C35F.E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855", | ||
"latestReportId": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/microsoft.ConnectedVMwarevSphere/virtualmachines/myvm/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/AuditSecureProtocol/reports/7367cbb8-ae99-47d0-a33b-a283564d2cb1", | ||
"lastComplianceStatusChecked": "2018-08-29T22:14:13Z", | ||
"context": null, | ||
"guestConfiguration": { | ||
"kind": null, | ||
"name": "AuditSecureProtocol", | ||
"version": "1.0.0.3", | ||
"contentUri": "https://mystorageaccount.blob.core.windows.net/builtinconfig/AuditSecureProtocol/AuditSecureProtocol_1.0.0.3.zip", | ||
"contentHash": "content hash", | ||
"configurationParameter": [], | ||
"configurationSetting": null | ||
}, | ||
"provisioningState": "Succeeded" | ||
} | ||
} | ||
} | ||
} | ||
} |
95 changes: 95 additions & 0 deletions
95
.../2020-06-25/examples/getGuestConfigurationConnectedVMwarevSphereAssignmentReportById.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "mySubscriptionid", | ||
"resourceGroupName": "myResourceGroupName", | ||
"vmName": "myvm", | ||
"guestConfigurationAssignmentName": "AuditSecureProtocol", | ||
"reportId": "7367cbb8-ae99-47d0-a33b-a283564d2cb1", | ||
"api-version": "2020-06-25" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"id": "/subscriptions/mysubscriptionid/resourceGroups/myResourceGroupName/providers/Microsoft.Connectedvmwarevsphere/virtualmachines/myvm/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/AuditSecureProtocol/reports/7367cbb8-ae99-47d0-a33b-a283564d2cb1", | ||
"name": "7367cbb8-ae99-47d0-a33b-a283564d2cb1", | ||
"properties": { | ||
"complianceStatus": "Compliant", | ||
"assignment": { | ||
"name": "AuditSecureProtocol", | ||
"configuration": { | ||
"name": "AuditSecureProtocol", | ||
"version": "1.0.0.0" | ||
} | ||
}, | ||
"reportId": "7367cbb8-ae99-47d0-a33b-a283564d2cb1", | ||
"vm": { | ||
"id": "/subscriptions/mysubscriptionid/resourceGroups/myResourceGroupName/providers/Microsoft.Connectedvmwarevsphere/virtualmachines/myvm", | ||
"uuid": "vmuuid" | ||
}, | ||
"details": { | ||
"complianceStatus": "Compliant", | ||
"startTime": "2018-08-29T22:13:53Z", | ||
"endTime": "2018-08-29T22:14:13Z", | ||
"jobId": "7367cbb8-ae99-47d0-a33b-a283564d2cb1", | ||
"resources": [ | ||
{ | ||
"complianceStatus": "Compliant", | ||
"reasons": [ | ||
{ | ||
"phrase": "Operation successful.", | ||
"code": "DSC::RESOURCE::SUCCESS" | ||
} | ||
], | ||
"properties": { | ||
"ConfigurationName": "IsWebServerSecure", | ||
"DependsOn": null, | ||
"IsSingleInstance": "Yes", | ||
"ModuleName": "SecureProtocolWebServer", | ||
"ModuleVersion": "1.0.0.3", | ||
"Protocols": [ | ||
{ | ||
"Ensure": "Absent", | ||
"Protocol": "SSL 2.0" | ||
}, | ||
{ | ||
"Ensure": "Absent", | ||
"Protocol": "SSL 3.0" | ||
}, | ||
{ | ||
"Ensure": "Absent", | ||
"Protocol": "TLS 1.0" | ||
}, | ||
{ | ||
"Ensure": "Absent", | ||
"Protocol": "PCT 1.0" | ||
}, | ||
{ | ||
"Ensure": "Absent", | ||
"Protocol": "Multi-Protocol Unified Hello" | ||
}, | ||
{ | ||
"Ensure": "Absent", | ||
"Protocol": "TLS 1.1" | ||
}, | ||
{ | ||
"Ensure": "Absent", | ||
"Protocol": "TLS 1.2" | ||
} | ||
], | ||
"PsDscRunAsCredential": null, | ||
"Reasons": null, | ||
"ResourceId": "[SecureWebServer]s1", | ||
"SourceInfo": null | ||
} | ||
} | ||
], | ||
"operationType": "Consistency" | ||
}, | ||
"startTime": "2018-08-29T22:13:53Z", | ||
"endTime": "2018-08-29T22:14:13Z" | ||
} | ||
} | ||
} | ||
} | ||
} |
60 changes: 60 additions & 0 deletions
60
...020-06-25/examples/listAllGuestConfigurationConnectedVMwarevSphereAssignmentsReports.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "mySubscriptionid", | ||
"resourceGroupName": "myResourceGroupName", | ||
"vmName": "myVMName", | ||
"guestConfigurationAssignmentName": "AuditSecureProtocol", | ||
"api-version": "2020-06-25" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/mysubscriptionid/resourceGroups/myResourceGroupName/providers/Microsoft.Connectedvmwarevsphere/virtualmachines/myvm/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/AuditSecureProtocol/reports/7367cbb8-ae99-47d0-a33b-a283564d2cb1", | ||
"name": "7367cbb8-ae99-47d0-a33b-a283564d2cb1", | ||
"properties": { | ||
"complianceStatus": "Compliant", | ||
"assignment": { | ||
"name": "AuditSecureProtocol", | ||
"configuration": { | ||
"name": "AuditSecureProtocol" | ||
} | ||
}, | ||
"reportId": "7367cbb8-ae99-47d0-a33b-a283564d2cb1", | ||
"vm": { | ||
"id": "/subscriptions/mysubscriptionid/resourceGroups/myResourceGroupName/providers/Microsoft.Connectedvmwarevsphere/virtualmachines/myvm", | ||
"uuid": "vmuuid" | ||
}, | ||
"details": null, | ||
"startTime": "2018-08-29T22:13:53Z", | ||
"endTime": "2018-08-29T22:14:13Z" | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/mysubscriptionid/resourceGroups/myResourceGroupName/providers/Microsoft.Connectedvmwarevsphere/virtualmachines/myvm/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/AuditSecureProtocol/reports/41ee2caf-48f9-4999-a793-82ec7c6beb2c", | ||
"name": "41ee2caf-48f9-4999-a793-82ec7c6beb2c", | ||
"properties": { | ||
"complianceStatus": "Compliant", | ||
"assignment": { | ||
"name": "AuditSecureProtocol", | ||
"configuration": { | ||
"name": "AuditSecureProtocol" | ||
} | ||
}, | ||
"reportId": "41ee2caf-48f9-4999-a793-82ec7c6beb2c", | ||
"vm": { | ||
"id": "/subscriptions/mysubscriptionid/resourceGroups/myResourceGroupName/providers/Microsoft.Connectedvmwarevsphere/virtualmachines/myvm", | ||
"uuid": "vmuuid" | ||
}, | ||
"details": null, | ||
"startTime": "2018-08-29T20:13:53Z", | ||
"endTime": "2018-08-29T20:14:13Z" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
59 changes: 59 additions & 0 deletions
59
...n/stable/2020-06-25/examples/listGuestConfigurationConnectedVMwarevSphereAssignments.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "mySubscriptionId", | ||
"resourceGroupName": "myResourceGroupName", | ||
"vmName": "myVMName", | ||
"api-version": "2020-06-25" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": [ | ||
{ | ||
"location": "centraluseuap", | ||
"id": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.ConnectedVMwarevSphere/virtualmachines/myvm/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/AuditSecureProtocol2", | ||
"name": "AuditSecureProtocol2", | ||
"properties": { | ||
"complianceStatus": "Compliant", | ||
"assignmentHash": "content hash", | ||
"latestReportId": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.ConnectedVMwarevSphere/virtualmachines/myvm/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/AuditSecureProtocol2/reports/7367cbb8-ae99-47d0-a33b-a283564d2cb1", | ||
"lastComplianceStatusChecked": "2018-08-29T22:14:13Z", | ||
"context": null, | ||
"guestConfiguration": { | ||
"kind": null, | ||
"name": "AuditSecureProtocol2", | ||
"version": "1.0.0.3", | ||
"contentUri": "https://mystorageaccount.blob.core.windows.net/builtinconfig/AuditSecureProtocol2/AuditSecureProtocol2_1.0.0.3.zip", | ||
"contentHash": "content hash", | ||
"configurationParameter": [], | ||
"configurationSetting": null | ||
}, | ||
"provisioningState": null | ||
} | ||
}, | ||
{ | ||
"location": "centraluseuap", | ||
"id": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.ConnectedVMwarevSphere/virtualmachines/myvm/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/myAssignment", | ||
"name": "myAssignment", | ||
"properties": { | ||
"complianceStatus": "Compliant", | ||
"assignmentHash": "content hash", | ||
"latestReportId": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.ConnectedVMwarevSphere/virtualmachines/myvm/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/myAssignment/reports/7367cbb8-ae99-47d0-a33b-a283564d2cb1", | ||
"lastComplianceStatusChecked": "2018-08-29T22:14:13Z", | ||
"context": null, | ||
"guestConfiguration": { | ||
"kind": null, | ||
"name": "myAssignment", | ||
"version": "1.0.0.3", | ||
"contentUri": "https://mystorageaccount.blob.core.windows.net/builtinconfig/myAssignment/myAssignment.0.0.3.zip", | ||
"contentHash": "content hash", | ||
"configurationParameter": [], | ||
"configurationSetting": null | ||
}, | ||
"provisioningState": null | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |
Oops, something went wrong.