Coder Social home page Coder Social logo

Comments (4)

Fred-sun avatar Fred-sun commented on August 28, 2024

@deubert-it The parameter 'platform_fault_domain_count' cannot be updated in the python SDK. When we manage this resource, we first check whether the resource exists, if it does not exist, create a new resource, if it does exist, compare the parameter, if the parameter is incorrectly configured. We will print the error using the module's 'self.fail' method and do not continue! Thank you!

from azure.

deubert-it avatar deubert-it commented on August 28, 2024

@Fred-sun thank you for your response, which I understand, but it would mean I just can't use it with an existing VMSS that was created a long time ago with an older version.

from azure.

Fred-sun avatar Fred-sun commented on August 28, 2024

@deubert-it Sorry for replying you so late. The parameter 'platform_fault_domain_count parameter' has been added in #779. The default value of this parameter is 1. If you management VMSS by 'azure_rm_virutalmachinescaleset.py', please make sure the 'platform_fault_domain_count' value same with the exsiting VMSS. This will not prompt the 'platform_fault_domain_count parameter' question. Thank you!
In addition, to make sure my idea is correct, can you provide your VMSS information and use cases?

Test case:
- name: Create VMSS with I(orchestration_mode=Flexible)
  azure_rm_virtualmachinescaleset:
    resource_group: "{{ resource_group }}"
    name: testVMSS{{ rpfx }}
    vm_size: Standard_A1_v2
    admin_username: testuser
    single_placement_group: false
    platform_fault_domain_count: 2
    public_ip_per_vm: true
    ssh_password_enabled: false
    ssh_public_keys:
      - path: /home/testuser/.ssh/authorized_keys
        key_data: "ssh-rsa *****************@qq.com"
    virtual_network_name: VMSStestVnet01
    subnet_name: VMSStestSubnet01
    managed_disk_type: Standard_LRS
    orchestration_mode: Flexible
    os_disk_caching: ReadWrite
    image:
      offer: 0001-com-ubuntu-server-focal
      publisher: Canonical
      sku: 20_04-lts
      version: latest
VMSS facts:
        "vmss": [
            {
                "id": "/subscriptions/xxxxxxxxxxxxxxx/resourceGroups/v-xisuRG013/providers/Microsoft.Compute/virtualMachineScaleSets/testVMSSfredrpfx01",
                "identity": {
                    "type": "UserAssigned",
                    "user_assigned_identities": {
                        "/subscriptions/xxxxxxx/resourceGroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus": {}
                    }
                },
                "location": "eastus",
                "name": "testVMSSfredrpfx01",
                "orchestration_mode": "Flexible",
                "platform_fault_domain_count": 1,
                "provisioning_state": "Succeeded",
                "single_placement_group": false,
                "sku": {
                    "capacity": 1,
                    "name": "Standard_A1_v2",
                    "tier": "Standard"
                },
                "tags": {
                    "azsecpack": "nonprod",
                    "platformsettings.host_environment.service.platform_optedin_for_rootcerts": "true"
                }.

        .................................

from azure.

Fred-sun avatar Fred-sun commented on August 28, 2024

kindly ping!

from azure.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.