Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

azuread_application: support for required-resource-accesses? #9

Closed
kvolkovich-sc opened this issue Oct 14, 2018 · 5 comments · Fixed by #23
Closed

azuread_application: support for required-resource-accesses? #9

kvolkovich-sc opened this issue Oct 14, 2018 · 5 comments · Fixed by #23

Comments

@kvolkovich-sc
Copy link

azurerm version: 1.16

I want to grant permissions to Active Directory Application.

Using Azure CLI have such option:

az ad app update -h

...
update a native application with delegated permission of "access the AAD directory as the
    signed-in user"
        az ad app update --id e042ec79-34cd-498f-9d9f-123456781234 --required-resource-accesses
        @manifest.json
        ("manifest.json" contains the following content)
        [{
            "resourceAppId": "00000002-0000-0000-c000-000000000000",
            "resourceAccess": [
                {
                    "id": "a42657d6-7f20-40e3-b6f0-cee03008a62a",
                    "type": "Scope"
                }
           ]
        }]
...

Is there any way to do the same with Terraform AzureRM.

@kvolkovich-sc kvolkovich-sc changed the title Is there azurerm_azuread_application required-resource-accesses ? Is there azurerm_azuread_application --required-resource-accesses ? Oct 14, 2018
@tombuildsstuff
Copy link
Contributor

hi @kvolkovich-sc

Thanks for opening this issue - apologies for the delayed response here!

Taking a quick look into this unfortunately this isn't supported by the azurerm_azuread_application resource at this time - however it appears support for this is available in the Azure SDK for Go, as such it should be possible for someone to add support for this :)

Thanks!

@katbyte
Copy link
Collaborator

katbyte commented Jan 10, 2019

Hi @kvolkovich-sc,

As in 2.0 we are deprecating all Azure AD resources and data sources in the Azure RM provider in favour of this new provider I have moved the issue here.

@katbyte katbyte transferred this issue from hashicorp/terraform-provider-azurerm Jan 10, 2019
@tombuildsstuff tombuildsstuff changed the title Is there azurerm_azuread_application --required-resource-accesses ? azuread_application: support for required-resource-accesses? Jan 10, 2019
@michaelmeelis
Copy link

Hi,

I'm curious if this is going to be developed. I also have a need for this and I'm forced to script around it instead of having this neatly into terraform.

Greetings,
Michael

@gerardaus
Copy link
Contributor

gerardaus commented Jan 22, 2019

Pull request #23 adds support for this feature.

katbyte pushed a commit that referenced this issue Jan 28, 2019
In order to support the "Required Resource Access Type", the azure sdk needed to be upgraded.

(fixes #9)
@ghost
Copy link

ghost commented Mar 5, 2019

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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Mar 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants