Skip to content

Commit 4f95a11

Browse files
LucasYao93isra-fel
andauthored
Add Kusto Module. (#12648)
* Add Kusto Module. * Update ChangeLog.md Co-authored-by: Yeming Liu <[email protected]>
1 parent c222b6e commit 4f95a11

File tree

536 files changed

+21063
-10026
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

536 files changed

+21063
-10026
lines changed

src/Kusto/Az.Kusto.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<PsModuleName>Kusto</PsModuleName>
44
</PropertyGroup>
55

66
<Import Project="$(MSBuildThisFileDirectory)..\Az.autorest.props" />
7-
</Project>
7+
</Project>

src/Kusto/Az.Kusto.format.ps1xml

Lines changed: 118 additions & 100 deletions
Large diffs are not rendered by default.

src/Kusto/Az.Kusto.psd1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 5/7/2020
6+
# Generated on: 8/12/2020
77
#
88

99
@{
@@ -18,7 +18,7 @@ ModuleVersion = '0.1.4'
1818
CompatiblePSEditions = 'Core', 'Desktop'
1919

2020
# ID used to uniquely identify this module
21-
GUID = 'af390c08-e984-4145-81c9-effe6fb4c9f6'
21+
GUID = '18c61846-f6f0-425e-ba4b-5cf903e2bdd8'
2222

2323
# Author of this module
2424
Author = 'Microsoft Corporation'
@@ -45,13 +45,13 @@ PowerShellVersion = '5.1'
4545
DotNetFrameworkVersion = '4.7.2'
4646

4747
# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
48-
# CLRVersion = ''
48+
# ClrVersion = ''
4949

5050
# Processor architecture (None, X86, Amd64) required by this module
5151
# ProcessorArchitecture = ''
5252

5353
# Modules that must be imported into the global environment prior to importing this module
54-
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '1.9.2'; })
54+
# RequiredModules = @()
5555

5656
# Assemblies that must be loaded prior to importing this module
5757
RequiredAssemblies = './bin/Az.Kusto.private.dll'
@@ -135,7 +135,7 @@ PrivateData = @{
135135
# IconUri = ''
136136

137137
# ReleaseNotes of this module
138-
ReleaseNotes = '* Supported new cmdlets'
138+
# ReleaseNotes = ''
139139

140140
# Prerelease string of this module
141141
# Prerelease = ''

src/Kusto/Az.Kusto.psm1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@
2424
}
2525
}
2626
if(-not $accountsModule) {
27-
$hasAdequateVersion = (Get-Module -Name $accountsName -ListAvailable | Where-Object { $_.Version -ge [System.Version]'1.7.4' } | Measure-Object).Count -gt 0
27+
$hasAdequateVersion = (Get-Module -Name $accountsName -ListAvailable | Where-Object { $_.Version -ge [System.Version]'1.8.1' } | Measure-Object).Count -gt 0
2828
if($hasAdequateVersion) {
29-
$accountsModule = Import-Module -Name $accountsName -MinimumVersion 1.7.4 -Scope Global -PassThru
29+
$accountsModule = Import-Module -Name $accountsName -MinimumVersion 1.8.1 -Scope Global -PassThru
3030
}
3131
}
3232
}
3333

3434
if(-not $accountsModule) {
35-
Write-Error "`nThis module requires $accountsName version 1.7.4 or greater. For installation instructions, please see: https://docs.microsoft.com/en-us/powershell/azure/install-az-ps" -ErrorAction Stop
36-
} elseif (($accountsModule.Version -lt [System.Version]'1.7.4') -and (-not $localAccounts)) {
37-
Write-Error "`nThis module requires $accountsName version 1.7.4 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to remove '.PSSharedModules' in your home directory. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop
35+
Write-Error "`nThis module requires $accountsName version 1.8.1 or greater. For installation instructions, please see: https://docs.microsoft.com/en-us/powershell/azure/install-az-ps" -ErrorAction Stop
36+
} elseif (($accountsModule.Version -lt [System.Version]'1.8.1') -and (-not $localAccounts)) {
37+
Write-Error "`nThis module requires $accountsName version 1.8.1 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to remove '.PSSharedModules' in your home directory. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop
3838
}
3939
Write-Information "Loaded Module '$($accountsModule.Name)'"
4040

src/Kusto/ChangeLog.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<!--
22
Please leave this section at the top of the change log.
33
4-
Changes for the current release should go under the section titled "Current Release", and should adhere to the following format:
4+
Changes for the upcoming release should go under the section titled "Upcoming Release", and should adhere to the following format:
55
6-
## Current Release
6+
## Upcoming Release
77
* Overview of change #1
88
- Additional information about change #1
99
* Overview of change #2
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Updated API version to 2020-06-14; added new properties to data connection and cluster
2122

2223
## Version 0.1.4
2324
* Supported new cmdlets

