语言

你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。

ArmSqlModelFactory.SqlServerData Method

Definition

public static Azure.ResourceManager.Sql.SqlServerData SqlServerData(Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.Core.AzureLocation location = default, string administratorLogin = default, string administratorLoginPassword = default, string version = default, string state = default, string fullyQualifiedDomainName = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Sql.Models.SqlServerPrivateEndpointConnection> privateEndpointConnections = default, Azure.ResourceManager.Sql.Models.SqlMinimalTlsVersion? minTlsVersion = default, Azure.ResourceManager.Sql.Models.ServerNetworkAccessFlag? publicNetworkAccess = default, Azure.ResourceManager.Sql.Models.ServerWorkspaceFeature? workspaceFeature = default, Azure.Core.ResourceIdentifier primaryUserAssignedIdentityId = default, Guid? federatedClientId = default, Uri keyId = default, Azure.ResourceManager.Sql.Models.ServerExternalAdministrator administrators = default, Azure.ResourceManager.Sql.Models.ServerNetworkAccessFlag? restrictOutboundNetworkAccess = default, Azure.ResourceManager.Sql.Models.ServerNetworkAccessFlag? isIPv6Enabled = default, Azure.ResourceManager.Sql.Models.ExternalGovernanceStatus? externalGovernanceStatus = default, int? retentionDays = default, Azure.ResourceManager.Sql.Models.SqlServerCreateMode? createMode = default, Azure.ResourceManager.Models.ManagedServiceIdentity identity = default, string kind = default);
static member SqlServerData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * string * string * string * string * string * seq<Azure.ResourceManager.Sql.Models.SqlServerPrivateEndpointConnection> * Nullable<Azure.ResourceManager.Sql.Models.SqlMinimalTlsVersion> * Nullable<Azure.ResourceManager.Sql.Models.ServerNetworkAccessFlag> * Nullable<Azure.ResourceManager.Sql.Models.ServerWorkspaceFeature> * Azure.Core.ResourceIdentifier * Nullable<Guid> * Uri * Azure.ResourceManager.Sql.Models.ServerExternalAdministrator * Nullable<Azure.ResourceManager.Sql.Models.ServerNetworkAccessFlag> * Nullable<Azure.ResourceManager.Sql.Models.ServerNetworkAccessFlag> * Nullable<Azure.ResourceManager.Sql.Models.ExternalGovernanceStatus> * Nullable<int> * Nullable<Azure.ResourceManager.Sql.Models.SqlServerCreateMode> * Azure.ResourceManager.Models.ManagedServiceIdentity * string -> Azure.ResourceManager.Sql.SqlServerData
Public Shared Function SqlServerData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional location As AzureLocation = Nothing, Optional administratorLogin As String = Nothing, Optional administratorLoginPassword As String = Nothing, Optional version As String = Nothing, Optional state As String = Nothing, Optional fullyQualifiedDomainName As String = Nothing, Optional privateEndpointConnections As IEnumerable(Of SqlServerPrivateEndpointConnection) = Nothing, Optional minTlsVersion As Nullable(Of SqlMinimalTlsVersion) = Nothing, Optional publicNetworkAccess As Nullable(Of ServerNetworkAccessFlag) = Nothing, Optional workspaceFeature As Nullable(Of ServerWorkspaceFeature) = Nothing, Optional primaryUserAssignedIdentityId As ResourceIdentifier = Nothing, Optional federatedClientId As Nullable(Of Guid) = Nothing, Optional keyId As Uri = Nothing, Optional administrators As ServerExternalAdministrator = Nothing, Optional restrictOutboundNetworkAccess As Nullable(Of ServerNetworkAccessFlag) = Nothing, Optional isIPv6Enabled As Nullable(Of ServerNetworkAccessFlag) = Nothing, Optional externalGovernanceStatus As Nullable(Of ExternalGovernanceStatus) = Nothing, Optional retentionDays As Nullable(Of Integer) = Nothing, Optional createMode As Nullable(Of SqlServerCreateMode) = Nothing, Optional identity As ManagedServiceIdentity = Nothing, Optional kind As String = Nothing) As SqlServerData

Parameters

id
ResourceIdentifier

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.

name
String

The name of the resource.

resourceType
ResourceType

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

systemData
SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

tags
IDictionary<String,String>

Resource tags.

location
AzureLocation

The geo-location where the resource lives.

administratorLogin
String

Administrator username for the server. Once created it cannot be changed.

administratorLoginPassword
String

The administrator login password (required for server creation).

version
String

The version of the server.

state
String

The state of the server.

fullyQualifiedDomainName
String

The fully qualified domain name of the server.

privateEndpointConnections
IEnumerable<SqlServerPrivateEndpointConnection>

List of private endpoint connections on a server.

minTlsVersion
Nullable<SqlMinimalTlsVersion>

Minimal TLS version. Allowed values: 'None', 1.0', '1.1', '1.2', '1.3'.

publicNetworkAccess
Nullable<ServerNetworkAccessFlag>

Whether or not public endpoint access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' or 'SecuredByPerimeter'.

workspaceFeature
Nullable<ServerWorkspaceFeature>

Whether or not existing server has a workspace created and if it allows connection from workspace.

primaryUserAssignedIdentityId
ResourceIdentifier

The resource id of a user assigned identity to be used by default.

federatedClientId
Nullable<Guid>

The Client id used for cross tenant CMK scenario.

keyId
Uri

A CMK URI of the key to use for encryption.

administrators
ServerExternalAdministrator

The Azure Active Directory administrator can be utilized during server creation and for server updates, except for the azureADOnlyAuthentication property. To update the azureADOnlyAuthentication property, individual API must be used.

restrictOutboundNetworkAccess
Nullable<ServerNetworkAccessFlag>

Whether or not to restrict outbound network access for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'.

isIPv6Enabled
Nullable<ServerNetworkAccessFlag>

Whether or not to enable IPv6 support for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'.

externalGovernanceStatus
Nullable<ExternalGovernanceStatus>

Status of external governance.

retentionDays
Nullable<Int32>

Number of days this server will stay soft-deleted.

createMode
Nullable<SqlServerCreateMode>

Create mode for server, only valid values for this are Normal and Restore.

identity
ManagedServiceIdentity

The Azure Active Directory identity of the server.

kind
String

Kind of sql server. This is metadata used for the Azure portal experience.

Returns

A new SqlServerData instance for mocking.

Applies to