-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add schema support for mysql #4783
base: main
Are you sure you want to change the base?
Conversation
{{- if .DbMySql}} | ||
var mysqlDatabaseName = '{{ .DbMySql.DatabaseName }}' | ||
var mysqlDatabaseUser = '{{ .DbMySql.DatabaseUser }}' | ||
module mysqlServer 'br/public:avm/res/db-for-my-sql/flexible-server:0.4.1' = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use 0.6.1
, the latest version?
https://mcr.microsoft.com/v2/bicep/avm/res/db-for-my-sql/flexible-server/tags/list
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we also add the password to the keyvault module's secrets like postgres?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do generate and set the password currently -- it's done inside the password seeding in scaffold.go
Azure Dev CLI Install InstructionsInstall scriptsMacOS/Linux
bash:
pwsh:
WindowsPowerShell install
MSI install
Standalone Binary
MSI
Documentationlearn.microsoft.com documentationtitle: Azure Developer CLI reference
|
spec.Parameters = append(spec.Parameters, | ||
Parameter{ | ||
Name: "mysqlDatabasePassword", | ||
Value: "$(secretOrRandomPassword ${AZURE_KEY_VAULT_NAME} mysqlDatabasePassword)", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Value: "$(secretOrRandomPassword ${AZURE_KEY_VAULT_NAME} mysqlDatabasePassword)", | |
Value: "$(secretOrRandomPassword ${AZURE_KEY_VAULT_NAME} MYSQL-PASSWORD)", |
I realized that we may need to update the naming here.
Feel free to update the one for postgres as well. since I'm planning to fix these later
administratorLogin: mysqlDatabaseUser | ||
administratorLoginPassword: mysqlDatabasePassword | ||
geoRedundantBackup: 'Disabled' | ||
firewallRules: [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"network": {
"publicNetworkAccess": "Enabled"
},
This setting seems to be important
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was able to connect after this tweak
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good. Leaving one comment on checking the networking settings before final approval
Address #4671, this PR will add the resource support of MySQL database.