Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure Batch Pool creation with Mananged identity #2737

Open
sathish331977 opened this issue Jan 6, 2023 · 0 comments
Open

Azure Batch Pool creation with Mananged identity #2737

sathish331977 opened this issue Jan 6, 2023 · 0 comments

Comments

@sathish331977
Copy link

I am trying to create azure batch pool with managed identity using deployment templates. I run into following issue
Could not find member 'identity' on object of type 'PoolProperties'. Path 'properties.identity'
Am I using the right version of api, if not please point me to the right version of the api

"type": "Microsoft.Batch/batchAccounts/pools",
 "apiVersion": "2020-05-01",

source of my deployment is as follows

"resources": [
    {
      "type": "Microsoft.Batch/batchAccounts/pools",
      "apiVersion": "2020-05-01",
      "name": "[concat(parameters('batchAccounts_name'), '/', parameters('pool_name')  )]",

      "properties": {
        "vmSize": "[variables('vm_size')]",
        "interNodeCommunication": "Disabled",
        "maxTasksPerNode": 1,
        "taskSchedulingPolicy": {
          "nodeFillType": "Spread"
        },
        "deploymentConfiguration": {
          "virtualMachineConfiguration": {
            "imageReference": {
              "id": "[concat(parameters('galleries_AIImageGallery_externalid'),parameters('gallery_Image_path'),parameters('gallery_version') )]"
            },
            "nodeAgentSkuId": "batch.node.ubuntu 18.04"
          }
        },
        "networkConfiguration": {
          "subnetId": "[concat(parameters('vnet'), '/subnets/default')]",
          "publicIPAddressConfiguration": {
            "provision": "NoPublicIPAddresses"
          }
        },

        "scaleSettings": {
          "autoScale": {
            "formula": "[variables('scale_formula')]",
            "evaluationInterval": "PT10M"
          }
        },
        "identity": {
          "type": "UserAssigned",
          "userAssignedIdentities": [
              {
                  "resourceId": "/subscriptions/XXXXXXXXXXXXXXXXXXXXXXX/resourceGroups/XX/providers/Microsoft.ManagedIdentity/userAssignedIdentities/mymanagedidentiy",
                  "clientId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
                  "principalId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
              }
          ]
        }
      }
    }
  ]
@ghost ghost added the Needs: Triage 🔎 label Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant