-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
creating project: creating service backend: expecting only '1' resource tagged with 'azd-service-name: backend', but found '2'. Ensure a unique service resource is correctly tagged in your bicep files, and rerun provision tags: union(tags, { 'azd-service-name': 'backend' }) #154
Comments
I also faced the same issue. |
Same issue here, changing the main.bicep doesn't help, and cannot find any other settings about the tag |
@zhongshuai-cao @wantanej Did you manage to solve this problem? I am stuck on it here too. |
Hi all! The "backend" service name in azure.yaml must match the tags in infra/ folder. If you are trying to deploy two backends to the same resource group, then yes, I think you could update both azure.yaml as well as main.bicep: azure-search-openai-demo/infra/main.bicep Line 107 in 889f77b
cc @jongio in case there's a better way to do this that I'm forgetting. |
Can you add more details on what you are trying to accomplish? A description of your scenario would help me make a recommendation |
If want to have two different environment dev and prod for example. |
I tried deploying the same idea : different app service plan, different app service, different index and a different environment name in the pre existing resource group which contains another app which is deployed using the same repo. The following are the changes I made :
|
I've been manually adjusting the backend name to deploy multiple instances within the same resource group. I'm unsure if this approach is recommended. I suggest making the service name configurable through an environment variable named BACKEND_SERVICE_NAME to enhance deployment versatility. Additionally, I'm looking for a method to configure the key in the .yml file. To my knowledge, only the value can be modified, not the key itself in a .yml. Any guidance on this would be appreciated. |
It will be great if it is configurable with environment variable, like BACKEND_SERVICE_NAME, in my last comment #154 (comment) |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this issue will be closed. |
UP! |
This issue is for a: (mark with an
x
)Minimal steps to reproduce
Any log messages given by the failure
Error: creating project: creating service backend: expecting only '1' resource tagged with 'azd-service-name: backend', but found '2'. Ensure a unique service resource is correctly tagged in your bicep files, and rerun provision
tags: union(tags, { 'azd-service-name': 'backend' })
Expected/desired behavior
I have deployed successfully the demo and I would like to know can we use this demo to deploy one more application with same resources except diffrent of search index appServicePlanName,backendServiceName,searchIndexName and AZURE_ENV_NAME
OS and Version?
Versions
Mention any other details that might be useful
The text was updated successfully, but these errors were encountered: