mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-26 17:23:15 -05:00
Add new wizard for login migrations experience (#21317)
This commit is contained in:
@@ -74,6 +74,10 @@ export async function createResourceGroup(account: azdata.Account, subscription:
|
||||
}
|
||||
|
||||
export type SqlManagedInstance = azurecore.azureResource.AzureSqlManagedInstance;
|
||||
export function isSqlManagedInstance(instance: any): instance is SqlManagedInstance {
|
||||
return (instance as SqlManagedInstance) !== undefined;
|
||||
}
|
||||
|
||||
export async function getAvailableManagedInstanceProducts(account: azdata.Account, subscription: Subscription): Promise<SqlManagedInstance[]> {
|
||||
const api = await getAzureCoreAPI();
|
||||
const result = await api.getSqlManagedInstances(account, [subscription], false);
|
||||
@@ -165,6 +169,10 @@ export interface ServerPrivateEndpointConnection {
|
||||
readonly properties?: PrivateEndpointConnectionProperties;
|
||||
}
|
||||
|
||||
export function isAzureSqlDatabaseServer(instance: any): instance is AzureSqlDatabaseServer {
|
||||
return (instance as AzureSqlDatabaseServer) !== undefined;
|
||||
}
|
||||
|
||||
export interface AzureSqlDatabaseServer {
|
||||
id: string,
|
||||
name: string,
|
||||
|
||||
Reference in New Issue
Block a user