Removed hardcoded values for testing

This commit is contained in:
Sreedhar Ande 2021-06-15 17:34:27 -07:00
Родитель 4f30898934
Коммит ebf77f4c70
1 изменённых файлов: 5 добавлений и 18 удалений

Просмотреть файл

@ -1,30 +1,17 @@
<#
Title: Integrate Azure Data Explorer (ADX) for Long term retention storage
Language: PowerShell
Version: 1.0
Author: Sreedhar Ande
Last Modified: 06/14/2021
<#
THE SCRIPT IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SCRIPT OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
#>
PARAM(
<# [Parameter(Mandatory=$true)] $LogAnalyticsWorkspaceName,
[Parameter(Mandatory=$true)] $LogAnalyticsWorkspaceName,
[Parameter(Mandatory=$true)] $LogAnalyticsResourceGroup,
[Parameter(Mandatory=$true)] $ADXResourceGroup,
[Parameter(Mandatory=$true)] $ADXClusterURL,
[Parameter(Mandatory=$true)] $ADXDBName,#>
$LogAnalyticsWorkspaceName = "adminsoc",
$LogAnalyticsResourceGroup = "admin",
$ADXResourceGroup = "rg-adminsoc-adx",
$ADXClusterURL = "https://sreeadminsocadx.westus2.kusto.windows.net",
$ADXDBName = "1145db",
[Parameter(Mandatory=$true)] $ADXDBName,
$ADXEngineUrl = "$ADXClusterURL/$ADXDBName",
$kustoToolsPackage = "microsoft.azure.kusto.tools",
$kustoConnectionString = "$ADXEngineUrl;Fed=True",
@ -422,7 +409,7 @@ Function CreateADXDataConnection(){
"properties": {
"eventHubResourceId": "$eventHubResourceId",
"consumerGroup": "$('$Default')",
"dataFormat":"JSON",
"dataFormat":"MULTILINE JSON",
"tableName":"$adxTableRaw",
"mappingRuleName":"$adxTableRawMapping",
"compression":"None"