Closed briansaxbergMSFT closed 1 year ago
Thanks for reporting. It seems this issue is the same as #20443 . You can see error was returned from service. Please try to Set-AzMarketPlaceTerms
to accept term and then get term.
@dingmeng-xue
PS C:\Users\briansaxberg> Set-AzMarketPlaceTerms
cmdlet Set-AzMarketplaceTerms at command pipeline position 1 Supply values for the following parameters: Product: barracuda-ng-firewall Name: byol Publisher: barracudenetworks Accept: 1 Set-AzMarketplaceTerms : Cannot process argument transformation on parameter 'Accept'. Cannot convert value "System.String" to type "System.Management.Automation.SwitchParameter". Boolean parameters accept only Boolean values and numbers, such as $True, $False, 1 or 0. At line:1 char:1
+ CategoryInfo : InvalidData: (:) [Set-AzMarketplaceTerms], ParameterBindingArgumentTransformationExcepti
on
+ FullyQualifiedErrorId : ParameterArgumentTransformationError,Set-AzMarketplaceTerms
PS C:\Users\briansaxberg> Set-AzMarketPlaceTerms
cmdlet Set-AzMarketplaceTerms at command pipeline position 1 Supply values for the following parameters: Product: barracude-ng-firewall Name: byol Publisher: barracudanetworks Accept: $True Set-AzMarketplaceTerms : Cannot process argument transformation on parameter 'Accept'. Cannot convert value "System.String" to type "System.Management.Automation.SwitchParameter". Boolean parameters accept only Boolean values and numbers, such as $True, $False, 1 or 0. At line:1 char:1
+ CategoryInfo : InvalidData: (:) [Set-AzMarketplaceTerms], ParameterBindingArgumentTransformationExcepti
on
+ FullyQualifiedErrorId : ParameterArgumentTransformationError,Set-AzMarketplaceTerms
PS C:\Users\briansaxberg>
Same results from Cloudshell
I was able to make this work with CLI.
I was able to make the Azure CLI work on my workstations from Powershell. az vm image terms accept --urn barracudanetworks:barracuda-ng-firewall:byol:latest
This will work to show the terms. az vm image terms show --urn barracudanetworks:barracuda-ng-firewall:byol:latest
If you want to cancel the terms. az vm image terms cancel --urn barracudanetworks:barracuda-ng-firewall:byol:latest
@briansaxbergMSFT , -Accept
is switch parameter. Please follow this example https://learn.microsoft.com/en-us/powershell/module/az.marketplaceordering/set-azmarketplaceterms?view=azps-9.3.0#example-1-accept-terms-for-a-given-publisher-id(publisher)-offer-id(product)-and-plan-id(name)
Perfect thank you! Sorry I missed that switch! That does work.
Hi @briansaxbergMSFT. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text “/unresolve
” to remove the “issue-addressed” label and continue the conversation.
Thank you for your feedback. This has been routed to the support team for assistance.
Description
When trying this command Get-AzMarketplaceTerms -Publisher 'barracudanetworks' -Product 'barracuda-ng-firewall' -Name 'byol'
I also get the error when trying to run it from Cloud Shell.
Issue script & Debug output
Environment data
Module versions
Error output