-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SQL VM]
az sql vm update
: Add configuration options for SQL Assess…
…ment pre-requisites (#22672) * Manage SQLVM Assessment * Update sqlvm tests * pylint fixes * temp * Add workspace arguments for sql vm update * Remove unnecessary change in az vm code * Suppress cred in response body during one-off live test * fix lingering stylecop issue * Fix style issue * code review comments * remove blank line Co-authored-by: Vaibhav Devekar <[email protected]>
- Loading branch information
Showing
18 changed files
with
9,149 additions
and
4,240 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
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
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
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
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
48 changes: 48 additions & 0 deletions
48
src/azure-cli/azure/cli/command_modules/sqlvm/_assessment_data_source.py
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,48 @@ | ||
# -------------------------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for license information. | ||
# -------------------------------------------------------------------------------------------- | ||
|
||
# pylint: skip-file | ||
|
||
data_source_name = "DataSource_CustomLog_SQLAssessment_CL" | ||
data_source_kind = "CustomLog" | ||
|
||
data_source_properties = { | ||
"customLogName": "SqlAssessment", | ||
"description": "The Sql Assessment results", | ||
"extractions": [ | ||
{ | ||
"extractionName": "TimeGenerated", | ||
"extractionProperties": { | ||
"dateTimeExtraction": { | ||
"regex": [ | ||
{ | ||
"matchIndex": 0, | ||
"pattern": "((\\d{2})|(\\d{4}))-([0-1]\\d)-(([0-3]\\d)|(\\d))T((\\d)|([0-1]\\d)|(2[0-4])):[0-5][0-9]:[0-5][0-9]" | ||
} | ||
], | ||
"formatString": "yyyy-MM-ddTHH:mm:ssK" | ||
} | ||
}, | ||
"extractionType": "DateTime" | ||
} | ||
], | ||
"inputs": [ | ||
{ | ||
"location": { | ||
"fileSystemLocations": { | ||
"windowsFileTypeLogPaths": [ | ||
"C:\\Windows\\System32\\config\\systemprofile\\AppData\\Local\\Microsoft SQL Server IaaS Agent\\Assessment\\*.csv" | ||
] | ||
} | ||
}, | ||
"recordDelimiter": { | ||
"regexDelimiter": { | ||
"matchIndex": 0, | ||
"pattern": "(^.*((\\d{2})|(\\d{4}))-([0-1]\\d)-(([0-3]\\d)|(\\d))T((\\d)|([0-1]\\d)|(2[0-4])):[0-5][0-9]:[0-5][0-9].*$)" | ||
} | ||
} | ||
} | ||
] | ||
} |
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
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
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
Oops, something went wrong.