Skip to content

Cannot use one click deploy for new subscriptions / resource groups #39

Open
@setuc

Description

@setuc

This issue is for a:

- [X] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

  1. Run the following command:

    az deployment group create --resource-group multimodal-rag-code-execution --template-file deployment/infra-as-code-public/bicep/main-1click.bicep --parameters aiSearchRegion=eastus newOpenAILocation=swe
    
  2. The deployment fails with the following error:

    {"code": "InvalidTemplateDeployment", "message": "The template deployment 'main-1click' is not valid according to the validation procedure. The tracking id is '2943a747-3e45-4b0c-915a-30b1bfe2f8a3'. See inner errors for details."}
    
  3. Upon checking the inner errors, the issue appears to be related to Responsible AI terms for ComputerVision:

    {"code": "ResourceKindRequireAcceptTerms", "message": "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=2164911"}
    

Any log messages given by the failure

{"code": "InvalidTemplateDeployment", "message": "The template deployment 'main-1click' is not valid according to the validation procedure. The tracking id is '2943a747-3e45-4b0c-915a-30b1bfe2f8a3'. See inner errors for details."}

Inner Errors:
{"code": "ResourceKindRequireAcceptTerms", "message": "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=2164911"}

Expected/desired behavior

The Bicep template deployment should succeed without requiring manual acceptance of Responsible AI terms for creating ComputerVision resources.

OS and Version?

Windows 11 but in WSL

Versions

Azure CLI: 2.65.0
Bicep CLI: 0.30.23

Mention any other details that might be useful

  • I was able to resolve the issue temporarily by manually deploying the ComputerVision resource through the Azure Portal and accepting the Responsible AI terms. This workaround should not be required for template deployments, but unfortunately this manual step is required. The documentation needs to be updated to reflect this. Happy to do a PR for this.

This issue highlights that the template deployment fails due to the subscription not automatically agreeing to the Responsible AI terms for the ComputerVision resource, which you had to resolve manually.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions