Agreement Args
data class AgreementArgs(val offer: Output<String>? = null, val plan: Output<String>? = null, val publisher: Output<String>? = null) : ConvertibleToJava<AgreementArgs>
Allows accepting the Legal Terms for a Marketplace Image.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const barracuda = new azure.marketplace.Agreement("barracuda", {
publisher: "barracudanetworks",
offer: "waf",
plan: "hourly",
});
Content copied to clipboard
import pulumi
import pulumi_azure as azure
barracuda = azure.marketplace.Agreement("barracuda",
publisher="barracudanetworks",
offer="waf",
plan="hourly")
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var barracuda = new Azure.Marketplace.Agreement("barracuda", new()
{
Publisher = "barracudanetworks",
Offer = "waf",
Plan = "hourly",
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/marketplace"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := marketplace.NewAgreement(ctx, "barracuda", &marketplace.AgreementArgs{
Publisher: pulumi.String("barracudanetworks"),
Offer: pulumi.String("waf"),
Plan: pulumi.String("hourly"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.marketplace.Agreement;
import com.pulumi.azure.marketplace.AgreementArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var barracuda = new Agreement("barracuda", AgreementArgs.builder()
.publisher("barracudanetworks")
.offer("waf")
.plan("hourly")
.build());
}
}
Content copied to clipboard
resources:
barracuda:
type: azure:marketplace:Agreement
properties:
publisher: barracudanetworks
offer: waf
plan: hourly
Content copied to clipboard
Import
Marketplace Agreement can be imported using the resource id
, e.g.
$ pulumi import azure:marketplace/agreement:Agreement example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.MarketplaceOrdering/agreements/publisher1/offers/offer1/plans/plan1
Content copied to clipboard