Azure-Samples / azure-samples-net-management

Azure .NET Management Libraries Code Sample
MIT License
38 stars 23 forks source link

Resources created with .NET SDK aren't listed in deployment history #17

Open jacobslusser opened 1 year ago

jacobslusser commented 1 year ago

When creating a resource through the Azure portal the deployment history can be viewed for the resource group and it also provides a preview of the ARM template and parameters of the deployment. For example of what I mean, please see this article: https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/deployment-history?tabs=azure-portal#resource-group-deployments.

However, when I create resources programmatically with the .NET SDK (not using ARM), my new resources do not show in the deployment history for the resource group.

Is there something additional I need to do in the SDK for the deployments to show in the deployment history?

mcgallan commented 9 months ago

Hi @jacobslusser , thank you for your feedback. Regarding your question, if you have already deployed your application using the Azure .NET SDK, it should automatically show up in the deployment history. However, if you are experiencing issues with the deployments not showing up, you can try checking the connection string configuration in the Azure portal. If the connection strings are not set up correctly, the logs may not display properly. Another possible reason could be that the endpoints are not configured properly in the ServiceDefinition.csdef file. If you are still experiencing issues, you can refer to the Azure documentation on troubleshooting common Azure deployment errors Certainly, the issue you are facing might be due to the portal not being updated in a timely manner. You can try other methods to query deployment history, such as using Azure CLI, REST API, and more. You can refer to the following article for more information on these methods: https://github.com/MicrosoftDocs/azure-docs/blob/main/articles/azure-resource-manager/templates/deployment-history.md