-
Notifications
You must be signed in to change notification settings - Fork 3
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
Refactor the database modules and move to AVM #86
Open
tonybaloney
wants to merge
19
commits into
main
Choose a base branch
from
avm_cosmos
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@secure() | ||
param dbserverPassword string | ||
|
||
module dbserver '../core/database/cosmos/cosmos-pg-adapter.bicep' = { |
Check failure
Code scanning / templateanalyzer
Administrator Username Types. Error
Resource properties can be configured using a hardcoded value or Azure Bicep/ template expressions. When specifying sensitive values use secure parameters such as secureString or secureObject.
Sensitive values that use deterministic expressions such as hardcodes string literals or variables are not secure.
Sensitive values that use deterministic expressions such as hardcodes string literals or variables are not secure.
name: containerAppsEnvironmentName | ||
} | ||
|
||
resource postgres 'Microsoft.App/containerApps@2023-04-01-preview' = { |
Check failure
Code scanning / templateanalyzer
Use managed identity for authentication. Error
Using managed identities have the following benefits:
Your app connects to resources with the managed identity. You don't need to manage credentials in your container app.
You can use role-based access control to grant specific permissions to a managed identity.
System-assigned identities are automatically created and managed. They're deleted when your container app is deleted.
You can add and delete user-assigned identities and assign them to multiple resources. They're independent of your container app's life cycle.
You can use managed identity to authenticate with a private Azure Container Registry without a username and password to pull containers for your Container App.
You can use managed identity to create connections for Dapr-enabled applications via Dapr components.
This is a WIP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose
The database code is a spaghetti-code of bicep and Jinja2 templates that makes it hard to read and lint.
This PR refactors them into modules for each purpose then moves the AZD core code to AVM