你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Set-AzMarketplaceTerms
Accept or reject terms for a given publisher id(Publisher), offer id(Product) and plan id(Name).
Syntax
Set-AzMarketplaceTerms
-Product <String>
-Name <String>
-Publisher <String>
[-SubscriptionId <String>]
[-Accept]
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-AzMarketplaceTerms
-Product <String>
-Name <String>
-Publisher <String>
[-SubscriptionId <String>]
[-Reject]
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-AzMarketplaceTerms
[-Accept]
-Terms <IAgreementTerms>
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-AzMarketplaceTerms
[-Reject]
-Terms <IAgreementTerms>
[-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.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Type: | PSObject |
Aliases: | AzureRMContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Plan identifier string of image being deployed.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Product
Offer identifier string of image being deployed.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Publisher
Publisher identifier string of image being deployed.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Reject
Pass this to reject the legal terms.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SubscriptionId
The subscription ID that identifies an Azure subscription.
Type: | String |
Position: | Named |
Default value: | (Get-AzContext).Subscription.Id |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Terms
Terms properties for provided Publisher/Offer/Plan tuple To construct, see NOTES section for PARAMETER properties and create a hash table. To construct, see NOTES section for TERMS properties and create a hash table.
Type: | IAgreementTerms |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |