Skip to content

Commit

Permalink
Az VMware Powershell Version 2023-09-01 (#24927)
Browse files Browse the repository at this point in the history
* Ran autorest

* update repo path in README.md file (input-file property)

* add/fix examples

* update docs

* added test recordings and updates from custom files

* fix example and docs errors and re-ran all recordings

* fix some examples and docs
  • Loading branch information
anaarias-msft authored May 27, 2024
1 parent 62f9a06 commit 36043e3
Show file tree
Hide file tree
Showing 178 changed files with 2,788 additions and 2,909 deletions.
2 changes: 1 addition & 1 deletion src/VMware/VMware.Autorest/Az.VMware.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
DotNetFrameworkVersion = '4.7.2'
RequiredAssemblies = './bin/Az.VMware.private.dll'
FormatsToProcess = './Az.VMware.format.ps1xml'
FunctionsToExport = 'Get-AzVMwareAddon', 'Get-AzVMwareAuthorization', 'Get-AzVMwareCloudLink', 'Get-AzVMwareCluster', 'Get-AzVMwareClusterZone', 'Get-AzVMwareDatastore', 'Get-AzVMwareGlobalReachConnection', 'Get-AzVMwarePlacementPolicy', 'Get-AzVMwarePrivateCloud', 'Get-AzVMwarePrivateCloudAdminCredential', 'Get-AzVMwareVirtualMachine', 'New-AzVMwareAddon', 'New-AzVMwareAddonSrmPropertiesObject', 'New-AzVMwareAddonVrPropertiesObject', 'New-AzVMwareAuthorization', 'New-AzVMwareCloudLink', 'New-AzVMwareCluster', 'New-AzVMwareDatastore', 'New-AzVMwareGlobalReachConnection', 'New-AzVMwareIdentitySourceObject', 'New-AzVMwarePlacementPolicy', 'New-AzVMwarePrivateCloud', 'New-AzVMwarePrivateCloudNsxtPassword', 'New-AzVMwarePrivateCloudVcenterPassword', 'New-AzVMwarePSCredentialExecutionParameterObject', 'New-AzVMwareScriptSecureStringExecutionParameterObject', 'New-AzVMwareScriptStringExecutionParameterObject', 'New-AzVMwareVmHostPlacementPolicyPropertiesObject', 'New-AzVMwareVMPlacementPolicyPropertiesObject', 'Remove-AzVMwareAddon', 'Remove-AzVMwareAuthorization', 'Remove-AzVMwareCloudLink', 'Remove-AzVMwareCluster', 'Remove-AzVMwareDatastore', 'Remove-AzVMwareGlobalReachConnection', 'Remove-AzVMwarePlacementPolicy', 'Remove-AzVMwarePrivateCloud', 'Test-AzVMwareLocationQuotaAvailability', 'Test-AzVMwareLocationTrialAvailability', 'Update-AzVMwareAuthorization', 'Update-AzVMwareCloudLink', 'Update-AzVMwareCluster', 'Update-AzVMwareDatastore', 'Update-AzVMwareGlobalReachConnection', 'Update-AzVMwarePlacementPolicy', 'Update-AzVMwarePrivateCloud'
FunctionsToExport = 'Get-AzVMwareAddon', 'Get-AzVMwareAuthorization', 'Get-AzVMwareCloudLink', 'Get-AzVMwareCluster', 'Get-AzVMwareClusterZone', 'Get-AzVMwareDatastore', 'Get-AzVMwareGlobalReachConnection', 'Get-AzVMwareIscsiPath', 'Get-AzVMwarePlacementPolicy', 'Get-AzVMwarePrivateCloud', 'Get-AzVMwarePrivateCloudAdminCredential', 'Get-AzVMwareVirtualMachine', 'New-AzVMwareAddon', 'New-AzVMwareAddonSrmPropertyObject', 'New-AzVMwareAddonVrPropertyObject', 'New-AzVMwareAuthorization', 'New-AzVMwareCloudLink', 'New-AzVMwareCluster', 'New-AzVMwareDatastore', 'New-AzVMwareGlobalReachConnection', 'New-AzVMwareIscsiPath', 'New-AzVMwarePlacementPolicy', 'New-AzVMwarePrivateCloud', 'New-AzVMwarePrivateCloudNsxtPassword', 'New-AzVMwarePrivateCloudVcenterPassword', 'New-AzVMwarePSCredentialExecutionParameterObject', 'New-AzVMwareScriptSecureStringExecutionParameterObject', 'New-AzVMwareScriptStringExecutionParameterObject', 'New-AzVMwareVmHostPlacementPolicyPropertyObject', 'New-AzVMwareVMPlacementPolicyPropertyObject', 'Remove-AzVMwareAddon', 'Remove-AzVMwareAuthorization', 'Remove-AzVMwareCloudLink', 'Remove-AzVMwareCluster', 'Remove-AzVMwareDatastore', 'Remove-AzVMwareGlobalReachConnection', 'Remove-AzVMwareIscsiPath', 'Remove-AzVMwarePlacementPolicy', 'Remove-AzVMwarePrivateCloud', 'Test-AzVMwareLocationQuotaAvailability', 'Test-AzVMwareLocationTrialAvailability', 'Update-AzVMwareAuthorization', 'Update-AzVMwareCloudLink', 'Update-AzVMwareCluster', 'Update-AzVMwareDatastore', 'Update-AzVMwareGlobalReachConnection', 'Update-AzVMwareIscsiPath', 'Update-AzVMwarePlacementPolicy', 'Update-AzVMwarePrivateCloud'
PrivateData = @{
PSData = @{
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'VMware'
Expand Down
31 changes: 14 additions & 17 deletions src/VMware/VMware.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
This directory contains the PowerShell module for the VMware service.

---
## Status
[![Az.VMware](https://img.shields.io/powershellgallery/v/Az.VMware.svg?style=flat-square&label=Az.VMware "Az.VMware")](https://www.powershellgallery.com/packages/Az.VMware/)

## Info
- Modifiable: yes
- Generated: all
Expand Down Expand Up @@ -47,17 +44,15 @@ In this directory, run AutoRest:
> see https://aka.ms/autorest
``` yaml
commit: 0baf811c3c76c87b3c127d098519bd97141222dd
commit: e934daa5febe039d94794aa0ffc53a7f996db11f
require:
- $(this-folder)/../../readme.azure.noprofile.md
input-file:
- $(repo)/specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/vmware.json
- $(repo)/specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/vmware.json

module-version: 0.4.0
title: VMware
subject-prefix: $(service-name)
disable-transform-identity-type: true
flatten-userassignedidentity: false

support-json-input: false

Expand Down Expand Up @@ -160,17 +155,19 @@ directive:
- no-inline:
- AddonProperties
- PlacementPolicyProperties
- model-cmdlet:
- model-name: IdentitySource
# Re-name and custom it
# - model-cmdlet:
# - VMPlacementPolicyProperties
# - VmHostPlacementPolicyProperties
# - ScriptSecureStringExecutionParameter
# - ScriptStringExecutionParameter
# - PSCredentialExecutionParameter
# - AddonSrmProperties
# - AddonVrProperties
- model-cmdlet:
- model-name: VMPlacementPolicyProperties
cmdlet-name: New-AzVMwareVMPlacementPolicyPropertyObject
- model-name: VmHostPlacementPolicyProperties
cmdlet-name: New-AzVMwareVmHostPlacementPolicyPropertyObject
# - model-name: ScriptSecureStringExecutionParameter
# - model-name: ScriptStringExecutionParameter
# - model-name: PSCredentialExecutionParameter
# - model-name: AddonSrmProperties
# cmdlet-name: New-AzVMwareAddonSrmPropertyObject
# - model-name: AddonVrProperties
# cmdlet-name: New-AzVMwareAddonVrPropertyObject
- where:
verb: Get
subject: ^PrivateCloudAdminCredentials$
Expand Down
2 changes: 1 addition & 1 deletion src/VMware/VMware.Autorest/UX/Microsoft.AVS/locations.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "locations",
"apiVersion": "2023-03-01",
"apiVersion": "2023-09-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.vmware"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"resourceType": "privateClouds/authorizations",
"apiVersion": "2023-03-01",
"apiVersion": "2023-09-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.vmware"
},
"commands": [
{
"name": "Get-AzVMwareAuthorization",
"description": "Get an ExpressRoute Circuit Authorization by name in a private cloud",
"description": "Get a ExpressRouteAuthorization",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}",
"help": {
"learnMore": {
Expand All @@ -26,7 +26,7 @@
},
"examples": [
{
"description": "Get an ExpressRoute Circuit Authorization by name in a private cloud",
"description": "Get a ExpressRouteAuthorization",
"parameters": [
{
"name": "-Name",
Expand All @@ -50,7 +50,7 @@
},
{
"name": "Remove-AzVMwareAuthorization",
"description": "Delete an ExpressRoute Circuit Authorization in a private cloud",
"description": "Delete a ExpressRouteAuthorization",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}",
"help": {
"learnMore": {
Expand All @@ -69,7 +69,7 @@
},
"examples": [
{
"description": "Delete an ExpressRoute Circuit Authorization in a private cloud",
"description": "Delete a ExpressRouteAuthorization",
"parameters": [
{
"name": "-Name",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"resourceType": "privateClouds/cloudLinks",
"apiVersion": "2023-03-01",
"apiVersion": "2023-09-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.vmware"
},
"commands": [
{
"name": "Get-AzVMwareCloudLink",
"description": "Get an cloud link by name in a private cloud",
"description": "Get a CloudLink",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}",
"help": {
"learnMore": {
Expand All @@ -26,7 +26,7 @@
},
"examples": [
{
"description": "Get an cloud link by name in a private cloud",
"description": "Get a CloudLink",
"parameters": [
{
"name": "-Name",
Expand All @@ -50,7 +50,7 @@
},
{
"name": "Remove-AzVMwareCloudLink",
"description": "Delete a cloud link in a private cloud",
"description": "Delete a CloudLink",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}",
"help": {
"learnMore": {
Expand All @@ -69,7 +69,7 @@
},
"examples": [
{
"description": "Delete a cloud link in a private cloud",
"description": "Delete a CloudLink",
"parameters": [
{
"name": "-Name",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"resourceType": "privateClouds/clusters/datastores",
"apiVersion": "2023-03-01",
"apiVersion": "2023-09-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.vmware"
},
"commands": [
{
"name": "Get-AzVMwareDatastore",
"description": "Get a datastore in a private cloud cluster",
"description": "Get a Datastore",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}",
"help": {
"learnMore": {
Expand All @@ -27,7 +27,7 @@
},
"examples": [
{
"description": "Get a datastore in a private cloud cluster",
"description": "Get a Datastore",
"parameters": [
{
"name": "-ClusterName",
Expand Down Expand Up @@ -55,7 +55,7 @@
},
{
"name": "Remove-AzVMwareDatastore",
"description": "Delete a datastore in a private cloud cluster",
"description": "Delete a Datastore",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}",
"help": {
"learnMore": {
Expand All @@ -75,7 +75,7 @@
},
"examples": [
{
"description": "Delete a datastore in a private cloud cluster",
"description": "Delete a Datastore",
"parameters": [
{
"name": "-ClusterName",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"resourceType": "privateClouds/clusters/placementPolicies",
"apiVersion": "2023-03-01",
"apiVersion": "2023-09-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.vmware"
},
"commands": [
{
"name": "Get-AzVMwarePlacementPolicy",
"description": "Get a placement policy by name in a private cloud cluster",
"description": "Get a PlacementPolicy",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}",
"help": {
"learnMore": {
Expand All @@ -27,7 +27,7 @@
},
"examples": [
{
"description": "Get a placement policy by name in a private cloud cluster",
"description": "Get a PlacementPolicy",
"parameters": [
{
"name": "-ClusterName",
Expand Down Expand Up @@ -55,7 +55,7 @@
},
{
"name": "Remove-AzVMwarePlacementPolicy",
"description": "Delete a placement policy in a private cloud cluster",
"description": "Delete a PlacementPolicy",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}",
"help": {
"learnMore": {
Expand All @@ -75,7 +75,7 @@
},
"examples": [
{
"description": "Delete a placement policy in a private cloud cluster",
"description": "Delete a PlacementPolicy",
"parameters": [
{
"name": "-ClusterName",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"resourceType": "privateClouds/clusters/virtualMachines",
"apiVersion": "2023-03-01",
"apiVersion": "2023-09-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.vmware"
},
"commands": [
{
"name": "Get-AzVMwareVirtualMachine",
"description": "Get a virtual machine by id in a private cloud cluster",
"description": "Get a VirtualMachine",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines/{virtualMachineId}",
"help": {
"learnMore": {
Expand All @@ -27,7 +27,7 @@
},
"examples": [
{
"description": "Get a virtual machine by id in a private cloud cluster",
"description": "Get a VirtualMachine",
"parameters": [
{
"name": "-ClusterName",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"resourceType": "privateClouds/clusters",
"apiVersion": "2023-03-01",
"apiVersion": "2023-09-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.vmware"
},
"commands": [
{
"name": "Get-AzVMwareCluster",
"description": "Get a cluster by name in a private cloud",
"description": "Get a Cluster",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}",
"help": {
"learnMore": {
Expand All @@ -26,7 +26,7 @@
},
"examples": [
{
"description": "Get a cluster by name in a private cloud",
"description": "Get a Cluster",
"parameters": [
{
"name": "-Name",
Expand All @@ -50,7 +50,7 @@
},
{
"name": "Remove-AzVMwareCluster",
"description": "Delete a cluster in a private cloud",
"description": "Delete a Cluster",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}",
"help": {
"learnMore": {
Expand All @@ -69,7 +69,7 @@
},
"examples": [
{
"description": "Delete a cluster in a private cloud",
"description": "Delete a Cluster",
"parameters": [
{
"name": "-Name",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"resourceType": "privateClouds/globalReachConnections",
"apiVersion": "2023-03-01",
"apiVersion": "2023-09-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.vmware"
},
"commands": [
{
"name": "Get-AzVMwareGlobalReachConnection",
"description": "Get a global reach connection by name in a private cloud",
"description": "Get a GlobalReachConnection",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}",
"help": {
"learnMore": {
Expand All @@ -26,7 +26,7 @@
},
"examples": [
{
"description": "Get a global reach connection by name in a private cloud",
"description": "Get a GlobalReachConnection",
"parameters": [
{
"name": "-Name",
Expand All @@ -50,7 +50,7 @@
},
{
"name": "Remove-AzVMwareGlobalReachConnection",
"description": "Delete a global reach connection in a private cloud",
"description": "Delete a GlobalReachConnection",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}",
"help": {
"learnMore": {
Expand All @@ -69,7 +69,7 @@
},
"examples": [
{
"description": "Delete a global reach connection in a private cloud",
"description": "Delete a GlobalReachConnection",
"parameters": [
{
"name": "-Name",
Expand Down
Loading

0 comments on commit 36043e3

Please sign in to comment.