AzureSqlServerResource
Classnet10.0
Represents an Azure Sql Server resource.
namespace Aspire.Hosting.Azure;
public class AzureSqlServerResource : Aspire.Hosting.Azure.AzureProvisioningResource, Aspire.Hosting.ApplicationModel.IExpressionValue, Aspire.Hosting.ApplicationModel.IManifestExpressionProvider, Aspire.Hosting.ApplicationModel.IResource, Aspire.Hosting.ApplicationModel.IResourceWithConnectionString, Aspire.Hosting.ApplicationModel.IValueProvider, Aspire.Hosting.ApplicationModel.IValueWithReferences, Aspire.Hosting.Azure.IAzureNspAssociationTarget, Aspire.Hosting.Azure.IAzurePrivateEndpointTarget, Aspire.Hosting.Azure.IAzurePrivateEndpointTargetNotification{ // ...}AzureProvisioningResourceIExpressionValueIManifestExpressionProviderIResourceIResourceWithConnectionStringIValueProviderIValueWithReferencesIAzureNspAssociationTargetIAzurePrivateEndpointTargetIAzurePrivateEndpointTargetNotification
16 members
Constructors2
Section titled Constructors Initializes a new instance of the
AzureSqlServerResource class. Initializes a new instance of the
AzureSqlServerResource class. Properties12
Section titled PropertiesResourceAnnotationCollection Gets the annotations associated with the resource.
IReadOnlyDictionary<string, AzureSqlDatabaseResource> A dictionary where the key is the resource name and the value is the Azure SQL database resource.
ReferenceExpression Gets the connection template for the manifest for the Azure SQL Server resource.
DatabasesgetIReadOnlyDictionary<string, string> A dictionary where the key is the resource name and the value is the Azure SQL database name.
BicepOutputReference Gets the fully qualified domain name (FQDN) output reference from the bicep template for the Azure SQL Server resource.
IsContainer getbool Gets a value indicating whether the current resource represents a container. If so the actual resource is not running in Azure.
Methods2
Section titled MethodsProvisionableResource Adds a new
Primitives.ProvisionableResource into infra. The new resource represents a reference to the current Azure.AzureProvisioningResource via https://learn.microsoft.com/azure/azure-resource-manager/bicep/existing-resource. Adds role assignments to this Azure resource.