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
resource "azurerm_marketplace_agreement" "waf_byol" {
publisher = local.publisher
offer = local.offer
plan = "byol"
}
resource "azurerm_marketplace_agreement" "waf_payg" {
resource "azurerm_marketplace_agreement" "waf_byol" {
publisher = local.publisher
offer = local.offer
plan = "byol"
}
resource "azurerm_marketplace_agreement" "waf_payg" {
resource "azurerm_marketplace_agreement" "chkp-mgmt-byol" {
publisher = "checkpoint"
offer = "check-point-cg-r81"
plan = "mgmt-byol"
}
resource "azurerm_marketplace_agreement" "chkp-mgmt-byol" {
publisher = "checkpoint"
offer = "check-point-cg-r81"
plan = "mgmt-byol"
}
resource "azurerm_marketplace_agreement" "checkpoint" {
publisher = "checkpoint"
offer = "check-point-cg-r8040"
plan = "sg-byol"
resource "azurerm_marketplace_agreement" "couchbase" {
publisher = "couchbase"
offer = "couchbase-server-enterprise-container"
plan = "byol"
}
resource "azurerm_marketplace_agreement" "checkpoint" {
publisher = "checkpoint"
offer = "check-point-cg-r8040"
plan = "sg-byol"
resource "azurerm_marketplace_agreement" "eula-gitlab" {
publisher = "gitlabinc1586447921813"
offer = "gitlabee"
plan = "default"
resource "azurerm_marketplace_agreement" "checkpoint" {
publisher = "checkpoint"
offer = "check-point-cg-r81"
plan = "sg-byol"
}
resource "azurerm_marketplace_agreement" "checkpoint" {
publisher = "checkpoint"
offer = "check-point-cg-r8040"
plan = "mgmt-byol"
}
Parameters
-
id
optional computed - string -
license_text_link
optional computed - string -
offer
required - string -
plan
required - string -
privacy_policy_link
optional computed - string -
publisher
required - string -
timeouts
single block
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.
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.
azurerm_managed_disk
Ensure to enable the encryption on managed disks
It is better to enable the encryption on managed disks.
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.
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.