Skip to content

Deploying to GCC-H fails due to API version #825

Open
@sshockley

Description

@sshockley

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:

{
    "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:

{
  "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

See above

Check previous GitHub issues

  • I have searched the issues for this item and found no duplicate

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: Logging & Automation 📷Issues / PR's related to Logging & AutomationStatus: In PR 👉This is when an issue is due to be fixed in an open PRStatus: Long Term ⌛We will do it, but will take a longer amount of time due to complexity/prioritiesType: Bug 🪲Something isn't working

    Type

    No type

    Projects

    Status

    Planned

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions