Giter Club home page Giter Club logo

azure-mysql's Introduction

azure-mysql's People

Contributors

ajlam avatar ambhatna avatar arunkumarthiags avatar brown-hub avatar dragon119 avatar edwinsongmsft avatar givenscj avatar hjtoland3 avatar kummanish avatar microsoft-github-policy-service[bot] avatar microsoftopensource avatar migbinigun669 avatar mksuni avatar msftgits avatar rachel-msft avatar ramnov avatar s2phang avatar salonisonpal avatar shreyaaithal avatar sudheeshgh avatar timahenning avatar xin-cheng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

azure-mysql's Issues

Restore to an existing DB

Is there plans in the future to implement the ability to create a backup of DB 'A' and restore it to existing DB 'B'?

Private DNS validation failure message is unclear

Looks like it intended to have some strings replaced.

InvalidPrivateDnsZoneName\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\\r\\\\\\\\\\\\\\\\n \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"message\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\": \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"The Private DNS Zone name provided is invalid. It must end with '{0}', and shouldn't contain underscore. Currently we do not support {1}.{0} as the private dns zone name either.

Pause Replication Option Between Two or More Read-Replicas in Azure for MYSQL

Currently we are seeing that there are only 3 Features(Add, Delete & Stop Replication) for Replication between Two or More Read-Replicas. It is using the same Binary Log Replication that one can use between 2 on-prems or cloud as primary and on-prem as secondary. We run stop Replication (Pause Replication) command on on-prem server to pause the replication and then run start replication command to resume the replication. Are there any future features to be added to Pause Replication between Two or More Read-Replicas in Azure for MYSQL and then Resume it again?

Cannot create Keyvault key and enable customer-key encryption for MySQL at the same time

I found if we need to enable the customer key encryption for the MySQL database, the "serverKeyName" must be in this format: "KeyvaultName_keyName_keyVersion".

"variables": {
"serverKeyName": "[concat(parameters('keyVaultName'), '_', parameters('keyName'), '_', parameters('keyVersion'))]"
},

which makes it impossible to create the keyvault key and enable the customer-key encryption at the same within one ARM template, cause we cannot use the ARM function "reference" to reference the key we created and extract the dynamically generated version number. The "reference" function cannot be used in variables definition, resource name and types.

{
"name": "[concat(parameters('serverName'), '/', variables('serverKeyName'))]",
"type": "Microsoft.DBforMySQL/servers/keys",
"apiVersion": "2020-01-01-preview",
"dependsOn": [
"addAccessPolicy",
"[resourceId('Microsoft.DBforMySQL/servers', parameters('serverName'))]"
],
"properties": {
"serverKeyType": "AzureKeyVault",
"uri": "[concat(reference(resourceId(parameters('keyVaultResourceGroupName'), 'Microsoft.KeyVault/vaults/', parameters('keyVaultName')), '2018-02-14-preview', 'Full').properties.vaultUri, 'keys/', parameters('keyName'), '/', parameters('keyVersion'))]"
}
}

Questions:
How to create the keyvault key and enable the customer-key encryption at the same time within one ARM template?

Thanks.

MySQL error 1236 When using GTID

Hi, I was trying to migrate managed MySQL in Alibaba cloud to azure for MySQL using GTID-based replication.
I follow this instruction, but I keep getting an error
Got fatal error 1236 from master when reading data from binary log: 'The slave is connecting using CHANGE MASTER TO MASTER_AUTO_POSITION = 1, but the master has purged binary logs containing GTIDs that the slave requires.
so is there any way to change the gtid_purged variable?

Database Charset Not Preserved

When running the script the database charset was not preserved. This will stop your emojis, or any special characters, from being transferred correctly. I recommend adding --default-character-set= in my case --default-character-set=utf8mb4 to both the mysqldump and mysql. Also for large databases I recommend removing the -v flag so every insert isn't printed to the console. I would also recommend not using Azure Cloud Shell as the timeout of 20 min is too short to successfully migrate a large database.

Unable to deploy MySql Flexible server with private DNS in another subscription

When I try to deploy MySQL flexible server to a subscription and try to use a private DNS zone in another subscription, I get the following error:

Code: InvalidPrivateDnsZoneSubscription
Message: The subscription 'YYYYYY' of the private DNS zone 'private.mysql.database.azure.com' is in valid, it is not registered for '2'.

