Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Set-AzMarketplaceTerms

Accept or reject terms for a given publisher id(Publisher), offer id(Product) and plan id(Name).

Syntax

TermsAccept (Default)

Set-AzMarketplaceTerms
 -Product <String>
 -Name <String>
 -Publisher <String>
 [-SubscriptionId <String>]
 [-Accept]
 [-DefaultProfile <PSObject>]
 [-WhatIf]
 [-Confirm]
 [<CommonParameters>]

TermsReject

Set-AzMarketplaceTerms
 -Product <String>
 -Name <String>
 -Publisher <String>
 [-SubscriptionId <String>]
 [-Reject]
 [-DefaultProfile <PSObject>]
 [-WhatIf]
 [-Confirm]
 [<CommonParameters>]

TermsAcceptViaIdentity

Set-AzMarketplaceTerms
 -Terms <IAgreementTerms>
 [-Accept]
 [-DefaultProfile <PSObject>]
 [-WhatIf]
 [-Confirm]
 [<CommonParameters>]

TermsRejectViaIdentity

Set-AzMarketplaceTerms
 -Terms <IAgreementTerms>
 [-Reject]
 [-DefaultProfile <PSObject>]
 [-WhatIf]
 [-Confirm]
 [<CommonParameters>]

Description

Accept or reject terms for a given publisher id(Publisher), offer id(Product) and plan id(Name).

Examples

Example 1: Accept terms for a given publisher id(Publisher), offer id(Product) and plan id(Name)

Set-AzMarketplaceTerms -Publisher "microsoft-ads" -Product "windows-data-science-vm" -Name "windows2016" -Accept
Name Product Publisher Accepted Signature PrivacyPolicyLink
---- ------- --------- -------- --------- -----------------
windows2016 windows-data-science-vm microsoft-ads True 523GN576A2S5OTTOGVFEZWYIWCUIQN2VE3I4WW3H2MER3ERJGDXZESHHQF5ZB2II2VUYXLRK6NE2A7EPF7GH6LWMQ6ECSYSPOD2SHFQ https://www.microsoft.com/EN-US/privacystatement/OnlineS

This command accept terms for a given publisher id(Publisher), offer id(Product) and plan id(Name).

Example 2: Accept terms for a given publisher id(Publisher), offer id(Product) and plan id(Name) by pipeline

Get-AzMarketplaceTerms -Publisher "microsoft-ads" -Product "windows-data-science-vm" -Name "windows2016" -OfferType 'virtualmachine' | Set-AzMarketplaceTerms -Accept
Name Product Publisher Accepted Signature PrivacyPolicyLink
---- ------- --------- -------- --------- -----------------
windows2016 windows-data-science-vm microsoft-ads True 523GN576A2S5OTTOGVFEZWYIWCUIQN2VE3I4WW3H2MER3ERJGDXZESHHQF5ZB2II2VUYXLRK6NE2A7EPF7GH6LWMQ6ECSYSPOD2SHFQ https://www.microsoft.com/EN-US/privacystatement/OnlineS

This command accept terms for a given publisher id(Publisher), offer id(Product) and plan id(Name) by pipeline.

Example 3: Reject terms for a given publisher id(Publisher), offer id(Product) and plan id(Name)

Set-AzMarketplaceTerms -Publisher "microsoft-ads" -Product "windows-data-science-vm" -Name "windows2016" -Reject
Name Product Publisher Accepted Signature PrivacyPolicyLink
---- ------- --------- -------- --------- -----------------
windows2016 windows-data-science-vm microsoft-ads False 523GN576A2S5OTTOGVFEZWYIWCUIQN2VE3I4WW3H2MER3ERJGDXZESHHQF5ZB2II2VUYXLRK6NE2A7EPF7GH6LWMQ6ECSYSPOD2SHFQ https://www.microsoft.com/EN-US/privacystatement/OnlineS

This command reject terms for a given publisher id(Publisher), offer id(Product) and plan id(Name).

Example 4: Reject terms for a given publisher id(Publisher), offer id(Product) and plan id(Name) by pipeline

Get-AzMarketplaceTerms -Publisher "microsoft-ads" -Product "windows-data-science-vm" -Name "windows2016" -OfferType 'virtualmachine' | Set-AzMarketplaceTerms -Reject
Name Product Publisher Accepted Signature PrivacyPolicyLink
---- ------- --------- -------- --------- -----------------
windows2016 windows-data-science-vm microsoft-ads False 523GN576A2S5OTTOGVFEZWYIWCUIQN2VE3I4WW3H2MER3ERJGDXZESHHQF5ZB2II2VUYXLRK6NE2A7EPF7GH6LWMQ6ECSYSPOD2SHFQ https://www.microsoft.com/EN-US/privacystatement/OnlineS

This command reject terms for a given publisher id(Publisher), offer id(Product) and plan id(Name) by pipeline.

Parameters

-Accept

If any version of the terms have been accepted, otherwise false.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Parameter properties

Type:PSObject
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzureRMContext, AzureCredential

Parameter sets

-Name

Plan identifier string of image being deployed.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-Product

Offer identifier string of image being deployed.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-Publisher

Publisher identifier string of image being deployed.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-Reject

Pass this to reject the legal terms.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-SubscriptionId

The subscription ID that identifies an Azure subscription.

Parameter properties

Type:String
Default value:(Get-AzContext).Subscription.Id
Supports wildcards:False
DontShow:False

Parameter sets

-Terms

Terms properties for provided Publisher/Offer/Plan tuple To construct, see NOTES section for PARAMETER properties and create a hash table.

Parameter properties

Type:IAgreementTerms
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

IAgreementTerms

Outputs

IAgreementTerms


Feedback

Was this page helpful?