-
Notifications
You must be signed in to change notification settings - Fork 33
Add ESA support to New-AVSStoragePolicy #368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
bc31d39
8bcbf92
56bade3
9b6d938
6f88680
640923c
43dc458
2015c45
899f0da
8bbb8da
aefb5af
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -332,6 +332,46 @@ Function Convert-StringToArray { | |||||
|
|
||||||
| } | ||||||
|
|
||||||
| Function New-AVSTag{ | ||||||
| <# | ||||||
| .DESCRIPTION | ||||||
| This function creates or adds a tag w/ associated to an AVS Tag Category | ||||||
| .PARAMETER Name | ||||||
| Name of Tag to create or add. | ||||||
| .PARAMETER Description | ||||||
| Description of Tag. Description of existing tag will be updated if it already exists. | ||||||
| .PARAMETER Entity | ||||||
| vCenter Object to add tag to. | ||||||
| #> | ||||||
|
|
||||||
| [CmdletBinding()] | ||||||
| param ( | ||||||
| [Parameter(Mandatory = $true)] | ||||||
| [string] | ||||||
| $Name, | ||||||
| [Parameter(Mandatory = $false)] | ||||||
| [string] | ||||||
| $Description = "Category for AVS Operations" | ||||||
|
Comment on lines
+352
to
+354
|
||||||
| ) | ||||||
|
|
||||||
| # check or create AVS Tag Category | ||||||
| $TagCategory = Get-TagCategory -Name "AVS" -errorAction SilentlyContinue | ||||||
| If (!$TagCategory) { | ||||||
| $TagCategory = New-TagCategory -Name "AVS" -Description "Category for AVS Operations" -Cardinality:Multiple | ||||||
|
||||||
| $TagCategory = New-TagCategory -Name "AVS" -Description "Category for AVS Operations" -Cardinality:Multiple | |
| $TagCategory = New-TagCategory -Name "AVS" -Description "Category for AVS Operations" -Cardinality Single |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The New-AVSTag function's DESCRIPTION parameter documentation mentions an "Entity" parameter in line 343, but the function does not have an Entity parameter. The Entity parameter belongs to Add-AVSTag. Remove the Entity parameter mention from the New-AVSTag documentation.