Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
191 changes: 191 additions & 0 deletions src/Azs.Fabric.Admin/custom/Add-AzsScaleUnitNode.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,191 @@
<#
.Synopsis
Scales out a scale unit.
.Description
Scales out a scale unit.
.Example
To view examples, please use the -Online parameter with Get-Help or navigate to: https://docs.microsoft.com/en-us/powershell/module/azs.fabric.admin/add-azsscaleunitnode
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.FabricAdmin.Models.IFabricAdminIdentity
.Outputs
System.Boolean
.Notes
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.

INPUTOBJECT <IFabricAdminIdentity>: Identity Parameter
[Drive <String>]: Name of the storage drive.
[EdgeGateway <String>]: Name of the edge gateway.
[EdgeGatewayPool <String>]: Name of the edge gateway pool.
[FabricLocation <String>]: Fabric location.
[FileShare <String>]: Fabric file share name.
[IPPool <String>]: IP pool name.
[Id <String>]: Resource identity path
[InfraRole <String>]: Infrastructure role name.
[InfraRoleInstance <String>]: Name of an infrastructure role instance.
[Location <String>]: Location of the resource.
[LogicalNetwork <String>]: Name of the logical network.
[LogicalSubnet <String>]: Name of the logical subnet.
[MacAddressPool <String>]: Name of the MAC address pool.
[Operation <String>]: Operation identifier.
[ResourceGroupName <String>]: Name of the resource group.
[ScaleUnit <String>]: Name of the scale units.
[ScaleUnitNode <String>]: Name of the scale unit node.
[SlbMuxInstance <String>]: Name of a SLB MUX instance.
[StorageSubSystem <String>]: Name of the storage system.
[SubscriptionId <String>]: Subscription credentials that uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
[Volume <String>]: Name of the storage volume.
[BmciPv4Address <String>]: BMC address of the physical machine.
[ComputerName <String>]: Computer name of the physical machine.
.Link
https://docs.microsoft.com/en-us/powershell/module/azs.fabric.admin/add-azsscaleunitnode
#>
function Add-AzsScaleUnitNode {
[OutputType([System.Boolean])]
[CmdletBinding(DefaultParameterSetName='ScaleExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='Scale')]
[Parameter(ParameterSetName='ScaleExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.FabricAdmin.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.FabricAdmin.Runtime.DefaultInfo(Script='(Get-AzLocation)[0].Location')]
[System.String]
# Location of the resource.
${Location},

[Parameter(ParameterSetName='Scale')]
[Parameter(ParameterSetName='ScaleExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.FabricAdmin.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.FabricAdmin.Runtime.DefaultInfo(Script='-join("System.",(Get-AzLocation)[0].Location)')]
[System.String]
# Name of the resource group.
${ResourceGroupName},

[Parameter(ParameterSetName='Scale', Mandatory)]
[Parameter(ParameterSetName='ScaleExpanded', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.FabricAdmin.Category('Path')]
[System.String]
# Name of the scale units.
${ScaleUnit},

[Parameter(ParameterSetName='Scale')]
[Parameter(ParameterSetName='ScaleExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.FabricAdmin.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.FabricAdmin.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
# Subscription credentials that uniquely identify Microsoft Azure subscription.
# The subscription ID forms part of the URI for every service call.
${SubscriptionId},

[Parameter(ParameterSetName='ScaleViaIdentity', Mandatory, ValueFromPipeline)]
[Parameter(ParameterSetName='ScaleViaIdentityExpanded', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.FabricAdmin.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.FabricAdmin.Models.IFabricAdminIdentity]
# Identity Parameter
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},

[Parameter(ParameterSetName='ScaleExpanded')]
[Parameter(ParameterSetName='ScaleViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.FabricAdmin.Category('Body')]
[System.Management.Automation.SwitchParameter]
# Flag indicates if the operation should wait for storage to converge before returning.
${AwaitStorageConvergence},

[Parameter(ParameterSetName='ScaleExpanded', Mandatory)]
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.FabricAdmin.Category('Path')]
[System.String]
# BMC address of the physical machine.
${BmciPv4Address},

[Parameter(ParameterSetName='ScaleExpanded', Mandatory)]
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.FabricAdmin.Category('Path')]
[System.String]
# Computer name of the physical machine.
${ComputerName},

[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.FabricAdmin.Category('Azure')]
[System.Management.Automation.PSObject]
# The credentials, account, tenant, and subscription used for communication with Azure.
${DefaultProfile},

[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.FabricAdmin.Category('Runtime')]
[System.Management.Automation.SwitchParameter]
# Run the command as a job
${AsJob},

[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.FabricAdmin.Category('Runtime')]
[System.Management.Automation.SwitchParameter]
# Wait for .NET debugger to attach
${Break},

[Parameter(DontShow)]
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.FabricAdmin.Category('Runtime')]
[Microsoft.Azure.PowerShell.Cmdlets.FabricAdmin.Runtime.SendAsyncStep[]]
# SendAsync Pipeline Steps to be appended to the front of the pipeline
${HttpPipelineAppend},

[Parameter(DontShow)]
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.FabricAdmin.Category('Runtime')]
[Microsoft.Azure.PowerShell.Cmdlets.FabricAdmin.Runtime.SendAsyncStep[]]
# SendAsync Pipeline Steps to be prepended to the front of the pipeline
${HttpPipelinePrepend},

[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.FabricAdmin.Category('Runtime')]
[System.Management.Automation.SwitchParameter]
# Run the command asynchronously
${NoWait},

[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.FabricAdmin.Category('Runtime')]
[System.Management.Automation.SwitchParameter]
# Returns true when the command succeeds
${PassThru},

[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.FabricAdmin.Category('Runtime')]
[System.Uri]
# The URI for the proxy server to use
${Proxy},

[Parameter(DontShow)]
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.FabricAdmin.Category('Runtime')]
[System.Management.Automation.PSCredential]
# Credentials for a proxy server to use for the remote call
${ProxyCredential},

[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.FabricAdmin.Category('Runtime')]
[System.Management.Automation.SwitchParameter]
# Use the default credentials for the proxy
${ProxyUseDefaultCredentials}
)

process {

$NewNode = New-Object -TypeName Microsoft.Azure.PowerShell.Cmdlets.FabricAdmin.Models.Api20160501.ScaleOutScaleUnitParameters
$NewNode.BmciPv4Address = ${BmciPv4Address}
$NewNode.ComputerName = ${ComputerName}
$PSBoundParameters['NodeList'] = $NewNode

if ($PSBoundParameters.ContainsKey(('BmciPv4Address'))){
$null = $PSBoundParameters.Remove('BmciPv4Address')
}

if ($PSBoundParameters.ContainsKey(('ComputerName'))){
$null = $PSBoundParameters.Remove('ComputerName')
}

Azs.Fabric.Admin.internal\Add-AzsScaleUnitNode @PSBoundParameters
}
}
14 changes: 0 additions & 14 deletions src/Azs.Fabric.Admin/custom/Disable-AzsScaleUnitNode.ps1
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@

# ----------------------------------------------------------------------------------
#
# Copyright Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ----------------------------------------------------------------------------------
<#
.Synopsis
Start maintenance mode for a scale unit node.
Expand Down
14 changes: 0 additions & 14 deletions src/Azs.Fabric.Admin/custom/Enable-AzsScaleUnitNode.ps1
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@

# ----------------------------------------------------------------------------------
#
# Copyright Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ----------------------------------------------------------------------------------
<#
.Synopsis
Stop maintenance mode for a scale unit node.
Expand Down
14 changes: 0 additions & 14 deletions src/Azs.Fabric.Admin/custom/Get-AzsEdgeGateway.ps1
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@

# ----------------------------------------------------------------------------------
#
# Copyright Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ----------------------------------------------------------------------------------
<#
.Synopsis
Returns the requested edge gateway.
Expand Down
14 changes: 0 additions & 14 deletions src/Azs.Fabric.Admin/custom/Get-AzsEdgeGatewayPool.ps1
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@

# ----------------------------------------------------------------------------------
#
# Copyright Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ----------------------------------------------------------------------------------
<#
.Synopsis
Returns the requested edge gateway pool object.
Expand Down
14 changes: 0 additions & 14 deletions src/Azs.Fabric.Admin/custom/Get-AzsIPPool.ps1
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@

# ----------------------------------------------------------------------------------
#
# Copyright Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ----------------------------------------------------------------------------------
<#
.Synopsis
Return the requested IP pool.
Expand Down
14 changes: 0 additions & 14 deletions src/Azs.Fabric.Admin/custom/Get-AzsInfrastructureRole.ps1
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@

# ----------------------------------------------------------------------------------
#
# Copyright Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ----------------------------------------------------------------------------------
<#
.Synopsis
Returns the requested infrastructure role description.
Expand Down
14 changes: 0 additions & 14 deletions src/Azs.Fabric.Admin/custom/Get-AzsInfrastructureRoleInstance.ps1
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@

# ----------------------------------------------------------------------------------
#
# Copyright Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ----------------------------------------------------------------------------------
<#
.Synopsis
Return the requested infrastructure role instance.
Expand Down
14 changes: 0 additions & 14 deletions src/Azs.Fabric.Admin/custom/Get-AzsLogicalNetwork.ps1
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@

# ----------------------------------------------------------------------------------
#
# Copyright Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ----------------------------------------------------------------------------------
<#
.Synopsis
Returns the requested logical network.
Expand Down
14 changes: 0 additions & 14 deletions src/Azs.Fabric.Admin/custom/Get-AzsLogicalSubnet.ps1
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@

# ----------------------------------------------------------------------------------
#
# Copyright Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ----------------------------------------------------------------------------------
<#
.Synopsis
Returns the requested logical subnet.
Expand Down
14 changes: 0 additions & 14 deletions src/Azs.Fabric.Admin/custom/Get-AzsMacAddressPool.ps1
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@

# ----------------------------------------------------------------------------------
#
# Copyright Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ----------------------------------------------------------------------------------
<#
.Synopsis
Returns the requested MAC address pool.
Expand Down
14 changes: 0 additions & 14 deletions src/Azs.Fabric.Admin/custom/Get-AzsScaleUnit.ps1
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@

# ----------------------------------------------------------------------------------
#
# Copyright Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ----------------------------------------------------------------------------------
<#
.Synopsis
Returns the requested scale unit.
Expand Down
Loading