Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding VA support for manged instance #3353

Merged
merged 1 commit into from
Aug 9, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "vulnerabilityaseessmenttest-4799",
"managedInstanceName": "vulnerabilityaseessmenttest-6440",
"databaseName": "testdb",
"vulnerabilityAssessmentName": "default",
"api-version": "2017-10-01-preview",
"parameters": {
"properties": {
"storageContainerPath": "https://myStorage.blob.core.windows.net/vulnerability-assessment/",
"storageContainerSasKey": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"recurringScans": {
"isEnabled": true,
"emailSubscriptionAdmins": true,
"emails": [ "email1@mail.com", "email2@mail.com" ]
}
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityaseessmenttest-4799/providers/Microsoft.Sql/managedInstances/vulnerabilityaseessmenttest-6440/databases/testdb/vulnerabilityAssessments/default",
"name": "default",
"type": "Microsoft.Sql/servers/databases/vulnerabilityAssessments",
"properties": {
"storageContainerPath": "https://myStorage.blob.core.windows.net/vulnerability-assessment/",
"recurringScans": {
"isEnabled": true,
"emailSubscriptionAdmins": true,
"emails": [ "email1@mail.com", "email2@mail.com" ]
}
}
}
},
"201": {
"body": {
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityaseessmenttest-4799/providers/Microsoft.Sql/managedInstances/vulnerabilityaseessmenttest-6440/databases/testdb/vulnerabilityAssessments/default",
"name": "default",
"type": "Microsoft.Sql/servers/databases/vulnerabilityAssessments",
"properties": {
"storageContainerPath": "https://myStorage.blob.core.windows.net/vulnerability-assessment/",
"recurringScans": {
"isEnabled": true,
"emailSubscriptionAdmins": true,
"emails": [ "email1@mail.com", "email2@mail.com" ]
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "vulnerabilityaseessmenttest-4799",
"managedInstanceName": "vulnerabilityaseessmenttest-6440",
"databaseName": "testdb",
"vulnerabilityAssessmentName": "default",
"api-version": "2017-10-01-preview",
"parameters": {
"properties": {
"storageContainerPath": "https://myStorage.blob.core.windows.net/vulnerability-assessment/",
"storageContainerSasKey": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityaseessmenttest-4799/providers/Microsoft.Sql/managedInstances/vulnerabilityaseessmenttest-6440/databases/testdb/vulnerabilityAssessments/default",
"name": "default",
"type": "Microsoft.Sql/servers/databases/vulnerabilityAssessments",
"properties": {
"storageContainerPath": "https://myStorage.blob.core.windows.net/vulnerability-assessment/",
"recurringScans": {
"isEnabled": false,
"emailSubscriptionAdmins": false,
"emails": []
}
}
}
},
"201": {
"body": {
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityaseessmenttest-4799/providers/Microsoft.Sql/managedInstances/vulnerabilityaseessmenttest-6440/databases/testdb/vulnerabilityAssessments/default",
"name": "default",
"type": "Microsoft.Sql/servers/databases/vulnerabilityAssessments",
"properties": {
"storageContainerPath": "https://myStorage.blob.core.windows.net/vulnerability-assessment/",
"recurringScans": {
"isEnabled": false,
"emailSubscriptionAdmins": false,
"emails": []
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "vulnerabilityaseessmenttest-4799",
"managedInstanceName": "vulnerabilityaseessmenttest-6440",
"databaseName": "testdb",
"vulnerabilityAssessmentName": "default",
"api-version": "2017-10-01-preview"
},
"responses": {
"200": {
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "vulnerabilityaseessmenttest-4799",
"managedInstanceName": "vulnerabilityaseessmenttest-6440",
"databaseName": "testdb",
"vulnerabilityAssessmentName": "default",
"api-version": "2017-10-01-preview"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityaseessmenttest-4799/providers/Microsoft.Sql/managedInstances/vulnerabilityaseessmenttest-6440/databases/testdb/vulnerabilityAssessments/default",
"name": "default",
"type": "Microsoft.Sql/servers/databases/vulnerabilityAssessments",
"properties": {
"storageContainerPath": "https://myStorage.blob.core.windows.net/vulnerability-assessment/",
"recurringScans": {
"isEnabled": true,
"emailSubscriptionAdmins": true,
"emails": [ "email1@mail.com", "email2@mail.com" ]
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "vulnerabilityaseessmenttest-4799",
"managedInstanceName": "vulnerabilityaseessmenttest-6440",
"databaseName": "testdb",
"vulnerabilityAssessmentName": "default",
"ruleId": "VA1001",
"baselineName": "default",
"api-version": "2017-10-01-preview",
"parameters": {
"properties": {
"baselineResults": [
{
"result": [ "userA", "SELECT" ]
},
{
"result": [ "userB", "SELECT" ]
},
{
"result": [ "userC", "SELECT", "tableId_4" ]
}
]
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityaseessmenttest-4799/providers/Microsoft.Sql/managedInstances/vulnerabilityaseessmenttest-6440/databases/testdb/vulnerabilityAssessments/default/rules/VA1001/baselines/default",
"name": "default",
"type": "Microsoft.Sql/servers/databases/vulnerabilityAssessments/rules/baselines",
"properties": {
"baselineResults": [
{
"result": [ "userA", "SELECT" ]
},
{
"result": [ "userB", "SELECT" ]
},
{
"result": [ "userC", "SELECT", "tableId_4" ]
}
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "vulnerabilityaseessmenttest-4799",
"managedInstanceName": "vulnerabilityaseessmenttest-6440",
"databaseName": "testdb",
"baselineName": "default",
"ruleId": "VA1001",
"vulnerabilityAssessmentName": "default",
"api-version": "2017-10-01-preview"
},
"responses": {
"200": {
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "vulnerabilityaseessmenttest-4711",
"managedInstanceName": "vulnerabilityaseessmenttest-6411",
"databaseName": "testdb",
"vulnerabilityAssessmentName": "default",
"ruleId": "VA1001",
"baselineName": "master",
"api-version": "2017-10-01-preview"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityaseessmenttest-4799/providers/Microsoft.Sql/managedInstances/vulnerabilityaseessmenttest-6440/databases/testdb/vulnerabilityAssessments/default/rules/VA1001/baselines/default",
"name": "default",
"type": "Microsoft.Sql/servers/databases/vulnerabilityAssessments/rules/baselines",
"properties": {
"baselineResults": [
{
"result": [ "userA", "SELECT" ]
},
{
"result": [ "userB", "SELECT" ]
},
{
"result": [ "userC", "SELECT", "tableId_4" ]
}
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "vulnerabilityassessmenttest-4799",
"managedInstanceName": "vulnerabilityassessmenttest-6440",
"databaseName": "testdb",
"vulnerabilityAssessmentName": "default",
"scanId": "scan001",
"api-version": "2017-10-01-preview",
"parameters": {}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityassessmenttest-4799/providers/Microsoft.Sql/managedInstances/vulnerabilityassessmenttest-6440/databases/testdb/vulnerabilityAssessments/default/scans/scan001/export",
"name": "scan001",
"type": "Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans/export",
"properties": {
"exportedReportLocation": "https://myaccount.blob.core.windows.net/vulnerabilityAssessment/vulnerabilityassessmenttest-6440/testdb/scan001.xlsx"
}
}
},
"201": {
"body": {
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityassessmenttest-4799/providers/Microsoft.Sql/managedInstances/vulnerabilityassessmenttest-6440/databases/testdb/vulnerabilityAssessments/default/scans/scan001/export",
"name": "scan001",
"type": "Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans/export",
"properties": {
"exportedReportLocation": "https://myaccount.blob.core.windows.net/vulnerabilityAssessment/vulnerabilityassessmenttest-6440/testdb/scan001.xlsx"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "vulnerabilityassessmenttest-4711",
"managedInstanceName": "vulnerabilityassessmenttest-6411",
"databaseName": "testdb",
"vulnerabilityAssessmentName": "default",
"scanId": "scan001",
"api-version": "2017-10-01-preview"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityassessmenttest-4799/providers/Microsoft.Sql/managedInstances/vulnerabilityassessmenttest-6440/databases/testdb/vulnerabilityAssessments/default/scans/scan001",
"name": "scan001",
"type": "Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans",
"properties": {
"scanId": "scan001",
"triggerType": "OnDemand",
"state": "Passed",
"startTime": "2017-12-12T17:45:06Z",
"endTime": "2017-12-12T17:47:06Z",
"errors": [],
"storageContainerPath": "https://myaccount.blob.core.windows.net/vulnerability-assessment",
"numberOfFailedSecurityChecks": 9
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "vulnerabilityassessmenttest-4711",
"managedInstanceName": "vulnerabilityassessmenttest-6411",
"databaseName": "testdb",
"vulnerabilityAssessmentName": "default",
"api-version": "2017-10-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityassessmenttest-4799/providers/Microsoft.Sql/managedInstances/vulnerabilityassessmenttest-6440/databases/testdb/vulnerabilityAssessments/default/scans/scan001",
"name": "scan001",
"type": "Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans",
"properties": {
"scanId": "scan001",
"triggerType": "OnDemand",
"state": "Passed",
"startTime": "2017-12-12T17:45:06Z",
"endTime": "2017-12-12T17:47:06Z",
"errors": [ ],
"storageContainerPath": "https://myaccount.blob.core.windows.net/vulnerability-assessment",
"numberOfFailedSecurityChecks": 9
}
},
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityassessmenttest-4799/providers/Microsoft.Sql/managedInstances/vulnerabilityassessmenttest-6440/databases/testdb/vulnerabilityAssessments/default/scans/scan002",
"name": "scan002",
"type": "Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans",
"properties": {
"scanId": "scan002",
"triggerType": "Recurring",
"state": "Failed",
"startTime": "2017-12-12T17:45:06Z",
"endTime": "2017-12-12T17:47:06Z",
"errors": [ ],
"storageContainerPath": "https://myaccount.blob.core.windows.net/vulnerability-assessment",
"numberOfFailedSecurityChecks": 9
}
},
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityassessmenttest-4799/providers/Microsoft.Sql/managedInstances/vulnerabilityassessmenttest-6440/databases/testdb/vulnerabilityAssessments/default/scans/scan003",
"name": "scan003",
"type": "Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans",
"properties": {
"scanId": "scan003",
"triggerType": "Recurring",
"state": "FailedToRun",
"startTime": "2017-12-12T17:45:06Z",
"endTime": "2017-12-12T17:47:06Z",
"errors": [
{
"code": "StorageNotFound",
"message": "Storage not found"
}
],
"storageContainerPath": "https://myaccount.blob.core.windows.net/vulnerability-assessment",
"numberOfFailedSecurityChecks": 0
}
}
]
}
}
}
}
Loading