Open catriona-m opened 3 months ago
@yareyes Please help take a look, thanks.
Hello,
This is the expected behavior.
When the diskConfigurationType
is "EXTEND", you are expected to pass either "sqlDataSettings" or "sqlTempDbSettings" or "sqlLogSettings".
And when a setting is provided for a "EXTEND", defaultFilePath
is not needed, hence you are seeing that error.
For the GET response, it is expected as it shows the last configuration you've applied, in which you only have extended "sqlDataSettings".
Thanks
API Spec link
https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/stable/2023-10-01
API Spec version
2023-10-01
Describe the bug
With an existing sql vm with the following storage configuration:
When the following PUT request is sent containing the following storage configuration, we get an error that only one disk can be extended at a time:
When sqlTempDbSettings and sqlLogSettings are omitted from the request, we get an error stating "Original Error: Code="InvalidArgument" Message="Invalid argument 'DefaultFilePath'.".
When sqlTempDbSettings, sqlLogSettings and sqlDataSettings.DefaultFilePath are omitted from the PUT request, the extension happens successfully, however in a subsequent GET request our storage configuration now looks like:
Expected behavior
Expect to be able to extend data disk and maintain existing storage configuration
Actual behavior
Existing storage configuration must be omitted from the request and cannot be retrieved from subsequent GETs
Reproduction Steps
Environment
No response