Skip to content

Commit 9290b61

Browse files
Migrate Kusto from generation to main (#23251)
* Move Kusto to main * Update ChangeLog.md * Create UXMetadataIssues.csv * Create BreakingChangeIssues.csv --------- Co-authored-by: Yabo Hu <[email protected]>
1 parent 1b92c27 commit 9290b61

File tree

862 files changed

+57441
-36556
lines changed

Some content is hidden

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

862 files changed

+57441
-36556
lines changed

src/Kusto/Az.Kusto.format.ps1xml

Lines changed: 476 additions & 240 deletions
Large diffs are not rendered by default.

src/Kusto/Az.Kusto.psd1

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 3/30/2023
6+
# Generated on: 11/6/2023
77
#
88

99
@{
@@ -82,23 +82,28 @@ FunctionsToExport = 'Add-AzKustoClusterLanguageExtension',
8282
'Get-AzKustoOperationsResult',
8383
'Get-AzKustoOperationsResultLocation',
8484
'Get-AzKustoPrivateEndpointConnection',
85-
'Get-AzKustoPrivateLinkResource', 'Get-AzKustoScript',
86-
'Get-AzKustoSku', 'Invoke-AzKustoDataConnectionValidation',
85+
'Get-AzKustoPrivateLinkResource', 'Get-AzKustoSandboxCustomImage',
86+
'Get-AzKustoScript', 'Get-AzKustoSku',
87+
'Invoke-AzKustoClusterMigration',
88+
'Invoke-AzKustoDataConnectionValidation',
8789
'Invoke-AzKustoDetachClusterFollowerDatabase',
8890
'Invoke-AzKustoDiagnoseClusterVirtualNetwork',
91+
'Invoke-AzKustoInviteDatabaseFollower',
8992
'New-AzKustoAttachedDatabaseConfiguration', 'New-AzKustoCluster',
9093
'New-AzKustoClusterPrincipalAssignment', 'New-AzKustoDatabase',
9194
'New-AzKustoDatabasePrincipalAssignment',
9295
'New-AzKustoDataConnection', 'New-AzKustoManagedPrivateEndpoint',
93-
'New-AzKustoPrivateEndpointConnection', 'New-AzKustoScript',
96+
'New-AzKustoPrivateEndpointConnection',
97+
'New-AzKustoSandboxCustomImage', 'New-AzKustoScript',
9498
'Remove-AzKustoAttachedDatabaseConfiguration',
9599
'Remove-AzKustoCluster', 'Remove-AzKustoClusterLanguageExtension',
96100
'Remove-AzKustoClusterPrincipalAssignment',
97101
'Remove-AzKustoDatabase', 'Remove-AzKustoDatabasePrincipal',
98102
'Remove-AzKustoDatabasePrincipalAssignment',
99103
'Remove-AzKustoDataConnection',
100104
'Remove-AzKustoManagedPrivateEndpoint',
101-
'Remove-AzKustoPrivateEndpointConnection', 'Remove-AzKustoScript',
105+
'Remove-AzKustoPrivateEndpointConnection',
106+
'Remove-AzKustoSandboxCustomImage', 'Remove-AzKustoScript',
102107
'Start-AzKustoCluster', 'Stop-AzKustoCluster',
103108
'Test-AzKustoAttachedDatabaseConfigurationNameAvailability',
104109
'Test-AzKustoClusterNameAvailability',
@@ -107,9 +112,11 @@ FunctionsToExport = 'Add-AzKustoClusterLanguageExtension',
107112
'Test-AzKustoDatabasePrincipalAssignmentNameAvailability',
108113
'Test-AzKustoDataConnectionNameAvailability',
109114
'Test-AzKustoManagedPrivateEndpointNameAvailability',
115+
'Test-AzKustoSandboxCustomImageNameAvailability',
110116
'Test-AzKustoScriptNameAvailability', 'Update-AzKustoCluster',
111117
'Update-AzKustoDatabase', 'Update-AzKustoDataConnection',
112-
'Update-AzKustoManagedPrivateEndpoint', 'Update-AzKustoScript'
118+
'Update-AzKustoManagedPrivateEndpoint',
119+
'Update-AzKustoSandboxCustomImage', 'Update-AzKustoScript'
113120

114121
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
115122
CmdletsToExport = @()
@@ -147,10 +154,7 @@ PrivateData = @{
147154
# IconUri = ''
148155

149156
# ReleaseNotes of this module
150-
ReleaseNotes = '* Added cmdlet ''Get-AzKustoSku''
151-
* Added parameter ''CallerRole'' for cmdlet ''AzKustoDatabase'' and ''Update-AzKustoDatabase''
152-
* Added support for new data connection kind ''CosmosDb'' for cmdlet ''New-AzKustoDataConnection'' and ''Update-AzKustoDataConnection''
153-
* Added parameters ''DatabaseNameOverride'' ''DatabaseNamePrefix'' ''TableLevelSharingPropertyFunctionsToInclude'' ''TableLevelSharingPropertyFunctionsToExclude'' for cmdlet ''New-AzKustoAttachedDatabaseConfiguration'''
157+
# ReleaseNotes = ''
154158

155159
# Prerelease string of this module
156160
# Prerelease = ''

src/Kusto/ChangeLog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Supported sandbox custom image
22+
* Supported database CMK
23+
* Supported cluster migration
2124

2225
## Version 2.2.0
2326
* Added cmdlet `Get-AzKustoSku`

src/Kusto/Kusto.sln

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 17
44
VisualStudioVersion = 17.0.31903.59
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{C4C10E64-F322-4CE7-95AA-5C2A1790F462}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{A6893D88-08E0-4016-A082-D09679688455}"
77
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{D27FD124-D46B-44B9-B462-677DC112CE32}"
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{68760692-E439-4675-A96D-F04A2CFBBD8B}"
99
EndProject
10-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{64E4D64A-240E-4156-99AD-AD754222446A}"
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{EF0E788F-3B43-4D28-A913-A8F8C4836C02}"
1111
EndProject
12-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{7C08F48F-B226-444B-B731-90031110F1A3}"
12+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{C0529307-620F-4D5F-B4EC-F58D0D07EF16}"
1313
EndProject
14-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{E75388ED-7DD2-41E7-B2C9-E0550C62A0AA}"
14+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{9C086EE2-D1E8-494D-B3FF-0A68E91D4E6B}"
1515
EndProject
16-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{56C8977B-2B3D-4B01-93FD-777B2DF86B06}"
16+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{D528B900-6B5E-4987-9EB1-FDC337A7E38B}"
1717
EndProject
18-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Kusto", "Az.Kusto.csproj", "{076F93D1-9153-4D46-B685-F54D2792D871}"
18+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Kusto", "Az.Kusto.csproj", "{8DAEEBEE-647A-47AA-994F-48CC47DA6231}"
1919
EndProject
2020
Global
2121
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -26,33 +26,33 @@ Global
2626
HideSolutionNode = FALSE
2727
EndGlobalSection
2828
GlobalSection(ProjectConfigurationPlatforms) = postSolution
29-
{C4C10E64-F322-4CE7-95AA-5C2A1790F462}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
30-
{C4C10E64-F322-4CE7-95AA-5C2A1790F462}.Debug|Any CPU.Build.0 = Debug|Any CPU
31-
{C4C10E64-F322-4CE7-95AA-5C2A1790F462}.Release|Any CPU.ActiveCfg = Release|Any CPU
32-
{C4C10E64-F322-4CE7-95AA-5C2A1790F462}.Release|Any CPU.Build.0 = Release|Any CPU
33-
{D27FD124-D46B-44B9-B462-677DC112CE32}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
34-
{D27FD124-D46B-44B9-B462-677DC112CE32}.Debug|Any CPU.Build.0 = Debug|Any CPU
35-
{D27FD124-D46B-44B9-B462-677DC112CE32}.Release|Any CPU.ActiveCfg = Release|Any CPU
36-
{D27FD124-D46B-44B9-B462-677DC112CE32}.Release|Any CPU.Build.0 = Release|Any CPU
37-
{64E4D64A-240E-4156-99AD-AD754222446A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
38-
{64E4D64A-240E-4156-99AD-AD754222446A}.Debug|Any CPU.Build.0 = Debug|Any CPU
39-
{64E4D64A-240E-4156-99AD-AD754222446A}.Release|Any CPU.ActiveCfg = Release|Any CPU
40-
{64E4D64A-240E-4156-99AD-AD754222446A}.Release|Any CPU.Build.0 = Release|Any CPU
41-
{7C08F48F-B226-444B-B731-90031110F1A3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
42-
{7C08F48F-B226-444B-B731-90031110F1A3}.Debug|Any CPU.Build.0 = Debug|Any CPU
43-
{7C08F48F-B226-444B-B731-90031110F1A3}.Release|Any CPU.ActiveCfg = Release|Any CPU
44-
{7C08F48F-B226-444B-B731-90031110F1A3}.Release|Any CPU.Build.0 = Release|Any CPU
45-
{E75388ED-7DD2-41E7-B2C9-E0550C62A0AA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
46-
{E75388ED-7DD2-41E7-B2C9-E0550C62A0AA}.Debug|Any CPU.Build.0 = Debug|Any CPU
47-
{E75388ED-7DD2-41E7-B2C9-E0550C62A0AA}.Release|Any CPU.ActiveCfg = Release|Any CPU
48-
{E75388ED-7DD2-41E7-B2C9-E0550C62A0AA}.Release|Any CPU.Build.0 = Release|Any CPU
49-
{56C8977B-2B3D-4B01-93FD-777B2DF86B06}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
50-
{56C8977B-2B3D-4B01-93FD-777B2DF86B06}.Debug|Any CPU.Build.0 = Debug|Any CPU
51-
{56C8977B-2B3D-4B01-93FD-777B2DF86B06}.Release|Any CPU.ActiveCfg = Release|Any CPU
52-
{56C8977B-2B3D-4B01-93FD-777B2DF86B06}.Release|Any CPU.Build.0 = Release|Any CPU
53-
{076F93D1-9153-4D46-B685-F54D2792D871}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
54-
{076F93D1-9153-4D46-B685-F54D2792D871}.Debug|Any CPU.Build.0 = Debug|Any CPU
55-
{076F93D1-9153-4D46-B685-F54D2792D871}.Release|Any CPU.ActiveCfg = Release|Any CPU
56-
{076F93D1-9153-4D46-B685-F54D2792D871}.Release|Any CPU.Build.0 = Release|Any CPU
29+
{A6893D88-08E0-4016-A082-D09679688455}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
30+
{A6893D88-08E0-4016-A082-D09679688455}.Debug|Any CPU.Build.0 = Debug|Any CPU
31+
{A6893D88-08E0-4016-A082-D09679688455}.Release|Any CPU.ActiveCfg = Release|Any CPU
32+
{A6893D88-08E0-4016-A082-D09679688455}.Release|Any CPU.Build.0 = Release|Any CPU
33+
{68760692-E439-4675-A96D-F04A2CFBBD8B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
34+
{68760692-E439-4675-A96D-F04A2CFBBD8B}.Debug|Any CPU.Build.0 = Debug|Any CPU
35+
{68760692-E439-4675-A96D-F04A2CFBBD8B}.Release|Any CPU.ActiveCfg = Release|Any CPU
36+
{68760692-E439-4675-A96D-F04A2CFBBD8B}.Release|Any CPU.Build.0 = Release|Any CPU
37+
{EF0E788F-3B43-4D28-A913-A8F8C4836C02}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
38+
{EF0E788F-3B43-4D28-A913-A8F8C4836C02}.Debug|Any CPU.Build.0 = Debug|Any CPU
39+
{EF0E788F-3B43-4D28-A913-A8F8C4836C02}.Release|Any CPU.ActiveCfg = Release|Any CPU
40+
{EF0E788F-3B43-4D28-A913-A8F8C4836C02}.Release|Any CPU.Build.0 = Release|Any CPU
41+
{C0529307-620F-4D5F-B4EC-F58D0D07EF16}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
42+
{C0529307-620F-4D5F-B4EC-F58D0D07EF16}.Debug|Any CPU.Build.0 = Debug|Any CPU
43+
{C0529307-620F-4D5F-B4EC-F58D0D07EF16}.Release|Any CPU.ActiveCfg = Release|Any CPU
44+
{C0529307-620F-4D5F-B4EC-F58D0D07EF16}.Release|Any CPU.Build.0 = Release|Any CPU
45+
{9C086EE2-D1E8-494D-B3FF-0A68E91D4E6B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
46+
{9C086EE2-D1E8-494D-B3FF-0A68E91D4E6B}.Debug|Any CPU.Build.0 = Debug|Any CPU
47+
{9C086EE2-D1E8-494D-B3FF-0A68E91D4E6B}.Release|Any CPU.ActiveCfg = Release|Any CPU
48+
{9C086EE2-D1E8-494D-B3FF-0A68E91D4E6B}.Release|Any CPU.Build.0 = Release|Any CPU
49+
{D528B900-6B5E-4987-9EB1-FDC337A7E38B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
50+
{D528B900-6B5E-4987-9EB1-FDC337A7E38B}.Debug|Any CPU.Build.0 = Debug|Any CPU
51+
{D528B900-6B5E-4987-9EB1-FDC337A7E38B}.Release|Any CPU.ActiveCfg = Release|Any CPU
52+
{D528B900-6B5E-4987-9EB1-FDC337A7E38B}.Release|Any CPU.Build.0 = Release|Any CPU
53+
{8DAEEBEE-647A-47AA-994F-48CC47DA6231}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
54+
{8DAEEBEE-647A-47AA-994F-48CC47DA6231}.Debug|Any CPU.Build.0 = Debug|Any CPU
55+
{8DAEEBEE-647A-47AA-994F-48CC47DA6231}.Release|Any CPU.ActiveCfg = Release|Any CPU
56+
{8DAEEBEE-647A-47AA-994F-48CC47DA6231}.Release|Any CPU.Build.0 = Release|Any CPU
5757
EndGlobalSection
5858
EndGlobal

src/Kusto/README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ require:
5353
- $(this-folder)/../readme.azure.noprofile.md
5454
# lock the commit
5555
input-file:
56-
- $(repo)/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/kusto.json
57-
branch: 519850b125f5b5257c6d73512ac0705dd6f26131
56+
- $(repo)/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-08-15/kusto.json
57+
branch: 4c38cb9966cd6afbb03c7e9b14997720a728baee
5858

5959
```
6060
@@ -139,8 +139,15 @@ directive:
139139
subject: OperationsResultLocation
140140
parameter-name: ^PassThru$
141141
hide: true
142+
# Rename Move-AzKustoCluster -> Invoke-AzKustoClusterMigration
143+
- where:
144+
verb: Move
145+
subject: Cluster
146+
set:
147+
verb: Invoke
148+
subject: ClusterMigration
142149
# Correct some generated code
143150
- from: source-file-csharp
144151
where: $
145-
transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20221229.IDataConnection Property', 'public Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20221229.IDataConnection Property');
152+
transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20230815.IDataConnection Property', 'public Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20230815.IDataConnection Property');
146153
```

src/Kusto/UX/Microsoft.Kusto/Clusters-AttachedDatabaseConfigurations.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "Clusters/AttachedDatabaseConfigurations",
3-
"apiVersion": "2022-12-29",
3+
"apiVersion": "2023-08-15",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.kusto"
66
},

src/Kusto/UX/Microsoft.Kusto/Clusters-Databases-DataConnections.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "Clusters/Databases/DataConnections",
3-
"apiVersion": "2022-12-29",
3+
"apiVersion": "2023-08-15",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.kusto"
66
},

src/Kusto/UX/Microsoft.Kusto/Clusters-Databases-PrincipalAssignments.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "Clusters/Databases/PrincipalAssignments",
3-
"apiVersion": "2022-12-29",
3+
"apiVersion": "2023-08-15",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.kusto"
66
},

src/Kusto/UX/Microsoft.Kusto/Clusters-Databases-scripts.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "Clusters/Databases/scripts",
3-
"apiVersion": "2022-12-29",
3+
"apiVersion": "2023-08-15",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.kusto"
66
},
@@ -55,7 +55,7 @@
5555
},
5656
{
5757
"name": "Remove-AzKustoScript",
58-
"description": "Deletes a Kusto principalAssignment.",
58+
"description": "Deletes a Kusto database script.",
5959
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/Clusters/{clusterName}/Databases/{databaseName}/scripts/{scriptName}",
6060
"help": {
6161
"learnMore": {
@@ -75,7 +75,7 @@
7575
},
7676
"examples": [
7777
{
78-
"description": "Deletes a Kusto principalAssignment.",
78+
"description": "Deletes a Kusto database script.",
7979
"parameters": [
8080
{
8181
"name": "-ClusterName",

src/Kusto/UX/Microsoft.Kusto/Clusters-Databases.json

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "Clusters/Databases",
3-
"apiVersion": "2022-12-29",
3+
"apiVersion": "2023-08-15",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.kusto"
66
},
@@ -48,6 +48,49 @@
4848
}
4949
]
5050
},
51+
{
52+
"name": "Invoke-AzKustoInviteDatabaseFollower",
53+
"description": "Generates an invitation token that allows attaching a follower database to this database.",
54+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/Clusters/{clusterName}/Databases/{databaseName}/inviteFollower",
55+
"help": {
56+
"learnMore": {
57+
"url": "https://learn.microsoft.com/powershell/module/az.kusto/invoke-azkustoinvitedatabasefollower"
58+
},
59+
"parameterSets": [
60+
{
61+
"parameters": [
62+
"-ClusterName <String>",
63+
"-DatabaseName <String>",
64+
"-ResourceGroupName <String>",
65+
"[-SubscriptionId <String>]"
66+
]
67+
}
68+
]
69+
},
70+
"examples": [
71+
{
72+
"description": "Generates an invitation token that allows attaching a follower database to this database.",
73+
"parameters": [
74+
{
75+
"name": "-ClusterName",
76+
"value": "[Path.clusterName]"
77+
},
78+
{
79+
"name": "-DatabaseName",
80+
"value": "[Path.databaseName]"
81+
},
82+
{
83+
"name": "-ResourceGroupName",
84+
"value": "[Path.resourceGroupName]"
85+
},
86+
{
87+
"name": "-SubscriptionId",
88+
"value": "[Path.subscriptionId]"
89+
}
90+
]
91+
}
92+
]
93+
},
5194
{
5295
"name": "Remove-AzKustoDatabase",
5396
"description": "Deletes the database with the given name.",

0 commit comments

Comments
 (0)