src/Kusto/Kusto.sln

Lines changed: 23 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,48 @@
1-
21
Microsoft Visual Studio Solution File, Format Version 12.00
32
# Visual Studio Version 16
4-
VisualStudioVersion = 16.0.30011.22
3+
VisualStudioVersion = 16.0.29709.97
54
MinimumVisualStudioVersion = 10.0.40219.1
65
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}"
76
EndProject
8-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{FF81DC73-B8EC-4082-8841-4FBF2B16E7CE}"
7+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{62843FE6-7575-4D88-B989-7DF7EEC0BC01}"
98
EndProject
10-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{3E016018-D65D-4336-9F64-17DA97783AD0}"
9+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{442C609B-A431-4A71-B289-08F0B63C83E5}"
1110
EndProject
12-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Az.Kusto", "Az.Kusto.csproj", "{8C00D3B8-1385-4EE9-AB1C-08EBB796CF73}"
11+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{59E8F6B8-8F0E-403F-B88B-9736DBC396D9}"
12+
EndProject
13+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Az.Kusto", "Az.Kusto.csproj", "{1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}"
1314
EndProject
1415
Global
1516
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1617
Debug|Any CPU = Debug|Any CPU
17-
Debug|ARM = Debug|ARM
18-
Debug|x64 = Debug|x64
19-
Debug|x86 = Debug|x86
2018
Release|Any CPU = Release|Any CPU
21-
Release|ARM = Release|ARM
22-
Release|x64 = Release|x64
23-
Release|x86 = Release|x86
2419
EndGlobalSection
2520
GlobalSection(ProjectConfigurationPlatforms) = postSolution
2621
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
2722
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.Build.0 = Debug|Any CPU
28-
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|ARM.ActiveCfg = Debug|Any CPU
29-
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|ARM.Build.0 = Debug|Any CPU
30-
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|x64.ActiveCfg = Debug|Any CPU
31-
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|x64.Build.0 = Debug|Any CPU
32-
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|x86.ActiveCfg = Debug|Any CPU
33-
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|x86.Build.0 = Debug|Any CPU
3423
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.ActiveCfg = Release|Any CPU
3524
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.Build.0 = Release|Any CPU
36-
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|ARM.ActiveCfg = Release|Any CPU
37-
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|ARM.Build.0 = Release|Any CPU
38-
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|x64.ActiveCfg = Release|Any CPU
39-
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|x64.Build.0 = Release|Any CPU
40-
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|x86.ActiveCfg = Release|Any CPU
41-
{FF81DC73-B8EC-4082-8841-4FBF2B16E7CE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
42-
{FF81DC73-B8EC-4082-8841-4FBF2B16E7CE}.Debug|Any CPU.Build.0 = Debug|Any CPU
43-
{FF81DC73-B8EC-4082-8841-4FBF2B16E7CE}.Debug|ARM.ActiveCfg = Debug|Any CPU
44-
{FF81DC73-B8EC-4082-8841-4FBF2B16E7CE}.Debug|ARM.Build.0 = Debug|Any CPU
45-
{FF81DC73-B8EC-4082-8841-4FBF2B16E7CE}.Debug|x64.ActiveCfg = Debug|Any CPU
46-
{FF81DC73-B8EC-4082-8841-4FBF2B16E7CE}.Debug|x64.Build.0 = Debug|Any CPU
47-
{FF81DC73-B8EC-4082-8841-4FBF2B16E7CE}.Debug|x86.ActiveCfg = Debug|Any CPU
48-
{FF81DC73-B8EC-4082-8841-4FBF2B16E7CE}.Debug|x86.Build.0 = Debug|Any CPU
49-
{FF81DC73-B8EC-4082-8841-4FBF2B16E7CE}.Release|Any CPU.ActiveCfg = Release|Any CPU
50-
{FF81DC73-B8EC-4082-8841-4FBF2B16E7CE}.Release|Any CPU.Build.0 = Release|Any CPU
51-
{FF81DC73-B8EC-4082-8841-4FBF2B16E7CE}.Release|ARM.ActiveCfg = Release|Any CPU
52-
{FF81DC73-B8EC-4082-8841-4FBF2B16E7CE}.Release|ARM.Build.0 = Release|Any CPU
53-
{FF81DC73-B8EC-4082-8841-4FBF2B16E7CE}.Release|x64.ActiveCfg = Release|Any CPU
54-
{FF81DC73-B8EC-4082-8841-4FBF2B16E7CE}.Release|x64.Build.0 = Release|Any CPU
55-
{FF81DC73-B8EC-4082-8841-4FBF2B16E7CE}.Release|x86.ActiveCfg = Release|Any CPU
56-
{FF81DC73-B8EC-4082-8841-4FBF2B16E7CE}.Release|x86.Build.0 = Release|Any CPU
57-
{3E016018-D65D-4336-9F64-17DA97783AD0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
58-
{3E016018-D65D-4336-9F64-17DA97783AD0}.Debug|Any CPU.Build.0 = Debug|Any CPU
59-
{3E016018-D65D-4336-9F64-17DA97783AD0}.Debug|ARM.ActiveCfg = Debug|Any CPU
60-
{3E016018-D65D-4336-9F64-17DA97783AD0}.Debug|ARM.Build.0 = Debug|Any CPU
61-
{3E016018-D65D-4336-9F64-17DA97783AD0}.Debug|x64.ActiveCfg = Debug|Any CPU
62-
{3E016018-D65D-4336-9F64-17DA97783AD0}.Debug|x64.Build.0 = Debug|Any CPU
63-
{3E016018-D65D-4336-9F64-17DA97783AD0}.Debug|x86.ActiveCfg = Debug|Any CPU
64-
{3E016018-D65D-4336-9F64-17DA97783AD0}.Debug|x86.Build.0 = Debug|Any CPU
65-
{3E016018-D65D-4336-9F64-17DA97783AD0}.Release|Any CPU.ActiveCfg = Release|Any CPU
66-
{3E016018-D65D-4336-9F64-17DA97783AD0}.Release|Any CPU.Build.0 = Release|Any CPU
67-
{3E016018-D65D-4336-9F64-17DA97783AD0}.Release|ARM.ActiveCfg = Release|Any CPU
68-
{3E016018-D65D-4336-9F64-17DA97783AD0}.Release|ARM.Build.0 = Release|Any CPU
69-
{3E016018-D65D-4336-9F64-17DA97783AD0}.Release|x64.ActiveCfg = Release|Any CPU
70-
{3E016018-D65D-4336-9F64-17DA97783AD0}.Release|x64.Build.0 = Release|Any CPU
71-
{3E016018-D65D-4336-9F64-17DA97783AD0}.Release|x86.ActiveCfg = Release|Any CPU
72-
{3E016018-D65D-4336-9F64-17DA97783AD0}.Release|x86.Build.0 = Release|Any CPU
73-
{8C00D3B8-1385-4EE9-AB1C-08EBB796CF73}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
74-
{8C00D3B8-1385-4EE9-AB1C-08EBB796CF73}.Debug|Any CPU.Build.0 = Debug|Any CPU
75-
{8C00D3B8-1385-4EE9-AB1C-08EBB796CF73}.Debug|ARM.ActiveCfg = Debug|Any CPU
76-
{8C00D3B8-1385-4EE9-AB1C-08EBB796CF73}.Debug|ARM.Build.0 = Debug|Any CPU
77-
{8C00D3B8-1385-4EE9-AB1C-08EBB796CF73}.Debug|x64.ActiveCfg = Debug|Any CPU
78-
{8C00D3B8-1385-4EE9-AB1C-08EBB796CF73}.Debug|x64.Build.0 = Debug|Any CPU
79-
{8C00D3B8-1385-4EE9-AB1C-08EBB796CF73}.Debug|x86.ActiveCfg = Debug|Any CPU
80-
{8C00D3B8-1385-4EE9-AB1C-08EBB796CF73}.Debug|x86.Build.0 = Debug|Any CPU
81-
{8C00D3B8-1385-4EE9-AB1C-08EBB796CF73}.Release|Any CPU.ActiveCfg = Release|Any CPU
82-
{8C00D3B8-1385-4EE9-AB1C-08EBB796CF73}.Release|Any CPU.Build.0 = Release|Any CPU
83-
{8C00D3B8-1385-4EE9-AB1C-08EBB796CF73}.Release|ARM.ActiveCfg = Release|Any CPU
84-
{8C00D3B8-1385-4EE9-AB1C-08EBB796CF73}.Release|ARM.Build.0 = Release|Any CPU
85-
{8C00D3B8-1385-4EE9-AB1C-08EBB796CF73}.Release|x64.ActiveCfg = Release|Any CPU
86-
{8C00D3B8-1385-4EE9-AB1C-08EBB796CF73}.Release|x64.Build.0 = Release|Any CPU
87-
{8C00D3B8-1385-4EE9-AB1C-08EBB796CF73}.Release|x86.ActiveCfg = Release|Any CPU
88-
{8C00D3B8-1385-4EE9-AB1C-08EBB796CF73}.Release|x86.Build.0 = Release|Any CPU
25+
{62843FE6-7575-4D88-B989-7DF7EEC0BC01}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
26+
{62843FE6-7575-4D88-B989-7DF7EEC0BC01}.Debug|Any CPU.Build.0 = Debug|Any CPU
27+
{62843FE6-7575-4D88-B989-7DF7EEC0BC01}.Release|Any CPU.ActiveCfg = Release|Any CPU
28+
{62843FE6-7575-4D88-B989-7DF7EEC0BC01}.Release|Any CPU.Build.0 = Release|Any CPU
29+
{442C609B-A431-4A71-B289-08F0B63C83E5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
30+
{442C609B-A431-4A71-B289-08F0B63C83E5}.Debug|Any CPU.Build.0 = Debug|Any CPU
31+
{442C609B-A431-4A71-B289-08F0B63C83E5}.Release|Any CPU.ActiveCfg = Release|Any CPU
32+
{442C609B-A431-4A71-B289-08F0B63C83E5}.Release|Any CPU.Build.0 = Release|Any CPU
33+
{59E8F6B8-8F0E-403F-B88B-9736DBC396D9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
34+
{59E8F6B8-8F0E-403F-B88B-9736DBC396D9}.Debug|Any CPU.Build.0 = Debug|Any CPU
35+
{59E8F6B8-8F0E-403F-B88B-9736DBC396D9}.Release|Any CPU.ActiveCfg = Release|Any CPU
36+
{59E8F6B8-8F0E-403F-B88B-9736DBC396D9}.Release|Any CPU.Build.0 = Release|Any CPU
37+
{1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
38+
{1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}.Debug|Any CPU.Build.0 = Debug|Any CPU
39+
{1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}.Release|Any CPU.ActiveCfg = Release|Any CPU
40+
{1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}.Release|Any CPU.Build.0 = Release|Any CPU
8941
EndGlobalSection
9042
GlobalSection(SolutionProperties) = preSolution
9143
HideSolutionNode = FALSE
9244
EndGlobalSection
9345
GlobalSection(ExtensibilityGlobals) = postSolution
94-
SolutionGuid = {9B0BAD10-73A2-4F3C-A080-BA73684E7999}
46+
SolutionGuid = {F9B3D96E-9680-40BE-A917-02EE655D6030}
9547
EndGlobalSection
9648
EndGlobal

src/Kusto/Properties/AssemblyInfo.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@
2323

2424
[assembly: ComVisible(false)]
2525
[assembly: CLSCompliant(false)]
26-
[assembly: Guid("d2a8f744-8dcb-4a13-ba80-eb181ff365ad")]
27-
[assembly: AssemblyVersion("0.1.4")]
28-
[assembly: AssemblyFileVersion("0.1.4")]
26+
[assembly: Guid("70ba42b8-c483-4bba-a77d-1df1c8c20641")]
27+
[assembly: AssemblyVersion("0.1.0")]
28+
[assembly: AssemblyFileVersion("0.1.0")]

src/Kusto/check-dependencies.ps1

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,15 @@ if(-not $Isolated) {
2121
return
2222
}
2323

24-
function DownloadModule ([bool]$predicate, [string]$path, [string]$moduleName, [string]$versionMinimum) {
24+
function DownloadModule ([bool]$predicate, [string]$path, [string]$moduleName, [string]$versionMinimum, [string]$requiredVersion) {
2525
if($predicate) {
2626
$module = Get-Module -ListAvailable -Name $moduleName
2727
if((-not $module) -or ($versionMinimum -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -ge [System.Version]$versionMinimum } | Measure-Object).Count -eq 0)) {
2828
$null = New-Item -ItemType Directory -Force -Path $path
2929
Write-Host -ForegroundColor Green "Installing local $moduleName module into '$path'..."
30-
if($versionMinimum) {
30+
if ($requiredVersion) {
31+
Find-Module -Name $moduleName -RequiredVersion $requiredVersion -Repository PSGallery | Save-Module -Path $path
32+
}elseif($versionMinimum) {
3133
Find-Module -Name $moduleName -MinimumVersion $versionMinimum -Repository PSGallery | Save-Module -Path $path
3234
} else {
3335
Find-Module -Name $moduleName -Repository PSGallery | Save-Module -Path $path
@@ -44,8 +46,8 @@ if(Test-Path -Path $localModulesPath) {
4446
$env:PSModulePath = "$localModulesPath$([IO.Path]::PathSeparator)$env:PSModulePath"
4547
}
4648

47-
DownloadModule -predicate ($all -or $Accounts) -path $localModulesPath -moduleName 'Az.Accounts' -versionMinimum '1.7.4'
48-
DownloadModule -predicate ($all -or $Pester) -path $localModulesPath -moduleName 'Pester' -versionMinimum ''
49+
DownloadModule -predicate ($all -or $Accounts) -path $localModulesPath -moduleName 'Az.Accounts' -versionMinimum '1.8.1'
50+
DownloadModule -predicate ($all -or $Pester) -path $localModulesPath -moduleName 'Pester' -requiredVersion '4.10.1'
4951

5052
$tools = Join-Path $PSScriptRoot 'tools'
5153
$resourceDir = Join-Path $tools 'Resources'

0 commit comments

Comments
 (0)