get Agreement
Uses this data source to access information about an existing Marketplace Agreement.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const barracuda = azure.marketplace.getAgreement({
publisher: "barracudanetworks",
offer: "waf",
plan: "hourly",
});
export const azurermMarketplaceAgreementId = id;
Content copied to clipboard
import pulumi
import pulumi_azure as azure
barracuda = azure.marketplace.get_agreement(publisher="barracudanetworks",
offer="waf",
plan="hourly")
pulumi.export("azurermMarketplaceAgreementId", id)
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var barracuda = Azure.Marketplace.GetAgreement.Invoke(new()
{
Publisher = "barracudanetworks",
Offer = "waf",
Plan = "hourly",
});
return new Dictionary<string, object?>
{
["azurermMarketplaceAgreementId"] = id,
};
});
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.LookupAgreement(ctx, &marketplace.LookupAgreementArgs{
Publisher: "barracudanetworks",
Offer: "waf",
Plan: "hourly",
}, nil)
if err != nil {
return err
}
ctx.Export("azurermMarketplaceAgreementId", id)
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.MarketplaceFunctions;
import com.pulumi.azure.marketplace.inputs.GetAgreementArgs;
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) {
final var barracuda = MarketplaceFunctions.getAgreement(GetAgreementArgs.builder()
.publisher("barracudanetworks")
.offer("waf")
.plan("hourly")
.build());
ctx.export("azurermMarketplaceAgreementId", id);
}
}
Content copied to clipboard
variables:
barracuda:
fn::invoke:
function: azure:marketplace:getAgreement
arguments:
publisher: barracudanetworks
offer: waf
plan: hourly
outputs:
azurermMarketplaceAgreementId: ${id}
Content copied to clipboard
Return
A collection of values returned by getAgreement.
Parameters
argument
A collection of arguments for invoking getAgreement.
Return
A collection of values returned by getAgreement.
Parameters
offer
The Offer of the Marketplace Image.
plan
The Plan of the Marketplace Image.
publisher
The Publisher of the Marketplace Image.
See also
suspend fun getAgreement(argument: suspend GetAgreementPlainArgsBuilder.() -> Unit): GetAgreementResult
Return
A collection of values returned by getAgreement.
Parameters
argument
Builder for com.pulumi.azure.marketplace.kotlin.inputs.GetAgreementPlainArgs.