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{ // ...} AzureProvisioningResourceIManifestExpressionProviderIResourceIResourceWithConnectionStringIValueProviderIValueWithReferences
15 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. Properties11
Section titled PropertiesAnnotationsgetResourceAnnotationCollectionAzureSqlDatabasesgetIReadOnlyDictionary<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.
FullyQualifiedDomainNamegetBicepOutputReference 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.
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.
NameOutputReferencegetBicepOutputReference 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)ProvisionableResource 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. AddRoleAssignments(IAddRoleAssignmentsContext) Adds role assignments to this Azure resource.