azure-cli-extensions icon indicating copy to clipboard operation
azure-cli-extensions copied to clipboard

`az kusto script create` for a cluster scoped commands

Open JiriKovar opened this issue 2 years ago • 3 comments

Related command

az kusto script create

Extension name (the extension in question)

kusto

Description of issue (in as much detail as possible)

Hi, I'm trying to run a command:

.alter cluster policy managed_identity ``` [ { "ObjectId": "${cluster_principal_id}", "AllowedUsages": "ExternalTable" } ]

as part of az kusto script create but it fails with Reason: Not a database-scope command even though the script succeeds in the portal even when scope is set to the database, not cluster.

Can this be fixed please?

Thank you very much!

JiriKovar avatar Oct 11 '22 22:10 JiriKovar

route to CXP team

yonzhan avatar Oct 11 '22 23:10 yonzhan

@JiriKovar Thank you for reaching out, we are looking into it.

RakeshMohanMSFT avatar Oct 13 '22 02:10 RakeshMohanMSFT

@JiriKovar The command should ran on cluster, not as part of a script. .alter cluster policy managed_identity ``` [ { "ObjectId": "${cluster_principal_id}", "AllowedUsages": "ExternalTable" } ].

RakeshMohanMSFT avatar Oct 13 '22 12:10 RakeshMohanMSFT

Hi, we're sending this friendly reminder because we haven't heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!

ghost avatar Oct 20 '22 14:10 ghost