Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
c5e5d38
ACR Admin module Initial version (#130)
bganapa Aug 23, 2021
ad20aef
Fixes for Azs.Compute.Admin powershell module (#127)
travist13 Aug 23, 2021
b12eda3
new diskrp admin powershell sdk (#116)
FireDefend Aug 24, 2021
3e8d2ca
Initial version of Azurestack Aks admin cmdlets (#109)
Bhuvaneswari-Santharam Sep 1, 2021
39ac2ee
ACR Admin module - Pester Test fixes (#124)
larisaborodina Sep 1, 2021
9ee22f5
[2108][ContainerRegistry] Make examples return correct json format. (…
larisaborodina Sep 15, 2021
32f750c
[2108] Updating versions and release notes for the AzureStack release…
bganapa Sep 17, 2021
6c1335e
[ACR Admin] Customization Quota cmdlets to rename parameter to plural…
larisaborodina Sep 28, 2021
a56e9cf
All Configuration related cmdlet should take parameter name as Name i…
larisaborodina Oct 15, 2021
0f81243
Updating to point to stack2108 branch of specs repo
bganapa Nov 9, 2021
e7a9d80
Fix - Including Fabric.Admin as part of AzureStack Nuspec
bganapa Nov 29, 2021
d9e5e70
Exclude Id from output table view
bganapa Dec 6, 2021
919c77d
Suppressing the table format view for MigrationSubTask
bganapa Dec 6, 2021
4fa47a1
Updating Az.Resources module dependency to 0.12.0
bganapa Dec 8, 2021
42863f9
Updating module versions for the Az.Resources update
bganapa Dec 11, 2021
8de090b
Moving RequiredModules metadata to readme.azurestack.md
bganapa Dec 11, 2021
7d2ddd2
Updating AzureStack nuspec for module version updates
bganapa Dec 11, 2021
47dfdf4
Updating change log for az.resources module dependency
bganapa Dec 14, 2021
01c0015
Minor fix in download nupkg script
bganapa Dec 8, 2021
ef55ed0
Updating the specs repo branch back to main
bganapa Jan 4, 2022
a0a7823
Merge pull request #141 from yanqiongchen/backup-admin-update
yanqiongchen Jan 25, 2022
1c76452
Add Get-AzsComputeScaleUnit command, docs, and examples
travist13 Oct 15, 2021
d203a1e
DiskRP migration progress change
RemindD Feb 15, 2022
7bc6c85
Fixing build break with cherry picking DiskRP commit.
travist13 Feb 22, 2022
c3292bf
Removing generated psd1 file.
travist13 Feb 25, 2022
b3a848e
Update recordings for non-disk tests.
travist13 Mar 18, 2022
322541f
Updating all recordings.
travist13 Mar 21, 2022
31ff8af
Fix up Add-AzsPlatformImage recording for azure management endpoint.
travist13 Mar 21, 2022
74d9721
Replacing local guid value for remote guid value in recording jsons.
travist13 Mar 23, 2022
a3cae5b
Updating platformimage and diskmigrationjob recordings.
travist13 Mar 28, 2022
cdeb49c
Updating Enable compute user subscription feature recording.
travist13 Mar 28, 2022
8eb9927
Updating compute admin version string in readme.md
travist13 Mar 28, 2022
44724be
Updated changelog
travist13 Mar 28, 2022
6261440
Updating admin compute version for psd1 and nuspec
travist13 Mar 28, 2022
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
2 changes: 1 addition & 1 deletion src/Az.BootStrapper/Module/Az.BootStrapper.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
RootModule = 'Az.Bootstrapper.psm1'

# Version number of this module.
ModuleVersion = '1.0.1'
ModuleVersion = '1.0.2'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down
4 changes: 2 additions & 2 deletions src/Az.BootStrapper/Module/azprofilemap.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
},
"2020-09-01-hybrid": {
"Az": [
"1.10.0"
"2.0.1"
],
"Az.Accounts": [
"2.2.8"
Expand Down Expand Up @@ -78,7 +78,7 @@
"1.2.0"
],
"Az.Resources": [
"0.11.0"
"0.12.0"
],
"Az.Storage": [
"2.6.2"
Expand Down
9 changes: 2 additions & 7 deletions src/Azs.AzureBridge.Admin/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ metadata:
description: 'Microsoft AzureStack PowerShell: AzureBridge Admin cmdlets'

subject-prefix: AzureBridge
module-version: 1.0.1
module-version: 1.0.2
identity-correction-for-post: true
service-name: BridgeAdmin

Expand Down Expand Up @@ -127,12 +127,7 @@ directive:
# Add Az.Accounts/Az.Resources as dependencies
- from: Azs.Azurebridge.Admin.nuspec
where: $
transform: $ = $.replace('<dependency id="Az.Accounts" version="2.2.3" />', '<dependency id="Az.Accounts" version="[2.2.8]" />\n <dependency id="Az.Resources" version="[0.11.0]" />');

# PSD1 changes for RequiredModules
- from: source-file-csharp
where: $
transform: $ = $.replace('sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.Azurebridge.Admin.private.dll\"\}\'\"\);', 'sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.Azurebridge.Admin.private.dll\"\}\'\"\);\n sb.AppendLine\(\$@\"\{Indent\}RequiredModules = @\(@\{\{ModuleName = \'Az.Accounts\'; RequiredVersion = \'2.2.8\'; \}\}, @\{\{ModuleName = \'Az.Resources\'; RequiredVersion = \'0.11.0\'; \}\}\)\"\);');
transform: $ = $.replace('<dependency id="Az.Accounts" version="2.2.3" />', '<dependency id="Az.Accounts" version="[2.2.8]" />\n <dependency id="Az.Resources" version="[0.12.0]" />');

# PSD1 changes for ReleaseNotes
- from: source-file-csharp
Expand Down
1 change: 1 addition & 0 deletions src/Azs.Backup.Admin/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ internal
exports
tools
custom/*.psm1
custom/autogen-model-cmdlets
test/*-TestResults.xml
/*.ps1
/*.ps1xml
Expand Down
135 changes: 135 additions & 0 deletions src/Azs.Backup.Admin/custom/Clear-AzsBackupConfiguration.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@

# ----------------------------------------------------------------------------------
#
# 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
Clear a backup location.
.Description
Clear a backup location.
.Example
PS C:\> {{ Add code here }}

{{ Add output here }}
.Example
PS C:\> {{ Add code here }}

{{ Add output here }}

.Inputs
Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Models.Api20210901.IBackupLocation
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Models.Api20210901.IBackupLocation
.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.

.Link
https://docs.microsoft.com/en-us/powershell/module/azs.backup.admin/clear-azsbackupconfiguration
#>
function Clear-AzsBackupConfiguration {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Models.Api20210901.IBackupLocation])]
[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Runtime.DefaultInfo(Script='(Get-AzLocation)[0].Location')]
[System.String]
# Name of the backup location.
${Location},

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

[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.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()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Category('Azure')]
[System.Management.Automation.PSObject]
# The credentials, account, tenant, and subscription used for communication with Azure.
${DefaultProfile},

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

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

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

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

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

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

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

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

process {
# Restrict the cmdlet to being a blank PUT operation to clear the backup configuration
$PSBoundParameters.Add('Location1', $Location)
$PSBoundParameters.Add('UserName', $null)

Azs.Backup.Admin.internal\Clear-AzsBackupConfiguration @PSBoundParameters
}
}
20 changes: 18 additions & 2 deletions src/Azs.Backup.Admin/custom/Get-AzsBackup.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@

# ----------------------------------------------------------------------------------
#
# 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 a backup from a location based on name.
Expand All @@ -8,9 +23,10 @@ To view examples, please use the -Online parameter with Get-Help or navigate to:
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Models.IBackupAdminIdentity
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Models.Api20180901.IBackup
Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Models.Api20210901.IBackup
.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 <IBackupAdminIdentity>: Identity Parameter
Expand All @@ -23,7 +39,7 @@ INPUTOBJECT <IBackupAdminIdentity>: Identity Parameter
https://docs.microsoft.com/en-us/powershell/module/azs.backup.admin/get-azsbackup
#>
function Get-AzsBackup {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Models.Api20180901.IBackup])]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Models.Api20210901.IBackup])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get')]
Expand Down
43 changes: 33 additions & 10 deletions src/Azs.Backup.Admin/custom/Restore-AzsBackup.ps1
Original file line number Diff line number Diff line change
@@ -1,18 +1,41 @@

# ----------------------------------------------------------------------------------
#
# 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
Restore a backup.
.Description
Restore a backup.
.Example
To view examples, please use the -Online parameter with Get-Help or navigate to: https://docs.microsoft.com/en-us/powershell/module/azs.backup.admin/restore-azsbackup
PS C:\> {{ Add code here }}

{{ Add output here }}
.Example
PS C:\> {{ Add code here }}

{{ Add output here }}

.Inputs
Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Models.Api20180901.IRestoreOptions
Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Models.Api20210901.IRestoreOptions
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Models.IBackupAdminIdentity
.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 <IBackupAdminIdentity>: Identity Parameter
Expand All @@ -33,13 +56,6 @@ function Restore-AzsBackup {
[OutputType([System.Boolean])]
[CmdletBinding(DefaultParameterSetName='RestoreExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='Restore', Mandatory)]
[Parameter(ParameterSetName='RestoreExpanded', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Category('Path')]
[System.String]
# Name of the backup.
${Name},

[Parameter(ParameterSetName='Restore')]
[Parameter(ParameterSetName='RestoreExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Category('Path')]
Expand All @@ -48,6 +64,13 @@ param(
# Name of the backup location.
${Location},

[Parameter(ParameterSetName='Restore', Mandatory)]
[Parameter(ParameterSetName='RestoreExpanded', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Category('Path')]
[System.String]
# Name of the backup.
${Name},

[Parameter(ParameterSetName='Restore')]
[Parameter(ParameterSetName='RestoreExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Category('Path')]
Expand Down Expand Up @@ -76,7 +99,7 @@ param(
[Parameter(ParameterSetName='Restore', Mandatory)]
[Parameter(ParameterSetName='RestoreViaIdentity', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Models.Api20180901.IRestoreOptions]
[Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Models.Api20210901.IRestoreOptions]
# Properties for restore options.
# To construct, see NOTES section for RESTOREOPTION properties and create a hash table.
${RestoreOption},
Expand Down
Loading