You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding a resource using azd add, a single resource is created with a default name.
Example:
event-hubs for messaging.eventhubs.
The default name follows a hyphenated format.
Environment Variables:
Environment variables follow the format: AZURE_<TYPE>_<PROPERTY>. Unlike the type referenced in 1, underscores may be part of the name for variable naming clarity.
With messaging.eventhubs which stems from "Azure Event Hubs", AZURE_EVENT_HUBS_NAME represents the Event Hubs namespace.
When there are more than one types, an explicit environment variable mapping must be performed (which azd add can provide a default configuration modification that is used). See compose: explicit mapping #4747
Common Properties
Suffix
Description
_HOST
Hostname, i.e. myaccount.blob.core.windows.net
_URL
URI reference , i.e. redis://
_ENDPOINT
HTTP URL , i.e. https://<vault-name>.vault.azure.net/
!! WIP: Work in progress. This is a draft and does not represent final work.
General Conventions
Type Naming:
messaging.eventhubsinstead ofmessaging-eventhubs.Default Resource Naming (simplified scaffolding scenarios):
azd add, a single resource is created with a default name.event-hubsformessaging.eventhubs.Environment Variables:
AZURE_<TYPE>_<PROPERTY>. Unlike the type referenced in 1, underscores may be part of the name for variable naming clarity.messaging.eventhubswhich stems from "Azure Event Hubs",AZURE_EVENT_HUBS_NAMErepresents the Event Hubs namespace.azd addcan provide a default configuration modification that is used). See compose: explicit mapping #4747Common Properties
_HOSTmyaccount.blob.core.windows.net_URLredis://_ENDPOINThttps://<vault-name>.vault.azure.net/_PORT333Resource Definitions
Event Hubs
YAML Definition
Binding Environment Variables
AZURE_EVENT_HUBS_NAMEAZURE_EVENT_HUBS_HOSTService Bus
YAML Definition
Binding Environment Variables
AZURE_SERVICE_BUS_NAMEAZURE_SERVICE_BUS_HOST