Azure / Azure/Azure-Landing-Zones
Deploying to GCC-H fails due to API version
- Dominant language
- PowerShell
- Stars
- 96
- Forks
- 70
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 7
Description
### What happened? Provide a clear and concise description of the bug, including deployment details.
Setting up logging based on the instructions at https://github.com/Azure/ALZ-Bicep/tree/main/infra-as-code/bicep/modules/logging.
When I deploy, I get the error:
```json
{
"status": "Failed",
"error": {
"code": "DeploymentFailed",
"target": "/subscriptions/.../resourceGroups/.../providers/Microsoft.Resources/deployments/alz-loggingDeployment-20240814T141606654142622Z",
"message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.",
"details": [{
"code": "NoRegisteredProviderFound",
"message": "No registered resource provider found for location 'usgovvirginia' and API version '2024-03-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, 2023-11-01-preview, 2023-12-01-preview, 2024-01-01-preview, 2024-04-01-preview'. The supported locations are 'usgovvirginia, usgovarizona'."
}
]
}
}
```
From my tenant, the supported API versions for Microsoft.SecurityInsights/onboardingStates are:
```json
{
"resourceType": "onboardingStates",
"locations": [
"USGov Virginia",
"USGov Arizona"
],
"apiVersions": [
"2024-04-01-preview",
"2024-01-01-preview",
"2023-12-01-preview",
"2023-11-01-preview",
"2023-10-01-preview",
"2023-09-01-preview",
"2023-08-01-preview",
"2023-07-01-preview",
"2023-06-01-preview",
"2023-05-01-preview",
"2023-04-01-preview",
"2023-03-01-preview",
"2023-02-01-preview",
"2022-12-01-preview",
"2022-11-01-preview",
"2022-10-01-preview",
"2022-09-01-preview",
"2022-08-01-preview",
"2022-07-01-preview",
"2022-06-01-preview",
"2022-05-01-preview",
"2022-04-01-preview",
"2022-01-01-preview",
"2021-10-01-preview",
"2021-09-01-preview",
"2021-03-01-preview"
],
"capabilities": "SupportsExtension"
}
```
Odd that they're all preview. At any rate, if GCC-H is supported please use API versions allowed in that environment, or add logic so it picks the right one. Thanks.
### Please provide the correlation id associated with your error or bug.
f36d1364-516f-4ccf-b879-4a8b343dca29
### What was the expected outcome?
Deployment, or at least a different error.
### Relevant log output
```Shell
See above
```
### Check previous GitHub issues
- [X] I have searched the issues for this item and found no duplicate
### Code of Conduct
- [X] I agree to follow this project's Code of Conduct
Contributor guide
Assessment
This issue has not been assessed yet.