Skip to content

Commit d71dcdc

Browse files
rickysun93Haoran Sun
andauthored
[Data Factory]Add AAD auth for CosmosDb to ADF public swagger (#13257)
* Add AAD auth for CosmosDb * spell fix * change enum type to string Co-authored-by: Haoran Sun <haorsun@microsoft.com>
1 parent e95bfe1 commit d71dcdc

File tree

1 file changed

+40
-0
lines changed
  • specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes

1 file changed

+40
-0
lines changed

specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/LinkedService.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,46 @@
521521
"$ref": "../datafactory.json#/definitions/SecretBase",
522522
"description": "The account key of the Azure CosmosDB account. Type: SecureString or AzureKeyVaultSecretReference."
523523
},
524+
"servicePrincipalId": {
525+
"type": "object",
526+
"description": "The client ID of the application in Azure Active Directory used for Server-To-Server authentication. Type: string (or Expression with resultType string)."
527+
},
528+
"servicePrincipalCredentialType": {
529+
"x-ms-enum": {
530+
"name": "CosmosDbServicePrincipalCredentialType",
531+
"modelAsString": true
532+
},
533+
"enum": [
534+
"ServicePrincipalKey",
535+
"ServicePrincipalCert"
536+
],
537+
"type": "string",
538+
"description": "The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or Expression with resultType string)."
539+
},
540+
"servicePrincipalCredential": {
541+
"$ref": "../datafactory.json#/definitions/SecretBase",
542+
"description": "The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only be AzureKeyVaultSecretReference."
543+
},
544+
"tenant": {
545+
"type": "object",
546+
"description": "The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string)."
547+
},
548+
"azureCloudType": {
549+
"type": "object",
550+
"description": "Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. Type: string (or Expression with resultType string)."
551+
},
552+
"connectionMode": {
553+
"description": "The connection mode used to access CosmosDB account. Type: string (or Expression with resultType string).",
554+
"type": "string",
555+
"enum": [
556+
"Gateway",
557+
"Direct"
558+
],
559+
"x-ms-enum": {
560+
"name": "CosmosDbConnectionMode",
561+
"modelAsString": true
562+
}
563+
},
524564
"encryptedCredential": {
525565
"type": "object",
526566
"description": "The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string)."

0 commit comments

Comments
 (0)