Skip to content
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

fix: Resolve failing tests #2876

Merged
merged 193 commits into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from 190 commits
Commits
Show all changes
193 commits
Select commit Hold shift + click to select a range
cf5fede
Adding new workflow
hundredacres Mar 25, 2024
ff7c683
Merge remote-tracking branch 'upstream/main'
hundredacres Mar 26, 2024
c883d2b
Merge remote-tracking branch 'upstream/main'
hundredacres Mar 27, 2024
5d11b9b
Merge remote-tracking branch 'upstream/main'
hundredacres Mar 28, 2024
abcb62e
Merge remote-tracking branch 'upstream/main'
hundredacres Apr 8, 2024
318eacd
Merge remote-tracking branch 'upstream/main'
hundredacres Apr 22, 2024
98c9667
Merge branch 'Azure:main' into main
hundredacres Apr 24, 2024
4a3c13e
Fixing keyvault deployment for max test
hundredacres Apr 25, 2024
d3ecced
Enabling softDelete on the 2nd keyvault
hundredacres Apr 25, 2024
a2e4423
Updating API version of vault
hundredacres Apr 26, 2024
35d59f8
Updating resource API
hundredacres Apr 29, 2024
d4f9aaa
Merge remote-tracking branch 'upstream/main'
hundredacres Apr 29, 2024
cf5d59a
Merge remote-tracking branch 'upstream/main'
hundredacres Apr 30, 2024
1136fc9
Merge branch 'Azure:main' into fix/db-for-mysql/flexible/1649
hundredacres Apr 30, 2024
0f43d8b
Merge branch 'Azure:main' into main
hundredacres May 1, 2024
5b6f769
Merge branch 'Azure:main' into fix/db-for-mysql/flexible/1649
hundredacres May 1, 2024
b7271e3
Adding new variables to enable HA setup
hundredacres May 2, 2024
a84760a
chore: shortening module statuses (#1809)
matebarabas May 1, 2024
d992d08
fix: repair automatic assignment of issues (#1817)
rahalan May 2, 2024
5b95ae1
fix: Removed orphaned file & reference (#1822)
JFolberth May 2, 2024
e9f11ba
Merge branch 'Azure:main' into main
hundredacres May 2, 2024
2a3fd4c
Merge remote-tracking branch 'upstream/main'
hundredacres May 6, 2024
9061cfe
Merge remote-tracking branch 'upstream/main'
hundredacres May 8, 2024
9893b9a
Merge remote-tracking branch 'upstream/main'
hundredacres May 10, 2024
15ea104
Merge branch 'Azure:main' into main
hundredacres May 14, 2024
7932e38
Merge branch 'Azure:main' into main
hundredacres May 15, 2024
397cf89
Updating API version for Public IP Address
hundredacres May 16, 2024
fc79840
Merge remote-tracking branch 'upstream/main'
hundredacres May 16, 2024
fa79026
Merge remote-tracking branch 'upstream/main'
hundredacres May 17, 2024
dada297
Merge remote-tracking branch 'upstream/main'
hundredacres May 23, 2024
4a21db9
Merge remote-tracking branch 'upstream/main'
hundredacres May 24, 2024
279c3ae
Merge remote-tracking branch 'upstream/main'
hundredacres Jun 5, 2024
07101e0
Merge remote-tracking branch 'upstream/main'
hundredacres Jun 5, 2024
001dbcb
Merge remote-tracking branch 'upstream/main'
hundredacres Jun 7, 2024
c176840
Merge remote-tracking branch 'upstream/main'
hundredacres Jun 14, 2024
0676b50
Merge remote-tracking branch 'upstream/main'
hundredacres Jun 17, 2024
6add63b
Merge remote-tracking branch 'upstream/main'
hundredacres Jun 19, 2024
72246df
chore: shortening module statuses (#1809)
matebarabas May 1, 2024
8dde586
fix: repair automatic assignment of issues (#1817)
rahalan May 2, 2024
e6221ae
fix: Removed orphaned file & reference (#1822)
JFolberth May 2, 2024
4e927eb
fix: Temporarily disabled OpenAI test (#1826)
AlexanderSehr May 2, 2024
5484689
fix: WebApp - Updated to latest PE schema (#1794)
AlexanderSehr May 3, 2024
2599c05
feat: Added custom location overwrite (#1721)
AlexanderSehr May 3, 2024
08c0096
fix: Update publishing job to only trigger if git repo is assocaited …
oZakari May 3, 2024
f3ff414
fix: Added additional case handling to logic that pulls workflow inpu…
AlexanderSehr May 3, 2024
f6c2d51
fix: Allow empty parameters in subnet `avm/res/network/virtual-networ…
cloudchristoph May 3, 2024
c48fc6b
adds imageResourceIds as output - `avm/res/compute/gallery` (#1818)
ReneHezser May 3, 2024
23d665e
docs: Removing orphaned module file - `avm/res/insights/scheduled-que…
emichellecarter May 3, 2024
97ef7cb
fix: not supported Powershell and Python versions on Automation Runbo…
elanzel May 3, 2024
d824d07
feat: Update VMSS to default to flexible orchestration mode - `avm/re…
rahalan May 3, 2024
93842ce
fix: Set subnet batch size decorator (#1771)
rodney-almeida May 6, 2024
60436f5
fix: CDN Profile - Parameter name for originGroups - `avm/res/cdn/pro…
cloudchristoph May 6, 2024
0786fc2
feat: added option to enable image cleaner to container service aks. …
PixelRobots May 6, 2024
3448485
feat: Bing is not available - `avm/res/cognitive-services/account` (#…
Agazoth May 6, 2024
230e34d
fix: Fixed typo in 'Publish from tag' workflow (#1853)
AlexanderSehr May 6, 2024
8d7faed
feat: Removed enforcement of UDT schemas for pattern modules (#1832)
AlexanderSehr May 6, 2024
174b7d4
fix: Update files after Set-AVMModule run - `avm/res/cognitive-servic…
ilhaan May 6, 2024
afa939c
fix: network watcher missing v2 formatting (#1855)
eriqua May 7, 2024
2b5c60a
fix: app managed environment missing v2 formatting (#1856)
eriqua May 7, 2024
6a35395
feat: add requested features to VM module - `avm/res/compute/virtual-…
rahalan May 7, 2024
118bd24
fix: Added missing context switching to deployment target resolution …
AlexanderSehr May 7, 2024
ece6308
feat: Implemented logic to make `resourceLocation` optional in CI (#1…
AlexanderSehr May 8, 2024
2fffd9d
feat: Added alias case handling for resource ID resolution in removal…
AlexanderSehr May 9, 2024
489ccb3
fix: service bus authorization rules default value fix (#1890)
ChrisSidebotham May 9, 2024
ef9c6f1
feat: Enabled support for `*` properties in UDTs (#1891)
AlexanderSehr May 9, 2024
903a8a0
feat: Added the option to declare a specific resource type to be remo…
AlexanderSehr May 10, 2024
c75b7b0
feat: Add new parameters for `avm/res/virtual-machine-images/image-te…
ahmadabdalla May 11, 2024
c1bd1c4
feat: Migrated module App/Jobs from CARML - `avm/res/app/job` (#1823)
AlexanderSehr May 11, 2024
01556bf
fix: Remove ptn readme (#1916)
eriqua May 12, 2024
5d23b1d
fix: Added case handling for `loadFromFile()` functions that introduc…
AlexanderSehr May 13, 2024
14dbd81
feat: New Module `avm/res/communication/email-service` (#1582)
krbar May 13, 2024
1d62062
feat: New Module `avm/res/communication/communication-service` (#1605)
krbar May 14, 2024
ce4ee26
feat: Create\Update User Defined Types with sensitive values to inclu…
rodney-almeida May 14, 2024
783f7a3
feat: New pattern `avm/ptn/authorization/resource-role-assignment` (#…
peterbud May 15, 2024
f5d0f38
fix: MachineLearningWorkspace - Updated to latest PE schema (#1792)
AlexanderSehr May 16, 2024
fc4fd06
fix: Resolve bug with declaring Public IP Prefix use on managementIP …
hundredacres May 16, 2024
03ec3a5
fix: Removed migration left-overs from Virtual-Hub module (#1941)
AlexanderSehr May 16, 2024
2a23902
fix: Minor edits to get version publishing working (#1953)
hundredacres May 17, 2024
f962e34
fix: Adding support for managedidentity (#1972)
hundredacres May 19, 2024
2d3f76e
chore: `res/app/job` - not orphaned anymore (#1969)
ReneHezser May 19, 2024
fe2efdb
fix: Added `-Culture 'en-US'` to all `Sort-Object` operations (#1976)
AlexanderSehr May 20, 2024
4d59771
chore(deps): bump rexml from 3.2.5 to 3.2.8 in /docs/jekyll (#1954)
dependabot[bot] May 20, 2024
1a62d50
fix: Fixed nested UDT resolution if array definition is in parameter,…
AlexanderSehr May 20, 2024
3bd6ef7
feat: update logic to create a meaningful issue, if the module list t…
rahalan May 21, 2024
31ff2cf
fix: Add check to only apply quarantinePolicyStatus and trustPolicySt…
rodney-almeida May 21, 2024
ffd210b
fix: Fixed nested UDT resolution in compliance tests (#1971)
AlexanderSehr May 21, 2024
36d942f
feat: Container App added Sticky Session Afinity options (#1936)
MichielVanHerreweghe May 21, 2024
37dbe28
feat: Import changes from #1123 for Key Vault - `avm/res/key-vault/va…
ChrisSidebotham May 22, 2024
2e3ec4b
fix: Several Storage Account fixes included replacement for #1508 - `…
ChrisSidebotham May 22, 2024
07e048d
fix: Added missing built-in roles for key vault (#2005)
ChrisSidebotham May 22, 2024
798bc4d
fix: `ddosProtectionPlan` now optional in `ddosSettingsType` for Publ…
ChrisSidebotham May 22, 2024
d9ffe27
[Feature Request] Add a possibility to specify partition key version …
Agazoth May 22, 2024
3b8ea8d
feat: Implemented Container user-defined type - `avm/res/app/containe…
MichielVanHerreweghe May 22, 2024
111f334
fix: sql mi missing v2 formatting (#1857)
eriqua May 22, 2024
08f0636
fix: Key-Vault WAF Test Fix (#2013)
ChrisSidebotham May 23, 2024
504f205
feat: New Module `avm/ptn/finops-toolkit/finops-hub` (#1808)
sebassem May 23, 2024
2344099
fix: Avm finops hub - Update readme for static tests (#2018)
sebassem May 23, 2024
20c33f4
fix: Cleanup and order codeowners and issue template (#1988)
eriqua May 24, 2024
25bdb5d
chore: remove remains of jekyll (#2068)
jtracey93 May 24, 2024
f8de1d2
feat: Additional outputs to the `avm/res/databricks/workspace` module…
krbar May 25, 2024
95f6aa9
feat: Adding support for multiple custom domains in AFD endpoints + r…
gbeaud May 28, 2024
c1ff22b
fix: `res/aad/domain-service` disables tlsV1, ntlmV1 and kerberosRc4E…
ReneHezser May 28, 2024
0035944
chore: updated AVM successor for `avm/ptn/authorization/resource-role…
matebarabas May 28, 2024
216b58c
fix: Fix failing ddos pp pipeline runs (#2022)
segraef May 28, 2024
b2ebfbe
fix: Added missing dependency to role assignment rg-scope tests (#1774)
AlexanderSehr May 28, 2024
adefea0
fix: App-Configuration/Configuration-Store - Updated to latest PE sch…
AlexanderSehr May 28, 2024
6ce1b60
fix: Removed telemetry parameter from RSV test (#1829)
AlexanderSehr May 28, 2024
42df01f
fix: Fixed Compute-Image dependency - `avm/res/compute/image` (#2019)
AlexanderSehr May 28, 2024
fb6a43f
feat: Add Microsoft.Sql/servers/auditingSetting to 'avm/res/sql/serve…
peterbud May 29, 2024
b63cacf
feat: `avm/res/db for postgre sql/flexible server` Added fqdn. (#2099)
josearper May 30, 2024
52d89b0
fix: Upgrade pwsh version to fix failing pipeline runs - `avm/res/com…
segraef Jun 1, 2024
53a6fa3
fix: Sets line ending to LF (#2182)
ReneHezser Jun 3, 2024
5ef5715
fix: `avm/res/network/network-security-group` updated API version and…
ahmadabdalla Jun 3, 2024
4511ce4
feat: Expand usage of UDT for the AVNM Bicep Module - `avm/res/networ…
ahmadabdalla Jun 3, 2024
eab45fc
feat: updated triage automation notifications (#2193)
matebarabas Jun 5, 2024
67b9beb
updated logic to check if module list is not in sync with CSV files (…
rahalan Jun 5, 2024
399aec4
feat: Added UDTs for Private and Public DNS zone records and fixed ty…
johnlokerse Jun 5, 2024
cb96574
feat: avm/res/alerts management/action rule (#2184)
judyer28 Jun 5, 2024
43f7bd8
fix: Updated the way the removal logic handles RG-level deployment re…
AlexanderSehr Jun 5, 2024
20b6a87
fix: App job documentation updates - `avm/res/app/job` (#2074)
ReneHezser Jun 5, 2024
44fb5fc
feat: Removing all schedules from all workflows (#2259)
AlexanderSehr Jun 7, 2024
8bb3df2
feat: Automation account credentials - New feature (#2183)
elanzel Jun 7, 2024
afb77ca
fix: Added custom removal logic for databricks module & moved tenant-…
AlexanderSehr Jun 7, 2024
b916b4a
fix: `avm/res/web/site` Container and API Web App support (#2258)
tsc-buddy Jun 8, 2024
4ef62bc
feat: `avm/res/app/managed-environment` Output staticIP of Managed En…
hundredacres Jun 9, 2024
d2012ae
feat: additional parameters, including CMK, for `avm/res/net-app/net-…
bobmclane999 Jun 10, 2024
e2efc6d
feat: New Module avm-ptn-lz-sub-vending (#2080)
sebassem Jun 11, 2024
bfb616e
feat: `res/app/job` example updates (#2313)
ReneHezser Jun 12, 2024
ad73978
fix: Storage Account Firewall object composition (#2311)
AlexanderSehr Jun 12, 2024
89a1f74
fix: Addressing avm environment quota for serverfarms (#2187)
tsc-buddy Jun 12, 2024
3f4e47a
fix: fix some bugs in VM Bicep template (#2264)
rahalan Jun 12, 2024
9324dc6
feat: Adding lastCommitID and TenantID for the git repo config ```avm…
clintgrove Jun 12, 2024
fab42c6
fix: Added addtional exception handling for removal (#2312)
AlexanderSehr Jun 12, 2024
c4fb544
feat: New module `avm/res/kusto/cluster` (#2186)
oZakari Jun 12, 2024
b4e1182
chore: update pointers to the new lz/sub-vending AVM module (#2339)
matebarabas Jun 12, 2024
a70870d
feat: `avm/res/network/load-balancer` (#1745)
arnoldna Jun 13, 2024
b6e0695
Fix: #2343 `avm/ptn/lz/sub-vending` nsg policy violation (#2344)
sebassem Jun 13, 2024
360c67e
fix: #2261 `avm/res/storage/storage-account` disable enableCrossTenan…
ChrisSidebotham Jun 13, 2024
89ee4e3
feat: issue template for CI environment (#2192)
matebarabas Jun 13, 2024
6a347b8
fix: avm.res.service-fabric.cluster failed pipeline - `avm/res/servic…
lsnoddy Jun 13, 2024
68aa46c
feat: added function container kind to asp. (#2351)
tsc-buddy Jun 14, 2024
3c78c71
fix: ContainerRegistry - Updated to latest PE schema - `avm/res/conta…
AlexanderSehr Jun 14, 2024
28e0e5f
fixing failing workflow runs for encrypted eventhub (#2361)
elanzel Jun 14, 2024
3e2d3fa
feat: `amv/res/desktop-virtualization/scaling-plan` API updates (#2347)
danycontre Jun 14, 2024
46af1c4
fix: Load balancer failed pipelines for WAF test. (#2383)
arnoldna Jun 15, 2024
f24c815
fix: Small test file updates for Load Balancer (#2397)
AlexanderSehr Jun 15, 2024
1ca66b9
fix: `avm/res/web/serverfarm` support for elasticScaleEnabled propert…
pankajagrawal16 Jun 16, 2024
698cc8e
fix: Set-ModuleFileAndFolderSetup pathway fix (#2086)
ChrisSidebotham Jun 18, 2024
344b44f
fix: Added explicit databricks post-removal (#2345)
AlexanderSehr Jun 18, 2024
e2c43db
fix: `avm/res/network/network-security-group` retired security rules …
ahmadabdalla Jun 18, 2024
c34682d
feat: Adjusted telemetry 'deployments' suppression (letters M-Z) (#2…
AlexanderSehr Jun 19, 2024
d0e62ba
feat: Adjusted telemetry 'deployments' suppression (letters E-N-1) (#…
AlexanderSehr Jun 19, 2024
e38173d
feat: New Module `avm/res/portal/dashboard` (#2016)
krbar Jun 19, 2024
9edcce6
feat: api-management.service new v0.2 (#2453)
tony-box Jun 19, 2024
7c2a0c9
Merge branch 'Azure:main' into fix/db-for-mysql/flexible/1649
hundredacres Jun 19, 2024
43d802a
Running Set-AVMModule
hundredacres Jun 19, 2024
d01c5f5
Running Set-AVMModule
hundredacres Jun 19, 2024
3e307bd
Merge branch 'Azure:main' into main
hundredacres Jun 24, 2024
a8dac45
Merge branch 'Azure:main' into fix/db-for-mysql/flexible/1649
hundredacres Jun 28, 2024
a61b1f1
Switch the keyVaultUri param
hundredacres Jun 28, 2024
958c722
Updating retentiondays from 7 to 90
hundredacres Jun 28, 2024
652431a
Updated skuName for default test
hundredacres Jul 3, 2024
f589c3b
Merge branch 'Azure:main' into main
hundredacres Jul 8, 2024
2222a68
Merge branch 'fix/db-for-mysql/flexible/1649' of https://github.com/h…
hundredacres Jul 8, 2024
e5c6a5e
Updating default version to 8
hundredacres Jul 8, 2024
eb30ed6
Running Set-AVMModule
hundredacres Jul 9, 2024
7c9743f
Merge branch 'Azure:main' into main
hundredacres Jul 9, 2024
a60b6db
Merge branch 'Azure:main' into main
hundredacres Jul 10, 2024
1fd9cef
Merge branch 'main' of https://github.com/hundredacres/bicep-registry…
hundredacres Jul 10, 2024
5383ed9
Overriding location selection
hundredacres Jul 15, 2024
ea64422
Overriding location selection
hundredacres Jul 15, 2024
49be527
Merge branch 'Azure:main' into fix/db-for-mysql/flexible/1649
hundredacres Jul 19, 2024
107c684
Removed maintenance window from tests
hundredacres Jul 19, 2024
6182e51
Updating tests to align with WAF requirements
hundredacres Jul 19, 2024
e99a867
Excluding WAF required setting from tests due to bug.
hundredacres Jul 29, 2024
cff7aed
Removing stray pipeline
hundredacres Jul 29, 2024
2e22985
Removing stray commits
hundredacres Jul 29, 2024
260fb37
Updating minor version due to API changes
hundredacres Jul 30, 2024
edb3ede
Merge branch 'main' into fix/db-for-mysql/flexible/1649
hundredacres Jul 30, 2024
673fbb4
Updating comment on why test is being excluded
hundredacres Jul 30, 2024
7a6bd4c
Merge branch 'fix/db-for-mysql/flexible/1649' of https://github.com/h…
hundredacres Jul 30, 2024
db560d9
Removing unused param
hundredacres Jul 30, 2024
d1cbd0c
Addressing latest comments on PR
hundredacres Jul 30, 2024
b5c17fc
Adding the enableSoftDelete option back
hundredacres Jul 30, 2024
5c7fff1
Switching retention days from 7 to 90
hundredacres Jul 30, 2024
df539bb
Switching back retention days from 90 to 7
hundredacres Jul 31, 2024
bf74590
Switching back retention days from 7 to 90 after failed max test
hundredacres Jul 31, 2024
bbd103f
Removing softpurge setting again
hundredacres Jul 31, 2024
1e86d9e
Removing declared retentionDays param
hundredacres Jul 31, 2024
b05c856
Adding parameter and comment
hundredacres Aug 1, 2024
1009c6e
Merge branch 'main' into fix/db-for-mysql/flexible/1649
hundredacres Aug 1, 2024
9f07985
Updating comment
hundredacres Aug 1, 2024
f03dd19
Merge branch 'main' into fix/db-for-mysql/flexible/1649
hundredacres Aug 1, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 43 additions & 14 deletions avm/res/db-for-my-sql/flexible-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ This module deploys a DBforMySQL Flexible Server.
| :-- | :-- |
| `Microsoft.Authorization/locks` | [2020-05-01](https://learn.microsoft.com/en-us/azure/templates/Microsoft.Authorization/2020-05-01/locks) |
| `Microsoft.Authorization/roleAssignments` | [2022-04-01](https://learn.microsoft.com/en-us/azure/templates/Microsoft.Authorization/2022-04-01/roleAssignments) |
| `Microsoft.DBforMySQL/flexibleServers` | [2022-09-30-preview](https://learn.microsoft.com/en-us/azure/templates/Microsoft.DBforMySQL/2022-09-30-preview/flexibleServers) |
| `Microsoft.DBforMySQL/flexibleServers/administrators` | [2022-01-01](https://learn.microsoft.com/en-us/azure/templates/Microsoft.DBforMySQL/2022-01-01/flexibleServers/administrators) |
| `Microsoft.DBforMySQL/flexibleServers/databases` | [2022-01-01](https://learn.microsoft.com/en-us/azure/templates/Microsoft.DBforMySQL/2022-01-01/flexibleServers/databases) |
| `Microsoft.DBforMySQL/flexibleServers/firewallRules` | [2022-01-01](https://learn.microsoft.com/en-us/azure/templates/Microsoft.DBforMySQL/2022-01-01/flexibleServers/firewallRules) |
| `Microsoft.DBforMySQL/flexibleServers` | [2023-12-30](https://learn.microsoft.com/en-us/azure/templates/Microsoft.DBforMySQL/flexibleServers) |
| `Microsoft.DBforMySQL/flexibleServers/administrators` | [2023-06-30](https://learn.microsoft.com/en-us/azure/templates/Microsoft.DBforMySQL/2023-06-30/flexibleServers/administrators) |
| `Microsoft.DBforMySQL/flexibleServers/databases` | [2023-06-30](https://learn.microsoft.com/en-us/azure/templates/Microsoft.DBforMySQL/2023-06-30/flexibleServers/databases) |
| `Microsoft.DBforMySQL/flexibleServers/firewallRules` | [2023-06-30](https://learn.microsoft.com/en-us/azure/templates/Microsoft.DBforMySQL/2023-06-30/flexibleServers/firewallRules) |
| `Microsoft.Insights/diagnosticSettings` | [2021-05-01-preview](https://learn.microsoft.com/en-us/azure/templates/Microsoft.Insights/2021-05-01-preview/diagnosticSettings) |

## Usage examples
Expand Down Expand Up @@ -51,12 +51,13 @@ module flexibleServer 'br/public:avm/res/db-for-my-sql/flexible-server:<version>
params: {
// Required parameters
name: 'dfmsfsmin001'
skuName: 'Standard_B1ms'
tier: 'Burstable'
skuName: 'Standard_D2ds_v4'
tier: 'GeneralPurpose'
// Non-required parameters
administratorLogin: 'adminUserName'
administratorLoginPassword: '<administratorLoginPassword>'
location: '<location>'
storageAutoGrow: 'Enabled'
}
}
```
Expand All @@ -78,10 +79,10 @@ module flexibleServer 'br/public:avm/res/db-for-my-sql/flexible-server:<version>
"value": "dfmsfsmin001"
},
"skuName": {
"value": "Standard_B1ms"
"value": "Standard_D2ds_v4"
},
"tier": {
"value": "Burstable"
"value": "GeneralPurpose"
},
// Non-required parameters
"administratorLogin": {
Expand All @@ -92,6 +93,9 @@ module flexibleServer 'br/public:avm/res/db-for-my-sql/flexible-server:<version>
},
"location": {
"value": "<location>"
},
"storageAutoGrow": {
"value": "Enabled"
}
}
}
Expand Down Expand Up @@ -535,16 +539,20 @@ module flexibleServer 'br/public:avm/res/db-for-my-sql/flexible-server:<version>
params: {
// Required parameters
name: 'dfmswaf001'
skuName: 'Standard_B1ms'
tier: 'Burstable'
skuName: 'Standard_D2ds_v4'
tier: 'GeneralPurpose'
// Non-required parameters
administratorLogin: 'adminUserName'
administratorLoginPassword: '<administratorLoginPassword>'
availabilityZone: '1'
highAvailability: 'ZoneRedundant'
highAvailabilityZone: '2'
location: '<location>'
lock: {
kind: 'CanNotDelete'
name: 'myCustomLockName'
}
storageAutoGrow: 'Enabled'
tags: {
Environment: 'Non-Prod'
'hidden-title': 'This is visible in the resource name'
Expand All @@ -571,10 +579,10 @@ module flexibleServer 'br/public:avm/res/db-for-my-sql/flexible-server:<version>
"value": "dfmswaf001"
},
"skuName": {
"value": "Standard_B1ms"
"value": "Standard_D2ds_v4"
},
"tier": {
"value": "Burstable"
"value": "GeneralPurpose"
},
// Non-required parameters
"administratorLogin": {
Expand All @@ -583,6 +591,15 @@ module flexibleServer 'br/public:avm/res/db-for-my-sql/flexible-server:<version>
"administratorLoginPassword": {
"value": "<administratorLoginPassword>"
},
"availabilityZone": {
"value": "1"
},
"highAvailability": {
"value": "ZoneRedundant"
},
"highAvailabilityZone": {
"value": "2"
},
"location": {
"value": "<location>"
},
Expand All @@ -592,6 +609,9 @@ module flexibleServer 'br/public:avm/res/db-for-my-sql/flexible-server:<version>
"name": "myCustomLockName"
}
},
"storageAutoGrow": {
"value": "Enabled"
},
"tags": {
"value": {
"Environment": "Non-Prod",
Expand Down Expand Up @@ -646,6 +666,7 @@ module flexibleServer 'br/public:avm/res/db-for-my-sql/flexible-server:<version>
| [`firewallRules`](#parameter-firewallrules) | array | The firewall rules to create in the MySQL flexible server. |
| [`geoRedundantBackup`](#parameter-georedundantbackup) | string | A value indicating whether Geo-Redundant backup is enabled on the server. If "Enabled" and "cMKKeyName" is not empty, then "geoBackupCMKKeyVaultResourceId" and "cMKUserAssignedIdentityResourceId" are also required. |
| [`highAvailability`](#parameter-highavailability) | string | The mode for High Availability (HA). It is not supported for the Burstable pricing tier and Zone redundant HA can only be set during server provisioning. |
| [`highAvailabilityZone`](#parameter-highavailabilityzone) | string | Standby availability zone information of the server. Default will have no preference set. |
| [`location`](#parameter-location) | string | Location for all resources. |
| [`lock`](#parameter-lock) | object | The lock settings of the service. |
| [`maintenanceWindow`](#parameter-maintenancewindow) | object | Properties for the maintenence window. If provided, "customWindow" property must exist and set to "Enabled". |
Expand Down Expand Up @@ -1108,7 +1129,7 @@ The mode for High Availability (HA). It is not supported for the Burstable prici

- Required: No
- Type: string
- Default: `'Disabled'`
- Default: `'ZoneRedundant'`
- Allowed:
```Bicep
[
Expand All @@ -1118,6 +1139,14 @@ The mode for High Availability (HA). It is not supported for the Burstable prici
]
```

### Parameter: `highAvailabilityZone`

Standby availability zone information of the server. Default will have no preference set.

- Required: No
- Type: string
- Default: `''`

### Parameter: `location`

Location for all resources.
Expand Down Expand Up @@ -1335,7 +1364,7 @@ MySQL Server version.

- Required: No
- Type: string
- Default: `'5.7'`
- Default: `'8.0.21'`
- Allowed:
```Bicep
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This module deploys a DBforMySQL Flexible Server Administrator.

| Resource Type | API Version |
| :-- | :-- |
| `Microsoft.DBforMySQL/flexibleServers/administrators` | [2022-01-01](https://learn.microsoft.com/en-us/azure/templates/Microsoft.DBforMySQL/2022-01-01/flexibleServers/administrators) |
| `Microsoft.DBforMySQL/flexibleServers/administrators` | [2023-06-30](https://learn.microsoft.com/en-us/azure/templates/Microsoft.DBforMySQL/2023-06-30/flexibleServers/administrators) |

## Parameters

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ param login string
@description('Optional. The tenantId of the Active Directory administrator.')
param tenantId string = tenant().tenantId

resource flexibleServer 'Microsoft.DBforMySQL/flexibleServers@2022-01-01' existing = {
resource flexibleServer 'Microsoft.DBforMySQL/flexibleServers@2023-12-30' existing = {
name: flexibleServerName
}

resource administrator 'Microsoft.DBforMySQL/flexibleServers/administrators@2022-01-01' = {
resource administrator 'Microsoft.DBforMySQL/flexibleServers/administrators@2023-06-30' = {
name: 'ActiveDirectory'
parent: flexibleServer
properties: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.26.54.24096",
"templateHash": "2817201491275445304"
"version": "0.28.1.47646",
"templateHash": "6790232868083578968"
},
"name": "DBforMySQL Flexible Server Administrators",
"description": "This module deploys a DBforMySQL Flexible Server Administrator.",
Expand Down Expand Up @@ -47,7 +47,7 @@
"resources": [
{
"type": "Microsoft.DBforMySQL/flexibleServers/administrators",
"apiVersion": "2022-01-01",
"apiVersion": "2023-06-30",
"name": "[format('{0}/{1}', parameters('flexibleServerName'), 'ActiveDirectory')]",
"properties": {
"administratorType": "ActiveDirectory",
Expand Down
2 changes: 1 addition & 1 deletion avm/res/db-for-my-sql/flexible-server/database/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This module deploys a DBforMySQL Flexible Server Database.

| Resource Type | API Version |
| :-- | :-- |
| `Microsoft.DBforMySQL/flexibleServers/databases` | [2022-01-01](https://learn.microsoft.com/en-us/azure/templates/Microsoft.DBforMySQL/2022-01-01/flexibleServers/databases) |
| `Microsoft.DBforMySQL/flexibleServers/databases` | [2023-06-30](https://learn.microsoft.com/en-us/azure/templates/Microsoft.DBforMySQL/2023-06-30/flexibleServers/databases) |

## Parameters

Expand Down
4 changes: 2 additions & 2 deletions avm/res/db-for-my-sql/flexible-server/database/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ param collation string = 'utf8'
@description('Optional. The charset of the database.')
param charset string = 'utf8_general_ci'

resource flexibleServer 'Microsoft.DBforMySQL/flexibleServers@2022-09-30-preview' existing = {
resource flexibleServer 'Microsoft.DBforMySQL/flexibleServers@2023-12-30' existing = {
name: flexibleServerName
}

resource database 'Microsoft.DBforMySQL/flexibleServers/databases@2022-01-01' = {
resource database 'Microsoft.DBforMySQL/flexibleServers/databases@2023-06-30' = {
name: name
parent: flexibleServer
properties: {
Expand Down
6 changes: 3 additions & 3 deletions avm/res/db-for-my-sql/flexible-server/database/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.26.54.24096",
"templateHash": "9734848552595709363"
"version": "0.28.1.47646",
"templateHash": "10336036524933085246"
},
"name": "DBforMySQL Flexible Server Databases",
"description": "This module deploys a DBforMySQL Flexible Server Database.",
Expand Down Expand Up @@ -42,7 +42,7 @@
"resources": [
{
"type": "Microsoft.DBforMySQL/flexibleServers/databases",
"apiVersion": "2022-01-01",
"apiVersion": "2023-06-30",
"name": "[format('{0}/{1}', parameters('flexibleServerName'), parameters('name'))]",
"properties": {
"collation": "[if(not(empty(parameters('collation'))), parameters('collation'), null())]",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This module deploys a DBforMySQL Flexible Server Firewall Rule.

| Resource Type | API Version |
| :-- | :-- |
| `Microsoft.DBforMySQL/flexibleServers/firewallRules` | [2022-01-01](https://learn.microsoft.com/en-us/azure/templates/Microsoft.DBforMySQL/2022-01-01/flexibleServers/firewallRules) |
| `Microsoft.DBforMySQL/flexibleServers/firewallRules` | [2023-06-30](https://learn.microsoft.com/en-us/azure/templates/Microsoft.DBforMySQL/2023-06-30/flexibleServers/firewallRules) |

## Parameters

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ param endIpAddress string
@description('Conditional. The name of the parent MySQL flexible server. Required if the template is used in a standalone deployment.')
param flexibleServerName string

resource flexibleServer 'Microsoft.DBforMySQL/flexibleServers@2022-09-30-preview' existing = {
resource flexibleServer 'Microsoft.DBforMySQL/flexibleServers@2023-12-30' existing = {
name: flexibleServerName
}

resource firewallRule 'Microsoft.DBforMySQL/flexibleServers/firewallRules@2022-01-01' = {
resource firewallRule 'Microsoft.DBforMySQL/flexibleServers/firewallRules@2023-06-30' = {
name: name
parent: flexibleServer
properties: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.26.54.24096",
"templateHash": "2931317814738693960"
"version": "0.28.1.47646",
"templateHash": "15749635080430899727"
},
"name": "DBforMySQL Flexible Server Firewall Rules",
"description": "This module deploys a DBforMySQL Flexible Server Firewall Rule.",
Expand Down Expand Up @@ -40,7 +40,7 @@
"resources": [
{
"type": "Microsoft.DBforMySQL/flexibleServers/firewallRules",
"apiVersion": "2022-01-01",
"apiVersion": "2023-06-30",
"name": "[format('{0}/{1}', parameters('flexibleServerName'), parameters('name'))]",
"properties": {
"endIpAddress": "[parameters('endIpAddress')]",
Expand Down
20 changes: 15 additions & 5 deletions avm/res/db-for-my-sql/flexible-server/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ param tier string
@description('Optional. Availability zone information of the server. Default will have no preference set.')
param availabilityZone string = ''

@description('Optional. Standby availability zone information of the server. Default will have no preference set.')
param highAvailabilityZone string = ''

@minValue(1)
@maxValue(35)
@description('Optional. Backup retention days for the server.')
Expand Down Expand Up @@ -80,7 +83,7 @@ param customerManagedKeyGeo customerManagedKeyType
'ZoneRedundant'
])
@description('Optional. The mode for High Availability (HA). It is not supported for the Burstable pricing tier and Zone redundant HA can only be set during server provisioning.')
param highAvailability string = 'Disabled'
param highAvailability string = 'ZoneRedundant'

@description('Optional. Properties for the maintenence window. If provided, "customWindow" property must exist and set to "Enabled".')
param maintenanceWindow object = {}
Expand Down Expand Up @@ -145,7 +148,7 @@ param storageSizeGB int = 64
'8.0.21'
])
@description('Optional. MySQL Server version.')
param version string = '5.7'
param version string = '8.0.21'

@description('Optional. The databases to create in the server.')
param databases array = []
Expand All @@ -162,6 +165,14 @@ param diagnosticSettings diagnosticSettingType
@description('Optional. Enable/Disable usage telemetry for module.')
param enableTelemetry bool = true

var standByAvailabilityZoneTable = {
Disabled: null
SameZone: availabilityZone
ZoneRedundant: highAvailabilityZone
}

var standByAvailabilityZone = standByAvailabilityZoneTable[?highAvailability]

var formattedUserAssignedIdentities = reduce(
map((managedIdentities.?userAssignedResourceIds ?? []), (id) => { '${id}': {} }),
{},
Expand Down Expand Up @@ -193,7 +204,6 @@ var builtInRoleNames = {
)
}

#disable-next-line no-deployments-resources
resource avmTelemetry 'Microsoft.Resources/deployments@2024-03-01' = if (enableTelemetry) {
name: '46d3xbcp.res.dbformysql-flexibleserver.${replace('-..--..-', '.', '-')}.${substring(uniqueString(deployment().name, location), 0, 4)}'
properties: {
Expand Down Expand Up @@ -252,7 +262,7 @@ resource cMKGeoUserAssignedIdentity 'Microsoft.ManagedIdentity/userAssignedIdent
)
}

resource flexibleServer 'Microsoft.DBforMySQL/flexibleServers@2022-09-30-preview' = {
resource flexibleServer 'Microsoft.DBforMySQL/flexibleServers@2023-12-30' = {
name: name
location: location
tags: tags
Expand Down Expand Up @@ -287,7 +297,7 @@ resource flexibleServer 'Microsoft.DBforMySQL/flexibleServers@2022-09-30-preview
: null
highAvailability: {
mode: highAvailability
standbyAvailabilityZone: highAvailability == 'SameZone' ? availabilityZone : null
standbyAvailabilityZone: standByAvailabilityZone
}
maintenanceWindow: !empty(maintenanceWindow)
? {
Expand Down
Loading