From e52ff28ed76e89169fe4e0a96235f1faaa2f5932 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 18 May 2021 02:25:26 +0000 Subject: [PATCH] CodeGen from PR 14215 in Azure/azure-rest-api-specs add AVS 2021-06-01 API (#14215) * add AVS 2021-06-01 API * add cmdlets custom word * rename ScriptCmdlet cmdletDescription to description (#14218) * Adding optional to the script parameter (#14437) Co-authored-by: David Becher Co-authored-by: david becher Co-authored-by: David Becher --- schemas/2021-06-01/Microsoft.AVS.json | 1929 ++++++++++++++++++++ schemas/common/autogeneratedResources.json | 48 + 2 files changed, 1977 insertions(+) create mode 100644 schemas/2021-06-01/Microsoft.AVS.json diff --git a/schemas/2021-06-01/Microsoft.AVS.json b/schemas/2021-06-01/Microsoft.AVS.json new file mode 100644 index 0000000000..d221723346 --- /dev/null +++ b/schemas/2021-06-01/Microsoft.AVS.json @@ -0,0 +1,1929 @@ +{ + "id": "https://schema.management.azure.com/schemas/2021-06-01/Microsoft.AVS.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.AVS", + "description": "Microsoft AVS Resource Types", + "resourceDefinitions": { + "privateClouds": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-06-01" + ] + }, + "location": { + "type": "string", + "description": "Resource location" + }, + "name": { + "type": "string", + "description": "Name of the private cloud" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/PrivateCloudProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of a private cloud resource" + }, + "resources": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/privateClouds_clusters_childResource" + }, + { + "$ref": "#/definitions/privateClouds_hcxEnterpriseSites_childResource" + }, + { + "$ref": "#/definitions/privateClouds_authorizations_childResource" + }, + { + "$ref": "#/definitions/privateClouds_globalReachConnections_childResource" + }, + { + "$ref": "#/definitions/privateClouds_cloudLinks_childResource" + }, + { + "$ref": "#/definitions/privateClouds_addons_childResource" + }, + { + "$ref": "#/definitions/privateClouds_scriptExecutions_childResource" + } + ] + } + }, + "sku": { + "oneOf": [ + { + "$ref": "#/definitions/Sku" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The resource model definition representing SKU" + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Resource tags" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.AVS/privateClouds" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "sku", + "type" + ], + "description": "Microsoft.AVS/privateClouds" + }, + "privateClouds_addons": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-06-01" + ] + }, + "name": { + "type": "string", + "description": "Name of the addon for the private cloud" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/AddonProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of an addon" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.AVS/privateClouds/addons" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.AVS/privateClouds/addons" + }, + "privateClouds_authorizations": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-06-01" + ] + }, + "name": { + "type": "string", + "description": "Name of the ExpressRoute Circuit Authorization in the private cloud" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.AVS/privateClouds/authorizations" + ] + } + }, + "required": [ + "apiVersion", + "name", + "type" + ], + "description": "Microsoft.AVS/privateClouds/authorizations" + }, + "privateClouds_cloudLinks": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-06-01" + ] + }, + "name": { + "type": "string", + "description": "Name of the cloud link resource" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/CloudLinkProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of a cloud link." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.AVS/privateClouds/cloudLinks" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.AVS/privateClouds/cloudLinks" + }, + "privateClouds_clusters": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-06-01" + ] + }, + "name": { + "type": "string", + "description": "Name of the cluster in the private cloud" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ClusterProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of a cluster" + }, + "resources": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/privateClouds_clusters_datastores_childResource" + } + ] + } + }, + "sku": { + "oneOf": [ + { + "$ref": "#/definitions/Sku" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The resource model definition representing SKU" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.AVS/privateClouds/clusters" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "sku", + "type" + ], + "description": "Microsoft.AVS/privateClouds/clusters" + }, + "privateClouds_clusters_datastores": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-06-01" + ] + }, + "name": { + "type": "string", + "description": "Name of the datastore in the private cloud cluster" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/DatastoreProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of a datastore" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.AVS/privateClouds/clusters/datastores" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.AVS/privateClouds/clusters/datastores" + }, + "privateClouds_globalReachConnections": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-06-01" + ] + }, + "name": { + "type": "string", + "description": "Name of the global reach connection in the private cloud" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/GlobalReachConnectionProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of a global reach connection" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.AVS/privateClouds/globalReachConnections" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.AVS/privateClouds/globalReachConnections" + }, + "privateClouds_hcxEnterpriseSites": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-06-01" + ] + }, + "name": { + "type": "string", + "description": "Name of the HCX Enterprise Site in the private cloud" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.AVS/privateClouds/hcxEnterpriseSites" + ] + } + }, + "required": [ + "apiVersion", + "name", + "type" + ], + "description": "Microsoft.AVS/privateClouds/hcxEnterpriseSites" + }, + "privateClouds_scriptExecutions": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-06-01" + ] + }, + "name": { + "type": "string", + "description": "Name of the user-invoked script execution resource" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ScriptExecutionProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties of a user-invoked script" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.AVS/privateClouds/scriptExecutions" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.AVS/privateClouds/scriptExecutions" + }, + "privateClouds_workloadNetworks_dhcpConfigurations": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-06-01" + ] + }, + "name": { + "type": "string", + "description": "NSX DHCP identifier. Generally the same as the DHCP display name" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/WorkloadNetworkDhcpEntity" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Base class for WorkloadNetworkDhcpServer and WorkloadNetworkDhcpRelay to inherit from" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations" + }, + "privateClouds_workloadNetworks_dnsServices": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-06-01" + ] + }, + "name": { + "type": "string", + "description": "NSX DNS Service identifier. Generally the same as the DNS Service's display name" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/WorkloadNetworkDnsServiceProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "NSX DNS Service Properties" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.AVS/privateClouds/workloadNetworks/dnsServices" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.AVS/privateClouds/workloadNetworks/dnsServices" + }, + "privateClouds_workloadNetworks_dnsZones": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-06-01" + ] + }, + "name": { + "type": "string", + "description": "NSX DNS Zone identifier. Generally the same as the DNS Zone's display name" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/WorkloadNetworkDnsZoneProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "NSX DNS Zone Properties" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.AVS/privateClouds/workloadNetworks/dnsZones" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.AVS/privateClouds/workloadNetworks/dnsZones" + }, + "privateClouds_workloadNetworks_portMirroringProfiles": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-06-01" + ] + }, + "name": { + "type": "string", + "description": "NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/WorkloadNetworkPortMirroringProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "NSX Port Mirroring Properties" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.AVS/privateClouds/workloadNetworks/portMirroringProfiles" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.AVS/privateClouds/workloadNetworks/portMirroringProfiles" + }, + "privateClouds_workloadNetworks_publicIPs": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-06-01" + ] + }, + "name": { + "type": "string", + "description": "NSX Public IP Block identifier. Generally the same as the Public IP Block's display name" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/WorkloadNetworkPublicIPProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "NSX Public IP Block Properties" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.AVS/privateClouds/workloadNetworks/publicIPs" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.AVS/privateClouds/workloadNetworks/publicIPs" + }, + "privateClouds_workloadNetworks_segments": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-06-01" + ] + }, + "name": { + "type": "string", + "description": "NSX Segment identifier. Generally the same as the Segment's display name" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/WorkloadNetworkSegmentProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "NSX Segment Properties" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.AVS/privateClouds/workloadNetworks/segments" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.AVS/privateClouds/workloadNetworks/segments" + }, + "privateClouds_workloadNetworks_vmGroups": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-06-01" + ] + }, + "name": { + "type": "string", + "description": "NSX VM Group identifier. Generally the same as the VM Group's display name" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/WorkloadNetworkVMGroupProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "NSX VM Group Properties" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.AVS/privateClouds/workloadNetworks/vmGroups" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.AVS/privateClouds/workloadNetworks/vmGroups" + } + }, + "definitions": { + "AddonHcxProperties": { + "type": "object", + "properties": { + "addonType": { + "type": "string", + "enum": [ + "HCX" + ] + }, + "offer": { + "type": "string", + "description": "The HCX offer, example VMware MaaS Cloud Provider (Enterprise)" + } + }, + "required": [ + "addonType", + "offer" + ], + "description": "The properties of an HCX addon" + }, + "AddonProperties": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/AddonSrmProperties" + }, + { + "$ref": "#/definitions/AddonVrProperties" + }, + { + "$ref": "#/definitions/AddonHcxProperties" + } + ], + "properties": {}, + "description": "The properties of an addon" + }, + "AddonSrmProperties": { + "type": "object", + "properties": { + "addonType": { + "type": "string", + "enum": [ + "SRM" + ] + }, + "licenseKey": { + "type": "string", + "description": "The Site Recovery Manager (SRM) license" + } + }, + "required": [ + "addonType", + "licenseKey" + ], + "description": "The properties of a Site Recovery Manager (SRM) addon" + }, + "AddonVrProperties": { + "type": "object", + "properties": { + "addonType": { + "type": "string", + "enum": [ + "VR" + ] + }, + "vrsCount": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The vSphere Replication Server (VRS) count" + } + }, + "required": [ + "addonType", + "vrsCount" + ], + "description": "The properties of a vSphere Replication (VR) addon" + }, + "Circuit": { + "type": "object", + "properties": {}, + "description": "An ExpressRoute Circuit" + }, + "CloudLinkProperties": { + "type": "object", + "properties": { + "linkedCloud": { + "type": "string", + "description": "Identifier of the other private cloud participating in the link." + } + }, + "description": "The properties of a cloud link." + }, + "ClusterProperties": { + "type": "object", + "properties": { + "clusterSize": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The cluster size" + }, + "provisioningState": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Succeeded", + "Failed", + "Cancelled", + "Deleting", + "Updating" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The state of the cluster provisioning." + } + }, + "description": "The properties of a cluster" + }, + "DatastoreProperties": { + "type": "object", + "properties": { + "diskPoolVolume": { + "oneOf": [ + { + "$ref": "#/definitions/DiskPoolVolume" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "An iSCSI volume from Microsoft.StoragePool provider" + }, + "netAppVolume": { + "oneOf": [ + { + "$ref": "#/definitions/NetAppVolume" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "An Azure NetApp Files volume from Microsoft.NetApp provider" + } + }, + "description": "The properties of a datastore" + }, + "DiskPoolVolume": { + "type": "object", + "properties": { + "lunName": { + "type": "string", + "description": "Name of the LUN to be used for datastore" + }, + "mountOption": { + "oneOf": [ + { + "type": "string", + "enum": [ + "MOUNT", + "ATTACH" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN." + }, + "targetId": { + "type": "string", + "description": "Azure resource ID of the iSCSI target" + } + }, + "required": [ + "lunName", + "targetId" + ], + "description": "An iSCSI volume from Microsoft.StoragePool provider" + }, + "GlobalReachConnectionProperties": { + "type": "object", + "properties": { + "authorizationKey": { + "type": "string", + "description": "Authorization key from the peer express route used for the global reach connection" + }, + "peerExpressRouteCircuit": { + "type": "string", + "description": "Identifier of the ExpressRoute Circuit to peer with in the global reach connection" + } + }, + "description": "The properties of a global reach connection" + }, + "IdentitySource": { + "type": "object", + "properties": { + "alias": { + "type": "string", + "description": "The domain's NetBIOS name" + }, + "baseGroupDN": { + "type": "string", + "description": "The base distinguished name for groups" + }, + "baseUserDN": { + "type": "string", + "description": "The base distinguished name for users" + }, + "domain": { + "type": "string", + "description": "The domain's dns name" + }, + "name": { + "type": "string", + "description": "The name of the identity source" + }, + "password": { + "type": "string", + "description": "The password of the Active Directory user with a minimum of read-only access to Base DN for users and groups." + }, + "primaryServer": { + "type": "string", + "description": "Primary server URL" + }, + "secondaryServer": { + "type": "string", + "description": "Secondary server URL" + }, + "ssl": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Protect LDAP communication using SSL certificate (LDAPS)." + }, + "username": { + "type": "string", + "description": "The ID of an Active Directory user with a minimum of read-only access to Base DN for users and group" + } + }, + "description": "vCenter Single Sign On Identity Source" + }, + "ManagementCluster": { + "type": "object", + "properties": { + "clusterSize": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The cluster size" + }, + "provisioningState": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Succeeded", + "Failed", + "Cancelled", + "Deleting", + "Updating" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The state of the cluster provisioning." + } + }, + "description": "The properties of a management cluster" + }, + "NetAppVolume": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Azure resource ID of the NetApp volume" + } + }, + "required": [ + "id" + ], + "description": "An Azure NetApp Files volume from Microsoft.NetApp provider" + }, + "PrivateCloudProperties": { + "type": "object", + "properties": { + "circuit": { + "oneOf": [ + { + "$ref": "#/definitions/Circuit" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "An ExpressRoute Circuit" + }, + "identitySources": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/IdentitySource" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "vCenter Single Sign On Identity Sources" + }, + "internet": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Connectivity to internet is enabled or disabled." + }, + "managementCluster": { + "oneOf": [ + { + "$ref": "#/definitions/ManagementCluster" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of a management cluster" + }, + "networkBlock": { + "type": "string", + "description": "The 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" + }, + "nsxtPassword": { + "type": "string", + "description": "Optionally, set the NSX-T Manager password when the private cloud is created" + }, + "vcenterPassword": { + "type": "string", + "description": "Optionally, set the vCenter admin password when the private cloud is created" + } + }, + "required": [ + "networkBlock" + ], + "description": "The properties of a private cloud resource" + }, + "privateClouds_addons_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-06-01" + ] + }, + "name": { + "type": "string", + "description": "Name of the addon for the private cloud" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/AddonProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of an addon" + }, + "type": { + "type": "string", + "enum": [ + "addons" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.AVS/privateClouds/addons" + }, + "privateClouds_authorizations_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-06-01" + ] + }, + "name": { + "type": "string", + "description": "Name of the ExpressRoute Circuit Authorization in the private cloud" + }, + "type": { + "type": "string", + "enum": [ + "authorizations" + ] + } + }, + "required": [ + "apiVersion", + "name", + "type" + ], + "description": "Microsoft.AVS/privateClouds/authorizations" + }, + "privateClouds_cloudLinks_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-06-01" + ] + }, + "name": { + "type": "string", + "description": "Name of the cloud link resource" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/CloudLinkProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of a cloud link." + }, + "type": { + "type": "string", + "enum": [ + "cloudLinks" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.AVS/privateClouds/cloudLinks" + }, + "privateClouds_clusters_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-06-01" + ] + }, + "name": { + "type": "string", + "description": "Name of the cluster in the private cloud" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ClusterProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of a cluster" + }, + "sku": { + "oneOf": [ + { + "$ref": "#/definitions/Sku" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The resource model definition representing SKU" + }, + "type": { + "type": "string", + "enum": [ + "clusters" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "sku", + "type" + ], + "description": "Microsoft.AVS/privateClouds/clusters" + }, + "privateClouds_clusters_datastores_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-06-01" + ] + }, + "name": { + "type": "string", + "description": "Name of the datastore in the private cloud cluster" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/DatastoreProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of a datastore" + }, + "type": { + "type": "string", + "enum": [ + "datastores" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.AVS/privateClouds/clusters/datastores" + }, + "privateClouds_globalReachConnections_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-06-01" + ] + }, + "name": { + "type": "string", + "description": "Name of the global reach connection in the private cloud" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/GlobalReachConnectionProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of a global reach connection" + }, + "type": { + "type": "string", + "enum": [ + "globalReachConnections" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.AVS/privateClouds/globalReachConnections" + }, + "privateClouds_hcxEnterpriseSites_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-06-01" + ] + }, + "name": { + "type": "string", + "description": "Name of the HCX Enterprise Site in the private cloud" + }, + "type": { + "type": "string", + "enum": [ + "hcxEnterpriseSites" + ] + } + }, + "required": [ + "apiVersion", + "name", + "type" + ], + "description": "Microsoft.AVS/privateClouds/hcxEnterpriseSites" + }, + "privateClouds_scriptExecutions_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-06-01" + ] + }, + "name": { + "type": "string", + "description": "Name of the user-invoked script execution resource" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ScriptExecutionProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties of a user-invoked script" + }, + "type": { + "type": "string", + "enum": [ + "scriptExecutions" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.AVS/privateClouds/scriptExecutions" + }, + "PSCredentialExecutionParameter": { + "type": "object", + "properties": { + "password": { + "type": "string", + "description": "password for login" + }, + "type": { + "type": "string", + "enum": [ + "Credential" + ] + }, + "username": { + "type": "string", + "description": "username for login" + } + }, + "required": [ + "type" + ], + "description": "a powershell credential object" + }, + "ScriptExecutionParameter": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/ScriptSecureStringExecutionParameter" + }, + { + "$ref": "#/definitions/ScriptStringExecutionParameter" + }, + { + "$ref": "#/definitions/PSCredentialExecutionParameter" + } + ], + "properties": { + "name": { + "type": "string", + "description": "The parameter name" + } + }, + "required": [ + "name" + ], + "description": "The arguments passed in to the execution" + }, + "ScriptExecutionProperties": { + "type": "object", + "properties": { + "failureReason": { + "type": "string", + "description": "Error message if the script was able to run, but if the script itself had errors or powershell threw an exception" + }, + "hiddenParameters": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ScriptExecutionParameter" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Parameters that will be hidden/not visible to ARM, such as passwords and credentials" + }, + "namedOutputs": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "object", + "properties": {} + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "User-defined dictionary." + }, + "output": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Standard output stream from the powershell execution" + }, + "parameters": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ScriptExecutionParameter" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Parameters the script will accept" + }, + "retention": { + "type": "string", + "description": "Time to live for the resource. If not provided, will be available for 60 days" + }, + "scriptCmdletId": { + "type": "string", + "description": "A reference to the script cmdlet resource if user is running a AVS script" + }, + "timeout": { + "type": "string", + "description": "Time limit for execution" + } + }, + "required": [ + "timeout" + ], + "description": "Properties of a user-invoked script" + }, + "ScriptSecureStringExecutionParameter": { + "type": "object", + "properties": { + "secureValue": { + "type": "string", + "description": "A secure value for the passed parameter, not to be stored in logs" + }, + "type": { + "type": "string", + "enum": [ + "SecureValue" + ] + } + }, + "required": [ + "type" + ], + "description": "a plain text value execution parameter" + }, + "ScriptStringExecutionParameter": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "Value" + ] + }, + "value": { + "type": "string", + "description": "The value for the passed parameter" + } + }, + "required": [ + "type" + ], + "description": "a plain text value execution parameter" + }, + "Sku": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the SKU." + } + }, + "required": [ + "name" + ], + "description": "The resource model definition representing SKU" + }, + "WorkloadNetworkDhcpEntity": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/WorkloadNetworkDhcpServer" + }, + { + "$ref": "#/definitions/WorkloadNetworkDhcpRelay" + } + ], + "properties": { + "displayName": { + "type": "string", + "description": "Display name of the DHCP entity." + }, + "revision": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "NSX revision number." + } + }, + "description": "Base class for WorkloadNetworkDhcpServer and WorkloadNetworkDhcpRelay to inherit from" + }, + "WorkloadNetworkDhcpRelay": { + "type": "object", + "properties": { + "dhcpType": { + "type": "string", + "enum": [ + "RELAY" + ] + }, + "serverAddresses": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "DHCP Relay Addresses. Max 3." + } + }, + "required": [ + "dhcpType" + ], + "description": "NSX DHCP Relay" + }, + "WorkloadNetworkDhcpServer": { + "type": "object", + "properties": { + "dhcpType": { + "type": "string", + "enum": [ + "SERVER" + ] + }, + "leaseTime": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "DHCP Server Lease Time." + }, + "serverAddress": { + "type": "string", + "description": "DHCP Server Address." + } + }, + "required": [ + "dhcpType" + ], + "description": "NSX DHCP Server" + }, + "WorkloadNetworkDnsServiceProperties": { + "type": "object", + "properties": { + "defaultDnsZone": { + "type": "string", + "description": "Default DNS zone of the DNS Service." + }, + "displayName": { + "type": "string", + "description": "Display name of the DNS Service." + }, + "dnsServiceIp": { + "type": "string", + "description": "DNS service IP of the DNS Service." + }, + "fqdnZones": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "FQDN zones of the DNS Service." + }, + "logLevel": { + "oneOf": [ + { + "type": "string", + "enum": [ + "DEBUG", + "INFO", + "WARNING", + "ERROR", + "FATAL" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "DNS Service log level." + }, + "revision": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "NSX revision number." + } + }, + "description": "NSX DNS Service Properties" + }, + "WorkloadNetworkDnsZoneProperties": { + "type": "object", + "properties": { + "displayName": { + "type": "string", + "description": "Display name of the DNS Zone." + }, + "dnsServerIps": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "DNS Server IP array of the DNS Zone." + }, + "dnsServices": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Number of DNS Services using the DNS zone." + }, + "domain": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Domain names of the DNS Zone." + }, + "revision": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "NSX revision number." + }, + "sourceIp": { + "type": "string", + "description": "Source IP of the DNS Zone." + } + }, + "description": "NSX DNS Zone Properties" + }, + "WorkloadNetworkPortMirroringProperties": { + "type": "object", + "properties": { + "destination": { + "type": "string", + "description": "Destination VM Group." + }, + "direction": { + "oneOf": [ + { + "type": "string", + "enum": [ + "INGRESS, EGRESS, BIDIRECTIONAL" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Direction of port mirroring profile." + }, + "displayName": { + "type": "string", + "description": "Display name of the port mirroring profile." + }, + "revision": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "NSX revision number." + }, + "source": { + "type": "string", + "description": "Source VM Group." + } + }, + "description": "NSX Port Mirroring Properties" + }, + "WorkloadNetworkPublicIPProperties": { + "type": "object", + "properties": { + "displayName": { + "type": "string", + "description": "Display name of the Public IP Block." + }, + "numberOfPublicIPs": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Number of Public IPs requested." + } + }, + "description": "NSX Public IP Block Properties" + }, + "WorkloadNetworkSegmentProperties": { + "type": "object", + "properties": { + "connectedGateway": { + "type": "string", + "description": "Gateway which to connect segment to." + }, + "displayName": { + "type": "string", + "description": "Display name of the segment." + }, + "revision": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "NSX revision number." + }, + "subnet": { + "oneOf": [ + { + "$ref": "#/definitions/WorkloadNetworkSegmentSubnet" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Subnet configuration for segment" + } + }, + "description": "NSX Segment Properties" + }, + "WorkloadNetworkSegmentSubnet": { + "type": "object", + "properties": { + "dhcpRanges": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "DHCP Range assigned for subnet." + }, + "gatewayAddress": { + "type": "string", + "description": "Gateway address." + } + }, + "description": "Subnet configuration for segment" + }, + "WorkloadNetworkVMGroupProperties": { + "type": "object", + "properties": { + "displayName": { + "type": "string", + "description": "Display name of the VM group." + }, + "members": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Virtual machine members of this group." + }, + "revision": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "NSX revision number." + } + }, + "description": "NSX VM Group Properties" + } + } +} \ No newline at end of file diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index edd94942fd..cfd5c05202 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -1789,6 +1789,54 @@ { "$ref": "https://schema.management.azure.com/schemas/2021-01-01-preview/Microsoft.AVS.json#/resourceDefinitions/privateClouds_workloadNetworks_vmGroups" }, + { + "$ref": "https://schema.management.azure.com/schemas/2021-06-01/Microsoft.AVS.json#/resourceDefinitions/privateClouds" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2021-06-01/Microsoft.AVS.json#/resourceDefinitions/privateClouds_addons" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2021-06-01/Microsoft.AVS.json#/resourceDefinitions/privateClouds_authorizations" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2021-06-01/Microsoft.AVS.json#/resourceDefinitions/privateClouds_cloudLinks" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2021-06-01/Microsoft.AVS.json#/resourceDefinitions/privateClouds_clusters" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2021-06-01/Microsoft.AVS.json#/resourceDefinitions/privateClouds_clusters_datastores" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2021-06-01/Microsoft.AVS.json#/resourceDefinitions/privateClouds_globalReachConnections" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2021-06-01/Microsoft.AVS.json#/resourceDefinitions/privateClouds_hcxEnterpriseSites" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2021-06-01/Microsoft.AVS.json#/resourceDefinitions/privateClouds_scriptExecutions" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2021-06-01/Microsoft.AVS.json#/resourceDefinitions/privateClouds_workloadNetworks_dhcpConfigurations" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2021-06-01/Microsoft.AVS.json#/resourceDefinitions/privateClouds_workloadNetworks_dnsServices" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2021-06-01/Microsoft.AVS.json#/resourceDefinitions/privateClouds_workloadNetworks_dnsZones" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2021-06-01/Microsoft.AVS.json#/resourceDefinitions/privateClouds_workloadNetworks_portMirroringProfiles" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2021-06-01/Microsoft.AVS.json#/resourceDefinitions/privateClouds_workloadNetworks_publicIPs" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2021-06-01/Microsoft.AVS.json#/resourceDefinitions/privateClouds_workloadNetworks_segments" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2021-06-01/Microsoft.AVS.json#/resourceDefinitions/privateClouds_workloadNetworks_vmGroups" + }, { "$ref": "https://schema.management.azure.com/schemas/2019-07-24-preview/Microsoft.AzureData.json#/resourceDefinitions/sqlServerRegistrations" },