We recommend using Azure Native.
azure.marketplace.Agreement
Explore with Pulumi AI
Allows accepting the Legal Terms for a Marketplace Image.
Example Usage
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()
{
Offer = "waf",
Plan = "hourly",
Publisher = "barracudanetworks",
});
});
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{
Offer: pulumi.String("waf"),
Plan: pulumi.String("hourly"),
Publisher: pulumi.String("barracudanetworks"),
})
if err != nil {
return err
}
return nil
})
}
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()
.offer("waf")
.plan("hourly")
.publisher("barracudanetworks")
.build());
}
}
import pulumi
import pulumi_azure as azure
barracuda = azure.marketplace.Agreement("barracuda",
offer="waf",
plan="hourly",
publisher="barracudanetworks")
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const barracuda = new azure.marketplace.Agreement("barracuda", {
offer: "waf",
plan: "hourly",
publisher: "barracudanetworks",
});
resources:
barracuda:
type: azure:marketplace:Agreement
properties:
offer: waf
plan: hourly
publisher: barracudanetworks
Create Agreement Resource
new Agreement(name: string, args: AgreementArgs, opts?: CustomResourceOptions);
@overload
def Agreement(resource_name: str,
opts: Optional[ResourceOptions] = None,
offer: Optional[str] = None,
plan: Optional[str] = None,
publisher: Optional[str] = None)
@overload
def Agreement(resource_name: str,
args: AgreementArgs,
opts: Optional[ResourceOptions] = 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.
- 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.
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 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.
- License
Text stringLink - Privacy
Policy stringLink
- Id string
The provider-assigned unique ID for this managed resource.
- License
Text stringLink - Privacy
Policy stringLink
- id String
The provider-assigned unique ID for this managed resource.
- license
Text StringLink - privacy
Policy StringLink
- id string
The provider-assigned unique ID for this managed resource.
- license
Text stringLink - privacy
Policy stringLink
- id str
The provider-assigned unique ID for this managed resource.
- license_
text_ strlink - privacy_
policy_ strlink
- id String
The provider-assigned unique ID for this managed resource.
- license
Text StringLink - privacy
Policy StringLink
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.
- License
Text stringLink - 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.
- Privacy
Policy stringLink - Publisher string
The Publisher of the Marketplace Image. Changing this forces a new resource to be created.
- License
Text stringLink - 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.
- Privacy
Policy stringLink - Publisher string
The Publisher of the Marketplace Image. Changing this forces a new resource to be created.
- license
Text StringLink - 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.
- privacy
Policy StringLink - publisher String
The Publisher of the Marketplace Image. Changing this forces a new resource to be created.
- license
Text stringLink - 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.
- privacy
Policy stringLink - publisher string
The Publisher of the Marketplace Image. Changing this forces a new resource to be created.
- license_
text_ strlink - 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_ strlink - publisher str
The Publisher of the Marketplace Image. Changing this forces a new resource to be created.
- license
Text StringLink - 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.
- privacy
Policy StringLink - 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
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
azurerm
Terraform Provider.