Skip to content

update #6

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

Merged
merged 111 commits into from
Jul 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
111 commits
Select commit Hold shift + click to select a range
9da06f0
Add 'Delete' to the argument completer of EvictionPolicy parameter (#…
hyonholee Jun 9, 2020
e312d8c
ASR:BugFix: Updating the disk type input while creating disk configur…
ayfathim Jun 9, 2020
e54c41a
update assembly version of Azure.Core (#12082)
erich-wang Jun 9, 2020
c7f9a8a
Add new examples to ApiManagement, DevTestLabs, EventHub, LogicApp, S…
aladdindoc Jun 9, 2020
1a4fe13
Make az.guestconfiguration cmdlet support ARC senario (#12036)
gehuang-dut Jun 9, 2020
00d47c8
add alias for functionparameter (#12085)
VeryEarly Jun 9, 2020
a2ddd01
Add a new function GetOldVesion to VersionBumper to avoid duplicated …
chenlei-yang Jun 10, 2020
0a15e8a
Bug fix for missing parameter in SetActionGroup command (#12109)
ritwik8119 Jun 10, 2020
54327cc
[Storage] support create Storage account with RequireInfrastructureEn…
blueww Jun 10, 2020
d17d1e7
[AppService] Fix - bug that prevented changing Container settings in …
vinisoto Jun 11, 2020
43ae2ac
Command is not correct (#12052)
ms-ishiyam Jun 11, 2020
d98850b
[Batch] 2020-05-01 API Release (#12103)
jafreck Jun 11, 2020
af0071b
Fix update activity log alert rule when using ObjectInput from the pi…
Avivskie Jun 11, 2020
8f3a434
Move ModuleFilter from VersionController to Tools.Common (#12122)
chenlei-yang Jun 12, 2020
34b22e2
Git #11895 and #5983 (#12127)
Kotasudhakarreddy Jun 12, 2020
d84f795
[CosmosDB]Updating with recent features: Autoscale, EnableFreeTier, S…
MehaKaushik Jun 12, 2020
206393b
fix sku value set (#12110)
VeryEarly Jun 12, 2020
feea512
[HDInsight] Support Node Reboot feature (#12124)
aim-for-better Jun 12, 2020
6df7af4
[Synapse] Updated parameter set for New-AzSynapseSparkPool to fix nod…
wonner Jun 12, 2020
6ffe307
[Databricks] Support CMK (#12131)
isra-fel Jun 12, 2020
3e20168
Ensure there's a separator between nuget cache and storage tools path…
anton-evseev Jun 13, 2020
cc92ebb
[Resources] Fix help message for -Name parameter of deployment cmdlet…
shenglol Jun 13, 2020
320f759
[SQL] Add support for service principals for setting SQL AAD Admin. (…
amolagar5 Jun 13, 2020
3c623fa
update the way to load preloaded assemblies (#12143)
erich-wang Jun 15, 2020
272157a
[Compute] SimulateEviction for VM and VMSS (#12129)
hyonholee Jun 15, 2020
94bc54e
Changing "low priority" to "Spot" (#12137)
mimckitt Jun 15, 2020
3d8b020
Correction on valid plan SKUs (#12148)
Windos Jun 15, 2020
9a18f3f
Comment out the logic of geting gallery version. (#12144)
wyunchi-ms Jun 16, 2020
4697bbe
Network May release (#12157)
anton-evseev Jun 16, 2020
ee96a65
Upgraded sdk version to 4.9.0 (#12153)
shawnxzq Jun 16, 2020
e9d83a0
PSWorkspace needs to implement IOperationalInsightsWorkspace (#12155)
VeryEarly Jun 16, 2020
c4513e1
HPC Cache - Fix ST Bug if flag is missing in cmdlet throw error. Fix …
rebecca-makar Jun 16, 2020
d6e9537
Eventhub: Added parameters in New and Set Namespace cmdlet for BYOK …
Jun 16, 2020
3c9dfa6
Adding Marketplace module (#12146)
olrakovs-zz Jun 16, 2020
cebc428
Add support to create PowerShell 7.0 and Java 11 function apps (#12169)
dolauli Jun 16, 2020
7d62b4e
VirtualWan: Use hubvnet CRUD operations for Hubvnet and hub cmdlets (…
shyamshd Jun 16, 2020
49b7c14
Add parameter sets for ip groups in Firewall Policy (#12173)
tejasshah7 Jun 16, 2020
64e6dc9
Fixed typos in examples (#12174)
michawets Jun 16, 2020
bb48c40
Add discovered environments (#12159)
dingmeng-xue Jun 16, 2020
5f7cd89
Polish changelog for upcoming release (#12175)
dingmeng-xue Jun 16, 2020
b4c91ff
Returning Substatuses from Get-AzVMCustomScriptExtension (#12089)
haagha Jun 17, 2020
442f790
{VirtualWan} - Support HubRouteTables and RoutingConfiguration for Ju…
nagula-ritvika Jun 17, 2020
b743105
add try catch and logs for clone across resource group (#12176)
raohri3 Jun 17, 2020
a015700
Correct version for Marketplace, Synapse, and Functions (#12180)
dingmeng-xue Jun 17, 2020
c5a3d55
Add breaking change info for Az.Network -> Changelog.md (#12178)
VeryEarly Jun 17, 2020
d60fdb7
Fix a typo in help (#12183)
dolauli Jun 17, 2020
1aa68ca
Eventhub: corrected upcoming release description (#12185)
Jun 17, 2020
cc35b92
fix the bug that incorrect name used when resolving preload assemblie…
erich-wang Jun 17, 2020
15c94ce
{Iot Hub} Re-record the test session (#12182)
anusapan Jun 17, 2020
62bc769
Make Sha256Checksum optional in New-AzImageBuilderCustomizerObject (#…
wyunchi-ms Jun 17, 2020
3f61839
Fix bug that StartupScripts call function that not loaded
erich-wang Jun 17, 2020
08ec671
Update common lib (#12194)
dingmeng-xue Jun 17, 2020
01fd0a7
Merge branch 'release-2020-06-23' into erich/startup-script-error
erich-wang Jun 17, 2020
af708ad
Fix bug that StartupScripts call function that not loaded (#12196)
dingmeng-xue Jun 17, 2020
aa915d1
release-2020-06-23
dingmeng-xue Jun 17, 2020
f41d0de
#12015 Set-AzWebAppSlot incorrectly formats serverFarmId causing Serv…
Kotasudhakarreddy Jun 18, 2020
1e79c35
Switch to SDK use in ResourceGroup Deployments cmdlets (#12141)
Xynoclafe Jun 18, 2020
62edd98
nic renaming changes for TFO/FO
subashchandra31 Jun 18, 2020
884fd52
Add preview message on module home page (#12204)
dingmeng-xue Jun 18, 2020
0741a34
[DeviceProvisioningService] Fix #12154: Enrollment cmdlet does not as…
anusapan Jun 19, 2020
62f5052
Failover managed instance (#12210)
milanbrkic-ms Jun 19, 2020
d537bef
Example was missing Update-AzVM cmdlet (#12205)
michawets Jun 19, 2020
cf6c290
Merge branch 'release-2020-06-23' into internal/release
dingmeng-xue Jun 19, 2020
cd0e16a
release-2020-06-23
dingmeng-xue Jun 19, 2020
5fed746
#12015 Set-AzWebAppSlot incorrectly formats serverFarmId causing Serv…
Kotasudhakarreddy Jun 18, 2020
d4fa13d
Switch to SDK use in ResourceGroup Deployments cmdlets (#12141)
Xynoclafe Jun 18, 2020
106a2d5
[DeviceProvisioningService] Fix #12154: Enrollment cmdlet does not as…
anusapan Jun 19, 2020
f921772
Failover managed instance (#12210)
milanbrkic-ms Jun 19, 2020
e5eab34
Example was missing Update-AzVM cmdlet (#12205)
michawets Jun 19, 2020
8170d4f
Merge branch 'master' of https://github.com/Azure/azure-powershell
dingmeng-xue Jun 20, 2020
1b4f7dd
"-Force" parameter in example breaks functionality (#12219)
eelcokos Jun 22, 2020
a631223
Introducing Az.Security SecurityTopology cmdlets (#12198)
ariklin Jun 22, 2020
31bfa03
Fix typos in traffic routing example 1 (#12209)
VitalyShakh Jun 22, 2020
70eb940
added nicRenaming parameters to NicConfig Cmdlet
subashchandra31 Jun 22, 2020
9a18892
Fix the seperator issue in Linux and Mac (#12241)
dolauli Jun 23, 2020
1c32960
Onboard Application Gateway to Private Link Common Cmdlets (#12242)
jaishals Jun 23, 2020
c9e93a7
fix release notes in ChangeLog.md (#12238)
VeryEarly Jun 23, 2020
59e366e
updated help file
subashchandra31 Jun 23, 2020
dba3b30
added example in help file and updated changeLog
subashchandra31 Jun 23, 2020
030b6a2
Documentation update for Az.Support module (#12239)
shahbj79 Jun 24, 2020
f9c7a8c
[PrivateLink] Update StorageSync SDK with 2020-03-01 (#12249)
ankushbindlish2 Jun 24, 2020
a77b31e
[SQL MI]Add support for Service principal and guest users in Set-AzSq…
amolagar5 Jun 24, 2020
10b4d7b
[Network] Added Cmdlets for Network Virtual Appliance (NVA) and NVA s…
3vilbuff3r Jun 24, 2020
bb5cf7e
Upgrade common reference (#12250)
VeryEarly Jun 24, 2020
e06ecac
added UT
subashchandra31 Jun 26, 2020
557b315
undid typo added by mistake
subashchandra31 Jun 26, 2020
ab8b080
Temporary fix for Mac image issues (#12274)
markcowl Jun 27, 2020
959f1f3
[App Service]: Added support to use Id for Restore-AzDeletedWebApp. (…
Kotasudhakarreddy Jun 28, 2020
841d8b3
Add new examples to Compute (#12257)
aladdindoc Jun 28, 2020
fdb706a
add macos back (#12279)
VeryEarly Jun 28, 2020
d9d94d7
[Storage] Support AllowBlobPublicAccess, MinimumTlsVersion (#12252)
blueww Jun 28, 2020
969d60a
Get-AzFrontDoorFrontendEndpoint uses -Name (#12261)
sebgod Jun 29, 2020
a1e52c1
Rollback breaking changes from #12141 (#12260)
Xynoclafe Jun 29, 2020
aadb558
Register StorageSync in Network cmdlets (#12251)
ankushbindlish2 Jun 29, 2020
94f91b7
resolved merge conflicts
subashchandra31 Jun 29, 2020
360dfad
upgrade Azure.Core to 1.2.2 (#12253)
erich-wang Jun 29, 2020
b974a3c
[Storage] Add user agent for dataplane cmdlets (#12255)
blueww Jun 29, 2020
90849b3
corrected file indentation
subashchandra31 Jun 29, 2020
827b974
Fix parameter swap in hubvnet connection cmdlet (#12282)
shyamshd Jun 29, 2020
bc3cf9d
Removed invalid example
surajmb Jun 29, 2020
2e8d288
[Az.Accounts] Use mutex to prevent cross process file I/O (#12281)
isra-fel Jun 30, 2020
9a4ef6b
Merge pull request #12285 from Azure/surajmb-patch-1
VeryEarly Jun 30, 2020
b8fb0f6
Merge pull request #12207 from AsrOneSdk/koredd
VeryEarly Jun 30, 2020
abf6f37
invoke-azrest (#12291)
VeryEarly Jul 1, 2020
ba9dfa7
fix static analysis error for Azure.Core (#12293)
erich-wang Jul 1, 2020
fa0234e
New Powershell commands for Subscription RP (#12077)
navysingla Jul 1, 2020
9562911
String with escape chars cannot be converted into json object (#12283)
wyunchi-ms Jul 1, 2020
598cef5
[Synapse] Make Synapse PowerShell consume track 2 Spark SDK (#12202)
wonner Jul 1, 2020
f3a2390
Modifying the HelpText for AzRecoveryServiceBackup cmdlets (#12271)
hiaga Jul 2, 2020
51770dd
Update private link (#12302)
dingmeng-xue Jul 2, 2020
86382dd
Create Unregister-AzResourceProvider Cmdlet (#12273)
diwudd Jul 2, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
14 changes: 7 additions & 7 deletions .azure-pipelines/powershell-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ variables:
LinuxImage: ubuntu-18.04
MacOSName: macOS
MacOSImage: macOS-10.14
TestFramework: netcoreapp2.2
TestFramework: netcoreapp2.1
TestTarget: Test
Configuration: Debug
DebugLocalBuildTasks: true
Expand All @@ -22,8 +22,8 @@ jobs:
linux:
OSName: ${{ variables.LinuxName }}
ImageName: ${{ variables.LinuxImage }}
macOS:
OSName: ${{ variables.MacOSName }}
macOS:
OSName: ${{ variables.MacOSName }}
ImageName: ${{ variables.MacOSImage }}
pool:
vmImage: $(ImageName)
Expand All @@ -47,8 +47,8 @@ jobs:
linux:
OSName: ${{ variables.LinuxName }}
ImageName: ${{ variables.LinuxImage }}
macOS:
OSName: ${{ variables.MacOSName }}
macOS:
OSName: ${{ variables.MacOSName }}
ImageName: ${{ variables.MacOSImage }}
pool:
vmImage: $(ImageName)
Expand All @@ -72,8 +72,8 @@ jobs:
linux:
OSName: ${{ variables.LinuxName }}
ImageName: ${{ variables.LinuxImage }}
macOS:
OSName: ${{ variables.MacOSName }}
macOS:
OSName: ${{ variables.MacOSName }}
ImageName: ${{ variables.MacOSImage }}
pool:
vmImage: $(ImageName)
Expand Down
3 changes: 2 additions & 1 deletion .azure-pipelines/util/test-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ steps:
- pwsh: |
Install-Module -Name Pester -RequiredVersion 4.10.1 -Force
Install-Module -Name Az.Accounts -Scope CurrentUser -Force
$env:PSModulePath = $env:PSModulePath + ";" + (pwd).Path
if ($IsWindows) { $sp = ";" } else { $sp = ":" }
$env:PSModulePath = $env:PSModulePath + $sp + (pwd).Path
Get-ChildItem -Directory Az.* | ForEach-Object {if (Test-Path $_/test-module.ps1) {cd $_; ./test-module.ps1}}
workingDirectory: 'artifacts/Debug'
displayName: 'Test for AutoGen Modules With PowerShell Core'
Expand Down
2 changes: 1 addition & 1 deletion .azure-pipelines/windows-powershell.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
variables:
WindowsName: windows
WindowsImage: VS2017-Win2016
TestFramework: netcoreapp2.2
TestFramework: netcoreapp2.1
TestTarget: Test
Configuration: Debug
DebugLocalBuildTasks: true
Expand Down
133 changes: 133 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,136 @@
## 4.3.0 - June 2020
#### Az.Accounts
* Supported discovering environment setting by default and adding environment via 'Add-AzEnvironment'
* Update preloaded assemblies [#12024], [#11976]
* Updated Azure.Core assembly
* Fixed an issue that may cause 'Connect-AzAccount' to fail in multi-threaded execution [#11201]

#### Az.Aks
* Replaced usage of old [AccessProfile API](https://docs.microsoft.com/rest/api/aks/managedclusters/getaccessprofile) with calls to [ListClusterAdmin](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusteradmincredentials) and [ListClusterUser](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusterusercredentials) APIs

#### Az.Batch
* Updated Az.Batch to use 'Microsoft.Azure.Management.Batch' SDK version to 11.0.0
* Added the ability to set the BatchAccount Identity in the 'New-AzBatchAccount' cmdlet

#### Az.CognitiveServices
* Supported displaying account capabilities.
* Supported modifying PublicNetworkAccess.

#### Az.Compute
* Added SimulateEviction parameter to Set-AzVM and Set-AzVmssVM cmdlets.
* Added 'Premium_LRS' to the argument completer of StorageAccountType parameter for New-AzGalleryImageVersion cmdlet.
* Added Substatuses to VMCustomScriptExtension [#11297]
* Added 'Delete' to the argument completer of EvictionPolicy parameter for New-AzVM and New-AzVMConfig cmdlets.
* Fixed name of new VM Extension for SAP

#### Az.DataFactory
* Updated ADF .Net SDK version to 4.9.0

#### Az.EventHub
* Added Managed Identity parameters to 'New-AzEventHubNamespace' and 'Set-AzEventHubNamespace' cmdlets

#### Az.Functions
* Added support to create PowerShell 7.0 and Java 11 function apps

#### Az.HDInsight
* Supported listing hosts and restart specific hosts of the HDInsight cluster.

#### Az.HealthcareApis
* Updated the SDK version to 1.1.0
* Added support for Export settings and Managed Identity

#### Az.Monitor
* Fixed input object parameter for 'Set-AzActivityLogAlert'
* Fixed 'InputObject' parameter for 'Set-AzActionGroup' [#10868]

#### Az.Network
* Added support for AddressPrefixType parameter to 'Remove-AzExpressRouteCircuitConnectionConfig'
* Added new cmdlets for Azure FirewallPolicy
- 'New-AzFirewallPolicyDnsSetting'
- Support for Destination FQDN in Network Rules for Firewall Policy
* Added support for backend address pool operations
- 'New-AzLoadBalancerBackendAddressConfig'
- 'New-AzLoadBalancerBackendAddressPool'
- 'Set-AzLoadBalancerBackendAddressPool'
- 'Remove-AzLoadBalancerBackendAddressPool'
- 'Get-AzLoadBalancerBackendAddressPool'
* Added name validation for 'New-AzIpGroup'
* Added new cmdlets for Azure FirewallPolicy
- 'New-AzFirewallPolicyThreatIntelWhitelist'
* Updated below commands for feature: Custom dns servers set/remove on VirtualWan P2SVpnGateway.
- Updated New-AzP2sVpnGateway: Added optional parameter '-CustomDnsServer' for customers to specify their dns servers to set on P2SVpnGateway, which can be used by Point to site clients.
- Updated Update-AzP2sVpnGateway: Added optional parameter '-CustomDnsServer' for customers to specify their dns servers to set on P2SVpnGateway, which can be used by Point to site clients.
* Updated 'Update-AzVpnGateway'
- Added optional parameter '-BgpPeeringAddress' for customers to specify their custom bgps to set on VpnGateway.
* Added new cmdlet to support resetting the routing state of a VirtualHub resource:
- 'Reset-AzHubRouter'
* Updated below things based on recent swagger change for Firewall Policy
- Changes names for RuleGroup, RuleCollectionGroup and RuleType
- Added support for Firewall Policy NAT Rule Collections to support multiple NAT Rule Collection
* [Breaking Change] Added mandatory parameter 'SourceIpGroup' for 'New-AzFirewallPolicyApplicationRule' and 'New-AzFirewallPolicyNetworkRule'.
* [Breaking Change] Fixed 'New-AzFirewallPolicyApplicationRule', parameter 'SourceAddress' to be mandatory.
* [Breaking Change] Fixed 'New-AzFirewallPolicyApplicationRule', parameter 'SourceAddress' to be mandatory.
* [Breaking Change] Removed mandatory parameters: 'TranslatedAddress', 'TranslatedPort' for 'New-AzFirewallPolicyNatRuleCollection'.
* Added new cmdlets to support PrivateLink On Application Gateway
- 'New-AzApplicationGatewayPrivateLinkConfiguration'
- 'Get-AzApplicationGatewayPrivateLinkConfiguration'
- 'New-AzApplicationGatewayPrivateLinkConfiguration'
- 'Set-AzApplicationGatewayPrivateLinkConfiguration'
- 'Remove-AzApplicationGatewayPrivateLinkConfiguration'
- 'New-AzApplicationGatewayPrivateLinkIpConfiguration'
* Added new cmdlets for HubRouteTables child resource of VirtualHub.
- 'New-AzVHubRoute'
- 'New-AzVHubRouteTable'
- 'Get-AzVHubRouteTable'
- 'Update-AzVHubRouteTable'
- 'Remove-AzVHubRouteTable'
* Updated existing cmdlets to support optional RoutingConfiguration input parameter for custom routing in VirtualWan.
- 'New-AzExpressRouteConnection'
- 'Set-AzExpressRouteConnection'
- 'New-AzVirtualHubVnetConnection'
- 'Update-AzVirtualHubVnetConnection'
- 'New-AzVpnConnection'
- 'Update-AzVpnConnection'
- 'New-AzP2sVpnGateway'
- 'Update-AzP2sVpnGateway'

#### Az.OperationalInsights
* Fixed bug PSWorkspace doesn't implement IOperationalInsightsWorkspace [#12135]
* Added 'pergb2018' to valid value set of parameter 'Sku' in 'Set-AzOperationalInsightsWorkspace'
* Added alias 'FunctionParameters' for parameter 'FunctionParameter' to
- 'New-AzOperationalInsightsSavedSearch'
- 'Set-AzOperationalInsightsSavedSearch'

#### Az.RecoveryServices
* Azure Backup added support for fetching MAB items.
* Azure Site Recovery supports disk type 'StandardSSD_LRS'

#### Az.Resources
* Added 'UsageLocation', 'GivenName', 'Surname', 'AccountEnabled', 'MailNickname', 'Mail' on 'PSADUser' [#10526] [#10497]
* Fixed issue that '-Mail' doesn't work on 'Get-AzADUser' [#11981]
* Added '-ExcludeChangeType' parameter to 'Get-AzDeploymentWhatIfResult' and 'Get-AzResourceGroupDeploymentWhatIfResult'
* Added '-WhatIfExcludeChangeType' parameter to 'New-AzDeployment' and 'New-AzResourceGroupDeployment'
* Updated 'Test-Az*Deployment' cmdlets to show better error messages
* Fixed help message for '-Name' parameter of deployment create and What-If cmdlets

#### Az.Sql
* Added support for service principal for Set SQL Server Azure Active Directory Admin cmdlet
* Fixed sync issue in Data Classification cmdlets.
* Supported searching user by mail on 'Set-AzSqlServerActiveDirectoryAdministrator' [#12192]

#### Az.Storage
* Supported create Storage account with RequireInfrastructureEncryption
- 'New-AzStorageAccount'
* Moved the logic of loading Azure.Core to Az.Accounts

#### Az.Websites
* Added safeguard to delete created webapp if restore failed in 'Restore-AzDeletedWebApp'
* Added 'SourceWebApp.Location' for 'New-AzWebApp' and 'New-AzWebAppSlot'
* Fixed bug that prevented changing Container settings in 'Set-AzWebApp' and 'Set-AzWebAppSlot'
* Fixed bug to get SiteConfig when -Name is not given for Get-AzWebApp
* Added a support to create ASP for Linux Apps
* Added exceptions for clone across resource groups

## 4.2.0 - June 2020
#### Az.Accounts
* Fixed an issue that may cause Az to skip logs in Azure Automation or PowerShell jobs [#11492]
Expand Down
3 changes: 3 additions & 0 deletions documentation/azure-powershell-modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ Managed Services | `Az.ManagedServices`
Management Partner | `Az.ManagementPartner` | [![ManagementPartner]][ManagementPartnerGallery]
Maps | `Az.Maps` | [![Maps]][MapsGallery]
Database for MariaDB | `Az.MariaDb` | [![MariaDb]][MariaDbGallery]
Marketplace | `Az.Marketplace` | [![Marketplace]][MarketplaceGallery]
Marketplace Ordering | `Az.MarketplaceOrdering` | [![MarketplaceOrdering]][MarketplaceOrderingGallery]
Media | `Az.Media` | [![Media]][MediaGallery]
Mixed Reality | `Az.MixedReality` | [![MixedReality]][MixedRealityGallery]
Expand Down Expand Up @@ -163,6 +164,7 @@ Web App Service | `Az.Websites`
[ManagementPartner]: https://img.shields.io/powershellgallery/v/Az.ManagementPartner.svg?style=flat-square&label=Az.ManagementPartner
[Maps]: https://img.shields.io/powershellgallery/v/Az.Maps.svg?style=flat-square&label=Az.Maps
[MariaDb]: https://img.shields.io/powershellgallery/v/Az.MariaDb.svg?style=flat-square&label=Az.MariaDb
[Marketplace]: https://img.shields.io/powershellgallery/v/Az.Marketplace.svg?style=flat-square&label=Az.Marketplace
[MarketplaceOrdering]: https://img.shields.io/powershellgallery/v/Az.MarketplaceOrdering.svg?style=flat-square&label=Az.MarketplaceOrdering
[Media]: https://img.shields.io/powershellgallery/v/Az.Media.svg?style=flat-square&label=Az.Media
[MixedReality]: https://img.shields.io/powershellgallery/v/Az.MixedReality.svg?style=flat-square&label=Az.MixedReality
Expand Down Expand Up @@ -259,6 +261,7 @@ Web App Service | `Az.Websites`
[ManagementPartnerGallery]: https://www.powershellgallery.com/packages/Az.ManagementPartner/
[MapsGallery]: https://www.powershellgallery.com/packages/Az.Maps/
[MariaDbGallery]: https://www.powershellgallery.com/packages/Az.MariaDb/
[MarketplaceGallery]: https://www.powershellgallery.com/packages/Az.Marketplace/
[MarketplaceOrderingGallery]: https://www.powershellgallery.com/packages/Az.MarketplaceOrdering/
[MediaGallery]: https://www.powershellgallery.com/packages/Az.Media/
[MixedRealityGallery]: https://www.powershellgallery.com/packages/Az.MixedReality/
Expand Down
12 changes: 10 additions & 2 deletions src/Accounts/Accounts.Test/EnvironmentCmdletTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
using Microsoft.Azure.Commands.Common.Authentication.Abstractions;
using Microsoft.Azure.Commands.Common.Authentication.Models;
using Microsoft.Azure.Commands.Common.Authentication.ResourceManager;
using Microsoft.Azure.Commands.Profile;
using Microsoft.Azure.Commands.Profile.Models;
using Microsoft.Azure.Commands.Profile.Utilities;
using Microsoft.Azure.Commands.ResourceManager.Common;
Expand Down Expand Up @@ -61,7 +60,7 @@ public void AddsAzureEnvironment()
var cmdlet = new AddAzureRMEnvironmentCommand()
{
CommandRuntime = commandRuntimeMock.Object,
Name = "Katal",
Name = "Katal"
};
var dict =new Dictionary<string, object>
{
Expand All @@ -74,6 +73,7 @@ public void AddsAzureEnvironment()
};

cmdlet.SetBoundParameters(dict);
cmdlet.SetParameterSet("Name");
cmdlet.InvokeBeginProcessing();
cmdlet.ExecuteCmdlet();
cmdlet.InvokeEndProcessing();
Expand Down Expand Up @@ -189,6 +189,7 @@ public void AddsEnvironmentMultipleTimes()
dict["PublishSettingsFileUrl"] = "http://microsoft.com";
dict["EnableAdfsAuthentication"] = true;
cmdlet.SetBoundParameters(dict);
cmdlet.SetParameterSet("Name");

cmdlet.InvokeBeginProcessing();
cmdlet.ExecuteCmdlet();
Expand All @@ -211,6 +212,7 @@ public void AddsEnvironmentMultipleTimes()
dict.Clear();
dict["EnableAdfsAuthentication"] = true;
cmdlet2.SetBoundParameters(dict);
cmdlet2.SetParameterSet("Name");

cmdlet2.InvokeBeginProcessing();
cmdlet2.ExecuteCmdlet();
Expand All @@ -229,6 +231,7 @@ public void AddsEnvironmentMultipleTimes()
};
dict.Clear();
cmdlet3.SetBoundParameters(dict);
cmdlet3.SetParameterSet("Name");

cmdlet3.InvokeBeginProcessing();
cmdlet3.ExecuteCmdlet();
Expand Down Expand Up @@ -257,6 +260,7 @@ public void AddsEnvironmentWithMinimumInformation()
dict["EnableAdfsAuthentication"] = true;
dict["PublishSettingsFileUrl"] = "http://microsoft.com";
cmdlet.SetBoundParameters(dict);
cmdlet.SetParameterSet("Name");
cmdlet.InvokeBeginProcessing();
cmdlet.ExecuteCmdlet();
cmdlet.InvokeEndProcessing();
Expand Down Expand Up @@ -337,6 +341,7 @@ public void AddsEnvironmentWithStorageEndpoint()
StorageEndpoint = "core.windows.net",
};

cmdlet.SetParameterSet("Name");
cmdlet.InvokeBeginProcessing();
cmdlet.ExecuteCmdlet();
cmdlet.InvokeEndProcessing();
Expand Down Expand Up @@ -412,6 +417,7 @@ public void CanCreateEnvironmentWithAllProperties()
dict["AzureSynapseAnalyticsEndpointResourceId"] = "AzureSynapseAnalyticsEndpointResourceId";
dict["AzureSynapseAnalyticsEndpointSuffix"] = "https://AzureSynapseAnalytics";
cmdlet.SetBoundParameters(dict);
cmdlet.SetParameterSet("Name");

cmdlet.InvokeBeginProcessing();
cmdlet.ExecuteCmdlet();
Expand Down Expand Up @@ -487,6 +493,8 @@ public void CreateEnvironmentWithTrailingSlashInActiveDirectory()
var dict = new Dictionary<string, object>();
dict["ActiveDirectoryEndpoint"] = "https://ActiveDirectoryEndpoint/";
cmdlet.SetBoundParameters(dict);
cmdlet.SetParameterSet("Name");

SetupConfirmation(commandRuntimeMock);
cmdlet.InvokeBeginProcessing();
cmdlet.ExecuteCmdlet();
Expand Down
4 changes: 2 additions & 2 deletions src/Accounts/Accounts.Test/ErrorResolutionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ public void HandlesExceptionError()
var autorestException = new Microsoft.Rest.Azure.CloudException("exception message")
{
Body = new Microsoft.Rest.Azure.CloudError { Code = "AutorestCode", Message = "Autorest message" },
Request = new Rest.HttpRequestMessageWrapper(request, ""),
Response = new Rest.HttpResponseMessageWrapper(response, ""),
Request = new Microsoft.Rest.HttpRequestMessageWrapper(request, ""),
Response = new Microsoft.Rest.HttpResponseMessageWrapper(response, ""),
RequestId = "AutoRestRequestId"
};

Expand Down
35 changes: 35 additions & 0 deletions src/Accounts/Accounts.Test/InvokeAzRestTests.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// ----------------------------------------------------------------------------------
//
// 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.
// ----------------------------------------------------------------------------------

using Microsoft.WindowsAzure.Commands.ScenarioTest;
using Xunit;
using Xunit.Abstractions;

namespace Microsoft.Azure.Commands.Profile.Test
{
public class InvokeAzRestTests : AccountsTestRunner
{
public InvokeAzRestTests(ITestOutputHelper output)
: base(output)
{
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestInvokeAzRest()
{
TestRunner.RunTestScript("Test-InvokeAzRest");
}
}
}
Loading