Hello Anjali Gobari
Welcome to Microsoft Q&A Platform, thanks for posting your query here.
The error message is indicating that the API version of the network profile in your virtual machine scale set definition is missing. You need to specify the API version for the network profile in order to create the virtual machine scale set.
To resolve the error "NetworkApiVersionMustBeSpecifiedWithNetworkInterfaceConfigurations", you need to specify the API version for the network profile in the VirtualMachineScaleSet model. You can add the following line in the network profile properties:
apiVersion": "2020-06-01",
The updated network profile code would look like below:
"networkProfile": {
"networkInterfaceConfigurations": [
{
"properties": {
"apiVersion": "2020-06-01",
"primary": True,
"enableAcceleratedNetworking": False,
"disableTcpStateTracking": False,
Hope this helps.