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
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,28 @@
</TableRowEntries>
</TableControl>
</View>
<View>
<Name>Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.DynamicSizing</Name>
<ViewSelectedBy>
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.DynamicSizing#Multiple</TypeName>
</ViewSelectedBy>
<TableControl>
<TableHeaders>
<TableColumnHeader>
<Label>Enabled</Label>
</TableColumnHeader>
</TableHeaders>
<TableRowEntries>
<TableRowEntry>
<TableColumnItems>
<TableColumnItem>
<PropertyName>Enabled</PropertyName>
</TableColumnItem>
</TableColumnItems>
</TableRowEntry>
</TableRowEntries>
</TableControl>
</View>
<View>
<Name>Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ErrorDetail</Name>
<ViewSelectedBy>
Expand Down Expand Up @@ -710,6 +732,9 @@
<TableColumnHeader>
<Label>MinReadyCapacity</Label>
</TableColumnHeader>
<TableColumnHeader>
<Label>PostProvisioningDelay</Label>
</TableColumnHeader>
</TableHeaders>
<TableRowEntries>
<TableRowEntry>
Expand All @@ -720,6 +745,9 @@
<TableColumnItem>
<PropertyName>MinReadyCapacity</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>PostProvisioningDelay</PropertyName>
</TableColumnItem>
</TableColumnItems>
</TableRowEntry>
</TableRowEntries>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@{
GUID = 'bb1182ed-2a39-47be-8b39-46b13e973cea'
RootModule = './Az.StandbyPool.psm1'
ModuleVersion = '0.1.0'
ModuleVersion = '0.4.0'
CompatiblePSEditions = 'Core', 'Desktop'
Author = 'Microsoft Corporation'
CompanyName = 'Microsoft Corporation'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - StandbyPool")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.2.1")]
[assembly: System.Reflection.AssemblyVersionAttribute("0.2.1")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")]
[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,7 @@ begin {

$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
exit
throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}

if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,7 @@ begin {

$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
exit
throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}

if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,7 @@ begin {

$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
exit
throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}

if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,7 @@ begin {

$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
exit
throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}

if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

<#
.Synopsis
create a StandbyContainerGroupPoolResource
Create a StandbyContainerGroupPoolResource
.Description
create a StandbyContainerGroupPoolResource
Create a StandbyContainerGroupPoolResource
.Example
New-AzStandbyContainerGroupPool `
-Name testPool `
Expand All @@ -31,6 +31,7 @@ New-AzStandbyContainerGroupPool `
-ProfileRevision 1 `
-SubnetId @{id="/subscriptions/f8da6e30-a9d8-48ab-b05c-3f7fe482e13b/resourceGroups/test-standbypool/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/default"} `
-Zone @("1", "2", "3") `
-DynamicSizingEnabled

.Outputs
Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResource
Expand Down Expand Up @@ -82,6 +83,12 @@ param(
# Specifies container group profile id of standby container groups.
${ContainerProfileId},

[Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Category('Body')]
[System.Management.Automation.SwitchParameter]
# Indicates whether dynamic sizing is enabled for the standby pool.
${DynamicSizingEnabled},

[Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Category('Body')]
[System.Int64]
Expand Down Expand Up @@ -208,8 +215,7 @@ begin {

$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
exit
throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}

if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

<#
.Synopsis
create a StandbyVirtualMachinePoolResource
Create a StandbyVirtualMachinePoolResource
.Description
create a StandbyVirtualMachinePoolResource
Create a StandbyVirtualMachinePoolResource
.Example
New-AzStandbyVMPool `
-Name testPool `
Expand All @@ -28,7 +28,9 @@ New-AzStandbyVMPool `
-VMSSId /subscriptions/f8da6e30-a9d8-48ab-b05c-3f7fe482e13b/resourceGroups/test-standbypool/providers/Microsoft.Compute/virtualMachineScaleSets/test-vmss `
-MaxReadyCapacity 1 `
-MinReadyCapacity 1 `
-VMState Running
-VMState Running `
-DynamicSizingEnabled `
-PostProvisioningDelay "PT2S"

.Outputs
Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResource
Expand Down Expand Up @@ -67,6 +69,12 @@ param(
# The geo-location where the resource lives
${Location},

[Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Category('Body')]
[System.Management.Automation.SwitchParameter]
# Indicates whether dynamic sizing is enabled for the standby pool.
${DynamicSizingEnabled},

[Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Category('Body')]
[System.Int64]
Expand All @@ -80,6 +88,13 @@ param(
# MinReadyCapacity cannot exceed MaxReadyCapacity.
${MinReadyCapacity},

[Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Category('Body')]
[System.String]
# Specifies the duration to wait after virtual machine provisioning before the virtual machine becomes available for use.
# The duration should be specified in ISO 8601 format (e.g., PT2S for 2 seconds).
${PostProvisioningDelay},

[Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ITrackedResourceTags]))]
Expand Down Expand Up @@ -186,8 +201,7 @@ begin {

$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
exit
throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}

if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
Expand Down
Loading
Loading