Skip to main content

databases_inaccessible_by_servers

Creates, updates, deletes, gets or lists a databases_inaccessible_by_servers resource.

Overview

Namedatabases_inaccessible_by_servers
TypeResource
Idazure.sql.databases_inaccessible_by_servers

Fields

The following fields are returned by SELECT queries:

Successfully retrieved the list of inaccessible databases in a logical server

NameDatatypeDescription
identityobjectThe Azure Active Directory identity of the database.
kindstringKind of database. This is metadata used for the Azure portal experience.
locationstringResource location.
managedBystringResource that manages the database.
propertiesobjectResource properties.
skuobjectThe database SKU.

The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the Capabilities_ListByLocation REST API or one of the following commands:

azurecli<br /> az sql db list-editions -l &lt;location&gt; -o table<br /> ````<br /> <br /> powershell
Get-AzSqlServerServiceObjective -Location <location>
````
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectresourceGroupName, serverName, subscriptionIdGets a list of inaccessible databases in a logical server

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
resourceGroupNamestringThe name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
serverNamestringThe name of the server.
subscriptionIdstringThe subscription ID that identifies an Azure subscription.

SELECT examples

Gets a list of inaccessible databases in a logical server

SELECT
identity,
kind,
location,
managedBy,
properties,
sku,
tags
FROM azure.sql.databases_inaccessible_by_servers
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND serverName = '{{ serverName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;