1. Packages
  2. Azure Classic
  3. API Docs
  4. marketplace
  5. Agreement

We recommend using Azure Native.

Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi

azure.marketplace.Agreement

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi

    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",
    });
    
    import pulumi
    import pulumi_azure as azure
    
    barracuda = azure.marketplace.Agreement("barracuda",
        publisher="barracudanetworks",
        offer="waf",
        plan="hourly")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v5/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
    	})
    }
    
    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",
        });
    
    });
    
    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());
    
        }
    }
    
    resources:
      barracuda:
        type: azure:marketplace:Agreement
        properties:
          publisher: barracudanetworks
          offer: waf
          plan: hourly
    

    Create Agreement Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Agreement(name: string, args: AgreementArgs, opts?: CustomResourceOptions);
    @overload
    def Agreement(resource_name: str,
                  args: AgreementArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def Agreement(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  offer: Optional[str] = None,
                  plan: Optional[str] = None,
                  publisher: Optional[str] = None)
    func NewAgreement(ctx *Context, name string, args AgreementArgs, opts ...ResourceOption) (*Agreement, error)
    public Agreement(string name, AgreementArgs args, CustomResourceOptions? opts = null)
    public Agreement(String name, AgreementArgs args)
    public Agreement(String name, AgreementArgs args, CustomResourceOptions options)
    
    type: azure:marketplace:Agreement
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args AgreementArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args AgreementArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args AgreementArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AgreementArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AgreementArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var agreementResource = new Azure.Marketplace.Agreement("agreementResource", new()
    {
        Offer = "string",
        Plan = "string",
        Publisher = "string",
    });
    
    example, err := marketplace.NewAgreement(ctx, "agreementResource", &marketplace.AgreementArgs{
    	Offer:     pulumi.String("string"),
    	Plan:      pulumi.String("string"),
    	Publisher: pulumi.String("string"),
    })
    
    var agreementResource = new Agreement("agreementResource", AgreementArgs.builder()
        .offer("string")
        .plan("string")
        .publisher("string")
        .build());
    
    agreement_resource = azure.marketplace.Agreement("agreementResource",
        offer="string",
        plan="string",
        publisher="string")
    
    const agreementResource = new azure.marketplace.Agreement("agreementResource", {
        offer: "string",
        plan: "string",
        publisher: "string",
    });
    
    type: azure:marketplace:Agreement
    properties:
        offer: string
        plan: string
        publisher: string
    

    Agreement Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Agreement resource accepts the following input properties:

    Offer string
    The Offer of the Marketplace Image. Changing this forces a new resource to be created.
    Plan string
    The Plan of the Marketplace Image. Changing this forces a new resource to be created.
    Publisher string
    The Publisher of the Marketplace Image. Changing this forces a new resource to be created.
    Offer string
    The Offer of the Marketplace Image. Changing this forces a new resource to be created.
    Plan string
    The Plan of the Marketplace Image. Changing this forces a new resource to be created.
    Publisher string
    The Publisher of the Marketplace Image. Changing this forces a new resource to be created.
    offer String
    The Offer of the Marketplace Image. Changing this forces a new resource to be created.
    plan String
    The Plan of the Marketplace Image. Changing this forces a new resource to be created.
    publisher String
    The Publisher of the Marketplace Image. Changing this forces a new resource to be created.
    offer string
    The Offer of the Marketplace Image. Changing this forces a new resource to be created.
    plan string
    The Plan of the Marketplace Image. Changing this forces a new resource to be created.
    publisher string
    The Publisher of the Marketplace Image. Changing this forces a new resource to be created.
    offer str
    The Offer of the Marketplace Image. Changing this forces a new resource to be created.
    plan str
    The Plan of the Marketplace Image. Changing this forces a new resource to be created.
    publisher str
    The Publisher of the Marketplace Image. Changing this forces a new resource to be created.
    offer String
    The Offer of the Marketplace Image. Changing this forces a new resource to be created.
    plan String
    The Plan of the Marketplace Image. Changing this forces a new resource to be created.
    publisher String
    The Publisher of the Marketplace Image. Changing this forces a new resource to be created.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Agreement resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    LicenseTextLink string
    PrivacyPolicyLink string
    Id string
    The provider-assigned unique ID for this managed resource.
    LicenseTextLink string
    PrivacyPolicyLink string
    id String
    The provider-assigned unique ID for this managed resource.
    licenseTextLink String
    privacyPolicyLink String
    id string
    The provider-assigned unique ID for this managed resource.
    licenseTextLink string
    privacyPolicyLink string
    id str
    The provider-assigned unique ID for this managed resource.
    license_text_link str
    privacy_policy_link str
    id String
    The provider-assigned unique ID for this managed resource.
    licenseTextLink String
    privacyPolicyLink String

    Look up Existing Agreement Resource

    Get an existing Agreement resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: AgreementState, opts?: CustomResourceOptions): Agreement
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            license_text_link: Optional[str] = None,
            offer: Optional[str] = None,
            plan: Optional[str] = None,
            privacy_policy_link: Optional[str] = None,
            publisher: Optional[str] = None) -> Agreement
    func GetAgreement(ctx *Context, name string, id IDInput, state *AgreementState, opts ...ResourceOption) (*Agreement, error)
    public static Agreement Get(string name, Input<string> id, AgreementState? state, CustomResourceOptions? opts = null)
    public static Agreement get(String name, Output<String> id, AgreementState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    LicenseTextLink string
    Offer string
    The Offer of the Marketplace Image. Changing this forces a new resource to be created.
    Plan string
    The Plan of the Marketplace Image. Changing this forces a new resource to be created.
    PrivacyPolicyLink string
    Publisher string
    The Publisher of the Marketplace Image. Changing this forces a new resource to be created.
    LicenseTextLink string
    Offer string
    The Offer of the Marketplace Image. Changing this forces a new resource to be created.
    Plan string
    The Plan of the Marketplace Image. Changing this forces a new resource to be created.
    PrivacyPolicyLink string
    Publisher string
    The Publisher of the Marketplace Image. Changing this forces a new resource to be created.
    licenseTextLink String
    offer String
    The Offer of the Marketplace Image. Changing this forces a new resource to be created.
    plan String
    The Plan of the Marketplace Image. Changing this forces a new resource to be created.
    privacyPolicyLink String
    publisher String
    The Publisher of the Marketplace Image. Changing this forces a new resource to be created.
    licenseTextLink string
    offer string
    The Offer of the Marketplace Image. Changing this forces a new resource to be created.
    plan string
    The Plan of the Marketplace Image. Changing this forces a new resource to be created.
    privacyPolicyLink string
    publisher string
    The Publisher of the Marketplace Image. Changing this forces a new resource to be created.
    license_text_link str
    offer str
    The Offer of the Marketplace Image. Changing this forces a new resource to be created.
    plan str
    The Plan of the Marketplace Image. Changing this forces a new resource to be created.
    privacy_policy_link str
    publisher str
    The Publisher of the Marketplace Image. Changing this forces a new resource to be created.
    licenseTextLink String
    offer String
    The Offer of the Marketplace Image. Changing this forces a new resource to be created.
    plan String
    The Plan of the Marketplace Image. Changing this forces a new resource to be created.
    privacyPolicyLink String
    publisher String
    The Publisher of the Marketplace Image. Changing this forces a new resource to be created.

    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
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi