azure - How can I choose a different ClearDb MySQL database type within an ARM template? -




i trying manually code cleardb mysql database resource within arm template of 'dedicated' type , of 'jupiter' tier, can't seem find documentation shows how within template.

i know arm resource this:

  {       "apiversion": "2014-01-01",       "name": "[variables('databasename')]",       "type": "successbricks.cleardb/databases",       "plan": {         "name": "jupiter",         "product": "databases",         "publisher": "cleardb"       },       "location": "[resourcegroup().location]",       "tags": {}    } 

but property defines whether database shared or dedicated?

i create cleardb mysql database different database types (shared , dedicated), , check , compare templates via automation options.

enter image description here

templates:

database type: shared

{     "$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymenttemplate.json#",     "contentversion": "1.0.0.0",     "parameters": {         "cdbname": {             "type": "string"         },         "cdblocation": {             "type": "string"         },         "cdbsku": {             "type": "string"         }     },     "resources": [         {             "apiversion": "2014-04-01",             "name": "[parameters('cdbname')]",             "location": "[parameters('cdblocation')]",             "tags": {                 "provision_source": "rms"             },             "type": "successbricks.cleardb/databases",             "plan": {                 "name": "[parameters('cdbsku')]",                 "product": "databases",                 "publisher": "cleardb"             }         }     ] } 

database type: dedicated

{     "$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymenttemplate.json#",     "contentversion": "1.0.0.0",     "parameters": {         "cdbname": {             "type": "string"         },         "cdblocation": {             "type": "string"         },         "cdbsku": {             "type": "string"         },         "clustername": {             "type": "string"         }     },     "resources": [         {             "apiversion": "2014-04-01",             "name": "[parameters('clustername')]",             "location": "[parameters('cdblocation')]",             "tags": {                 "provision_source": "rms"             },             "type": "successbricks.cleardb/clusters",             "plan": {                 "name": "[parameters('cdbsku')]",                 "product": "cluster",                 "publisher": "cleardb_clusters"             }         },         {             "apiversion": "2014-04-01",             "name": "xxxcleardbtest",             "location": "[parameters('cdblocation')]",             "tags": {                 "provision_source": "rms"             },             "type": "successbricks.cleardb/databases",             "plan": {                 "name": "free"             },             "dependson": [                 "[concat('successbricks.cleardb/clusters/', parameters('clustername'))]"             ],             "properties": {                 "cluster": "/subscriptions/[object object]/resourcegroups/xxxxxxxx/providers/successbricks.cleardb/clusters/defaultcluster"             }         }     ] } 

in database type: dedicated template, can find resource successbricks.cleardb/databases defined dependent (successbricks.cleardb/clusters) via dependson element. according template provide, database type shared.





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -