mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-17 09:35:37 -05:00
Add Log analytics Resource AAD Token (#15099)
* Added Azure Log Analytics resource for generating AAD Token. * Fixed AzureResource * Removed debug code from connectionManagementService * Moved AzureLogAnalytics from AzureResource enum in azdata.d.ts to azdata.proposed.d.ts. Added azureLogAnalyticsResource to all azureSettings in providerSettings.ts * Updated endpoint for generating AAD Token for LogAnalytics for UsGov, UsNat, and China * Removed azureMonitor resource from germanyCloud in providerSettings * Added missing resources to AzureResource in account interfaces. * Added comment linking enums for AzureResource
This commit is contained in:
7
src/sql/azdata.proposed.d.ts
vendored
7
src/sql/azdata.proposed.d.ts
vendored
@@ -789,6 +789,13 @@ declare module 'azdata' {
|
||||
delete?: boolean;
|
||||
}
|
||||
|
||||
export enum AzureResource {
|
||||
/**
|
||||
* Azure Log Analytics
|
||||
*/
|
||||
AzureLogAnalytics = 8
|
||||
}
|
||||
|
||||
export interface ButtonProperties {
|
||||
/**
|
||||
* Specifies whether to use expanded layout or not.
|
||||
|
||||
@@ -47,12 +47,18 @@ export interface IAccountManagementService {
|
||||
readonly updateAccountListEvent: Event<UpdateAccountListEventParams>;
|
||||
}
|
||||
|
||||
// API sqlExtHostTypes.ts > AzureResource should also be updated
|
||||
// Enum matching the AzureResource enum from azdata.d.ts
|
||||
export enum AzureResource {
|
||||
ResourceManagement = 0,
|
||||
Sql = 1,
|
||||
OssRdbms = 2,
|
||||
AzureKeyVault = 3
|
||||
AzureKeyVault = 3,
|
||||
Graph = 4,
|
||||
MicrosoftResourceManagement = 5,
|
||||
AzureDevOps = 6,
|
||||
MsGraph = 7,
|
||||
AzureLogAnalytics = 8
|
||||
}
|
||||
|
||||
export interface IAccountStore {
|
||||
|
||||
@@ -425,6 +425,7 @@ export class TreeComponentItem extends vsExtTypes.TreeItem {
|
||||
checked?: boolean;
|
||||
}
|
||||
|
||||
// Accounts interfaces.ts > AzureResource should also be updated
|
||||
export enum AzureResource {
|
||||
ResourceManagement = 0,
|
||||
Sql = 1,
|
||||
@@ -433,7 +434,8 @@ export enum AzureResource {
|
||||
Graph = 4,
|
||||
MicrosoftResourceManagement = 5,
|
||||
AzureDevOps = 6,
|
||||
MsGraph = 7
|
||||
MsGraph = 7,
|
||||
AzureLogAnalytics = 8
|
||||
}
|
||||
|
||||
export class TreeItem extends vsExtTypes.TreeItem {
|
||||
|
||||
@@ -75,7 +75,7 @@ export class ConnectionManagementService extends Disposable implements IConnecti
|
||||
|
||||
private static readonly CONNECTION_MEMENTO = 'ConnectionManagement';
|
||||
private static readonly _azureResources: AzureResource[] =
|
||||
[AzureResource.ResourceManagement, AzureResource.Sql, AzureResource.OssRdbms];
|
||||
[AzureResource.ResourceManagement, AzureResource.Sql, AzureResource.OssRdbms, AzureResource.AzureLogAnalytics];
|
||||
|
||||
constructor(
|
||||
@IConnectionDialogService private _connectionDialogService: IConnectionDialogService,
|
||||
|
||||
Reference in New Issue
Block a user