Skip to content

Commit 13704d7

Browse files
authored
Merge pull request Azure#3537 from Azure/release-3.6.0
[Release 3.6.0] Merge release --> master
2 parents 1e0dbd9 + a23e251 commit 13704d7

File tree

822 files changed

+807976
-108987
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

822 files changed

+807976
-108987
lines changed

ChangeLog.md

Lines changed: 123 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,126 @@
1-
## 2017.01.18 - Version 3.4.0
1+
## 2017.02.22 - Version 3.6.0
2+
* AnalysisServices
3+
* Added State property in additional to ProvisioningState
4+
- All the cmdlet returning AnalysisService would have a new property 'State' used outside of provisioing.
5+
- The 'State' is intended to check status outside of provisioning, while 'ProvisioningState' is intended to check status related to Provisioning.
6+
- ProvisioningState and State are same in service side at this moment, the service side would differenciate ProvisioningState and State in future
7+
* CognitiveServices
8+
* Integrate with Cognitive Services Management SDK 0.2.1 to support more Cognitive Services API Types and SKUs.
9+
* Remove the validation against “Type” and “SkuName” of Cognitive Services Account, this will allow the script to support new APIs/SKUs without changes.
10+
* Compute
11+
* Updated Set-AzureRmVMDscExtension cmdlet WmfVersion parameter to support "5.1"
12+
* Updated Set-AzureRmVMChefExtension cmdlet to add following new options :
13+
- Daemon: Configures the chef-client service for unattended execution. e.g. -Daemon 'none' or e.g. -Daemon 'service'."
14+
- Secret: The encryption key used to encrypt and decrypt the data bag item values.
15+
- SecretFile: The path to the file that contains the encryption key used to encrypt and decrypt the data bag item values.
16+
* Fix for Get-AzureRmVM: Get-AzureRmVM did not display anything when the output includes availability set property.
17+
* New cmdlets:
18+
- Update-AzureRmAvailabilitySet: can update an unmanaged availability set to a managed availability set.
19+
- Add-AzureRmVmssDataDisk, Remove-AzureRmVmssDataDisk
20+
* New parameter, SkipVmBackup, for cmdlet Set-AzureRmVMDiskEncryptionExtension to allow user to skip backup creation for Linux VMs
21+
* DataFactories
22+
* Fixed Get-AzureRmDataFactoryActivityWindow so it works for named pipeline and activity
23+
* DataLakeAnalytics
24+
* Add Firewall Rule support to Data Lake Analytics:
25+
- Add-AzureRMDataLakeAnalyticsFirewallRule
26+
- Get-AzureRMDataLakeAnalyticsFirewallRule
27+
- Set-AzureRMDataLakeAnalyticsFirewallRule
28+
- Remove-AzureRMDataLakeAnalyticsFirewallRule
29+
- Set-AzureRMDataLakeAnalyticsAccount supports enabling/disabling the firewall and allowing/blocking Azure originating IPs through the firewall
30+
- Warnings will be raised if updating firewall rules when the firewall is disabled
31+
* Fix Get-AzureRMDataLakeAnalyticsJob functionality:
32+
- Top now correctly returns the number of jobs specified. The default number of jobs to return is 500. The more jobs requested the longer the command will take.
33+
* Remove explicit restrictions on resource locations. If Data Lake Analytics is not supported in a region, we will surface an error from the service.
34+
* DataLakeStore
35+
* Update Upload and Download commands to use the new and improved Upload/Download helpers in the new DataLake.Store clients. This also gives better diagnostic logging, if enabled.
36+
* Default thread counts for Upload and download are now computed on a best effort basis based on the data being uploaded or downloaded. This should allow for good performance without specifying a thread count.
37+
* Update to Set-AzureRMDataLakeStoreAccount to allow for enabling and disabling Azure originating IPs through the firewall
38+
* Add warnings to Add and Set-AzureRMDataLakeStoreFirewallRule and AzureRMDataLakeStoreTrustedIdProvider if they are disabled
39+
* Remove explicit restrictions on resource locations. If Data Lake Store is not supported in a region, we will surface an error from the service.
40+
* EventHub
41+
* Future Breaking Change Notification: We've added a warning about removing property 'ResourceGroupName' from the returned NamespceAttributes from cmdlets New-AzureRmEventHubNamespace, Get-AzureRmEvnetHubNamespace and Set-AzureRmEvnetHubNamespace
42+
* Insights
43+
* Allow users to unselect data sinks for Set-AzureRmDiagnosticSettings
44+
* Network
45+
* Added support for network Watcher APIs
46+
- New-AzureRmNetworkWatcher
47+
- Get-AzureRmNetworkWatcher
48+
- Remove-AzureRmNetworkWatcher
49+
- New-AzureRmPacketCaptureFilterConfig
50+
- New-AzureRmNetworkWatcherPacketCapture
51+
- Get-AzureRmNetworkWatcherPacketCapture
52+
- Stop-AzureRmNetworkWatcherPacketCapture
53+
- Remove-AzureRmNetworkWatcherPacketCapture
54+
- Get-AzureRmNetworkWatcherFlowLogSatus
55+
- Get-AzureRmNetworkWatcherNextHop
56+
- Get-AzureRmNetworkWatcherSecurityGroupView
57+
- Get-AzureRmNetworkWatcherTopology
58+
- Get-AzureRmNetworkWatcherTroubleshootingResult
59+
- Set-AzureRmNetworkWatcherConfigFlowLog
60+
- Start-AzureRmNetworkWatcherResourceTroubleshooting
61+
- Test-AzureRmNetworkWatcherIPFlow
62+
* Add-AzureRmExpressRouteCircuitPeeringConfig
63+
- Added new param :-RouteFilter to associate the BGP with route filter to filter out BGP communities via Microsoft peering. This parameter is set by resource
64+
- Added new param :-RouteFilterId to associate the BGP with route filter to filter out BGP communities via Microsoft peering. This parameter is set by resource id
65+
* New-AzureRmExpressRouteCircuitPeeringConfig
66+
- Added new param :-RouteFilter to associate the BGP with route filter to filter out BGP communities via Microsoft peering. This parameter is set by resource
67+
- Added new param :-RouteFilterId to associate the BGP with route filter to filter out BGP communities via Microsoft peering. This parameter is set by resource id
68+
* Set-AzureRmExpressRouteCircuitPeeringConfig
69+
- Added new param :-RouteFilter to associate the BGP with route filter to filter out BGP communities via Microsoft peering. This parameter is set by resource
70+
- Added new param :-RouteFilterId to associate the BGP with route filter to filter out BGP communities via Microsoft peering. This parameter is set by resource id
71+
* New cmdlets for selective service feature
72+
- Get-AzureRmRouteFilter
73+
- New-AzureRmRouteFilter
74+
- Set-AzureRmRouteFilter
75+
- Remove-AzureRmRouteFilter
76+
- Add-AzureRmRouteFilterRuleConfig
77+
- Get-AzureRmRouteFilterRuleConfigobject
78+
- New-AzureRmRouteFilterRuleConfig
79+
- Set-AzureRmRouteFilterRuleConfig
80+
- Remove-AzureRmRouteFilterRuleConfig
81+
* Resources
82+
* Support policy parameters for New-AzureRmPolicyDefinition and New-AzureRmPolicyAssignment
83+
- Users can now use Parameter parameter with New-AzureRmPolicyDefinition. This accepts both JSON string and file path.
84+
- Users can now provide policy parameter values in New-AzureRmPolicyAssignment in a couple of ways, including JSON string, file path, PS object, and through PowerShell parameters.
85+
* Scheduler
86+
* Fixed issue to properly encode HTTP jobs' callback Uri in Scheduler PowerShell cmdlet
87+
* Sql
88+
* Adding new cmdlets for support for Azure SQL feature Transparent Data Encryption (TDE) with Bring Your Own Key (BYOK) Support
89+
- TDE with BYOK support is a new feature in Azure SQL, which allows users to encrypt their database with a key from Azure Key Vault. This feature is currently in private preview.
90+
- Get-AzureRmSqlServerKeyVaultKey : This cmdlet returns a list of Azure Key Vault keys added to a Sql Server.
91+
- Add-AzureRmSqlServerKeyVaultKey : This cmdlet adds an Azure Key Vault key to a Sql Server.
92+
- Remove-AzureRmSqlServerKeyVaultKey : This cmdlet removes an Azure Key Vault key from a Sql Server.
93+
- Get-AzureRmSqlServerTransparentDataEncryptionProtector : This cmdlet returns the current encryption protector for a Sql Server.
94+
- Set-AzureRmSqlServerTransparentDataEncryptionProtector : This cmdlet sets the encryption protector for a Sql Server. The encryption protector can be set to a key from Azure Key Vault or a key that is managed by Azure Sql.
95+
* New feature: Set--AzureRmSqlDatabaseAuditing and Set-AzureRmSqlDatabaseServerAuditingPolicy supports setting secondary storage key for AuditType Blob
96+
* Bug fix: Remove-AzureRmSqlDatabaseAuditing should set the UseServerDefault value to disabled
97+
* Bug fix: Fixing an issue of selecting classic storage account when creating / updating Auditing or Threat Detection policies
98+
* Bug fix: Set-AzureRmSqlDatabaseAuditing and Set-AzureRmSqlDatabaseServerAuditingPolicy commands use the AuditType value that was previously defined in case it has not been configured by the user.
99+
* Bug fix: In case Blob Auditing is defined, Remove-AzureRmSqlDatabaseAuditing and Remove-AzureRmSqlDatabaseServerAuditingPolicy commands disable the Auditing settings.
100+
* Adding new cmdlets for support for Azure SQL feature AutoDR:
101+
-This is a new feature in Azure SQL that supports failover of multiple Azure Sql Databases to the partner server at the same time during disaster and allows automatic failover
102+
- Add-AzureRmSqlDatabaseToFailoverGroup add Azure Sql Databases into a Failover Group
103+
- Get-AzureRmSqlDatabaseFailoverGroup get the Failover Group entity
104+
- New-AzureRmSqlDatabaseFailoverGroup creates a new Failover Group
105+
- Remove-AzureRmSqlDatabaseFromFailoverGroup removes Azure Sql Databases from a Failover Group
106+
- Remove-AzureRmSqlDatabaseFailoverGroup Failover Group deletes the Failover Group
107+
- Set-AzureRmSqlDatabaseFailoverGroup set Azure Sql Database Failover Policy and Grace Period entities of the Failover Group
108+
- Switch-AzureRmSqlDatabaseFailoverGroup issues the failover operation with data loss or without data loss
109+
* Storage
110+
* Upgrade Microsoft.Azure.Management.Storage to version 6.1.0-preview
111+
* Add File Encryption features support to resource mode storage account cmdlets
112+
- New-AzureRmStorageAccount
113+
- Set-AzureRmStorageAccount
114+
115+
* ServiceManagement
116+
* Updated Set-AzureVMDscExtension cmdlet WmfVersion parameter to support "5.1"
117+
118+
* Updated Set-AzureVMChefExtension cmdlet to add following new options :
119+
- Daemon: Configures the chef-client service for unattended execution. e.g. -Daemon 'none' or e.g. -Daemon 'service'."
120+
- Secret: The encryption key used to encrypt and decrypt the data bag item values.
121+
- SecretFile: The path to the file that contains the encryption key used to encrypt and decrypt the data bag item values.
122+
123+
## 2017.01.18 - Version 3.4.0
2124
* AnalysisServices
3125
* Added two new dataplane APIs in a separate module Azure.AnalysisServices.psd1
4126
- This introduces two new APIs that enable customers to login to Azure Analysis Services servers and issue a restart command.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ This repository contains a set of PowerShell cmdlets for developers and administ
2222
* App Service (Websites)
2323
* SQL Database
2424
* KeyVault
25+
* Data Lake Store
26+
* Data Lake Analytics
2527
* Operational Insights
2628
* Automation
2729
* Batch

documentation/Repo-Tasks-Module.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
###### Usage:
44

55
1. Start .\tools\PS-VSPrompt.lnk (shortcut), this will start VS Dev Prompt in powershell
6-
2. Import-Module .\tools\Repo-Tasks.psd1
6+
2. Import-Module .\Repo-Tasks.psd1
77
1. During import, we allow to load additional functions that users might want to use it in their session.
88
2. If you have any userPreference.ps1 file under %userprofile%/psFiles directory, the module will try to load it by dot sourcing it.
99
2. It will also honor environment variable $env:psuserpreferences and load .ps1 files from the location that is pointed by $env:psuserpreferences

documentation/Using-Azure-TestFramework.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@ In order to Record/Playback a test, you need to setup a connection string that c
127127
1. The default mode is Playback mode, so no setting up of connection string is required.
128128

129129
#### Record Test with Interactive login using OrgId
130-
TEST_CSM_ORGID_AUTHENTICATION=SubsctiptionId={SubId};UserId={orgId};AADTenant={tenantId};Environment={env};HttpRecorderMode=Record;
130+
TEST_CSM_ORGID_AUTHENTICATION=SubscriptionId={SubId};UserId={orgId};AADTenant={tenantId};Environment={env};HttpRecorderMode=Record;
131131

132132
#### Record Test with ServicePrincipal
133-
TEST_CSM_ORGID_AUTHENTICATION=SubsctiptionId={SubId};ServicePrincipal={clientId};ServicePrincipalSecret={clientSecret};AADTenant={tenantId};Environment={env};HttpRecorderMode=Record;
133+
TEST_CSM_ORGID_AUTHENTICATION=SubscriptionId={SubId};ServicePrincipal={clientId};ServicePrincipalSecret={clientSecret};AADTenant={tenantId};Environment={env};HttpRecorderMode=Record;
134134

135135
2. Run the test and make sure that you got a generated .json file that matches the test name in the bin folder under *SessionRecords folder
136136
3. Copy SessionRecords folder inside the test project and add all *.json files in Visual Studio setting "Copy to Output Directory" property to "Copy if newer"
@@ -149,4 +149,4 @@ In order to Record/Playback a test, you need to setup a connection string that c
149149
TestEnvironment.Endpoints.GraphUri = new Uri("https://newGraphUri.windows.net");
150150

151151
###Note:###
152-
Changing the above properties at run-time has the potential to hard code few things in your tests. Best practice would be to use these properties to change values at run-time from immediate window at run-time and avoid hard-coding certain values.
152+
Changing the above properties at run-time has the potential to hard code few things in your tests. Best practice would be to use these properties to change values at run-time from immediate window at run-time and avoid hard-coding certain values.

setup/azurecmd.wxs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
33

4-
<?define productName="Microsoft Azure PowerShell - January 2017" ?>
4+
<?define productName="Microsoft Azure PowerShell - February 2017" ?>
55
<?define sourceDir="$(var.SolutionDir)..\src\Package\$(var.Configuration)" ?>
66
<?define caSourceDir="$(var.SolutionDir)setup\bin\$(var.Configuration)" ?>
77

8-
<?define version="3.4.0" ?>
8+
<?define version="3.6.0" ?>
99

1010
<Product Id="*"
1111
Name="$(var.productName)"

setup/azurecmdfiles.wxi

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -981,9 +981,6 @@
981981
<Component Id="cmp3C96010EFA751762A76B66B811613835" Guid="*">
982982
<File Id="fil509D1E7494560B2BB3462B8FAD7954CF" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.DataLakeStore\Microsoft.Azure.Management.DataLake.Store.dll" />
983983
</Component>
984-
<Component Id="cmpFECE1A517C9182672B042869C46847FC" Guid="*">
985-
<File Id="fil00C18C352C99B9BCFA42EFFACE0AEFF7" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.DataLakeStore\Microsoft.Azure.Management.DataLake.StoreUploader.dll" />
986-
</Component>
987984
<Component Id="cmp500DAF931B66664E6A3308FAC825093C" Guid="*">
988985
<File Id="filB384FAE2600A5CAE72336384DBA3B581" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.DataLakeStore\Microsoft.Azure.Management.ResourceManager.dll" />
989986
</Component>
@@ -2020,9 +2017,6 @@
20202017
<Component Id="cmp4665FDA09AEBB2263079C77AD5FAE614" Guid="*">
20212018
<File Id="fil67E80D69FD7CFFD1BDC41F143BB1B9E4" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.Network\Microsoft.WindowsAzure.Commands.Common.dll" />
20222019
</Component>
2023-
<Component Id="cmpD9E00CF36A1BF106BD49E9368F96A1EE" Guid="*">
2024-
<File Id="fil20EB538DE607DDE13AB3D2D42016F54D" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.Network\Microsoft.WindowsAzure.Storage.dll" />
2025-
</Component>
20262020
<Component Id="cmpA96B1B72C5D8449B6A78CEE7B3D8003A" Guid="*">
20272021
<File Id="filEF8564B0A72776B7B7DF45B770E1BA9B" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.Network\Newtonsoft.Json.dll" />
20282022
</Component>
@@ -6038,7 +6032,6 @@
60386032
<ComponentRef Id="cmp87FB43928F7A2ECF62C0141446D21A9F" />
60396033
<ComponentRef Id="cmpD2292657EF3D9CEAC5D4FA7DEB3E7E8E" />
60406034
<ComponentRef Id="cmp3C96010EFA751762A76B66B811613835" />
6041-
<ComponentRef Id="cmpFECE1A517C9182672B042869C46847FC" />
60426035
<ComponentRef Id="cmp500DAF931B66664E6A3308FAC825093C" />
60436036
<ComponentRef Id="cmpFCFE1AC675F0BA7336B392A419D70042" />
60446037
<ComponentRef Id="cmpB41201E194E7639BC9C33ADECC894426" />
@@ -6377,7 +6370,6 @@
63776370
<ComponentRef Id="cmpB1CC3831A4FB6A26C143DA8B6606425B" />
63786371
<ComponentRef Id="cmp915E6351383D1760B6CB025667A99E49" />
63796372
<ComponentRef Id="cmp4665FDA09AEBB2263079C77AD5FAE614" />
6380-
<ComponentRef Id="cmpD9E00CF36A1BF106BD49E9368F96A1EE" />
63816373
<ComponentRef Id="cmpA96B1B72C5D8449B6A78CEE7B3D8003A" />
63826374
<ComponentRef Id="cmp1DE03E3ABD3F489833110639A13322DB" />
63836375
<ComponentRef Id="cmp22A4A30D24CDED6264D46F12597014F5" />

src/Common/Commands.Common.Authentication.Test/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@
2828

2929
[assembly: ComVisible(false)]
3030
[assembly: CLSCompliant(false)]
31-
[assembly: AssemblyVersion("3.4.0")]
32-
[assembly: AssemblyFileVersion("3.4.0")]
31+
[assembly: AssemblyVersion("3.6.0")]
32+
[assembly: AssemblyFileVersion("3.6.0")]
3333
[assembly: CollectionBehavior(DisableTestParallelization = true)]

src/Common/Commands.Common.Authentication/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@
4646
// You can specify all the values or you can default the Build and Revision Numbers
4747
// by using the '*' as shown below:
4848
// [assembly: AssemblyVersion("1.0.*")]
49-
[assembly: AssemblyVersion("3.4.0")]
50-
[assembly: AssemblyFileVersion("3.4.0")]
49+
[assembly: AssemblyVersion("3.6.0")]
50+
[assembly: AssemblyFileVersion("3.6.0")]
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// ----------------------------------------------------------------------------------
2+
//
3+
// Copyright Microsoft Corporation
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
// ----------------------------------------------------------------------------------
14+
15+
using Microsoft.Azure.Management.Storage;
16+
using Microsoft.WindowsAzure.Commands.Common.Storage;
17+
18+
namespace Microsoft.Azure.Commands.Management.Storage.Models
19+
{
20+
public class ARMStorageProvider : IStorageServiceProvider
21+
{
22+
IStorageManagementClient _client;
23+
24+
public ARMStorageProvider(IStorageManagementClient client)
25+
{
26+
_client = client;
27+
}
28+
public IStorageService GetStorageService(string name, string resourceGroupName)
29+
{
30+
var account = _client.StorageAccounts.GetProperties(resourceGroupName, name);
31+
var keys = _client.StorageAccounts.ListKeys(resourceGroupName, name);
32+
return new ARMStorageService(account, keys.Keys[0].Value,
33+
keys.Keys[1].Value);
34+
}
35+
}
36+
}

0 commit comments

Comments
 (0)