Azure Compute Marketplace Agreement

This page shows how to write Terraform for Compute Marketplace Agreement and write them securely.

azurerm_marketplace_agreement (Terraform)

The Marketplace Agreement in Compute can be configured in Terraform with the resource name azurerm_marketplace_agreement. The following sections describe 10 examples of how to use the resource and its parameters.

Example Usage from GitHub

main.tf#L21
resource "azurerm_marketplace_agreement" "waf_byol" {
  publisher = local.publisher
  offer     = local.offer
  plan      = "byol"
}
resource "azurerm_marketplace_agreement" "waf_payg" {
main.tf#L21
resource "azurerm_marketplace_agreement" "waf_byol" {
  publisher = local.publisher
  offer     = local.offer
  plan      = "byol"
}
resource "azurerm_marketplace_agreement" "waf_payg" {
agreements.tf#L15
resource "azurerm_marketplace_agreement" "chkp-mgmt-byol" {
  publisher = "checkpoint"
  offer     = "check-point-cg-r81"
  plan      = "mgmt-byol"
}

agreements.tf#L15
resource "azurerm_marketplace_agreement" "chkp-mgmt-byol" {
  publisher = "checkpoint"
  offer     = "check-point-cg-r81"
  plan      = "mgmt-byol"
}

marketplace_agreement.tf#L1
resource "azurerm_marketplace_agreement" "checkpoint" {
  publisher = "checkpoint"
  offer     = "check-point-cg-r8040"
  plan      = "sg-byol"
couchbase.tf#L3
resource "azurerm_marketplace_agreement" "couchbase" {
  publisher = "couchbase"
  offer     = "couchbase-server-enterprise-container"
  plan      = "byol"
}
marketplace_agreement.tf#L1
resource "azurerm_marketplace_agreement" "checkpoint" {
  publisher = "checkpoint"
  offer     = "check-point-cg-r8040"
  plan      = "sg-byol"
eula.tf#L1
resource "azurerm_marketplace_agreement" "eula-gitlab" {
  publisher = "gitlabinc1586447921813"
  offer     = "gitlabee"
  plan      = "default"
marketplace_agreement.tf#L1
resource "azurerm_marketplace_agreement" "checkpoint" {
  publisher = "checkpoint"
  offer     = "check-point-cg-r81"
  plan      = "sg-byol"
}
chkp_mgmt.tf#L2
resource "azurerm_marketplace_agreement" "checkpoint" {
  publisher = "checkpoint"
  offer     = "check-point-cg-r8040"
  plan      = "mgmt-byol"
}

Review your Terraform file for Azure best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

Explanation in Terraform Registry

Allows accepting the Legal Terms for a Marketplace Image.

Tips: Best Practices for The Other Azure Compute Resources

In addition to the azurerm_linux_virtual_machine, Azure Compute has the other resources that should be configured for security reasons. Please check some examples of those resources and precautions.

risk-label

azurerm_linux_virtual_machine

Ensure to use SSH authentication for virtual machines

It is better to use SSH authentication for virtual machines instead of password authentication to enforce more secure ways.

risk-label

azurerm_managed_disk

Ensure to enable the encryption on managed disks

It is better to enable the encryption on managed disks.

risk-label

azurerm_virtual_machine

Ensure to use SSH authentication for virtual machines

It is better to use SSH authentication for virtual machines instead of password authentication to enforce more secure ways.

Review your Azure Compute settings

In addition to the above, there are other security points you should be aware of making sure that your .tf files are protected in Shisho Cloud.

Azure Resource Manager Example

Azure Resource Manager code does not have the related resource.

Frequently asked questions

What is Azure Compute Marketplace Agreement?

Azure Compute Marketplace Agreement is a resource for Compute of Microsoft Azure. Settings can be wrote in Terraform.

Where can I find the example code for the Azure Compute Marketplace Agreement?

For Terraform, the Rohde-Schwarz/r-s-waf-extra, Rohde-Schwarz/r-s-waf-extra and chillyjim/Azure-SE-Lab source code examples are useful. See the Terraform Example section for further details.

security-icon

Automate config file reviews on your commits

Fix issues in your infrastructure as code with auto-generated patches.