Skip to content
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

Updated new powershell commandlets for Multisite #3815

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sliutwotwo
Copy link

@sliutwotwo sliutwotwo commented May 14, 2024

PR Summary

PR Checklist

  • Descriptive Title: This PR's title is a synopsis of the changes it proposes.
  • Summary: This PR's summary describes the scope and intent of the change.
  • Contributor's Guide: I have read the contributors guide.
  • Style: This PR adheres to the style guide.

Copy link
Contributor

Learn Build status updates of commit faf6a8e:

⚠️ Validation status: warnings

File Status Preview URL Details
docset/winserver2025-ps/networkcontroller/Set-NetworkControllerMultisiteConfiguration.md ⚠️Warning View (WindowsServer2025-ps) Details
docset/winserver2025-ps/networkcontroller/Get-NetworkControllerLearnedIpAddress.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/networkcontroller/Get-NetworkControllerMultisiteConfiguration.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/networkcontroller/Get-NetworkControllerMultisitePrimary.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/networkcontroller/Get-NetworkControllerSecurityTag.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/networkcontroller/New-NetworkControllerLearnedIpAddress.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/networkcontroller/New-NetworkControllerSecurityTag.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/networkcontroller/Remove-NetworkControllerLearnedIpAddress.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/networkcontroller/Remove-NetworkControllerSecurityTag.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/networkcontroller/Set-NetworkControllerMultisitePrimary.md ✅Succeeded View (WindowsServer2025-ps)

docset/winserver2025-ps/networkcontroller/Set-NetworkControllerMultisiteConfiguration.md

  • Line 0, Column 0: [Warning: disallowed-html-tag - See documentation] HTML tag 'NetworkControllerSite' isn't allowed. Replace it with approved Markdown or escape the brackets if the content is a placeholder.
  • Line 0, Column 0: [Warning: disallowed-html-tag - See documentation] HTML tag 'NetworkControllerSiteProperties' isn't allowed. Replace it with approved Markdown or escape the brackets if the content is a placeholder.

For more details, please refer to the build report.

Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

For any questions, please:

Copy link
Contributor

Learn Build status updates of commit 0894ed7:

✅ Validation status: passed

File Status Preview URL Details
docset/winserver2025-ps/networkcontroller/Get-NetworkControllerLearnedIpAddress.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/networkcontroller/Get-NetworkControllerMultisiteConfiguration.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/networkcontroller/Get-NetworkControllerMultisitePrimary.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/networkcontroller/Get-NetworkControllerSecurityTag.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/networkcontroller/New-NetworkControllerLearnedIpAddress.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/networkcontroller/New-NetworkControllerSecurityTag.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/networkcontroller/Remove-NetworkControllerLearnedIpAddress.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/networkcontroller/Remove-NetworkControllerSecurityTag.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/networkcontroller/Set-NetworkControllerMultisiteConfiguration.md ✅Succeeded View (WindowsServer2025-ps)
docset/winserver2025-ps/networkcontroller/Set-NetworkControllerMultisitePrimary.md ✅Succeeded View (WindowsServer2025-ps)

For more details, please refer to the build report.

For any questions, please:

Copy link
Contributor

@sdwheeler sdwheeler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR needs a lot of work.

Comment on lines +11 to +31
{{ Fill in the Synopsis }}

## SYNTAX

```
Get-NetworkControllerLearnedIpAddress [[-ResourceId] <String[]>] -ConnectionUri <Uri>
[-CertificateThumbprint <String>] [-Credential <PSCredential>] [-PassInnerException] [<CommonParameters>]
```

## DESCRIPTION
{{ Fill in the Description }}

## EXAMPLES

### Example 1
```powershell
PS C:\> {{ Add example code here }}
```

{{ Add example description here }}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fill in missing information for all cmdlets.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me remove these files from my pull request. Realizing now that I didn't mean to pull those in. I don't handle those features, so I'll defer content to the appropriate owners.

Comment on lines +21 to +22
The Get-NetworkControllerMultisiteConfiguration cmdlet gets current Multisite settings. Use this cmdlet to obtain site details, site names and encryption details.
This cmdlet can also be used as a sanity check for the state of a deployment, whether it is in an initiated state, failed state, successful state, etc.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Insert blank lines between Markdown block elements
  • Limit lines to 100 characters
  • Put cmdlet names in backticks
  • Don't use latin terms like etc. - the list of states is not needed at the front of the document. It should be documented in an example or in the NOTES section.
Suggested change
The Get-NetworkControllerMultisiteConfiguration cmdlet gets current Multisite settings. Use this cmdlet to obtain site details, site names and encryption details.
This cmdlet can also be used as a sanity check for the state of a deployment, whether it is in an initiated state, failed state, successful state, etc.
The `Get-NetworkControllerMultisiteConfiguration` cmdlet gets current Multisite settings. Use this
cmdlet to obtain site details, site names and encryption details. This cmdlet can also be used as a
sanity check for the state of a deployment.

See the following resources for style and formatting rules:


### Example 1: Check Peering State
```powershell
PS C:\> Get-NetworkControllerMultisiteConfiguration -ConnectionUri "https://site1.com" | ConvertTo-JSON -depth 100
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Limit code lines to 96 characters - use PowerShell natural line breaks to split code across lines
  • Don't include the PowerShell prompt in examples unless the example is referencing the prompt
  • Don't use quotes when not needed
    • Use single-quotes for strings that don't require expansion
    • Only use double-quotes for string that contain wildcards or expandable expressions
Suggested change
PS C:\> Get-NetworkControllerMultisiteConfiguration -ConnectionUri "https://site1.com" | ConvertTo-JSON -depth 100
Get-NetworkControllerMultisiteConfiguration -ConnectionUri https://site1.com |
ConvertTo-JSON -depth 100


## EXAMPLES

### Example 1: Check Peering State
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Insert blank lines between Markdown block elements
Suggested change
### Example 1: Check Peering State
### Example 1: Check Peering State

Comment on lines +34 to +36
### -CertificateThumbprint
Specifies the digital public key X.509 certificate of a user account that has permission to perform this action.
Specify this parameter only if you run this cmdlet on a computer that is not part of the network controller cluster.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Insert blank lines between Markdown block elements throughout all articles.
  • Reflow lines to break at 100 characters - Use the Reflow Markdown extension in VS Code to reflow paragraphs to fit the prescribed line length.


### System.Object

### System.Object#https://localhost/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the URL here for? This looks like a duplicate line that needs to be removed.

Suggested change
### System.Object#https://localhost/

```

### -PassInnerException
This thumbprint must also be provided in the ClientCertificateThumbprint parameter in the Install-NetworkController or Set-NetworkController cmdlet so that Network Controller can authorize this user.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Bold for parameter names
  • backtick for cmdlets
  • 100-char line wrap
Suggested change
This thumbprint must also be provided in the ClientCertificateThumbprint parameter in the Install-NetworkController or Set-NetworkController cmdlet so that Network Controller can authorize this user.
This thumbprint must also be provided in the **ClientCertificateThumbprint** parameter in the
`Install-NetworkController` or `Set-NetworkController` cmdlet so that Network Controller can
authorize this user.

---
external help file: Microsoft.NetworkController.Powershell.dll-help.xml
Module Name: NetworkController
online version:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The online version: metadata should be the URL that links to the published webpage. Note the pattern and fix this for all cmdlets.

Suggested change
online version:
online version: https://learn.microsoft.com/powershell/module/networkcontroller/get-networkcontrollerlearnedipaddress?view=windowsserver2025-ps

Comment on lines +174 to +186
Specifies a site configuration for Multisite Peering. Site configuration comes as a NetworkControllerMultisiteProperties object. This object can be defined as new-object Microsoft.Windows.NetworkController.NetworkControllerMultisiteProperties. Here are the following properties that can be changed:
- CertificateSubjectName
- [[Sites] \<NetworkControllerSite\>]
- ResourceID/RESTIPAddress
- IsPrimary
- State
- DeploymentID
- APIVersion
- ConfigurationState
- [[Properties] \<NetworkControllerSiteProperties\>]
- RestIPAddress
- CertificateSubjectName
- EncodedCertificate
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most of this information belongs in an example.

Suggested change
Specifies a site configuration for Multisite Peering. Site configuration comes as a NetworkControllerMultisiteProperties object. This object can be defined as new-object Microsoft.Windows.NetworkController.NetworkControllerMultisiteProperties. Here are the following properties that can be changed:
- CertificateSubjectName
- [[Sites] \<NetworkControllerSite\>]
- ResourceID/RESTIPAddress
- IsPrimary
- State
- DeploymentID
- APIVersion
- ConfigurationState
- [[Properties] \<NetworkControllerSiteProperties\>]
- RestIPAddress
- CertificateSubjectName
- EncodedCertificate
Specifies a site configuration for Multisite Peering. This parameter expects a
**NetworkControllerMultisiteProperties** object. Create a **NetworkControllerMultisiteProperties**
object containing the property values you want to set.

Talk about the settable properties in the example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants