Azure / Azure/azure-powershell
Get-AzKustoOperationsResult should be removed
- Dominant language
- C#
- Stars
- 4.8k
- Forks
- 4.3k
- Avg merge
- 3d 14h
- Merged PRs (30d)
- 54
Description
### Description
Get-AzKustoOperationsResult should be removed.
### Issue script & Debug output
```PowerShell
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
GET
Absolute Uri:
https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Kusto/locations/East US/operationresults/c3b2a8da-6475-4471-898d-1b683bcc35b5?api-version=2021-01-01
Headers:
x-ms-unique-id : 1
x-ms-client-request-id : 5c81e9ec-0861-44b0-b8bc-34c9c826056c
CommandName : Get-AzKustoOperationsResult
FullCommandName : Get-AzKustoOperationsResult_Get
ParameterSetName : __AllParameterSets
User-Agent : AzurePowershell/v0.0.0
Body:
DEBUG: BeforeCall:
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
NotFound
Headers:
Cache-Control : no-cache
Pragma : no-cache
x-ms-request-id : d93560b2-eaa8-4279-9c75-ec139e2c3254
Server : Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-resource-requests: 299
x-ms-correlation-request-id : 4a09bb1a-d651-42c8-9af6-4ce1c09bdea2
x-ms-routing-request-id : SOUTHEASTASIA:20211224T085155Z:4a09bb1a-d651-42c8-9af6-4ce1c09bdea2
Strict-Transport-Security : max-age=31536000; includeSubDomains
X-Content-Type-Options : nosniff
Date : Fri, 24 Dec 2021 08:51:55 GMT
Body:
{
"error": {
"code": "OperationResultNotFound",
"message": "The operation result was not found."
}
}
DEBUG: ResponseCreated:
DEBUG: BeforeResponseDispatch:
Get-AzKustoOperationsResult_Get: The operation result was not found.
```
### Environment data
```PowerShell
Name Value
---- -----
PSVersion 7.2.0-preview.10
PSEdition Core
GitCommitId 7.2.0-preview.10
OS Microsoft Windows 10.0.19044
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
```
### Module versions
```PowerShell
ModuleType Version PreRelease Name ExportedCommands
---------- ------- ---------- ---- ----------------
Script 2.6.2 Az.Accounts {Add-AzEnvironment, Clear-AzContext, Clear-AzDefa…
Script 2.0.0 Az.Kusto {Add-AzKustoClusterLanguageExtension, Add-AzKusto…
```
### Error output
```PowerShell
Message : [OperationResultNotFound] : The operation result was not found.
StackTrace :
Exception : System.Exception
InvocationInfo : {Get-AzKustoOperationsResult_Get}
Line : Get-AzKustoOperationsResult -Location 'East US' -OperationId 'c3b2a8da-6475-4471-898d-1b683bcc35b5'
Position : At line:1 char:1
+ Get-AzKustoOperationsResult -Location 'East US' -OperationId 'c3b2a8d …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 5
```
Contributor guide
Research direction
Start by locating the Get-AzKustoOperationsResult command in the Az.Kusto module and inspect any related tests or exports. Confirm why the command is obsolete and identify all references before removing it; done means the command is no longer exposed and the relevant tests and build pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, powershell
- Domain
- cli, cloud
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100