mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Add USNat cloud settings (#11015)
authored-by: chgagnon <chgagnon@microsoft.com>
This commit is contained in:
@@ -4,6 +4,11 @@
|
|||||||
"default": false,
|
"default": false,
|
||||||
"description": "%config.enableUsGovCloudDescription%"
|
"description": "%config.enableUsGovCloudDescription%"
|
||||||
},
|
},
|
||||||
|
"accounts.azure.enableUsNatCloud": {
|
||||||
|
"type": "boolean",
|
||||||
|
"default": false,
|
||||||
|
"description": "%config.enableUsNatCloudDescription%"
|
||||||
|
},
|
||||||
"accounts.azure.enableChinaCloud": {
|
"accounts.azure.enableChinaCloud": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": false,
|
"default": false,
|
||||||
@@ -14,4 +19,4 @@
|
|||||||
"default": false,
|
"default": false,
|
||||||
"description": "%config.enableGermanyCloudDescription%"
|
"description": "%config.enableGermanyCloudDescription%"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,6 +45,11 @@
|
|||||||
"default": false,
|
"default": false,
|
||||||
"description": "%config.enableUsGovCloudDescription%"
|
"description": "%config.enableUsGovCloudDescription%"
|
||||||
},
|
},
|
||||||
|
"accounts.azure.cloud.enableUsNatCloud": {
|
||||||
|
"type": "boolean",
|
||||||
|
"default": false,
|
||||||
|
"description": "%config.enableUsNatCloudDescription%"
|
||||||
|
},
|
||||||
"accounts.azure.cloud.enableGermanyCloud": {
|
"accounts.azure.cloud.enableGermanyCloud": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": false,
|
"default": false,
|
||||||
|
|||||||
@@ -21,6 +21,7 @@
|
|||||||
"config.azureAccountConfigurationSection": "Azure Account Configuration",
|
"config.azureAccountConfigurationSection": "Azure Account Configuration",
|
||||||
"config.enablePublicCloudDescription": "Should Azure public cloud integration be enabled",
|
"config.enablePublicCloudDescription": "Should Azure public cloud integration be enabled",
|
||||||
"config.enableUsGovCloudDescription": "Should US Government Azure cloud (Fairfax) integration be enabled",
|
"config.enableUsGovCloudDescription": "Should US Government Azure cloud (Fairfax) integration be enabled",
|
||||||
|
"config.enableUsNatCloudDescription": "Should US National Azure cloud integration be enabled",
|
||||||
"config.enableChinaCloudDescription": "Should Azure China integration be enabled",
|
"config.enableChinaCloudDescription": "Should Azure China integration be enabled",
|
||||||
"config.enableGermanyCloudDescription": "Should Azure Germany integration be enabled",
|
"config.enableGermanyCloudDescription": "Should Azure Germany integration be enabled",
|
||||||
"config.azureAuthMethodConfigurationSection": "Azure Authentication Method",
|
"config.azureAuthMethodConfigurationSection": "Azure Authentication Method",
|
||||||
|
|||||||
@@ -108,6 +108,55 @@ const usGovAzureSettings: ProviderSettings = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const usNatAzureSettings: ProviderSettings = {
|
||||||
|
configKey: 'enableUsNatCloud',
|
||||||
|
metadata: {
|
||||||
|
displayName: localize('usNatCloudDisplayName', "Azure (US National)"),
|
||||||
|
id: 'azure_usNatCloud',
|
||||||
|
settings: {
|
||||||
|
host: 'https://login.microsoftonline.eaglex.ic.gov/',
|
||||||
|
clientId: 'a69788c6-1d43-44ed-9ca3-b83e194da255',
|
||||||
|
signInResourceId: 'https://management.core.eaglex.ic.gov/',
|
||||||
|
microsoftResource: {
|
||||||
|
id: 'marm',
|
||||||
|
endpoint: 'https://management.azure.eaglex.ic.gov/',
|
||||||
|
azureResourceId: AzureResource.MicrosoftResourceManagement
|
||||||
|
},
|
||||||
|
graphResource: {
|
||||||
|
id: 'graph',
|
||||||
|
endpoint: 'https://graph.eaglex.ic.gov',
|
||||||
|
azureResourceId: AzureResource.Graph
|
||||||
|
},
|
||||||
|
armResource: {
|
||||||
|
id: 'arm',
|
||||||
|
endpoint: 'https://management.core.eaglex.ic.gov/',
|
||||||
|
azureResourceId: AzureResource.ResourceManagement
|
||||||
|
},
|
||||||
|
sqlResource: {
|
||||||
|
id: 'sql',
|
||||||
|
endpoint: 'https://database.cloudapi.eaglex.ic.gov/',
|
||||||
|
azureResourceId: AzureResource.Sql
|
||||||
|
},
|
||||||
|
ossRdbmsResource: {
|
||||||
|
id: 'ossrdbms',
|
||||||
|
endpoint: 'https://ossrdbms-aad.database.cloudapi.eaglex.ic.gov',
|
||||||
|
azureResourceId: AzureResource.OssRdbms
|
||||||
|
},
|
||||||
|
azureKeyVaultResource: {
|
||||||
|
id: 'vault',
|
||||||
|
endpoint: 'https://vault.cloudapi.eaglex.ic.gov',
|
||||||
|
azureResourceId: AzureResource.AzureKeyVault
|
||||||
|
},
|
||||||
|
redirectUri: 'https://vscode-redirect.azurewebsites.net/',
|
||||||
|
scopes: [
|
||||||
|
'openid', 'email', 'profile', 'offline_access',
|
||||||
|
'https://management.core.eaglex.ic.gov/user_impersonation'
|
||||||
|
],
|
||||||
|
portalEndpoint: 'https://portal.azure.eaglex.ic.gov/'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
const germanyAzureSettings: ProviderSettings = {
|
const germanyAzureSettings: ProviderSettings = {
|
||||||
configKey: 'enableGermanyCloud',
|
configKey: 'enableGermanyCloud',
|
||||||
@@ -161,5 +210,5 @@ const chinaAzureSettings: ProviderSettings = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const allSettings = [publicAzureSettings, usGovAzureSettings, germanyAzureSettings, chinaAzureSettings];
|
const allSettings = [publicAzureSettings, usGovAzureSettings, usNatAzureSettings, germanyAzureSettings, chinaAzureSettings];
|
||||||
export default allSettings;
|
export default allSettings;
|
||||||
|
|||||||
Reference in New Issue
Block a user