Open dbradish-microsoft opened 3 months ago
Thank you for opening this issue, we will look into it.
@Raphael1313 Could you please send your debug log (add --debug
parameter) to my email, my email address is Zhou.Xing@microsoft.com, thanks~
@yonzhan and @zhoxing-ms I'm also seeing this issue with relation to the azurerm terraform module when trying to enable spot instances for scalesets on usGovCloud. Azure is returning a 400 error with the exact same error message. I'm unfortunately unable to provide direct logs from the environment.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Drewm3, @TravisCragg-MSFT, @nikhilpatel909, @sandeepraichura, @hilaryw29, @GabstaMSFT, @ramankumarlive, @ushnaarshadkhan.
@dbradish-microsoft Please direct the individuals here and do not open on their behalf. They do not get notifications if you open the issue, and I cannot mention them.
@AMEvers This SDK is specific to the Azure CLI, and I would recommend opening a support request or posting on the Terraform SDK page for assistance. I would also make sure that you are using VMSS Uniform and not VMSS Flex, as this is not supported for VMSS Flex
@TravisCragg-MSFT, as stated in the description, this GitHub issue was moved from MicrosoftDocs/azure-docs-cli 4474 as the feedback was on autogenerated reference content. This is the SOP as modifications to reference content must be made in the source code.
Describe the bug
This GitHub issue is being moved from azure-docs-cli 4474.
Here is a customer screen print of the reference command parameters and error:
Type of issue Code doesn't work
Feedback When using this example code (with changed values for Image and ResourceGroup)
"az vmss create -n MyVmss -g MyResourceGroup --location NorthEurope --instance-count 2 --image CentOS85Gen2 --priority Spot --eviction-policy Deallocate --single-placement-group --enable-spot-restore True --spot-restore-timeout PT1H"
I get the Error "DeploymentFailed" and the details:
"code":"InvalidParameter","target":"spotRestorePolicy","message":"The value of parameter spotRestorePolicy is invalid."
(On Cloud-Shell with az --version = 2.62.0)
I also tried to set "--single-placement-group false --enable-spot-restore false" - this then worked and a vmss was deployed.
(I also tried " --single-placement-group false --enable-spot-restore true" yielding the same invalid parameter response.)
Page URL https://learn.microsoft.com/en-us/cli/azure/vmss?view=azure-cli-latest
Content source URL https://github.com/MicrosoftDocs/azure-docs-cli/blob/main/latest/docs-ref-autogen/vmss.yml
Related command
az vmss create
Errors
Invalid parameter, spotRestorePolicy...The value of parameter spotRestorePolicy is invalid.
Issue script & Debug output
n/a
Expected behavior
n/a
Environment Summary
Cloud-Shell with az --version = 2.62.0
Additional context
No response