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_sentinel_data_connector_azure_security_center #10667

Merged

Conversation

magodo
Copy link
Collaborator

@magodo magodo commented Feb 20, 2021

new resource: azurerm_sentinel_data_connector_azure_security_center

@magodo magodo force-pushed the sentinel_dataconnector_azure_security_center branch from 402c061 to 7b0448f Compare February 23, 2021 02:07
@tombuildsstuff
Copy link
Contributor

@magodo running the tests for this I get:

Error: creating Data Connector: (Name "accTestDC-210301102602516304" / Workspace Name "acctestLAW-210301102602516304" / Resource Group "acctestRG-sentinel-210301102602516304"): securityinsight.DataConnectorsClient#CreateOrUpdate: Failure responding to request: StatusCode=401 -- Original Error: autorest/azure: Service returned an error. Status=401 Code="InvalidLicense" Message="License is invalid"

Does this need a Security Center licence?

@magodo
Copy link
Collaborator Author

magodo commented Mar 1, 2021

@tombuildsstuff Indeed. Below is the "proof" that test can pass:

💤 make testacc TEST=./azurerm/internal/services/sentinel TESTARGS='-run TestAccAzureRMSentinelDataConnectorAzureSecurityCenter_'
==> Checking that code complies with gofmt requirements...
==> Checking that Custom Timeouts are used...
==> Checking that acceptance test packages are used...
TF_ACC=1 go test ./azurerm/internal/services/sentinel -v -run TestAccAzureRMSentinelDataConnectorAzureSecurityCenter_ -timeout 180m -ldflags="-X=github.com/terraform-providers/terraform-provider-azurerm/version.ProviderVersion=acc"
2021/03/01 21:48:06 [DEBUG] not using binary driver name, it's no longer needed
2021/03/01 21:48:07 [DEBUG] not using binary driver name, it's no longer needed
=== RUN   TestAccAzureRMSentinelDataConnectorAzureSecurityCenter_basic
=== PAUSE TestAccAzureRMSentinelDataConnectorAzureSecurityCenter_basic
=== RUN   TestAccAzureRMSentinelDataConnectorAzureSecurityCenter_complete
=== PAUSE TestAccAzureRMSentinelDataConnectorAzureSecurityCenter_complete
=== RUN   TestAccAzureRMSentinelDataConnectorAzureSecurityCenter_requiresImport
=== PAUSE TestAccAzureRMSentinelDataConnectorAzureSecurityCenter_requiresImport
=== CONT  TestAccAzureRMSentinelDataConnectorAzureSecurityCenter_requiresImport
=== CONT  TestAccAzureRMSentinelDataConnectorAzureSecurityCenter_complete
=== CONT  TestAccAzureRMSentinelDataConnectorAzureSecurityCenter_basic
--- PASS: TestAccAzureRMSentinelDataConnectorAzureSecurityCenter_basic (180.86s)
--- PASS: TestAccAzureRMSentinelDataConnectorAzureSecurityCenter_complete (184.45s)
--- PASS: TestAccAzureRMSentinelDataConnectorAzureSecurityCenter_requiresImport (193.58s)
PASS
ok      github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/sentinel    193.730s

@katbyte katbyte added this to the v2.51.0 milestone Mar 9, 2021
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.

LGTM 👍

@katbyte katbyte merged commit 89ef1de into hashicorp:master Mar 10, 2021
katbyte added a commit that referenced this pull request Mar 10, 2021
@ghost
Copy link

ghost commented Mar 12, 2021

This has been released in version 2.51.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.51.0"
}
# ... other configuration ...

@ghost
Copy link

ghost commented Apr 9, 2021

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 as resolved and limited conversation to collaborators Apr 9, 2021
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.

3 participants