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.46k stars 4.54k forks source link

Support for Accepting "Responsible AI terms" when creating Cognitive Resource #23580

Open Winghawkz opened 8 months ago

Winghawkz commented 8 months ago

Is there an existing issue for this?

Community Note

Description

When creating a cognitive Resource using the AzureRM provider it seems that in order to create the cognitive service resource there is an element of accepting terms. when trying to deploy via terraform it responds with this error:

"ResourceKindRequireAcceptTerms: This subscription cannot create ComputerVision until you agree to Responsible AI terms for this resource. You can agree to Responsible AI terms by creating a resource through the Azure Portal then trying again. For more detail go to https://go.microsoft.com/fwlink/?linkid=216491 "

this seems similar to the license acceptance of marketplace/ legal terms for vms.

As it suggests you can work around by manually creating an instance then removing it but it seems counter intuitive to the whole deploy via code ethos.

potentially you could either pass through the provider block itself given it seems to be slightly outside the actual resource remit)

provider "azurerm" {
  features {
    Cognative_services {
      accept_terms = true
    }
  }

else perhaps it should just default "accept" the terms in the background when trying to deploy this kind of resource. If deploying a cognitive resource for the first time - its logical you would want to accept the terms, and given it only needs to happen "once" per subscription maybe this is the better option?

New or Affected Resource(s)/Data Source(s)

azurerm_cognitive_account

Potential Terraform Configuration

No response

References

No response

rcskosir commented 8 months ago

@Winghawkz Thank you for taking the time to open this feature request!

rachaelsingleton commented 4 months ago

Any updates?

dejiaja commented 2 months ago

Hi @rcskosir do we have any progress with this request?

pdzienisiewicz commented 2 weeks ago

Hey, any news about that?