-
Notifications
You must be signed in to change notification settings - Fork 4k
Remove Zones support in Resource cmdlets. #2980
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
Conversation
@TianoMS Updates to help? |
@TianoMS Hey Tian, would you mind pulling from dev to get the fix we made for on-demand builds? |
@@ -305,6 +305,9 @@ | |||
<ListItem> | |||
<Label>ZoneMappings</Label> | |||
<PropertyName>ZoneMappings</PropertyName> | |||
<ItemSelectionCondition> |
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.
Just confirming if we still need this. Are they ok with us displaying zone mappings if RPs do return the info back?
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.
I removed the zoneMappings from format file.
@cormacpayne I did a sync and submitted another on demand job. |
@vivsriaus no need to update help as I didn't add the information about zones there. |
@TianoMS LGTM then |
/// Gets or sets the zones. | ||
/// </summary> | ||
[Parameter(Mandatory = false, HelpMessage = "The zones.")] | ||
public string[] Zones { get; set; } |
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.
@TianoMS this is a breaking change; scripts using the Zones
parameter for this cmdlet will no longer work
/// Gets or sets the zones. | ||
/// </summary> | ||
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The zones.")] | ||
public string[] Zones { get; set; } |
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.
@TianoMS same as above
Comments
This checklist is used to make sure that common issues in a pull request are covered by the creator. You can find a more complete discussion of PowerShell cmdlet best practices here.
Below in Overall Changes, check off the boxes that apply to your PR. For the categories that you did not check off, you can remove them from this body. Within each of the categories that you did select, make sure that you can check off all of the boxes.
For information on cleaning up the commits in your pull request, click here.
Overall Changes
General
Tests
Cmdlet Signature
VerbsCommon
,VerbsCommunication
,VerbsLifecycle
,VerbsOther
whenever possibleOutputType
attribute if any output is produced; if the cmdlet produces no output, it should implement aPassThrough
parameterShouldProcess
and haveSupportShouldProcess = true
specified in the cmdlet attribute. See a discussion about correctShouldProcess
implementation hereDefaultParameterSetName
in its cmdlet attributeParameters
object
.ResourceGroup
type string marked as [ValueFromPipelineByPropertyName]ResourceName
type string marked as [ValueFromPipelineByPropertyName]HashTable
Parameters and the Pipeline
object
ResourceGroupName
andName
from the pipeline by property valueGet
andNew
cmdlets to the input ofSet
,Update
,Remove
and other action cmdlets for that resource