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

Support for azurerm_managed_application_* #5294

Closed
neil-yechenwei opened this issue Jan 3, 2020 · 1 comment
Closed

Support for azurerm_managed_application_* #5294

neil-yechenwei opened this issue Jan 3, 2020 · 1 comment

Comments

@neil-yechenwei
Copy link
Contributor

neil-yechenwei commented Jan 3, 2020

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

There is a request here to support managed application including managed application definition resource and managed application resource. Azure managed applications enable you to offer cloud solutions that are easy for consumers to deploy and operate.
See more details for managed application from https://docs.microsoft.com/zh-cn/azure/azure-resource-manager/managed-applications/
See the APIs for managed application definition from : https://docs.microsoft.com/en-us/rest/api/resources/applicationdefinitions/createorupdate#applicationproviderauthorization
See the APIs for managed application from: https://docs.microsoft.com/en-us/rest/api/resources/applications/createorupdate

Affected resource provider

  • Microsoft.Solutions

New or Affected Resource(s)

  • azurerm_managed_application_definition
  • azurerm_managed_application

Potential Terraform Configuration

resource "azurerm_managed_application_definition" "example" {
  name                 = "managedapplicationdefinition"
  location             = "eastus"
  resource_group_name  = "managedapplicationdefinition-rg"
  lock_level           = "ReadOnly"
  package_file_uri     = "https://github.com/Azure/azure-managedapp-samples/raw/master/Managed Application Sample Packages/201-managed-storage-account/managedstorage.zip"
  display_name         = "TestManagedApplicationDefinition"
  description          = "Test Managed Application Definition"

  authorization {
    service_principal_id = "25c64fd2-b660-433f-ba92-c628dee555fd"
    role_definition_id   = "b24988ac-6180-42a0-ab88-20f7382dd24c"
  }
}

resource "azurerm_managed_application" "test" {
  name                      = "acctestManagedApp%d"
  location                  = azurerm_resource_group.test.location
  resource_group_name       = azurerm_resource_group.test.name
  kind                      = "ServiceCatalog"
  managed_resource_group_id = "/subscriptions/${data.azurerm_client_config.test.subscription_id}/resourceGroups/infraGroup%d"
  application_definition_id = azurerm_managed_application_definition.test.id

  parameters = <<PARAMETERS
    {
        "location": {
            "value": "${azurerm_resource_group.test.location}"
        },
        "storageAccountNamePrefix": {
            "value": "store%s"
        },
        "storageAccountType": {
            "value": "Standard_LRS"
        }
    }
    PARAMETERS
}

References

See rest-api-spec-for-go: https://github.com/Azure/azure-rest-api-specs/blob/c7a6b470d7bb65a240739e99a4d123ed1a3ca7e9/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json

@ghost
Copy link

ghost commented May 30, 2020

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 May 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants