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
TermsAccept
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
TermsAcceptViaIdentity
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-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
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-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
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-Name
Plan identifier string of image being deployed.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
TermsAccept
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
TermsReject
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-Product
Offer identifier string of image being deployed.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
TermsAccept
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
TermsReject
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-Publisher
Publisher identifier string of image being deployed.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
TermsAccept
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
TermsReject
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-Reject
Pass this to reject the legal terms.
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
TermsReject
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
TermsRejectViaIdentity
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-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
TermsAccept
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
TermsReject
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-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
TermsAcceptViaIdentity
Position: Named
Mandatory: True
Value from pipeline: True
Value from pipeline by property name: False
Value from remaining arguments: False
TermsRejectViaIdentity
Position: Named
Mandatory: True
Value from pipeline: True
Value from pipeline by property name: False
Value from remaining arguments: False
-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
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
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 .
Outputs