Changing property ‘platformFaultDomainCount’ is not allowed
While updating VMSS (Virtual machine scale sets) related config through Terraform Scripts or using AZURE REST API you may face Changing property ‘platformFaultDomainCount’ is not allowed. Once we created VMSS with a Fault domain count value we can’t update that value with a different value using REST API | Terraform script. If you’re trying to update the Fault domain count value you’ll get the below error.
To get rid of above issue:
- To delete the VMSS & re-create with a new Fault domain count value.
- Get the existing Fault domain count value from VMSS & pass that value.
For Example : Using REST API
- To Create a New VMSS
2. Go to AZURE PORTAL check whether VMSS created or not. Here Instances count I setup by default as 2. we can setup based on requirement.
3. Now we’re Trying to update the Fault domain count value 2 -> 3 you’ll get the error 409-Conflict with “Changing property ‘platformFaultDomainCount’ is not allowed.”,
4. To Overcome this issue
Option 1: Get the platformFaultDomainCount value by passing VMSS name to GET API . Then update remaining VMSS configuration values according ORG standards.
Now Grab the platformFaultDomainCount value and pass into with updated VMSS config. Here testing purpose I updated Tags section.
Go to Azure portal verify the Tags updated or not.
Option 2: Delete the Entire VMSS & Re-create the New VMSS with latest ORG standards.
before going to delete VMSS go to AZURE portal filter with Tags whether WEBVMSS exist or not ?
Go to Azure portal & verify whether VMSS deleted or not
REF: