Skip to content

Commit e6d6bc6

Browse files
kloudkraftsAlexandre Mougel
andauthored
[Cloud] Add Bleu to the Known Clouds list (#32856)
Co-authored-by: Alexandre Mougel <alex.mougle@proton.me>
1 parent 83f9b59 commit e6d6bc6

File tree

2 files changed

+41
-1
lines changed
  • src

2 files changed

+41
-1
lines changed

src/azure-cli-core/azure/cli/core/cloud.py

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@ class CloudNameEnum: # pylint: disable=too-few-public-methods
358358
AzureChinaCloud = 'AzureChinaCloud'
359359
AzureUSGovernment = 'AzureUSGovernment'
360360
AzureGermanCloud = 'AzureGermanCloud'
361+
AzureBleuCloud = 'AzureBleuCloud'
361362

362363

363364
AZURE_PUBLIC_CLOUD = Cloud(
@@ -492,7 +493,36 @@ class CloudNameEnum: # pylint: disable=too-few-public-methods
492493
postgresql_server_endpoint='.postgres.database.cloudapi.de',
493494
mariadb_server_endpoint='.mariadb.database.cloudapi.de'))
494495

495-
HARD_CODED_CLOUD_LIST = [AZURE_PUBLIC_CLOUD, AZURE_CHINA_CLOUD, AZURE_US_GOV_CLOUD, AZURE_GERMAN_CLOUD]
496+
AZURE_BLEU_CLOUD = Cloud(
497+
CloudNameEnum.AzureBleuCloud,
498+
endpoints=CloudEndpoints(
499+
management='https://management.sovcloud-api.fr/',
500+
resource_manager='https://management.sovcloud-api.fr',
501+
sql_management='https://management.database.sovcloud-api.fr:8443/',
502+
batch_resource_id='https://batch.sovcloud-api.fr/',
503+
gallery='https://gallery.sovcloud-api.fr/',
504+
active_directory='https://login.sovcloud-api.fr',
505+
active_directory_resource_id='https://management.sovcloud-api.fr/',
506+
active_directory_graph_resource_id='https://graph.svc.sovcloud.fr/',
507+
microsoft_graph_resource_id='https://graph.svc.sovcloud.fr',
508+
vm_image_alias_doc='https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/arm-compute/quickstart-templates/aliases.json',
509+
media_resource_id='https://rest.media.sovcloud-api.fr',
510+
ossrdbms_resource_id='https://ossrdbms-aad.database.sovcloud-api.fr',
511+
portal='https://portal.sovcloud-azure.fr'),
512+
suffixes=CloudSuffixes(
513+
acr_login_server_endpoint='.azurecr.sovcloud-azure.fr',
514+
attestation_endpoint='attest.sovcloud-api.fr',
515+
storage_endpoint='core.sovcloud-api.fr',
516+
storage_sync_endpoint='afs.sovcloud-api.fr',
517+
keyvault_dns='.vault.sovcloud-api.fr',
518+
mhsm_dns='.managedhsm.sovcloud-api.fr',
519+
sql_server_hostname='.database.sovcloud-api.fr',
520+
mysql_server_endpoint='.mysql.database.sovcloud-api.fr',
521+
postgresql_server_endpoint='.postgres.database.sovcloud-api.fr',
522+
mariadb_server_endpoint='.mariadb.database.sovcloud-api.fr',
523+
synapse_analytics_endpoint='.dev.azuresynapse.sovcloud-api.fr'))
524+
525+
HARD_CODED_CLOUD_LIST = [AZURE_PUBLIC_CLOUD, AZURE_CHINA_CLOUD, AZURE_US_GOV_CLOUD, AZURE_GERMAN_CLOUD, AZURE_BLEU_CLOUD]
496526

497527

498528
def retrieve_arm_cloud_metadata():

src/azure-cli/azure/cli/command_modules/cloud/tests/latest/test_cloud.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ def test_cloud_set_AzureGermanCloud(self):
4242
self.cmd('az cloud set -n AzureGermanCloud')
4343
self.cmd('az cloud show -n AzureGermanCloud', checks=[self.check('isActive', True)])
4444

45+
@serial_test()
46+
def test_cloud_set_AzureBleuCloud(self):
47+
self.cmd('az cloud set -n AzureBleuCloud')
48+
self.cmd('az cloud show -n AzureBleuCloud', checks=[self.check('isActive', True)])
49+
4550
@serial_test()
4651
def test_cloud_set_azurecloud(self):
4752
self.cmd('az cloud set -n azurecloud')
@@ -62,6 +67,11 @@ def test_cloud_set_azuregermancloud(self):
6267
self.cmd('az cloud set -n azuregermancloud')
6368
self.cmd('az cloud show -n AzureGermanCloud', checks=[self.check('isActive', True)])
6469

70+
@serial_test()
71+
def test_cloud_set_azurebleucloud(self):
72+
self.cmd('az cloud set -n azurebleucloud')
73+
self.cmd('az cloud show -n AzureBleuCloud', checks=[self.check('isActive', True)])
74+
6575
@serial_test()
6676
def test_cloud_set_unregistered_cloud_name(self):
6777
self.cmd('az cloud set -n azCloud', expect_failure=True)

0 commit comments

Comments
 (0)