-
Notifications
You must be signed in to change notification settings - Fork 445
[AVM Question/Feedback]: Db-for-my-sql/flexible-server - Unable to add admin #4403
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
Comments
Important The "Needs: Triage 🔍" label must be removed once the triage process is complete! Tip For additional guidance on how to triage this issue/PR, see the BRM Issue Triage documentation. |
Hey @mahlatseprince , |
Warning Tagging the AVM Core Team (@Azure/avm-core-team-technical-bicep) due to a module owner or contributor having not responded to this issue within 3 business days. The AVM Core Team will attempt to contact the module owners/contributors directly. Tip
|
@mahlatseprince can I see some code? We add administrators in our tests and those have been running fine. |
@hundredacres here's my piece of code below. I want to enable AD authentication for this server but i can't seem to add the admin @description('The name for the MySQL server.')
param mysqlServerName string
@description('The pricing tier of the MySQL server.')
@allowed([
'Burstable'
'GeneralPurpose'
'MemoryOptimized'
])
param tier string
@description('The SKU of the MySQL server.')
@allowed([
'Standard_B2s'
'Standard_B2ms'
'Standard_B2s'
'Standard_B4ms'
'Standard_B8ms'
'Standard_B12ms'
'Standard_B16ms'
'Standard_B20ms'
'Standard_D2ds_v4'
'Standard_D4ds_v4'
'Standard_D8ds_v4'
'Standard_D16ds_v4'
'Standard_D32ds_v4'
'Standard_D48ds_v4'
'Standard_D64ds_v4'
'Standard_E2ds_v4'
'Standard_E4ds_v4'
'Standard_E8ds_v4'
'Standard_E16ds_v4'
'Standard_E32ds_v4'
'Standard_E48ds_v4'
'Standard_E64ds_v4'
'Standard_E96ds_v4'
'Standard_E2ds_v5'
])
param skuName string
@description('Max storage allowed for a server. In all compute tiers, the minimum storage supported is 20 GiB and maximum is 16 TiB')
@allowed([
20
32
64
128
256
512
1024
2048
4096
8192
16384
])
param StorageSizeGB int
@description('Storage IOPS for a server. Max IOPS are determined by compute size')
@minValue(360)
@maxValue(48000)
param IOPS int
@description('MySQL version.')
@allowed([
'8.0.21'
])
param mysqlVersion string
@allowed([
'Disabled'
'ZoneRedundant'
'SameZone'
])
param HighAvailability string
@description('delegate subnet name for the server.')
param delegatedSubnetName string
@description('Entra admin username for the server.')
@minLength(1)
param adminUsername string
@description('Entra admin type. E.g User, Group or Application')
@allowed([
'User'
'Group'
'Application'
])
param entraAdminType string
@description('Entra admin object Id')
param entraAdminObjectId string
@description('The name of the identity used for AAD Authentication. needs directory reader role in Microsoft Entra')
param mysqluserAssignedIdentity string
var details = split(subscription().displayName, '-')
var environment = details[3]
var region = details[4]
var appName = details[2]
var standardPrefix = 'sbg5'
var privateEndpointSubnetId = '/subscriptions/${subscription().subscriptionId}/resourceGroups/${region}-BaseInfra/providers/Microsoft.Network/virtualNetworks/${standardPrefix}-vnet-${environment}-${appName}/subnets/${standardPrefix}-subn-${environment}-${appName}-pep'
var delegatedSubnetId = '/subscriptions/${subscription().subscriptionId}/resourceGroups/${region}-BaseInfra/providers/Microsoft.Network/virtualNetworks/${standardPrefix}-vnet-${environment}-${appName}/subnets/${delegatedSubnetName}'
//
resource userAssignedIdentity 'Microsoft.ManagedIdentity/userAssignedIdentities@2023-07-31-preview' existing = {
name: mysqluserAssignedIdentity
scope: resourceGroup()
}
module mysqlDbFlexibleServer 'br/public:avm/res/db-for-my-sql/flexible-server:0.6.1' = {
name: 'mysqlDbFlexibleServer'
params: {
name: mysqlServerName
skuName: skuName
tier: tier
location: resourceGroup().location
publicNetworkAccess: 'Disabled'
storageAutoGrow: 'Enabled'
storageIOPS: IOPS
storageSizeGB: StorageSizeGB
highAvailability: HighAvailability
administratorLogin: adminUsername
administratorLoginPassword: 'hgdgpiaggty@98'
administrators: [
{
login: adminUsername
sid: entraAdminObjectId
identityResourceId: userAssignedIdentity.id
}
]
managedIdentities: {
userAssignedResourceIds: [
userAssignedIdentity.id
]
}
version: mysqlVersion
advancedThreatProtection: 'Enabled'
createMode: 'Default'
}
} |
Warning Tagging the AVM Core Team (@Azure/avm-core-team-technical-bicep) due to a module owner or contributor having not responded to this issue within 3 business days. The AVM Core Team will attempt to contact the module owners/contributors directly. Tip
|
Warning Tagging the AVM Core Team (@Azure/avm-core-team-technical-bicep) due to a module owner or contributor having not responded to this issue within 3 business days. The AVM Core Team will attempt to contact the module owners/contributors directly. Tip
|
Caution **This issue requires the AVM Core Team's (@Azure/avm-core-team-technical-bicep) immediate attention as it hasn't been responded to within 6 business days. ** Tip
|
Warning Tagging the AVM Core Team (@Azure/avm-core-team-technical-bicep) due to a module owner or contributor having not responded to this issue within 3 business days. The AVM Core Team will attempt to contact the module owners/contributors directly. Tip
|
Caution **This issue requires the AVM Core Team's (@Azure/avm-core-team-technical-bicep) immediate attention as it hasn't been responded to within 6 business days. ** Tip
|
Warning Tagging the AVM Core Team (@Azure/avm-core-team-technical-bicep) due to a module owner or contributor having not responded to this issue within 3 business days. The AVM Core Team will attempt to contact the module owners/contributors directly. Tip
|
Caution **This issue requires the AVM Core Team's (@Azure/avm-core-team-technical-bicep) immediate attention as it hasn't been responded to within 6 business days. ** Tip
|
Warning Tagging the AVM Core Team (@Azure/avm-core-team-technical-bicep) due to a module owner or contributor having not responded to this issue within 3 business days. The AVM Core Team will attempt to contact the module owners/contributors directly. Tip
|
Caution **This issue requires the AVM Core Team's (@Azure/avm-core-team-technical-bicep) immediate attention as it hasn't been responded to within 6 business days. ** Tip
|
Warning Tagging the AVM Core Team (@Azure/avm-core-team-technical-bicep) due to a module owner or contributor having not responded to this issue within 3 business days. The AVM Core Team will attempt to contact the module owners/contributors directly. Tip
|
Caution **This issue requires the AVM Core Team's (@Azure/avm-core-team-technical-bicep) immediate attention as it hasn't been responded to within 6 business days. ** Tip
|
Warning Tagging the AVM Core Team (@Azure/avm-core-team-technical-bicep) due to a module owner or contributor having not responded to this issue within 3 business days. The AVM Core Team will attempt to contact the module owners/contributors directly. Tip
|
Caution **This issue requires the AVM Core Team's (@Azure/avm-core-team-technical-bicep) immediate attention as it hasn't been responded to within 6 business days. ** Tip
|
Warning Tagging the AVM Core Team (@Azure/avm-core-team-technical-bicep) due to a module owner or contributor having not responded to this issue within 3 business days. The AVM Core Team will attempt to contact the module owners/contributors directly. Tip
|
Caution **This issue requires the AVM Core Team's (@Azure/avm-core-team-technical-bicep) immediate attention as it hasn't been responded to within 6 business days. ** Tip
|
Warning Tagging the AVM Core Team (@Azure/avm-core-team-technical-bicep) due to a module owner or contributor having not responded to this issue within 3 business days. The AVM Core Team will attempt to contact the module owners/contributors directly. Tip
|
Caution **This issue requires the AVM Core Team's (@Azure/avm-core-team-technical-bicep) immediate attention as it hasn't been responded to within 6 business days. ** Tip
|
Warning Tagging the AVM Core Team (@Azure/avm-core-team-technical-bicep) due to a module owner or contributor having not responded to this issue within 3 business days. The AVM Core Team will attempt to contact the module owners/contributors directly. Tip
|
Caution **This issue requires the AVM Core Team's (@Azure/avm-core-team-technical-bicep) immediate attention as it hasn't been responded to within 6 business days. ** Tip
|
Warning Tagging the AVM Core Team (@Azure/avm-core-team-technical-bicep) due to a module owner or contributor having not responded to this issue within 3 business days. The AVM Core Team will attempt to contact the module owners/contributors directly. Tip
|
Caution **This issue requires the AVM Core Team's (@Azure/avm-core-team-technical-bicep) immediate attention as it hasn't been responded to within 6 business days. ** Tip
|
Warning Tagging the AVM Core Team (@Azure/avm-core-team-technical-bicep) due to a module owner or contributor having not responded to this issue within 3 business days. The AVM Core Team will attempt to contact the module owners/contributors directly. Tip
|
Caution **This issue requires the AVM Core Team's (@Azure/avm-core-team-technical-bicep) immediate attention as it hasn't been responded to within 6 business days. ** Tip
|
Check for previous/existing GitHub issues
Description
Hi there,
I am unable to add administrators when deploying a MySQL Flexible Server. the server builds and fails on adding the administrator. it gives the below generic error.
{"code":"InternalServerError","message":"An unexpected error occured while processing the request. Tracking ID: '3a49570a-5473-48fd-9943-1ce463029288'"}
The text was updated successfully, but these errors were encountered: