Sprog

ArmSqlModelFactory.SqlServerData Method

Definition

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