Događaj
Izgradite inteligentne aplikacije
17. mar 21 - 21. mar 10
Pridružite se seriji sastanaka kako biste izgradili skalabilna AI rešenja zasnovana na stvarnim slučajevima korišćenja sa kolegama programerima i stručnjacima.
Registrujte se odmahOvaj pregledač više nije podržan.
Nadogradite na Microsoft Edge biste iskoristili najnovije funkcije, bezbednosne ispravke i tehničku podršku.
When deploying to Azure initial deployments may fail with an error similar to the following:
"The specified name is already in use"
This article describes several techniques to avoid this problem.
When deploying a .NET Aspire project to Azure, the resources in the app model are transformed into Azure resources. Some Azure resources have globally scoped names, such as Azure App Configuration, where all instances are in the [name].azconfig.io
global namespace.
The value of [name]
is derived from the .NET Aspire resource name, along with random characters based on the resource group name. However, the generated string may exceed the allowable length for the resource name in App Configuration. As a result, some characters are truncated to ensure compliance.
When a conflict occurs in the global namespace, the resource fails to deploy because the combination of [name]+[truncated hash]
isn't unique enough.
One workaround is to avoid using common names like appconfig
or storage
for resources. Instead, choose a more meaningful and specific name. This reduces the potential for conflict, but does not completely eliminate it. In such cases, you can use callback methods to set a specific name and avoid using the computed string altogether.
Consider the following example:
var appConfig = builder.AddAzureAppConfiguration(
"appConfig",
(resource, construct, store) =>
{
store.AssignProperty(p => p.Name, "'noncalculatedname'");
});
Povratne informacije za .NET Aspire
.NET Aspire je projekat otvorenog koda. Izaberite vezu da biste pružili povratne informacije:
Događaj
Izgradite inteligentne aplikacije
17. mar 21 - 21. mar 10
Pridružite se seriji sastanaka kako biste izgradili skalabilna AI rešenja zasnovana na stvarnim slučajevima korišćenja sa kolegama programerima i stručnjacima.
Registrujte se odmahObuka
Modul
Customize a .NET Aspire app to use existing Azure resources - Training
In this module, you'll learn how to move backing services for your Azure-hosted .NET Aspire app from containers into native Azure services.
Certifikacija
Microsoft Certified: Azure Developer Associate - Certifications
Build end-to-end solutions in Microsoft Azure to create Azure Functions, implement and manage web apps, develop solutions utilizing Azure storage, and more.
Dokumentacija
Frequently asked questions about .NET Aspire
Answers to some of the most common questions and scenarios for .NET Aspire.
Container runtime appears to be unhealthy - .NET Aspire
Learn how to troubleshoot the error "Container runtime 'docker' was found but appears to be unhealthy" during execution of your app.
.NET Aspire inner loop networking overview - .NET Aspire
Learn how .NET Aspire handles networking and endpoints, and how you can use them in your app code.