Azure / azure-powershell

Microsoft Azure PowerShell
Other
4.21k stars 3.82k forks source link

New-AzKustoScript examples missing #16026

Closed Ayanmullick closed 2 years ago

Ayanmullick commented 2 years ago

Description of the new feature

The examples are missing. Is there any other documentation for the examples for New-AzKustoScript?

Proposed implementation details

Add the relevant examples. @mikefrobbins mentioned he could get examples from the AI tool for the predictor.


Document Details

ghost commented 2 years ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @ilayrn, @orhasban, @astauben.

Issue Details
## Description of the new feature The examples are missing. Is there any other documentation for the examples for `New-AzKustoScript`? ## Proposed implementation details Add the relevant examples. @mikefrobbins mentioned he could get examples from the AI tool for the predictor. --- #### Document Details * Content: [New-AzKustoScript](https://docs.microsoft.com/en-us/powershell/module/az.kusto/new-azkustoscript?view=azps-6.4.0#example-1-----add-title-here---) * Content Source: [azure-powershell/src/Kusto/help/New-AzKustoScript.md](https://github.com/Azure/azure-powershell/blob/main/src/Kusto/help/New-AzKustoScript.md) * Service: **data-explorer** * GitHub Login: @dcaro * Microsoft Alias: **dcaro**
Author: Ayanmullick
Assignees: -
Labels: `feature-request`, `Doc - Reference`, `Service Attention`, `question`, `customer-reported`, `Azure Data Explorer`
Milestone: -
orhasban commented 2 years ago

@Ayanmullick you can take a look at ARM template example for Script resource:

https://docs.microsoft.com/en-us/azure/data-explorer/database-script

You can use it to understand how to use it in PowerShell SDK

Ayanmullick commented 2 years ago

@orhasban , So one needs to store the script file in AzBlob and use the -ScriptUrl parameter to provide the URL for the blob? Is there a way to provide the script inline, without using a storage account?

orhasban commented 2 years ago

@Ayanmullick This is the first version of script resource.

We plan to support inline script but currently this is not supported. Pay attention that we provide an example how to do it inline with ARM template - but the template creates AzBlob on your behalf, and you should delete it afterwards.