-
Notifications
You must be signed in to change notification settings - Fork 576
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
base: main
Are you sure you want to change the base?
Conversation
Learn Build status updates of commit faf6a8e:
|
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.
This PR needs a lot of work.
- Please fix the style and formatting issues I identified.
- Add missing descriptions and examples.
- Fix all build warnings and errors.
- For signoff - see https://review.learn.microsoft.com/en-us/office-authoring-guide/quick-start/pubops-publishing-process?bc=%2Foffice-authoring-guide%2Fbreadcrumb%2Ftoc.json&toc=%2Foffice-authoring-guide%2Ftoc.json&branch=main&tabs=standard#merge-and-publish-your-content
{{ 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 }} | ||
|
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.
Fill in missing information for all cmdlets.
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.
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.
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. |
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.
- 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.
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 |
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.
- 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
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 |
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.
- Insert blank lines between Markdown block elements
### Example 1: Check Peering State | |
### Example 1: Check Peering State | |
### -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. |
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.
- 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/ |
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.
What is the URL here for? This looks like a duplicate line that needs to be removed.
### 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. |
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.
- Bold for parameter names
- backtick for cmdlets
- 100-char line wrap
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: |
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 online version:
metadata should be the URL that links to the published webpage. Note the pattern and fix this for all cmdlets.
online version: | |
online version: https://learn.microsoft.com/powershell/module/networkcontroller/get-networkcontrollerlearnedipaddress?view=windowsserver2025-ps |
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 |
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.
Most of this information belongs in an example.
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.
PR Summary
PR Checklist