hashicorp / terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
Mozilla Public License 2.0
4.6k stars 4.64k forks source link

azurerm_ai_services > The provider hashicorp/azurerm does not support resource type "azurerm_ai_services". #27488

Closed Petopp closed 1 month ago

Petopp commented 1 month ago

Is there an existing issue for this?

Community Note

Hi everyone,

I’m currently facing an issue with the hashicorp/azurerm Terraform provider. When trying to use the azurerm_ai_services resource, I get the following error:

The provider hashicorp/azurerm does not support resource type "azurerm_ai_services".

It seems like this resource is not supported in the current version of the provider. Has anyone else encountered this issue or knows of a workaround? Perhaps there’s an alternative resource or a different approach I could take?

Any help or suggestions would be greatly appreciated! Thanks in advance!

Best regards, Peter

Terraform Version

1.9.6

AzureRM Provider Version

3.112.0

Affected Resource(s)/Data Source(s)

azurerm_ai_services

Terraform Configuration Files

provider "azurerm" {
  features {}
}

terraform {
  required_providers {
    azurerm = {
      source  = "hashicorp/azurerm"
      version = "3.112.0" # https://learn.microsoft.com/en-us/azure/developer/terraform/provider-version-history-azurerm
    }
  }
}

resource "azurerm_resource_group" "example" {
  name     = "test2-example-resources"
  location = "eastus"
}

resource "azurerm_ai_services" "example" {
  name                = "example-account"
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name
  sku_name            = "F0"

  tags = {
    Acceptance = "Test"
  }
}

Debug Output/Panic Output

│ Error: Invalid resource type
│
│   on main.tf line 21, in resource "azurerm_ai_services" "example":
│   21: resource "azurerm_ai_services" "example" {
│
│ The provider hashicorp/azurerm does not support resource type "azurerm_ai_services".

Expected Behaviour

Creating a azure AI Search in a resource group

Actual Behaviour

Error message

Steps to Reproduce

  1. terraform init
  2. terraform paln -out tfout

Important Factoids

No response

References

https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/ai_services#argument-reference

rcskosir commented 1 month ago

@Petopp Thank you for taking the time to open this issue. azurerm_ai_serviceswas added to the provider via #26008, which was released with version 3.116.0. In order to use this resource you will need to upgrade your version to 3.116 or 4.x. If you have future questions, I suggest using the Community Resources, such as the Azure Provider forum.

github-actions[bot] commented 2 weeks ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.