I'm getting the exact same error when deploying from Bicep, Azure CLI and the Azure Portal. Here's an Azure CLI snippet:

az mysql flexible-server create --resource-group xx-content-dev-weu `
  --name xx-content-dev-weu-mysql --location westeurope `
  --subnet /subscriptions/XXXXXX/resourceGroups/xx-net-dev-weu/providers/Microsoft.Network/virtualNetworks/gd-net-dev-weu-vnet/subnets/database `
  --private-dns-zone /subscriptions/YYYYYY/resourceGroups/xx-deployment-network-weu/providers/Microsoft.Network/privateDnsZones/private.mysql.database.azure.com

This is very close to the sample from the Azure CLI docs, except that XXXXXX and YYYYYY are ids for two different subscriptions.

At first I suspected an RBAC issue but I'm contributor on both subscriptions and that should be sufficient.

Background

We're trying to implement a hub and spoke network architecture. Each spoke has it's own subscription with a VNet that is peered to the hub VNet. The private DNS zones live in the hub subscription, MySQL should be in the spoke VNet.

Updating Threat Detection Policy MySQL Database Not Found

Issue:
The MySQL database cannot be found. I am trying to update my threat detection policy on a MySQL database within a server. I am using Terraform to deploy and update this resource. This error only occurs when the last three lines on the threat detection policy code is commented in.
'retention_days = 7
storage_account_access_key = var.storage_account_access_key
storage_endpoint = data.azurerm_storage_account.sta.primary_blob_endpoint`

The sample from my Terraform code is below. See Terraform documentation for more details.

Code:
resource "azurerm_mysql_server" "mysql" {
name = "azmsql${var.location_code}${var.mysqlname}${var.resource_count}"
location = var.location
resource_group_name = var.resource_group_name
sku_name = var.sku_name
administrator_login = var.administrator_login
administrator_login_password = random_password.admin_password.result
version = "8.0"
ssl_enforcement_enabled = true
infrastructure_encryption_enabled = true
auto_grow_enabled = true
storage_mb = 5120
backup_retention_days = 7
geo_redundant_backup_enabled = false

threat_detection_policy {
enabled = true
email_account_admins = true
email_addresses = [var.threat_protection_email]
retention_days = 7
storage_account_access_key = var.storage_account_access_key
storage_endpoint = data.azurerm_storage_account.sta.primary_blob_endpoint
}
}

Error Log:
https://gist.github.com/jmeadowcroft/7944fdcab9870b2eacbc5d0113913a40

Error in Azure:
In the Portal, the failed task of updating the threat detection policy says:

"statusMessage": "{"status":"Failed","error":{"code":"ResourceOperationFailure","message":"The resource operation completed with terminal provisioning state 'Failed'.","details":[{"code":"InternalServerError","message":"An unexpected error occured while processing the request. Tracking ID: '661fa012-c37a-452c-8e82-92efe9ea7827'"}]}}"

Error in on the CLI using Terrraform:

Error: error waiting for creation/update of mysql server security alert policy (server "azmsqlwu2db4001", resource group "Test01"): Code="InternalServerError" Message="An unexpected error occured while processing the request. Tracking ID: '0e302d66-3ff7-49ff-b35a-806afe701423'"

on ....\mysql\mysql.tf line 10, in resource "azurerm_mysql_server" "mysql":
10: resource "azurerm_mysql_server" "mysql"

Let me know if there is any information I can give you about this problem. Thank you for your time.

Can I use resource deployment client to deploy a Azure Mysql with template?

Hi,

I can use resource deployment client to deploy a VM with template (like azure-sdk-for-go-samples/quickstart/deploy-vm/mai.go). But when I was using it to deploy a Azure mysql with a template (ServicePrinciple authentication as well), it threw out a exception of 'InvalidAuthenticationTokenAudience'.

The detail exception information as below:
Failed to deploy Azure MysQL: resources.DeploymentsClient#CreateOrUpdate: Failure sending request: StatusCode=401 -- Original Error: Code="InvalidAuthenticationTokenAudience" Message="The access token has been obtained for wrong audience or resource 'https://vault.azure.net'. It should exactly match with one of the allowed audiences 'https://management.core.windows.net/','https://management.core.windows.net','https://management.azure.com/','https://management.azure.com'."

I have a customer will integrate their IT management system with Azure, this is an obstacle. And they prefer using template to deploy all the resources. Can anybody help me out?

Thanks,
Jerry

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.