Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No registered resource provider for API version '2022-06-01-preview' in az sentinel v2.0 #31034

Open
lachlancraigie opened this issue Mar 14, 2025 · 3 comments
Assignees
Labels
Auto-Assign Auto assign by bot Auto-Resolve Auto resolve by bot Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that SecurityInsights
Milestone

Comments

@lachlancraigie
Copy link

Describe the bug

The api version 2022-06-01-preview with sentinel extension 2.0 is no longer supported or maintained when using the latest az sentinel extension

I cannot downgrade to version 0.1.2 as automation rules are not supported

Related command

az sentinel automation-rule update │ --automation-rule-name /subscriptions/1234-5678-90123/resourceGroups/{name}/providers/Microsoft.OperationalInsights/workspaces/{name}/Microsoft.SecurityInsights/$automationRuleId
│ --resource-group {name} │ --workspace-name {name}
│ --add "property.actions $jsonPlaybook"

Errors

exit status 1. Output: WARNING: This command is experimental and under
│ development. Reference and support levels: https://aka.ms/CLI_refstatus
│ ERROR: (NoRegisteredProviderFound) No registered resource provider found
│ for location 'australiaeast' and API version '2022-06-01-preview' for type
│ australiaeast, francecentral, koreacentral, northeurope, centralus,
│ eastasia, eastus2, southcentralus, northcentralus, westus, ukwest,
│ southafricanorth, brazilsouth, switzerlandnorth, switzerlandwest,
│ germanywestcentral, australiacentral2, uaecentral, uaenorth, japanwest,
│ brazilsoutheast, norwayeast, norwaywest, francesouth, southindia,
│ koreasouth, jioindiacentral, jioindiawest, qatarcentral, canadaeast,
│ westus3, swedencentral, southafricawest, germanynorth, polandcentral,
│ israelcentral, italynorth, mexicocentral, spaincentral'.
│ Code: NoRegisteredProviderFound
│ Message: No registered resource provider found for location 'australiaeast'
│ and API version '2022-06-01-preview' for type 'workspaces'. The supported
│ api-versions are '2015-03-20, 2015-11-01-preview, 2017-01-01-preview,
│ 2017-03-03-preview, 2017-03-15-preview, 2017-04-26-preview,
│ 2020-03-01-preview, 2020-08-01, 2020-10-01, 2021-03-01-privatepreview,
│ 2021-06-01, 2021-12-01-preview, 2022-10-01, 2023-01-01-preview,
│ 2023-09-01'. The supported locations are 'eastus, westeurope,
│ southeastasia, australiasoutheast, westcentralus, japaneast, uksouth,
│ centralindia, canadacentral, westus2, australiacentral, australiaeast,
│ francecentral, koreacentral, northeurope, centralus, eastasia, eastus2,
│ southcentralus, northcentralus, westus, ukwest, southafricanorth,
│ brazilsouth, switzerlandnorth, switzerlandwest, germanywestcentral,
│ australiacentral2, uaecentral, uaenorth, japanwest, brazilsoutheast,
│ norwayeast, norwaywest, francesouth, southindia, koreasouth,
│ jioindiacentral, jioindiawest, qatarcentral, canadaeast, westus3,
│ swedencentral, southafricawest, germanynorth, polandcentral, israelcentral,
│ italynorth, mexicocentral, spaincentral'.

Issue script & Debug output

Unable to provide

Expected behavior

Update to automation rule performed in line with rest api specs

Environment Summary

azure-cli 2.70.0 *

core 2.70.0 *
telemetry 1.1.0

Extensions:
azure-devops 0.26.0
sentinel 0.2.0

Dependencies:
msal 1.24.0b1
azure-mgmt-resource 23.1.0b2

Python location '/opt/az/bin/python3'
Extensions directory '/opt/az/azcliextensions'

Python (Linux) 3.10.10 (main, Jul 27 2023, 07:11:10) [GCC 9.4.0]

Legal docs and information: aka.ms/AzureCliLegal

Additional context

No response

@lachlancraigie lachlancraigie added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Mar 14, 2025
Copy link

Hi @lachlancraigie,

This is a known issue.

Please follow #23985 (comment) to get temporary workaround.

If you feel that further discussion is needed, please add a comment with the text /clibot unresolve to reopen the issue.

@yonzhan
Copy link
Collaborator

yonzhan commented Mar 14, 2025

Thank you for opening this issue, we will look into it.

@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. Auto-Assign Auto assign by bot SecurityInsights Azure CLI Team The command of the issue is owned by Azure CLI team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Mar 14, 2025
@lachlancraigie
Copy link
Author

/clibot unresolve

workaround does not work - downgrading to an older provider prohibits the use of automation rule update

@yonzhan yonzhan removed the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Mar 14, 2025
@yonzhan yonzhan added this to the Backlog milestone Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign by bot Auto-Resolve Auto resolve by bot Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that SecurityInsights
Projects
None yet
Development

No branches or pull requests

3 participants