AzureSqlServerResource
Class net10.0
Represents an Azure Sql Server resource.
namespace Aspire.Hosting.Azure;
public class AzureSqlServerResource : Aspire.Hosting.Azure.AzureProvisioningResource, Aspire.Hosting.ApplicationModel.IManifestExpressionProvider, Aspire.Hosting.ApplicationModel.IResource, Aspire.Hosting.ApplicationModel.IResourceWithConnectionString, Aspire.Hosting.ApplicationModel.IValueProvider, Aspire.Hosting.ApplicationModel.IValueWithReferences, Aspire.Hosting.Azure.IAzurePrivateEndpointTarget, Aspire.Hosting.Azure.IAzurePrivateEndpointTargetNotification{ // ...} AzureProvisioningResourceIManifestExpressionProviderIResourceIResourceWithConnectionStringIValueProviderIValueWithReferencesIAzurePrivateEndpointTargetIAzurePrivateEndpointTargetNotification
16 members
Constructors2
Section titled ConstructorsAzureSqlServerResource(string, Action<AzureResourceInfrastructure>) Initializes a new instance of the
AzureSqlServerResource class. AzureSqlServerResource(SqlServerServerResource, Action<AzureResourceInfrastructure>)obsolete Initializes a new instance of the
AzureSqlServerResource class. Properties12
Section titled PropertiesAnnotationsgetats ignoredResourceAnnotationCollectionAzureSqlDatabasesgetats ignoredIReadOnlyDictionary<string, AzureSqlDatabaseResource> A dictionary where the key is the resource name and the value is the Azure SQL database resource.
ConnectionStringExpressiongetReferenceExpression 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.
FullyQualifiedDomainNamegetats ignoredBicepOutputReference Gets the fully qualified domain name (FQDN) output reference from the bicep template for the Azure SQL Server resource.
HostNamegetReferenceExpression Gets the host name for the SQL Server.
Idgetats ignoredBicepOutputReference Gets the "id" output reference for the resource.
IsContainergetbool Gets a value indicating whether the current resource represents a container. If so the actual resource is not running in Azure.
JdbcConnectionStringgetReferenceExpression Gets the JDBC connection string for the server.
NameOutputReferencegetats ignoredBicepOutputReference Gets the "name" output reference for the resource.
PortgetReferenceExpression Gets the port for the PostgreSQL server.
UriExpressiongetReferenceExpression Gets the connection URI expression for the SQL Server.
Methods2
Section titled MethodsAddAsExistingResource(AzureResourceInfrastructure)ProvisionableResourceAddRoleAssignments(IAddRoleAssignmentsContext)