Skip to main content

private_clouds

Creates, updates, deletes, gets or lists a private_clouds resource.

Overview

Nameprivate_clouds
TypeResource
Idazure_isv.avs.private_clouds

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
availabilityobjectProperties describing how the cloud is distributed across availability zones.
circuitobjectAn ExpressRoute Circuit.
dnsZoneTypestringThe type of DNS zone to use. Known values are: "Public" and "Private". (Public, Private)
encryptionobjectCustomer managed key encryption, can be enabled or disabled.
endpointsobjectThe endpoints.
extendedNetworkBlocksarrayArray of additional networks noncontiguous with networkBlock. Networks must be unique and non-overlapping across VNet in your subscription, on-premise, and this privateCloud networkBlock attribute. Make sure the CIDR format conforms to (A.B.C.D/X).
externalCloudLinksarrayArray of cloud link IDs from other clouds that connect to this one.
identityobjectThe managed service identities assigned to this resource.
identitySourcesarrayvCenter Single Sign On Identity Sources.
internetstringConnectivity to internet is enabled or disabled. Known values are: "Enabled" and "Disabled". (Enabled, Disabled)
locationstringThe geo-location where the resource lives. Required.
managementClusterobjectThe default cluster used for management. Required.
managementNetworkstringNetwork used to access vCenter Server and NSX-T Manager.
networkBlockstringThe block of addresses should be unique across VNet in your subscription as well as on-premise. Make sure the CIDR format is conformed to (A.B.C.D/X) where A,B,C,D are between 0 and 255, and X is between 0 and 22. Required.
nsxPublicIpQuotaRaisedstringFlag to indicate whether the private cloud has the quota for provisioned NSX Public IP count raised from 64 to 1024. Known values are: "Enabled" and "Disabled". (Enabled, Disabled)
nsxtCertificateThumbprintstringThumbprint of the NSX-T Manager SSL certificate.
nsxtPasswordstringOptionally, set the NSX-T Manager password when the private cloud is created.
provisioningNetworkstringUsed for virtual machine cold migration, cloning, and snapshot migration.
provisioningStatestringThe provisioning state. Known values are: "Succeeded", "Failed", "Canceled", "Cancelled", "Pending", "Building", "Deleting", and "Updating". (Succeeded, Failed, Canceled, Cancelled, Pending, Building, Deleting, Updating)
secondaryCircuitobjectA secondary expressRoute circuit from a separate AZ. Only present in a stretched private cloud.
skuobjectThe SKU (Stock Keeping Unit) assigned to this resource. Required.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
vcenterCertificateThumbprintstringThumbprint of the vCenter Server SSL certificate.
vcenterPasswordstringOptionally, set the vCenter admin password when the private cloud is created.
vcfLicenseobjectThe private cloud license.
virtualNetworkIdstringAzure resource ID of the virtual network.
vmotionNetworkstringUsed for live migration of virtual machines.
zonesarrayThe availability zones.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, private_cloud_name, subscription_idGet a PrivateCloud.
listselectresource_group_name, subscription_idList PrivateCloud resources by resource group.
list_in_subscriptionselectsubscription_idList PrivateCloud resources by subscription ID.
create_or_updateinsertresource_group_name, private_cloud_name, subscription_id, location, skuCreate a PrivateCloud.
updateupdateresource_group_name, private_cloud_name, subscription_idUpdate a PrivateCloud.
create_or_updatereplaceresource_group_name, private_cloud_name, subscription_id, location, skuCreate a PrivateCloud.
deletedeleteresource_group_name, private_cloud_name, subscription_idDelete a PrivateCloud.
list_admin_credentialsexecresource_group_name, private_cloud_name, subscription_idList the admin credentials for the private cloud.
get_vcf_licenseexecresource_group_name, private_cloud_name, subscription_idGet the license for the private cloud.
rotate_vcenter_passwordexecresource_group_name, private_cloud_name, subscription_idRotate the vCenter password.
rotate_nsxt_passwordexecresource_group_name, private_cloud_name, subscription_idRotate the NSX-T Manager password.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
private_cloud_namestringName of the private cloud. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Get a PrivateCloud.

SELECT
id,
name,
availability,
circuit,
dnsZoneType,
encryption,
endpoints,
extendedNetworkBlocks,
externalCloudLinks,
identity,
identitySources,
internet,
location,
managementCluster,
managementNetwork,
networkBlock,
nsxPublicIpQuotaRaised,
nsxtCertificateThumbprint,
nsxtPassword,
provisioningNetwork,
provisioningState,
secondaryCircuit,
sku,
systemData,
tags,
type,
vcenterCertificateThumbprint,
vcenterPassword,
vcfLicense,
virtualNetworkId,
vmotionNetwork,
zones
FROM azure_isv.avs.private_clouds
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND private_cloud_name = '{{ private_cloud_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create a PrivateCloud.

INSERT INTO azure_isv.avs.private_clouds (
tags,
location,
properties,
sku,
identity,
zones,
resource_group_name,
private_cloud_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ sku }}' /* required */,
'{{ identity }}',
'{{ zones }}',
'{{ resource_group_name }}',
'{{ private_cloud_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
identity,
location,
properties,
sku,
systemData,
tags,
type,
zones
;

UPDATE examples

Update a PrivateCloud.

UPDATE azure_isv.avs.private_clouds
SET
tags = '{{ tags }}',
sku = '{{ sku }}',
identity = '{{ identity }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND private_cloud_name = '{{ private_cloud_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
identity,
location,
properties,
sku,
systemData,
tags,
type,
zones;

REPLACE examples

Create a PrivateCloud.

REPLACE azure_isv.avs.private_clouds
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}',
sku = '{{ sku }}',
identity = '{{ identity }}',
zones = '{{ zones }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND private_cloud_name = '{{ private_cloud_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
AND sku = '{{ sku }}' --required
RETURNING
id,
name,
identity,
location,
properties,
sku,
systemData,
tags,
type,
zones;

DELETE examples

Delete a PrivateCloud.

DELETE FROM azure_isv.avs.private_clouds
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND private_cloud_name = '{{ private_cloud_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

List the admin credentials for the private cloud.

EXEC azure_isv.avs.private_clouds.list_admin_credentials 
@resource_group_name='{{ resource_group_name }}' --required,
@private_cloud_name='{{ private_cloud_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;