-
Notifications
You must be signed in to change notification settings - Fork 213
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
compose: resource conventions #4746
Comments
Given Convention 1, should |
There's definitely a point of confusion here, the environment variable naming should be stemmed from the official Azure resource naming. I did made an explicit decision with this initial draft to have Types shortened for brevity and look closer to general programming language types, but for Environment variables to follow better standard environment variable naming conventions for clarity. I have updated the draft slightly to reflect this decision. Feel free to have a chat open for any thoughts here.
This is a good point. In general, I don't believe this is done in practice -- the variables are just standard conventional environment variables of |
About the resource conventions, I think it's a part of azure.yaml schema. I have a draft design about Deploy project to Azure by azure.yaml. The azure.yaml are used by multiple tools, including azd, SJAD project analyzer, code-to-cloud, maybe the future, we will have other tools like: IDE plugins, other project analyzers like (.NET project analyzer, js project analyzer). In my draft design, we should move the schema definition out of azd, so all tools can follow the same schema. We can follow this flow:
Back to current issue, the discussion about resource conversion should move to the azure-dot-yaml-schama discussion. |
When define common properties, this list can provide more candidates: https://github.com/Azure/azure-dev/pull/4473/files |
About |
!! WIP: Work in progress. This is a draft and does not represent final work.
General Conventions
Type Naming:
messaging.eventhubs
instead ofmessaging-eventhubs
.Default Resource Naming (simplified scaffolding scenarios):
azd add
, a single resource is created with a default name.event-hubs
formessaging.eventhubs
.Environment Variables:
AZURE_<TYPE>_<PROPERTY>
. Unlike the type referenced in 1, underscores may be part of the name for variable naming clarity.messaging.eventhubs
which stems from "Azure Event Hubs",AZURE_EVENT_HUBS_NAME
represents the Event Hubs namespace.azd add
can provide a default configuration modification that is used).Common Properties
_HOST
myaccount.blob.core.windows.net
_URL
redis://
_ENDPOINT
https://<vault-name>.vault.azure.net/
_PORT
333
Resource Definitions
Event Hubs
YAML Definition
Binding Environment Variables
AZURE_EVENT_HUBS_NAME
AZURE_EVENT_HUBS_HOST
Service Bus
YAML Definition
Binding Environment Variables
AZURE_SERVICE_BUS_NAME
AZURE_SERVICE_BUS_HOST
The text was updated successfully, but these errors were encountered: