Skip to content

Commit 4f597c6

Browse files
Migrate VMware from generation to main (#24050)
* Move VMware to main * Update Changelog.md --------- Co-authored-by: Yunchi Wang <[email protected]>
1 parent b49c123 commit 4f597c6

File tree

1,231 files changed

+139650
-35089
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,231 files changed

+139650
-35089
lines changed

src/VMware/VMware.Autorest/Az.VMware.format.ps1xml

Lines changed: 543 additions & 533 deletions
Large diffs are not rendered by default.
Lines changed: 20 additions & 156 deletions
Original file line numberDiff line numberDiff line change
@@ -1,159 +1,23 @@
1-
#
2-
# Module manifest for module 'Az.VMware'
3-
#
4-
# Generated by: Microsoft Corporation
5-
#
6-
# Generated on: 10/10/2022
7-
#
8-
91
@{
10-
11-
# Script module or binary module file associated with this manifest.
12-
RootModule = './Az.VMware.psm1'
13-
14-
# Version number of this module.
15-
ModuleVersion = '0.5.0'
16-
17-
# Supported PSEditions
18-
CompatiblePSEditions = 'Core', 'Desktop'
19-
20-
# ID used to uniquely identify this module
21-
GUID = '78d2fac8-ec90-47ad-b8aa-a27106b158f5'
22-
23-
# Author of this module
24-
Author = 'Microsoft Corporation'
25-
26-
# Company or vendor of this module
27-
CompanyName = 'Microsoft Corporation'
28-
29-
# Copyright statement for this module
30-
Copyright = 'Microsoft Corporation. All rights reserved.'
31-
32-
# Description of the functionality provided by this module
33-
Description = 'Microsoft Azure PowerShell: VMware cmdlets'
34-
35-
# Minimum version of the PowerShell engine required by this module
36-
PowerShellVersion = '5.1'
37-
38-
# Name of the PowerShell host required by this module
39-
# PowerShellHostName = ''
40-
41-
# Minimum version of the PowerShell host required by this module
42-
# PowerShellHostVersion = ''
43-
44-
# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
45-
DotNetFrameworkVersion = '4.7.2'
46-
47-
# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
48-
# ClrVersion = ''
49-
50-
# Processor architecture (None, X86, Amd64) required by this module
51-
# ProcessorArchitecture = ''
52-
53-
# Modules that must be imported into the global environment prior to importing this module
54-
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.10.2'; })
55-
56-
# Assemblies that must be loaded prior to importing this module
57-
RequiredAssemblies = './bin/Az.VMware.private.dll'
58-
59-
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
60-
# ScriptsToProcess = @()
61-
62-
# Type files (.ps1xml) to be loaded when importing this module
63-
# TypesToProcess = @()
64-
65-
# Format files (.ps1xml) to be loaded when importing this module
66-
FormatsToProcess = './Az.VMware.format.ps1xml'
67-
68-
# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
69-
# NestedModules = @()
70-
71-
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
72-
FunctionsToExport = 'Get-AzVMwareAddon', 'Get-AzVMwareAuthorization',
73-
'Get-AzVMwareCloudLink', 'Get-AzVMwareCluster',
74-
'Get-AzVMwareDatastore', 'Get-AzVMwareGlobalReachConnection',
75-
'Get-AzVMwarePlacementPolicy', 'Get-AzVMwarePrivateCloud',
76-
'Get-AzVMwarePrivateCloudAdminCredential',
77-
'Get-AzVMwareVirtualMachine', 'New-AzVMwareAddon',
78-
'New-AzVMwareAddonSrmPropertiesObject',
79-
'New-AzVMwareAddonVrPropertiesObject', 'New-AzVMwareAuthorization',
80-
'New-AzVMwareCloudLink', 'New-AzVMwareCluster',
81-
'New-AzVMwareDatastore', 'New-AzVMwareGlobalReachConnection',
82-
'New-AzVMwarePlacementPolicy', 'New-AzVMwarePrivateCloud',
83-
'New-AzVMwarePrivateCloudNsxtPassword',
84-
'New-AzVMwarePrivateCloudVcenterPassword',
85-
'New-AzVMwarePSCredentialExecutionParameterObject',
86-
'New-AzVMwareScriptSecureStringExecutionParameterObject',
87-
'New-AzVMwareScriptStringExecutionParameterObject',
88-
'New-AzVMwareVmHostPlacementPolicyPropertiesObject',
89-
'New-AzVMwareVMPlacementPolicyPropertiesObject',
90-
'Remove-AzVMwareAddon', 'Remove-AzVMwareAuthorization',
91-
'Remove-AzVMwareCloudLink', 'Remove-AzVMwareCluster',
92-
'Remove-AzVMwareDatastore', 'Remove-AzVMwareGlobalReachConnection',
93-
'Remove-AzVMwarePlacementPolicy', 'Remove-AzVMwarePrivateCloud',
94-
'Test-AzVMwareLocationQuotaAvailability',
95-
'Test-AzVMwareLocationTrialAvailability', 'Update-AzVMwareCluster',
96-
'Update-AzVMwarePlacementPolicy', 'Update-AzVMwarePrivateCloud'
97-
98-
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
99-
CmdletsToExport = @()
100-
101-
# Variables to export from this module
102-
# VariablesToExport = @()
103-
104-
# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
105-
AliasesToExport = '*'
106-
107-
# DSC resources to export from this module
108-
# DscResourcesToExport = @()
109-
110-
# List of all modules packaged with this module
111-
# ModuleList = @()
112-
113-
# List of all files packaged with this module
114-
# FileList = @()
115-
116-
# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell.
117-
PrivateData = @{
118-
2+
GUID = '6ced3ed2-fb86-4a72-aca7-369161b12fea'
3+
RootModule = './Az.VMware.psm1'
4+
ModuleVersion = '0.4.0'
5+
CompatiblePSEditions = 'Core', 'Desktop'
6+
Author = 'Microsoft Corporation'
7+
CompanyName = 'Microsoft Corporation'
8+
Copyright = 'Microsoft Corporation. All rights reserved.'
9+
Description = 'Microsoft Azure PowerShell: VMware cmdlets'
10+
PowerShellVersion = '5.1'
11+
DotNetFrameworkVersion = '4.7.2'
12+
RequiredAssemblies = './bin/Az.VMware.private.dll'
13+
FormatsToProcess = './Az.VMware.format.ps1xml'
14+
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'
15+
PrivateData = @{
11916
PSData = @{
120-
121-
# Tags applied to this module. These help with module discovery in online galleries.
122-
Tags = 'Azure','ResourceManager','ARM','PSModule','VMware'
123-
124-
# A URL to the license for this module.
125-
LicenseUri = 'https://aka.ms/azps-license'
126-
127-
# A URL to the main website for this project.
128-
ProjectUri = 'https://github.com/Azure/azure-powershell'
129-
130-
# A URL to an icon representing this module.
131-
# IconUri = ''
132-
133-
# ReleaseNotes of this module
134-
ReleaseNotes = '* Added cmdlet:
135-
- ''Get-AzVMwareDatastore''
136-
- ''New-AzVMwareDatastore''
137-
- ''Remove-AzVMwareDatastore'''
138-
139-
# Prerelease string of this module
140-
# Prerelease = ''
141-
142-
# Flag to indicate whether the module requires explicit user acceptance for install/update/save
143-
# RequireLicenseAcceptance = $false
144-
145-
# External dependent modules of this module
146-
# ExternalModuleDependencies = @()
147-
148-
} # End of PSData hashtable
149-
150-
} # End of PrivateData hashtable
151-
152-
# HelpInfo URI of this module
153-
# HelpInfoURI = ''
154-
155-
# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
156-
# DefaultCommandPrefix = ''
157-
17+
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'VMware'
18+
LicenseUri = 'https://aka.ms/azps-license'
19+
ProjectUri = 'https://github.com/Azure/azure-powershell'
20+
ReleaseNotes = ''
21+
}
22+
}
15823
}
159-

src/VMware/VMware.Autorest/README.md

Lines changed: 41 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,19 +47,17 @@ In this directory, run AutoRest:
4747
> see https://aka.ms/autorest
4848
4949
``` yaml
50-
branch: 2e665b044670074d91e8a9e6d04f23fbe3c8a06e
50+
commit: 0baf811c3c76c87b3c127d098519bd97141222dd
5151
require:
52-
- $(this-folder)/../readme.azure.noprofile.md
52+
- $(this-folder)/../../readme.azure.noprofile.md
5353
input-file:
54-
- $(repo)/specification/vmware/resource-manager/Microsoft.AVS/stable/2021-12-01/vmware.json
54+
- $(repo)/specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/vmware.json
5555

5656
module-version: 0.4.0
5757
title: VMware
5858
subject-prefix: $(service-name)
5959

60-
identity-correction-for-post: true
61-
resourcegroup-append: true
62-
nested-object-to-string: true
60+
support-json-input: false
6361

6462
directive:
6563
- from: swagger-document
@@ -83,7 +81,7 @@ directive:
8381
"format": "password"
8482
}
8583
- where:
86-
variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$
84+
variant: ^(Create|Update)(?!.*?Expanded)
8785
remove: true
8886
- where:
8987
variant: ^Restrict$|^RestrictViaIdentity$
@@ -121,12 +119,47 @@ directive:
121119
remove: true
122120
- where:
123121
verb: Test
124-
subject: ^LocationTrialAvailability$|^LocationQuotaAvailability$
122+
subject: ^LocationQuotaAvailability$
125123
variant: ^CheckViaIdentity$
126124
remove: true
125+
# Remove v4 variant
126+
- where:
127+
verb: Test
128+
subject: ^LocationTrialAvailability$
129+
variant: ^Check$|CheckViaIdentity
130+
remove: true
131+
- where:
132+
verb: New
133+
subject: PrivateCloud
134+
variant: CreateViaIdentityExpanded
135+
remove: true
136+
# custom set SKU Name optional
137+
# - where:
138+
# verb: Test
139+
# subject: ^LocationTrialAvailability$
140+
# hide: true
141+
# Remove the list variant as the workloadNetwork only have one enum value
142+
- where:
143+
verb: Get
144+
subject: WorkloadNetwork
145+
# variant: List
146+
hide: true
147+
# Hide parent object variant to fix 'multiple types define RestrictMovement [string, IVirtualMachineRestrictMovement]'
148+
- where:
149+
verb: Lock
150+
subject: VirtualMachineMovement
151+
variant: ^RestrictViaIdentityCluster$|^RestrictViaIdentityPrivateCloud$
152+
remove: true
153+
# Hide HcxEnterpriseSite, ScriptExecution, Addon update
154+
- where:
155+
verb: Update
156+
subject: HcxEnterpriseSite|ScriptExecution|Addon
157+
remove: true
127158
- no-inline:
128159
- AddonProperties
129160
- PlacementPolicyProperties
161+
- model-cmdlet:
162+
- model-name: IdentitySource
130163
# Re-name and custom it
131164
# - model-cmdlet:
132165
# - VMPlacementPolicyProperties
Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "locations",
3-
"apiVersion": "2021-12-01",
3+
"apiVersion": "2023-03-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.vmware"
66
},
@@ -37,39 +37,6 @@
3737
]
3838
}
3939
]
40-
},
41-
{
42-
"name": "Test-AzVMwareLocationTrialAvailability",
43-
"description": "Return trial status for subscription by region",
44-
"path": "/subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}/checkTrialAvailability",
45-
"help": {
46-
"learnMore": {
47-
"url": "https://learn.microsoft.com/powershell/module/az.vmware/test-azvmwarelocationtrialavailability"
48-
},
49-
"parameterSets": [
50-
{
51-
"parameters": [
52-
"-Location <String>",
53-
"[-SubscriptionId <String>]"
54-
]
55-
}
56-
]
57-
},
58-
"examples": [
59-
{
60-
"description": "Return trial status for subscription by region",
61-
"parameters": [
62-
{
63-
"name": "-Location",
64-
"value": "[Path.location]"
65-
},
66-
{
67-
"name": "-SubscriptionId",
68-
"value": "[Path.subscriptionId]"
69-
}
70-
]
71-
}
72-
]
7340
}
7441
]
7542
}

src/VMware/VMware.Autorest/UX/Microsoft.AVS/privateClouds-authorizations.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "privateClouds/authorizations",
3-
"apiVersion": "2021-12-01",
3+
"apiVersion": "2023-03-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.vmware"
66
},

src/VMware/VMware.Autorest/UX/Microsoft.AVS/privateClouds-cloudLinks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "privateClouds/cloudLinks",
3-
"apiVersion": "2021-12-01",
3+
"apiVersion": "2023-03-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.vmware"
66
},

src/VMware/VMware.Autorest/UX/Microsoft.AVS/privateClouds-clusters-datastores.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "privateClouds/clusters/datastores",
3-
"apiVersion": "2021-12-01",
3+
"apiVersion": "2023-03-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.vmware"
66
},

src/VMware/VMware.Autorest/UX/Microsoft.AVS/privateClouds-clusters-placementPolicies.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "privateClouds/clusters/placementPolicies",
3-
"apiVersion": "2021-12-01",
3+
"apiVersion": "2023-03-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.vmware"
66
},

src/VMware/VMware.Autorest/UX/Microsoft.AVS/privateClouds-clusters-virtualMachines.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "privateClouds/clusters/virtualMachines",
3-
"apiVersion": "2021-12-01",
3+
"apiVersion": "2023-03-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.vmware"
66
},

src/VMware/VMware.Autorest/UX/Microsoft.AVS/privateClouds-clusters.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "privateClouds/clusters",
3-
"apiVersion": "2021-12-01",
3+
"apiVersion": "2023-03-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.vmware"
66
},

0 commit comments

Comments
 (0)