Skip to content

Commit

Permalink
Add missing path for Guest Config (#22766)
Browse files Browse the repository at this point in the history
* 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
Rusalunk authored Mar 3, 2023
1 parent b92e9b3 commit bd8511c
Show file tree
Hide file tree
Showing 20 changed files with 1,616 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@
"in": "path",
"required": true,
"type": "string",
"pattern": "^[a-zA-Z0-9][-a-zA-Z0-9_.]*[a-zA-Z0-9]$",
"description": "The name of the virtual machine.",
"x-ms-parameter-location": "method"
},
Expand Down
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"
}
}
}
}
}
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": {}
}
}
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"
}
}
}
}
}
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"
}
}
}
}
}
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"
}
}
]
}
}
}
}
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
}
}
]
}
}
}
Loading

0 comments on commit bd8511c

Please sign in to comment.