{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-site-recovery/json-schema/microsoft-azure-site-recovery-add-recovery-services-provider-input-schema.json",
  "title": "AddRecoveryServicesProviderInput",
  "description": "Input required to add a provider.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-site-recovery-replicationrecoveryservicesproviders-api-openapi.yml#/components/schemas/AddRecoveryServicesProviderInput",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/AddRecoveryServicesProviderInputProperties",
      "description": "The properties of an add provider request."
    }
  },
  "required": [
    "properties"
  ],
  "$defs": {
    "AddRecoveryServicesProviderInputProperties": {
      "type": "object",
      "description": "The properties of an add provider request.",
      "properties": {
        "machineName": {
          "type": "string",
          "description": "The name of the machine where the provider is getting added."
        },
        "machineId": {
          "type": "string",
          "description": "The Id of the machine where the provider is getting added."
        },
        "biosId": {
          "type": "string",
          "description": "The Bios Id of the machine."
        },
        "authenticationIdentityInput": {
          "$ref": "#/$defs/IdentityProviderInput",
          "description": "The identity provider input for DRA authentication."
        },
        "resourceAccessIdentityInput": {
          "$ref": "#/$defs/IdentityProviderInput",
          "description": "The identity provider input for resource access."
        },
        "dataPlaneAuthenticationIdentityInput": {
          "$ref": "#/$defs/IdentityProviderInput",
          "description": "The identity provider input for data plane authentication."
        }
      },
      "required": [
        "machineName",
        "authenticationIdentityInput",
        "resourceAccessIdentityInput"
      ]
    },
    "IdentityProviderInput": {
      "type": "object",
      "description": "Identity provider input.",
      "properties": {
        "tenantId": {
          "type": "string",
          "description": "The tenant Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services."
        },
        "applicationId": {
          "type": "string",
          "description": "The application/client Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services."
        },
        "objectId": {
          "type": "string",
          "description": "The object Id of the service principal with which the on-premise management/data plane components would communicate with our Azure services."
        },
        "audience": {
          "type": "string",
          "description": "The intended Audience of the service principal with which the on-premise management/data plane components would communicate with our Azure services."
        },
        "aadAuthority": {
          "type": "string",
          "description": "The base authority for Azure Active Directory authentication."
        }
      },
      "required": [
        "tenantId",
        "applicationId",
        "objectId",
        "audience",
        "aadAuthority"
      ]
    }
  }
}