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

new resource "azurerm_automation_connection", azurerm_automation_connection_certificate, azurerm_automation_connection_classic_certificate and azurerm_automation_connection_service_pricipal` #6847

Merged
merged 3 commits into from Jul 8, 2020

Conversation

njuCZ
Copy link
Contributor

@njuCZ njuCZ commented May 11, 2020

automation account API does not provider run as account interface, users need to configure service principal, automation certificate and automation connection manually.
This is the last PR about the flow.

azurerm_automation_connection_certificate, azurerm_automation_connection_classic_certificate, azurerm_automation_connection_service_pricipal coresponds to
resource azurerm_automation_connection_certificate coresponds to builtin types: Azure, AzureClassicCertificate , AzureServicePrincipal.

azurerm_automation_connection is designed for connecting user's custom connection type. (user could add new types).

https://docs.microsoft.com/en-us/azure/automation/automation-connections#connection-types
https://docs.microsoft.com/en-us/azure/automation/automation-connections#add-a-connection-type

image

relevant issues
#4431
#3881

(fixes #3881)

Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this PR @njuCZ,

Overall this looks good, but i think it may be better to have three different resources for each type exposing the required properties for each?
azurerm_automation_connection_certificate, azurerm_automation_connection_classic_certificate, and azurerm_automation_connection_service_pricipal. WDYT?

@njuCZ
Copy link
Contributor Author

njuCZ commented May 12, 2020

@katbyte because the docs says user could add a custom connection type and required parameters. Creating a connection could choose user's custom connection type. So if we split them into three resources, I am afraid this feature could not be supported.

@katbyte
Copy link
Collaborator

katbyte commented May 14, 2020

@njuCZ - then could we create the three strongly typed resources and then this one can be used for user defined ones?

@njuCZ
Copy link
Contributor Author

njuCZ commented May 14, 2020

@katbyte ok, thanks for your suggestion

@katbyte katbyte modified the milestones: v2.10.0, v2.11.0 May 14, 2020
@njuCZ
Copy link
Contributor Author

njuCZ commented May 15, 2020

sorry for busy other things yesterday, I will update this PR as soon as possible

@ghost ghost removed the waiting-response label May 15, 2020
…nection_certificate`, `azurerm_automation_connection_classic_certificate` and `azurerm_automation_connection_service_pricipal`
@ghost ghost added size/XXL and removed size/XL labels May 15, 2020
@njuCZ njuCZ changed the title new resource "azurerm_automation_connection" new resource "azurerm_automation_connection", azurerm_automation_connection_certificate, azurerm_automation_connection_classic_certificate and azurerm_automation_connection_service_pricipal` May 15, 2020
@njuCZ
Copy link
Contributor Author

njuCZ commented May 15, 2020

@katbyte I have updated the PR, please have a look

@katbyte katbyte modified the milestones: v2.11.0, v2.12.0, v2.13.0 May 22, 2020
@tombuildsstuff tombuildsstuff modified the milestones: v2.13.0, v2.14.0, v2.15.0 Jun 4, 2020
@katbyte katbyte modified the milestones: v2.15.0, v2.16.0 Jun 18, 2020
@tombuildsstuff tombuildsstuff modified the milestones: v2.16.0, v2.17.0, v2.18.0 Jun 25, 2020
@lazywinadmin
Copy link

Any update on when this will be released ? @katbyte
It would be great to be able to create connection resources within Automation Account
Thanks

Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the changes @njuCZ, aside from some minor corrections which i've added as suggestions and will commit now - this LGTM 👍

@katbyte katbyte merged commit 31af7a7 into hashicorp:master Jul 8, 2020
katbyte added a commit that referenced this pull request Jul 8, 2020
@ghost
Copy link

ghost commented Jul 10, 2020

This has been released in version 2.18.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example:

provider "azurerm" {
    version = "~> 2.18.0"
}
# ... other configuration ...

@ghost
Copy link

ghost commented Aug 7, 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 👉 hashibot-feedback@hashicorp.com. Thanks!

@hashicorp hashicorp locked and limited conversation to collaborators Aug 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Azure automation_account connection and certificate objects
4 participants