-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #136 from philnach/UseRBACBlob
Add UseRbacAuth and EnableInteractiveCredentials to Azure Blob Storage Extension
- Loading branch information
Showing
12 changed files
with
235 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,123 +1,156 @@ | ||
# Example `migrationsettings.json` Files | ||
|
||
## JSON to Cosmos-NoSQL | ||
|
||
```json | ||
{ | ||
"Source": "json", | ||
"Sink": "cosmos-nosql", | ||
"SourceSettings": { | ||
"FilePath": "https://mytestfiles.local/sales-data.json" | ||
}, | ||
"SinkSettings": { | ||
"ConnectionString": "AccountEndpoint=https://...", | ||
"Database": "myDb", | ||
"Container": "myContainer", | ||
"PartitionKeyPath": "/id", | ||
"RecreateContainer": true, | ||
"WriteMode": "Insert", | ||
"CreatedContainerMaxThroughput": 5000, | ||
"IsServerlessAccount": false | ||
} | ||
"SourceSettings": { | ||
"FilePath": "https://mytestfiles.local/sales-data.json" | ||
}, | ||
"SinkSettings": { | ||
"ConnectionString": "AccountEndpoint=https://...", | ||
"Database": "myDb", | ||
"Container": "myContainer", | ||
"PartitionKeyPath": "/id", | ||
"RecreateContainer": true, | ||
"WriteMode": "Insert", | ||
"CreatedContainerMaxThroughput": 5000, | ||
"IsServerlessAccount": false | ||
} | ||
} | ||
``` | ||
|
||
## Cosmos-NoSQL to JSON | ||
|
||
```json | ||
{ | ||
"Source": "Cosmos-NoSql", | ||
"Sink": "JSON", | ||
"SourceSettings": | ||
{ | ||
"ConnectionString": "AccountEndpoint=https://...", | ||
"Database":"cosmicworks", | ||
"Container":"customers", | ||
"IncludeMetadataFields": true | ||
}, | ||
"SinkSettings": | ||
{ | ||
"FilePath": "c:\\data\\cosmicworks\\customers.json", | ||
"Indented": true | ||
} | ||
"SourceSettings": | ||
{ | ||
"ConnectionString": "AccountEndpoint=https://...", | ||
"Database":"cosmicworks", | ||
"Container":"customers", | ||
"IncludeMetadataFields": true | ||
}, | ||
"SinkSettings": | ||
{ | ||
"FilePath": "c:\\data\\cosmicworks\\customers.json", | ||
"Indented": true | ||
} | ||
} | ||
``` | ||
|
||
## MongoDB to Cosmos-NoSQL | ||
|
||
```json | ||
{ | ||
"Source": "mongodb", | ||
"Sink": "cosmos-nosql", | ||
"SourceSettings": { | ||
"ConnectionString": "mongodb://...", | ||
"DatabaseName": "sales", | ||
"Collection": "person" | ||
}, | ||
"SinkSettings": { | ||
"ConnectionString": "AccountEndpoint=https://...", | ||
"Database": "users", | ||
"Container": "migrated", | ||
"PartitionKeyPath": "/id", | ||
"SourceSettings": { | ||
"ConnectionString": "mongodb://...", | ||
"DatabaseName": "sales", | ||
"Collection": "person" | ||
}, | ||
"SinkSettings": { | ||
"ConnectionString": "AccountEndpoint=https://...", | ||
"Database": "users", | ||
"Container": "migrated", | ||
"PartitionKeyPath": "/id", | ||
"ConnectionMode": "Direct", | ||
"WriteMode": "UpsertStream", | ||
"CreatedContainerMaxThroughput": 8000, | ||
"UseAutoscaleForCreatedContainer": false | ||
} | ||
"WriteMode": "UpsertStream", | ||
"CreatedContainerMaxThroughput": 8000, | ||
"UseAutoscaleForCreatedContainer": false | ||
} | ||
} | ||
``` | ||
|
||
## SqlServer to AzureTableAPI | ||
|
||
```json | ||
{ | ||
"Source": "SqlServer", | ||
"Sink": "AzureTableApi", | ||
"SourceSettings": { | ||
"ConnectionString": "Server=...", | ||
"QueryText": "SELECT Id, Date, Amount FROM dbo.Payments WHERE Status = 'open'" | ||
}, | ||
"SinkSettings": { | ||
"ConnectionString": "DefaultEndpointsProtocol=https;AccountName=...", | ||
"Table": "payments", | ||
"RowKeyFieldName": "Id" | ||
} | ||
"SourceSettings": { | ||
"ConnectionString": "Server=...", | ||
"QueryText": "SELECT Id, Date, Amount FROM dbo.Payments WHERE Status = 'open'" | ||
}, | ||
"SinkSettings": { | ||
"ConnectionString": "DefaultEndpointsProtocol=https;AccountName=...", | ||
"Table": "payments", | ||
"RowKeyFieldName": "Id" | ||
} | ||
} | ||
``` | ||
|
||
## Cosmos-NoSQL to SqlServer | ||
|
||
```json | ||
{ | ||
"Source": "cosmos-nosql", | ||
"Sink": "sqlserver", | ||
"SourceSettings": | ||
{ | ||
"ConnectionString": "AccountEndpoint=https://...", | ||
"Database":"operations", | ||
"Container":"alerts", | ||
"PartitionKeyValue": "jan", | ||
"SourceSettings": | ||
{ | ||
"ConnectionString": "AccountEndpoint=https://...", | ||
"Database":"operations", | ||
"Container":"alerts", | ||
"PartitionKeyValue": "jan", | ||
"Query": "SELECT a.name, a.description, a.count, a.id, a.isSet FROM a" | ||
}, | ||
"SinkSettings": | ||
{ | ||
"ConnectionString": "Server=...", | ||
"TableName": "Import", | ||
"ColumnMappings": [ | ||
{ | ||
"ColumnName": "Name" | ||
}, | ||
{ | ||
"ColumnName": "Description" | ||
}, | ||
{ | ||
"ColumnName": "Count", | ||
"SourceFieldName": "number" | ||
}, | ||
{ | ||
"ColumnName": "Id" | ||
}, | ||
{ | ||
"ColumnName": "IsSet", | ||
"AllowNull": false, | ||
"DefaultValue": false | ||
} | ||
] | ||
} | ||
}, | ||
"SinkSettings": | ||
{ | ||
"ConnectionString": "Server=...", | ||
"TableName": "Import", | ||
"ColumnMappings": [ | ||
{ | ||
"ColumnName": "Name" | ||
}, | ||
{ | ||
"ColumnName": "Description" | ||
}, | ||
{ | ||
"ColumnName": "Count", | ||
"SourceFieldName": "number" | ||
}, | ||
{ | ||
"ColumnName": "Id" | ||
}, | ||
{ | ||
"ColumnName": "IsSet", | ||
"AllowNull": false, | ||
"DefaultValue": false | ||
} | ||
] | ||
} | ||
} | ||
``` | ||
|
||
## Cosmos-NoSQL to Json-AzureBlob (Using RBAC) | ||
|
||
```json | ||
{ | ||
"Source": "Cosmos-nosql", | ||
"Sink": "Json-AzureBlob", | ||
"SourceSettings": { | ||
"UseRbacAuth": true, | ||
"Database": "operations", | ||
"Container": "alerts", | ||
"PartitionKeyValue": "jan", | ||
"AccountEndpoint": "https://<databaseaccount>.documents.azure.com", | ||
"EnableInteractiveCredentials": true, | ||
"IncludeMetadataFields": false, | ||
"Query": "SELECT a.name, a.description, a.count, a.id, a.isSet FROM a" | ||
}, | ||
"SinkSettings": { | ||
"UseRbacAuth": true, | ||
"ContainerName": "operations-archive", | ||
"AccountEndpoint": "https://<storage-account>.blob.core.windows.net", | ||
"EnableInteractiveCredentials": true, | ||
"BlobName": "jan-alerts" | ||
}, | ||
"Operations": [ | ||
] | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.