diff --git a/src/vmware/HISTORY.md b/src/vmware/HISTORY.md index b392c6cd9bd..816c0cdc65b 100644 --- a/src/vmware/HISTORY.md +++ b/src/vmware/HISTORY.md @@ -13,6 +13,7 @@ - Add `az vmware private-cloud list-admin-credentials` - Add `az vmware private-cloud add-identity-source` - Add `az vmware private-cloud delete-identity-source` +- Add `az vmware private-cloud identity` command group - Deprecate `az vmware private-cloud listadmincredentials` - Deprecate `az vmware private-cloud addidentitysource` - Deprecate `az vmware private-cloud deleteidentitysource` diff --git a/src/vmware/azext_vmware/custom.py b/src/vmware/azext_vmware/custom.py index 3de10c8fc85..d80908c4883 100644 --- a/src/vmware/azext_vmware/custom.py +++ b/src/vmware/azext_vmware/custom.py @@ -168,7 +168,7 @@ def privatecloud_identity_assign(client: AVSClient, resource_group_name, private def privatecloud_identity_remove(client: AVSClient, resource_group_name, private_cloud): from azext_vmware.vendored_sdks.avs_client.models import PrivateCloudIdentity, PrivateCloudUpdate pc = PrivateCloudUpdate() - pc.identity = PrivateCloudIdentity(type=None) + pc.identity = PrivateCloudIdentity(type="None") return client.private_clouds.begin_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, private_cloud_update=pc) diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware.yaml index e731fcfcf7b..22dd7e98827 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware.yaml @@ -27,7 +27,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:59:43 GMT + - Thu, 18 Nov 2021 21:48:45 GMT server: - Rocket status: @@ -61,7 +61,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:59:47 GMT + - Thu, 18 Nov 2021 21:48:49 GMT server: - Rocket status: @@ -93,7 +93,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:59:51 GMT + - Thu, 18 Nov 2021 21:48:54 GMT server: - Rocket status: @@ -132,7 +132,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:59:56 GMT + - Thu, 18 Nov 2021 21:48:58 GMT server: - Rocket status: @@ -164,7 +164,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 19:00:00 GMT + - Thu, 18 Nov 2021 21:49:02 GMT server: - Rocket status: @@ -200,7 +200,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 19:00:04 GMT + - Thu, 18 Nov 2021 21:49:06 GMT server: - Rocket status: @@ -236,7 +236,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 19:00:08 GMT + - Thu, 18 Nov 2021 21:49:11 GMT server: - Rocket status: @@ -272,7 +272,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 19:00:13 GMT + - Thu, 18 Nov 2021 21:49:15 GMT server: - Rocket status: @@ -304,7 +304,7 @@ interactions: content-length: - '0' date: - - Mon, 15 Nov 2021 19:00:17 GMT + - Thu, 18 Nov 2021 21:49:19 GMT server: - Rocket status: @@ -337,7 +337,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 19:00:21 GMT + - Thu, 18 Nov 2021 21:49:23 GMT server: - Rocket status: @@ -387,7 +387,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 19:00:21 GMT + - Thu, 18 Nov 2021 21:49:23 GMT server: - Rocket status: @@ -419,7 +419,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 19:00:26 GMT + - Thu, 18 Nov 2021 21:49:28 GMT server: - Rocket status: @@ -451,7 +451,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 19:00:30 GMT + - Thu, 18 Nov 2021 21:49:32 GMT server: - Rocket status: @@ -488,7 +488,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 19:00:34 GMT + - Thu, 18 Nov 2021 21:49:37 GMT server: - Rocket status: @@ -520,7 +520,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 19:00:38 GMT + - Thu, 18 Nov 2021 21:49:41 GMT server: - Rocket status: @@ -556,7 +556,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 19:00:43 GMT + - Thu, 18 Nov 2021 21:49:45 GMT server: - Rocket status: @@ -588,7 +588,7 @@ interactions: content-length: - '0' date: - - Mon, 15 Nov 2021 19:00:47 GMT + - Thu, 18 Nov 2021 21:49:50 GMT server: - Rocket status: @@ -620,7 +620,111 @@ interactions: content-length: - '0' date: - - Mon, 15 Nov 2021 19:00:50 GMT + - Thu, 18 Nov 2021 21:49:54 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: '{"identity": {"type": "SystemAssigned"}, "properties": {"internet": "Disabled"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud identity assign + Connection: + - keep-alive + Content-Length: + - '80' + Content-Type: + - application/json + ParameterSetName: + - -g -c --system-assigned + User-Agent: + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + method: PATCH + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-12-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","location":"eastus2","tags":{},"sku":{"name":"AV36"},"properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"encryption":{"status":"Enabled","keyVaultProperties":{"keyName":"keyname1","keyVersion":"ver1.0","keyVaultUrl":"https://keyvault1-kmip-kvault.vault.azure.net/","versionType":"Fixed"}},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/{subscription-id}/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect","expressRoutePrivatePeeringID":"/subscriptions/{subscription-id}/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/","hcxCloudManager":"https://192.168.50.4/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]}}' + headers: + content-length: + - '1770' + content-type: + - application/json + date: + - Thu, 18 Nov 2021 21:49:59 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: '{"identity": {"type": "None"}, "properties": {"internet": "Disabled"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud identity remove + Connection: + - keep-alive + Content-Length: + - '70' + Content-Type: + - application/json + ParameterSetName: + - -g -c + User-Agent: + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + method: PATCH + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-12-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","location":"eastus2","tags":{},"sku":{"name":"AV36"},"properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"encryption":{"status":"Enabled","keyVaultProperties":{"keyName":"keyname1","keyVersion":"ver1.0","keyVaultUrl":"https://keyvault1-kmip-kvault.vault.azure.net/","versionType":"Fixed"}},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/{subscription-id}/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect","expressRoutePrivatePeeringID":"/subscriptions/{subscription-id}/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/","hcxCloudManager":"https://192.168.50.4/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]}}' + headers: + content-length: + - '1770' + content-type: + - application/json + date: + - Thu, 18 Nov 2021 21:50:02 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud identity show + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-12-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","location":"eastus2","tags":{},"sku":{"name":"AV36"},"properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"encryption":{"status":"Enabled","keyVaultProperties":{"keyName":"keyname1","keyVersion":"ver1.0","keyVaultUrl":"https://keyvault1-kmip-kvault.vault.azure.net/","keyState":"Connected","versionType":"Fixed"}},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/{subscription-id}/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect","expressRoutePrivatePeeringID":"/subscriptions/{subscription-id}/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/","hcxCloudManager":"https://192.168.50.4/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]},"identity":{"principalId":"881e5573-063f-49e4-8c08-79d7df0169d8","tenantId":"881e5573-063f-49e4-8c08-79d7df0169d8","type":"SystemAssigned"}}' + headers: + content-length: + - '1933' + content-type: + - application/json + date: + - Thu, 18 Nov 2021 21:50:08 GMT server: - Rocket status: @@ -652,7 +756,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 19:00:56 GMT + - Thu, 18 Nov 2021 21:50:12 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_addon.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_addon.yaml index 607839bafb4..81a8b813fe1 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_addon.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_addon.yaml @@ -30,7 +30,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:58:35 GMT + - Thu, 18 Nov 2021 21:47:37 GMT server: - Rocket status: @@ -62,7 +62,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:58:39 GMT + - Thu, 18 Nov 2021 21:47:42 GMT server: - Rocket status: @@ -98,7 +98,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:58:43 GMT + - Thu, 18 Nov 2021 21:47:46 GMT server: - Rocket status: @@ -130,7 +130,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:58:47 GMT + - Thu, 18 Nov 2021 21:47:50 GMT server: - Rocket status: @@ -162,7 +162,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:58:52 GMT + - Thu, 18 Nov 2021 21:47:54 GMT server: - Rocket status: @@ -194,7 +194,7 @@ interactions: content-length: - '0' date: - - Mon, 15 Nov 2021 18:58:56 GMT + - Thu, 18 Nov 2021 21:47:58 GMT server: - Rocket status: @@ -226,7 +226,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:59:00 GMT + - Thu, 18 Nov 2021 21:48:03 GMT server: - Rocket status: @@ -262,7 +262,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:59:04 GMT + - Thu, 18 Nov 2021 21:48:07 GMT server: - Rocket status: @@ -294,7 +294,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:59:09 GMT + - Thu, 18 Nov 2021 21:48:11 GMT server: - Rocket status: @@ -326,7 +326,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:59:13 GMT + - Thu, 18 Nov 2021 21:48:15 GMT server: - Rocket status: @@ -358,7 +358,7 @@ interactions: content-length: - '0' date: - - Mon, 15 Nov 2021 18:59:17 GMT + - Thu, 18 Nov 2021 21:48:20 GMT server: - Rocket status: @@ -390,7 +390,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:59:22 GMT + - Thu, 18 Nov 2021 21:48:24 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_cloud_link.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_cloud_link.yaml index d21786f9644..120987e7dba 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_cloud_link.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_cloud_link.yaml @@ -29,7 +29,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:58:35 GMT + - Thu, 18 Nov 2021 21:47:37 GMT server: - Rocket status: @@ -61,7 +61,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:58:39 GMT + - Thu, 18 Nov 2021 21:47:41 GMT server: - Rocket status: @@ -93,7 +93,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:58:43 GMT + - Thu, 18 Nov 2021 21:47:46 GMT server: - Rocket status: @@ -125,7 +125,7 @@ interactions: content-length: - '0' date: - - Mon, 15 Nov 2021 18:58:47 GMT + - Thu, 18 Nov 2021 21:47:50 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_datastores.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_datastores.yaml index c4c8dcf0b2e..0ee135cd7c2 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_datastores.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_datastores.yaml @@ -30,7 +30,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:58:35 GMT + - Thu, 18 Nov 2021 21:47:37 GMT server: - Rocket status: @@ -62,7 +62,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:58:39 GMT + - Thu, 18 Nov 2021 21:47:42 GMT server: - Rocket status: @@ -94,7 +94,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:58:43 GMT + - Thu, 18 Nov 2021 21:47:46 GMT server: - Rocket status: @@ -126,7 +126,7 @@ interactions: content-length: - '0' date: - - Mon, 15 Nov 2021 18:58:47 GMT + - Thu, 18 Nov 2021 21:47:50 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_global_reach_connection.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_global_reach_connection.yaml index 9885b3a0285..3c36594e9cd 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_global_reach_connection.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_global_reach_connection.yaml @@ -32,7 +32,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:58:35 GMT + - Thu, 18 Nov 2021 21:47:37 GMT server: - Rocket status: @@ -64,7 +64,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:58:39 GMT + - Thu, 18 Nov 2021 21:47:42 GMT server: - Rocket status: @@ -102,7 +102,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:58:43 GMT + - Thu, 18 Nov 2021 21:47:46 GMT server: - Rocket status: @@ -134,7 +134,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:58:47 GMT + - Thu, 18 Nov 2021 21:47:50 GMT server: - Rocket status: @@ -166,7 +166,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:58:52 GMT + - Thu, 18 Nov 2021 21:47:54 GMT server: - Rocket status: @@ -198,7 +198,7 @@ interactions: content-length: - '0' date: - - Mon, 15 Nov 2021 18:58:56 GMT + - Thu, 18 Nov 2021 21:47:58 GMT server: - Rocket status: @@ -230,7 +230,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:59:00 GMT + - Thu, 18 Nov 2021 21:48:03 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_hcx.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_hcx.yaml index 62f5bb6b4fe..7b1302e8672 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_hcx.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_hcx.yaml @@ -32,7 +32,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:59:34 GMT + - Thu, 18 Nov 2021 21:48:37 GMT server: - Rocket status: @@ -68,7 +68,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:59:39 GMT + - Thu, 18 Nov 2021 21:48:41 GMT server: - Rocket status: @@ -100,7 +100,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:59:43 GMT + - Thu, 18 Nov 2021 21:48:45 GMT server: - Rocket status: @@ -132,7 +132,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:59:47 GMT + - Thu, 18 Nov 2021 21:48:49 GMT server: - Rocket status: @@ -168,7 +168,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:59:51 GMT + - Thu, 18 Nov 2021 21:48:54 GMT server: - Rocket status: @@ -200,7 +200,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:59:56 GMT + - Thu, 18 Nov 2021 21:48:58 GMT server: - Rocket status: @@ -232,7 +232,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 19:00:00 GMT + - Thu, 18 Nov 2021 21:49:02 GMT server: - Rocket status: @@ -264,7 +264,7 @@ interactions: content-length: - '0' date: - - Mon, 15 Nov 2021 19:00:04 GMT + - Thu, 18 Nov 2021 21:49:06 GMT server: - Rocket status: @@ -296,7 +296,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 19:00:08 GMT + - Thu, 18 Nov 2021 21:49:11 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_placement_policy.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_placement_policy.yaml index db23e1d2108..0a7187227d0 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_placement_policy.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_placement_policy.yaml @@ -25,7 +25,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:59:00 GMT + - Thu, 18 Nov 2021 21:48:03 GMT server: - Rocket status: @@ -57,7 +57,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:59:04 GMT + - Thu, 18 Nov 2021 21:48:07 GMT server: - Rocket status: @@ -96,7 +96,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:59:09 GMT + - Thu, 18 Nov 2021 21:48:11 GMT server: - Rocket status: @@ -134,7 +134,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:59:13 GMT + - Thu, 18 Nov 2021 21:48:15 GMT server: - Rocket status: @@ -166,7 +166,7 @@ interactions: content-length: - '0' date: - - Mon, 15 Nov 2021 18:59:17 GMT + - Thu, 18 Nov 2021 21:48:20 GMT server: - Rocket status: @@ -204,7 +204,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:59:21 GMT + - Thu, 18 Nov 2021 21:48:24 GMT server: - Rocket status: @@ -241,7 +241,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:59:26 GMT + - Thu, 18 Nov 2021 21:48:28 GMT server: - Rocket status: @@ -273,7 +273,7 @@ interactions: content-length: - '0' date: - - Mon, 15 Nov 2021 18:59:30 GMT + - Thu, 18 Nov 2021 21:48:32 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_script.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_script.yaml index 600ff85df8e..8194c38fbdf 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_script.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_script.yaml @@ -27,7 +27,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:59:00 GMT + - Thu, 18 Nov 2021 21:48:03 GMT server: - Rocket status: @@ -60,7 +60,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:59:04 GMT + - Thu, 18 Nov 2021 21:48:07 GMT server: - Rocket status: @@ -99,7 +99,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:59:09 GMT + - Thu, 18 Nov 2021 21:48:11 GMT server: - Rocket status: @@ -135,7 +135,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:59:13 GMT + - Thu, 18 Nov 2021 21:48:15 GMT server: - Rocket status: @@ -178,7 +178,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:59:17 GMT + - Thu, 18 Nov 2021 21:48:20 GMT server: - Rocket status: @@ -211,7 +211,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:59:22 GMT + - Thu, 18 Nov 2021 21:48:24 GMT server: - Rocket status: @@ -244,7 +244,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:59:26 GMT + - Thu, 18 Nov 2021 21:48:28 GMT server: - Rocket status: @@ -276,7 +276,7 @@ interactions: content-length: - '0' date: - - Mon, 15 Nov 2021 18:59:30 GMT + - Thu, 18 Nov 2021 21:48:32 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_virtual_machines.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_virtual_machines.yaml index 8070ac6fcce..d07483b97bc 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_virtual_machines.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_virtual_machines.yaml @@ -25,7 +25,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:59:13 GMT + - Thu, 18 Nov 2021 21:48:15 GMT server: - Rocket status: @@ -57,7 +57,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:59:17 GMT + - Thu, 18 Nov 2021 21:48:20 GMT server: - Rocket status: @@ -91,7 +91,7 @@ interactions: content-length: - '0' date: - - Mon, 15 Nov 2021 18:59:22 GMT + - Thu, 18 Nov 2021 21:48:24 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml index bac798da632..5c4930a9917 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml @@ -25,7 +25,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:59:43 GMT + - Thu, 18 Nov 2021 21:48:45 GMT server: - Rocket status: @@ -57,7 +57,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:59:47 GMT + - Thu, 18 Nov 2021 21:48:49 GMT server: - Rocket status: @@ -94,7 +94,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 18:59:51 GMT + - Thu, 18 Nov 2021 21:48:54 GMT server: - Rocket status: @@ -126,7 +126,7 @@ interactions: content-length: - '0' date: - - Mon, 15 Nov 2021 18:59:56 GMT + - Thu, 18 Nov 2021 21:48:58 GMT server: - Rocket status: @@ -163,7 +163,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 19:00:00 GMT + - Thu, 18 Nov 2021 21:49:02 GMT server: - Rocket status: @@ -201,7 +201,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 19:00:04 GMT + - Thu, 18 Nov 2021 21:49:06 GMT server: - Rocket status: @@ -233,7 +233,7 @@ interactions: content-length: - '0' date: - - Mon, 15 Nov 2021 19:00:08 GMT + - Thu, 18 Nov 2021 21:49:11 GMT server: - Rocket status: @@ -271,7 +271,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 19:00:13 GMT + - Thu, 18 Nov 2021 21:49:15 GMT server: - Rocket status: @@ -303,7 +303,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 19:00:17 GMT + - Thu, 18 Nov 2021 21:49:19 GMT server: - Rocket status: @@ -335,7 +335,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 19:00:21 GMT + - Thu, 18 Nov 2021 21:49:23 GMT server: - Rocket status: @@ -374,7 +374,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 19:00:26 GMT + - Thu, 18 Nov 2021 21:49:28 GMT server: - Rocket status: @@ -413,7 +413,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 19:00:30 GMT + - Thu, 18 Nov 2021 21:49:32 GMT server: - Rocket status: @@ -445,7 +445,7 @@ interactions: content-length: - '0' date: - - Mon, 15 Nov 2021 19:00:34 GMT + - Thu, 18 Nov 2021 21:49:37 GMT server: - Rocket status: @@ -477,7 +477,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 19:00:38 GMT + - Thu, 18 Nov 2021 21:49:41 GMT server: - Rocket status: @@ -509,7 +509,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 19:00:43 GMT + - Thu, 18 Nov 2021 21:49:46 GMT server: - Rocket status: @@ -548,7 +548,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 19:00:47 GMT + - Thu, 18 Nov 2021 21:49:50 GMT server: - Rocket status: @@ -587,7 +587,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 19:00:50 GMT + - Thu, 18 Nov 2021 21:49:54 GMT server: - Rocket status: @@ -619,7 +619,7 @@ interactions: content-length: - '0' date: - - Mon, 15 Nov 2021 19:00:56 GMT + - Thu, 18 Nov 2021 21:49:59 GMT server: - Rocket status: @@ -651,7 +651,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 19:01:00 GMT + - Thu, 18 Nov 2021 21:50:02 GMT server: - Rocket status: @@ -683,7 +683,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 19:01:04 GMT + - Thu, 18 Nov 2021 21:50:07 GMT server: - Rocket status: @@ -721,7 +721,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 19:01:08 GMT + - Thu, 18 Nov 2021 21:50:12 GMT server: - Rocket status: @@ -759,7 +759,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 19:01:13 GMT + - Thu, 18 Nov 2021 21:50:16 GMT server: - Rocket status: @@ -791,7 +791,7 @@ interactions: content-length: - '0' date: - - Mon, 15 Nov 2021 19:01:17 GMT + - Thu, 18 Nov 2021 21:50:21 GMT server: - Rocket status: @@ -823,7 +823,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 19:01:21 GMT + - Thu, 18 Nov 2021 21:50:25 GMT server: - Rocket status: @@ -855,7 +855,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 19:01:26 GMT + - Thu, 18 Nov 2021 21:50:30 GMT server: - Rocket status: @@ -894,7 +894,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 19:01:30 GMT + - Thu, 18 Nov 2021 21:50:34 GMT server: - Rocket status: @@ -933,7 +933,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 19:01:34 GMT + - Thu, 18 Nov 2021 21:50:39 GMT server: - Rocket status: @@ -965,7 +965,7 @@ interactions: content-length: - '0' date: - - Mon, 15 Nov 2021 19:01:39 GMT + - Thu, 18 Nov 2021 21:50:43 GMT server: - Rocket status: @@ -997,7 +997,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 19:01:43 GMT + - Thu, 18 Nov 2021 21:50:47 GMT server: - Rocket status: @@ -1029,7 +1029,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 19:01:47 GMT + - Thu, 18 Nov 2021 21:50:52 GMT server: - Rocket status: @@ -1066,7 +1066,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 19:01:52 GMT + - Thu, 18 Nov 2021 21:50:56 GMT server: - Rocket status: @@ -1098,7 +1098,7 @@ interactions: content-length: - '0' date: - - Mon, 15 Nov 2021 19:01:56 GMT + - Thu, 18 Nov 2021 21:51:01 GMT server: - Rocket status: @@ -1130,7 +1130,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 19:02:00 GMT + - Thu, 18 Nov 2021 21:51:05 GMT server: - Rocket status: @@ -1162,7 +1162,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 19:02:05 GMT + - Thu, 18 Nov 2021 21:51:09 GMT server: - Rocket status: @@ -1199,7 +1199,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 19:02:09 GMT + - Thu, 18 Nov 2021 21:51:14 GMT server: - Rocket status: @@ -1236,7 +1236,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 19:02:13 GMT + - Thu, 18 Nov 2021 21:51:18 GMT server: - Rocket status: @@ -1268,7 +1268,7 @@ interactions: content-length: - '0' date: - - Mon, 15 Nov 2021 19:02:18 GMT + - Thu, 18 Nov 2021 21:51:23 GMT server: - Rocket status: @@ -1300,7 +1300,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 19:02:21 GMT + - Thu, 18 Nov 2021 21:51:27 GMT server: - Rocket status: @@ -1332,7 +1332,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 19:02:26 GMT + - Thu, 18 Nov 2021 21:51:32 GMT server: - Rocket status: @@ -1364,7 +1364,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 19:02:31 GMT + - Thu, 18 Nov 2021 21:51:36 GMT server: - Rocket status: @@ -1396,7 +1396,7 @@ interactions: content-type: - application/json date: - - Mon, 15 Nov 2021 19:02:35 GMT + - Thu, 18 Nov 2021 21:51:40 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/test_vmware_scenario.py b/src/vmware/azext_vmware/tests/latest/test_vmware_scenario.py index a509d769615..d0e7ddb689f 100644 --- a/src/vmware/azext_vmware/tests/latest/test_vmware_scenario.py +++ b/src/vmware/azext_vmware/tests/latest/test_vmware_scenario.py @@ -95,5 +95,14 @@ def test_vmware(self): # delete the private cloud self.cmd('vmware private-cloud delete -g {rg} -n {privatecloud} --yes') + # set managed identity + self.cmd('vmware private-cloud identity assign -g {rg} -c {privatecloud} --system-assigned') + + # remove managed identity + self.cmd('vmware private-cloud identity remove -g {rg} -c {privatecloud}') + + # show managed identity + self.cmd('vmware private-cloud identity show -g {rg} -c {privatecloud}') + count = len(self.cmd('vmware private-cloud list -g {rg}').get_output_in_json()) self.assertEqual(count, 1, 'private cloud count expected to be 1') diff --git a/src/vmware/setup.py b/src/vmware/setup.py index 61f0ce212d4..ccc3715bee3 100644 --- a/src/vmware/setup.py +++ b/src/vmware/setup.py @@ -8,7 +8,7 @@ from io import open from setuptools import setup, find_packages -VERSION = "3.2.0" +VERSION = "4.0.0" with open('README.md', encoding='utf-8') as f: readme = f.read()