# Terraform Cloud, create azure application error

**URL:** <https://discuss.hashicorp.com/t/terraform-cloud-create-azure-application-error/42450>\
**Category:** Azure\
**Created:** [July 26, 2022, 10:37am UTC](https://discuss.hashicorp.com/t/terraform-cloud-create-azure-application-error/42450 "2022-07-26T10:37:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![badbytes](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/badbytes/32/24387_2.png) [@badbytes](https://discuss.hashicorp.com/u/badbytes)\
**Post date:** [July 26, 2022, 10:37am UTC](https://discuss.hashicorp.com/t/terraform-cloud-create-azure-application-error/42450/1 "2022-07-26T10:37:29Z")

</div>

Hello, I’m new into terraform, and tried the terraform cloud solution.

I had an issue during the azuread\_application resource creation:

the following code is working on terraform when executed on local:

> resource “azuread\_application” “service\_connection” {  
> display\_name = local.azad\_service\_connection\_sp\_name  
> }
> 
> resource “azuread\_service\_principal” “service\_connection” {  
> application\_id = azuread\_application.service\_connection.application\_id  
> }
> 
> resource “azuread\_service\_principal\_password” “service\_connection” {  
> service\_principal\_id = azuread\_service\_principal.service\_connection.id  
> }

but when this code is executed remotely with terraform cloud, this error occurs:

> Error: Could not create application  
> │  
> │ with azuread\_application.service\_connection,  
> │ on azuread.tf line 11, in resource “azuread\_application” “service\_connection”:  
> │ 11: resource “azuread\_application” “service\_connection” {  
> │  
> │ ApplicationsClient.BaseClient.Post(): unexpected status 403 with OData  
> │ error: Authorization\_RequestDenied: Insufficient privileges to complete the  
> │ operation.

If i understand correctly, I saw there is a possibility to use sso to autorize terraform cloud with azure ad, but this is accessible only with a business terraform cloud subscription.

Is there is another way to create an azure ad application with terraform cloud ?

---

<div class="post-metadata">

**Author:** ![faizan1990](https://avatars.discourse-cdn.com/v4/letter/f/6de8d8/32.png) [@faizan1990](https://discuss.hashicorp.com/u/faizan1990)\
**Post date:** [March 16, 2024, 1:48pm UTC](https://discuss.hashicorp.com/t/terraform-cloud-create-azure-application-error/42450/2 "2024-03-16T13:48:22Z")

</div>

I am facing the same problem
