...
Below is given file format of the Application Setting.
Code Block |
---|
|
{
"IsEncrypted": false,
"Values": {
"FUNCTIONS_WORKER_RUNTIME": "node",
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
"SB_CONNECTION_STRING" :"Endpoint=sb://testsvcbus0209.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=MQN1lKTPtKsG+o+yFP1PTY6LAVuxKH5QvYLtpzcDifY="
}
} |
...
Supported format 1 (JSON format):
Code Block |
---|
|
[{ "paramName": "Mysql_Connection_String",
"type": "mysql",
"paramValue": "jdbc:sqlserver://localhost;databaseName=DbName;user=MyUserName;password=*****;"
},
{ "paramName": "AzQueue_Conn_String",
"type": "custom",
"paramValue": "DefaultEndpointsProtocol=https;AccountName=storageaccnt2508;AccountKey=z4zvWOWMVweXrD6vhUeFQh8I+AStPzq/9w==;EndpointSuffix=core.windows.net"
}] |
Supported format 2 (CSV Format):
Code Block |
---|
|
"Mysql_Connection_String": "mysql##jdbc:sqlserver://localhost;databaseName=DbName;user=MyUserName;password=*****;" , "AzQueue_Conn_String":"custom## DefaultEndpointsProtocol=https;AccountName=storageaccnt2508;AccountKey=z4zvWOWMVweXrD6vhUeFQh8I+AStPzq/9w==;EndpointSuffix=core.windows.net" |
n.b. In the case of CSV payload, the type & parameter Value should be appended together with “##” separated.
Important note: Either entire or part of parameter value can be dynamic in nature (e.g. url, hostname, db name/port etc). In such cases the value can be stored in as Project /Environment properties and the placeholder can be added in file as shown below. In case the values are provided the placeholder would be replaced with actual value during deployment. The same implementation will be applicable while passing the input through input as well.
JSON format:
Code Block |
---|
|
[{ "paramName": "Mysql_Connection_String",
"type": "mysql",
"paramValue": "jdbc:sqlserver://${{SQL_DB_ENVWISE_HOST}};databaseName=DbName;user=MyUserName;password=*****;"
},
{ "paramName": "AzQueue_Conn_String",
"type": "custom",
"paramValue": "DefaultEndpointsProtocol=https;AccountName=${{Storage_Account_Name}};AccountKey=z4zvWOWMVweXrD6vhUeFQh8I+AStPzq/9w==;EndpointSuffix=core.windows.net"
}] |
CSV Format:
Code Block |
---|
|
"Mysql_Connection_String": "mysql##jdbc:sqlserver://${{SQL_DB_ENVWISE_HOST}};databaseName=DbName;user=MyUserName;password=*****;" , "AzQueue_Conn_String":"custom## DefaultEndpointsProtocol=https;AccountName=${{Storage_Account_Name}};AccountKey=z4zvWOWMVwe" |
Input argument acceptable structure
...
Providing content directly as JSON or CSV is also acceptable.
Code Block |
---|
|
[
{
"paramName": "WEBSITE_RUN_FROM_PACKAGE",
"paramValue": "1"
},
{
"paramName": "FUNCTIONS_EXTENSION_VERSION",
"paramValue": "~3"
}
] |
Input (csv Format):
Code Block |
---|
|
"WEBSITE_RUN_FROM_PACKAGE": "1" , " FUNCTIONS_EXTENSION_VERSION ":"~3" |
...
Input (JSON format):
Code Block |
---|
|
[
{
"paramName": "Mysql_Connection_String",
"type": "mysql",
"paramValue": "jdbc:sqlserver://localhost;databaseName=DbName;user=MyUserName;password=*****;"
},
{
"paramName": "AzQueue_Conn_String",
"type": "custom",
"paramValue": "DefaultEndpointsProtocol=https;AccountName=storageaccnt2508;AccountKey=z4zvWOWMVweXrD6vhUeFQh8I+AStPzq/9w==;EndpointSuffix=core.windows.net"
}
] |
Input (csv Format):
Code Block |
---|
|
"Mysql_Connection_String": "mysql##jdbc:sqlserver://localhost;databaseName=DbName;user=MyUserName;password=*****;" , "AzQueue_Conn_String":"custom## DefaultEndpointsProtocol=https;AccountName=storageaccnt2508;AccountKey=z4zvWOWMVweXrD6vhUeFQh8I+AStPzq/9w==;EndpointSuffix=core.windows.net" |
...