Open cuntoulishifu opened 11 months ago
I can onboard Microsoft Sentinel directly in Azure Portal, and I tried to set skip_provider_registration = true in terraform, I got below errror:
Error: checking for existing Onboarding State (Subscription: "xxxxxxxx" Resource Group Name: "test-sentinel" Workspace Name: "test-sentinel-log" Onboarding State Name: "default"): sentinelonboardingstates.SentinelOnboardingStatesClient#Get: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="NoRegisteredProviderFound" Message="No registered resource provider found for location 'chinaeast2' and API version '2022-11-01' for type 'onboardingStates'. The supported api-versions are '2021-03-01-preview, 2021-09-01-preview, 2021-10-01-preview, 2022-01-01-preview, 2022-04-01-preview, 2022-05-01-preview, 2022-06-01-preview, 2022-07-01-preview, 2022-08-01-preview, 2022-09-01-preview, 2022-10-01-preview, 2022-11-01-preview, 2022-12-01-preview, 2023-02-01-preview, 2023-03-01-preview, 2023-04-01-preview, 2023-05-01-preview, 2023-06-01-preview, 2023-07-01-preview, 2023-08-01-preview, 2023-09-01-preview, 2023-10-01-preview'. The supported locations are 'chinaeast2'."
This is the same error I see in the Azure US Government Sovereign Cloud instance. It looks like the Azure RM provider isn't setup to hit preview versions of the APIs but the Sovereign Clouds only support preview, even today.
Is there an existing issue for this?
Community Note
Terraform Version
1.2.2
AzureRM Provider Version
3.76.0
Affected Resource(s)/Data Source(s)
azurerm_sentinel_log_analytics_workspace_onboarding
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
onboard Microsoft Sentinel
Actual Behaviour
Error showed in Debug Output/Panic Output
Steps to Reproduce
set env in China Azure
terraform plan
Important Factoids
No response
References
No response