Open Monual opened 5 years ago
I want azure mysql service creation and I am using azure_arm module in puppet forge I just refer this file in inside of module azure_dbformysql_server.md and then i am facing that issue Error: This Block Expression has no effect. A value was produced and then forgotten (one or more preceding expressions may have the wrong form) (file: /etc/puppetlabs/code/environments/production/modules/azure_arm/examples/azmysql.pp, line: 5, column: 1) Error: This expression is invalid. Did you try declaring a 'azure_database' resource without a title? (file: /etc/puppetlabs/code/environments/production/modules/azure_arm/examples/azmysql.pp, line: 5, column: 1) Error: This expression is invalid. Did you try declaring a 'azure_firewall_rule' resource without a title? (file: /etc/puppetlabs/code/environments/production/modules/azure_arm/examples/azmysql.pp, line: 22, column: 1) Error: This expression is invalid. Did you try declaring a 'azure_server' resource without a title? (file: /etc/puppetlabs/code/environments/production/modules/azure_arm/examples/azmysql.pp, line: 32, column: 1) Error: Language validation logged 4 errors. Giving up
When creating a new azure_sql_server, we get a response code of 202, which Puppet equates to "succeeded":
However, according to the API, error code 202 only means that the job to create a SQL server has been submitted. The actual result of the deployment can be found by looking at the Activity Log in the Azure Portal and seeing this:
This is easily corrected, of course. But it would be nice if rather than assume that a deploy job succeeded, azure_arm would wait for a response code from the job run to ensure whether the deployment actually worked.