{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-automation/json-schema/microsoft-azure-automation-automation-account-update-parameters-schema.json",
  "title": "AutomationAccountUpdateParameters",
  "description": "The parameters supplied to the update automation account operation.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-automation-automationaccount-api-openapi.yml#/components/schemas/AutomationAccountUpdateParameters",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/AutomationAccountUpdateProperties",
      "description": "Gets or sets account update properties.",
      "x-ms-client-flatten": true
    },
    "name": {
      "type": "string",
      "description": "Gets or sets the name of the resource."
    },
    "location": {
      "type": "string",
      "description": "Gets or sets the location of the resource."
    },
    "identity": {
      "$ref": "#/$defs/Identity",
      "description": "Sets the identity property for automation account"
    },
    "tags": {
      "type": "object",
      "description": "Gets or sets the tags attached to the resource.",
      "additionalProperties": {
        "type": "string"
      }
    }
  },
  "$defs": {
    "AutomationAccountUpdateProperties": {
      "type": "object",
      "description": "The parameters supplied to the update account properties.",
      "properties": {
        "sku": {
          "$ref": "#/$defs/Sku",
          "description": "Gets or sets account SKU."
        },
        "encryption": {
          "$ref": "#/$defs/EncryptionProperties",
          "description": "Set the encryption properties for the automation account"
        },
        "publicNetworkAccess": {
          "type": "boolean",
          "description": "Indicates whether traffic on the non-ARM endpoint (Webhook/Agent) is allowed from the public internet"
        },
        "disableLocalAuth": {
          "type": "boolean",
          "description": "Indicates whether requests using non-AAD authentication are blocked"
        }
      }
    },
    "EncryptionKeySourceType": {
      "type": "string",
      "description": "Encryption Key Source",
      "enum": [
        "Microsoft.Automation",
        "Microsoft.Keyvault"
      ],
      "x-ms-enum": {
        "name": "EncryptionKeySourceType",
        "modelAsString": false,
        "values": [
          {
            "name": "Microsoft.Automation",
            "value": "Microsoft.Automation",
            "description": "Microsoft.Automation"
          },
          {
            "name": "Microsoft.Keyvault",
            "value": "Microsoft.Keyvault",
            "description": "Microsoft.Keyvault"
          }
        ]
      }
    },
    "EncryptionProperties": {
      "type": "object",
      "description": "The encryption settings for automation account",
      "properties": {
        "keyVaultProperties": {
          "$ref": "#/$defs/KeyVaultProperties",
          "description": "Key vault properties."
        },
        "keySource": {
          "$ref": "#/$defs/EncryptionKeySourceType",
          "description": "Encryption Key Source"
        },
        "identity": {
          "$ref": "#/$defs/EncryptionPropertiesIdentity",
          "description": "User identity used for CMK."
        }
      }
    },
    "EncryptionPropertiesIdentity": {
      "type": "object",
      "description": "User identity used for CMK.",
      "properties": {
        "userAssignedIdentity": {
          "description": "The user identity used for CMK. It will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'."
        }
      }
    },
    "Identity": {
      "type": "object",
      "description": "Identity for the resource.",
      "properties": {
        "principalId": {
          "type": "string",
          "description": "The principal ID of resource identity. The value must be an UUID.",
          "readOnly": true
        },
        "tenantId": {
          "type": "string",
          "description": "The tenant ID of resource.",
          "readOnly": true
        },
        "type": {
          "$ref": "#/$defs/ResourceIdentityType",
          "description": "The identity type."
        },
        "userAssignedIdentities": {
          "type": "object",
          "description": "The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.",
          "additionalProperties": {
            "$ref": "#/$defs/UserAssignedIdentitiesProperties"
          }
        }
      }
    },
    "KeyVaultProperties": {
      "type": "object",
      "description": "Settings concerning key vault encryption for a configuration store.",
      "properties": {
        "keyvaultUri": {
          "type": "string",
          "description": "The URI of the key vault key used to encrypt data."
        },
        "keyName": {
          "type": "string",
          "description": "The name of key used to encrypt data."
        },
        "keyVersion": {
          "type": "string",
          "description": "The key version of the key used to encrypt data."
        }
      }
    },
    "ResourceIdentityType": {
      "type": "string",
      "description": "The identity type.",
      "enum": [
        "SystemAssigned",
        "UserAssigned",
        "SystemAssigned, UserAssigned",
        "None"
      ],
      "x-ms-enum": {
        "name": "ResourceIdentityType",
        "modelAsString": false,
        "values": [
          {
            "name": "SystemAssigned",
            "value": "SystemAssigned",
            "description": "SystemAssigned"
          },
          {
            "name": "UserAssigned",
            "value": "UserAssigned",
            "description": "UserAssigned"
          },
          {
            "name": "SystemAssigned, UserAssigned",
            "value": "SystemAssigned, UserAssigned",
            "description": "SystemAssigned, UserAssigned"
          },
          {
            "name": "None",
            "value": "None",
            "description": "None"
          }
        ]
      }
    },
    "Sku": {
      "type": "object",
      "description": "The account SKU.",
      "properties": {
        "name": {
          "$ref": "#/$defs/SkuNameEnum",
          "description": "Gets or sets the SKU name of the account."
        },
        "family": {
          "type": "string",
          "description": "Gets or sets the SKU family."
        },
        "capacity": {
          "type": "integer",
          "format": "int32",
          "description": "Gets or sets the SKU capacity."
        }
      },
      "required": [
        "name"
      ]
    },
    "SkuNameEnum": {
      "type": "string",
      "description": "Gets or sets the SKU name of the account.",
      "enum": [
        "Free",
        "Basic"
      ],
      "x-ms-enum": {
        "name": "SkuNameEnum",
        "modelAsString": true,
        "values": [
          {
            "name": "Free",
            "value": "Free",
            "description": "Free"
          },
          {
            "name": "Basic",
            "value": "Basic",
            "description": "Basic"
          }
        ]
      }
    },
    "UserAssignedIdentitiesProperties": {
      "type": "object",
      "properties": {
        "principalId": {
          "type": "string",
          "description": "The principal id of user assigned identity.",
          "readOnly": true
        },
        "clientId": {
          "type": "string",
          "description": "The client id of user assigned identity.",
          "readOnly": true
        }
      }
    }
  }
}