mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-27 15:20:30 -04: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:
@@ -73,6 +73,10 @@ export abstract class AzureAuth implements vscode.Disposable {
|
||||
this.resources = this.resources.concat(this.metadata.settings.azureDevOpsResource);
|
||||
}
|
||||
|
||||
if (this.metadata.settings.azureLogAnalyticsResource) {
|
||||
this.resources = this.resources.concat(this.metadata.settings.azureLogAnalyticsResource);
|
||||
}
|
||||
|
||||
this.scopes = [...this.metadata.settings.scopes];
|
||||
this.scopesString = this.scopes.join(' ');
|
||||
}
|
||||
|
||||
@@ -17,7 +17,8 @@ const enum SettingIds {
|
||||
sql = 'sql',
|
||||
ossrdbms = 'ossrdbms',
|
||||
vault = 'vault',
|
||||
ado = 'ado'
|
||||
ado = 'ado',
|
||||
ala = 'ala'
|
||||
}
|
||||
|
||||
const publicAzureSettings: ProviderSettings = {
|
||||
@@ -68,6 +69,11 @@ const publicAzureSettings: ProviderSettings = {
|
||||
endpoint: '499b84ac-1321-427f-aa17-267ca6975798',
|
||||
azureResourceId: AzureResource.AzureDevOps,
|
||||
},
|
||||
azureLogAnalyticsResource: {
|
||||
id: SettingIds.ala,
|
||||
endpoint: 'https://api.loganalytics.io',
|
||||
azureResourceId: AzureResource.AzureLogAnalytics,
|
||||
},
|
||||
redirectUri: 'https://vscode-redirect.azurewebsites.net/',
|
||||
scopes: [
|
||||
'openid', 'email', 'profile', 'offline_access',
|
||||
@@ -117,6 +123,11 @@ const usGovAzureSettings: ProviderSettings = {
|
||||
endpoint: 'https://vault.usgovcloudapi.net',
|
||||
azureResourceId: AzureResource.AzureKeyVault
|
||||
},
|
||||
azureLogAnalyticsResource: {
|
||||
id: SettingIds.ala,
|
||||
endpoint: 'https://api.loganalytics.us',
|
||||
azureResourceId: AzureResource.AzureLogAnalytics,
|
||||
},
|
||||
redirectUri: 'https://vscode-redirect.azurewebsites.net/',
|
||||
scopes: [
|
||||
'openid', 'email', 'profile', 'offline_access',
|
||||
@@ -165,6 +176,11 @@ const usNatAzureSettings: ProviderSettings = {
|
||||
endpoint: 'https://vault.cloudapi.eaglex.ic.gov',
|
||||
azureResourceId: AzureResource.AzureKeyVault
|
||||
},
|
||||
azureLogAnalyticsResource: {
|
||||
id: SettingIds.ala,
|
||||
endpoint: 'https://api.loganalytics.azure.eaglex.ic.gov',
|
||||
azureResourceId: AzureResource.AzureLogAnalytics,
|
||||
},
|
||||
redirectUri: 'https://vscode-redirect.azurewebsites.net/',
|
||||
scopes: [
|
||||
'openid', 'email', 'profile', 'offline_access',
|
||||
@@ -237,6 +253,11 @@ const chinaAzureSettings: ProviderSettings = {
|
||||
endpoint: 'https://vault.azure.cn',
|
||||
azureResourceId: AzureResource.AzureKeyVault
|
||||
},
|
||||
azureLogAnalyticsResource: {
|
||||
id: SettingIds.ala,
|
||||
endpoint: 'https://api.loganalytics.azure.cn',
|
||||
azureResourceId: AzureResource.AzureLogAnalytics,
|
||||
},
|
||||
redirectUri: 'https://vscode-redirect.azurewebsites.net/'
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user