Skip to content

Commit e238185

Browse files
authored
Merge pull request #684 from Azure/dev
huangpf PR: dev <- Azure:dev
2 parents a0c7d5b + 2868c12 commit e238185

File tree

130 files changed

+26931
-13887
lines changed

Some content is hidden

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

130 files changed

+26931
-13887
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ This checklist is used to make sure that common guidelines for a pull request ar
2626

2727
### [Cmdlet Signature Guidelines](https://github.com/Azure/azure-powershell/blob/dev/CONTRIBUTING.md#cmdlet-signature-guidelines)
2828
- [ ] New cmdlets that make changes or have side effects should implement `ShouldProcess` and have `SupportShouldProcess=true` specified in the cmdlet attribute. You can find more information on `ShouldProcess` [here](https://gist.github.com/markcowl/338e16fe5c8bbf195aff9f8af0db585d#what-is-the-change).
29-
- [ ] Cmdlet specifies `OutputType` attribute if any output is produced - if the cmdlet produces no output, it should implement a `PassThrough` parameter.
29+
- [ ] Cmdlet specifies `OutputType` attribute if any output is produced - if the cmdlet produces no output, it should implement a `PassThru` parameter.
3030

3131
### [Cmdlet Parameter Guidelines](https://github.com/Azure/azure-powershell/blob/dev/CONTRIBUTING.md#cmdlet-parameter-guidelines)
3232
- [ ] Parameter types should not expose types from the management library - complex parameter types should be defined in the module.
3333
- [ ] Complex parameter types are discouraged - a parameter type should be simple types as often as possible. If complex types are used, they should be shallow and easily creatable from a constructor or another cmdlet.
34-
- [ ] Cmdlet parameter sets should be mutually exclusive - each parameter set must have at least one mandatory parameter not in other parameter sets.
34+
- [ ] Cmdlet parameter sets should be mutually exclusive - each parameter set must have at least one mandatory parameter not in other parameter sets.

ChangeLog.md

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,37 @@
1-
## 2016.12.14 - Version 3.3.0
1+
## 2017.01.18 - Version 3.4.0
2+
* Storage
3+
* Fix Start-AzureStorageBlobCopy output might has wrong BlobType issue
4+
- Start-AzureStorageBlobCopy
5+
* Fix hang issue when running cmdlets from WPF/Winform context
6+
- Get-AzureStorageBlob
7+
- Get-AzureStorageBlobContent
8+
- Get-AzureStorageBlobCopyState
9+
- Get-AzureStorageContainer
10+
- Get-AzureStorageContainerStoredAccessPolicy
11+
- New-AzureStorageContainer
12+
- Remove-AzureStorageBlob
13+
- Remove-AzureStorageContainer
14+
- Set-AzureStorageBlobContent
15+
- Set-AzureStorageContainerAcl
16+
- Start-AzureStorageBlobCopy
17+
- Stop-AzureStorageBlobCopy
18+
- Get-AzureStorageFile
19+
- Get-AzureStorageFileContent
20+
- Get-AzureStorageFileCopyState
21+
- Get-AzureStorageShare
22+
- Get-AzureStorageShareStoredAccessPolicy
23+
- New-AzureStorageDirectory
24+
- New-AzureStorageShare
25+
- Remove-AzureStorageDirectory
26+
- Remove-AzureStorageFile
27+
- Remove-AzureStorageShare
28+
- Set-AzureStorageFileContent
29+
- Start-AzureStorageFileCopy
30+
- Stop-AzureStorageFileCopy
31+
- Get-AzureStorageQueueStoredAccessPolicy
32+
- Get-AzureStorageTableStoredAccessPolicy
33+
34+
## 2016.12.14 - Version 3.3.0
235
* ApiManagement
336
* Added new cmdlets to manage external Identity Provider Configurations
437
- New-AzureRmApiManagementIdentityProvider

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ This repository contains a set of PowerShell cmdlets for developers and administ
3636
* Scheduler
3737
* StorSimple
3838
* Redis Cache
39-
39+
4040
* Windows Azure Pack
4141
* Web Site: CRUD web site, deployment, configure and get log, start/stop/restart/show web site
4242
* Service Bus: CRD namespace
@@ -46,7 +46,7 @@ This repository contains a set of PowerShell cmdlets for developers and administ
4646
* Windows Azure Stack
4747
* Azure Stack Administration
4848
* Storage Service Management
49-
49+
5050

5151
For detail descriptions and examples of the cmdlets, type
5252
* ```help azure``` to get all the cmdlets.
@@ -92,7 +92,7 @@ You can also find the standalone installers for all the versions at [Downloads](
9292

9393
In general, follow these steps to start using Microsoft Azure PowerShell
9494

95-
* Get yourself authenticated with Microsoft Azure. For details, please check out [this article](https://azure.microsoft.com/en-us/documentation/articles/install-configure-powershell/).
95+
* Get yourself authenticated with Microsoft Azure. For details, please check out [this article](https://docs.microsoft.com/powershell/azureps-cmdlets-docs/).
9696
* Option 1: Login with your Microsoft account or Organizational account directly from PowerShell. Microsoft Azure Active Directory authentication is used in this case. No management certificate is needed.
9797
* Starting from 1.0.0, you can use ```Add-AzureRmAccount -Credential``` to avoid the browser pop up for Organizational account.
9898
* To use RDFE cmdlets, use ```Add-AzureAccount```

src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachineScaleSet/VirtualMachineScaleSetDeleteInstancesMethod.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ protected override void ProcessRecord()
133133
this.MethodName = "VirtualMachineScaleSetDeleteInstances";
134134
if (ShouldProcess(this.dynamicParameters["ResourceGroupName"].Value.ToString(), VerbsCommon.Remove))
135135
{
136-
WriteWarning("Breaking change notice:'Force' parameter will be added in upcoming next release.");
136+
WriteWarning("Breaking change notice:'Force' parameter will be added in upcoming release.");
137137
base.ProcessRecord();
138138
}
139139
}

src/ResourceManager/Compute/Commands.Compute/VirtualMachine/Operation/GetAzureVMCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public override void ExecuteCmdlet()
7979
{
8080
base.ExecuteCmdlet();
8181

82-
WriteWarning("Breaking change notice: In upcoming releaese, top level properties, DataDiskNames and NetworkInterfaceIDs, will be removed from VM object because they are also in StorageProfile and NetworkProfile, respectively.");
82+
WriteWarning("Breaking change notice: In upcoming release, top level properties, DataDiskNames and NetworkInterfaceIDs, will be removed from VM object because they are also in StorageProfile and NetworkProfile, respectively.");
8383

8484
ExecuteClientAction(() =>
8585
{

src/ResourceManager/OperationalInsights/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Current Release
21+
* Get-AzureRmOperationalInsightsSearchResults no longer requires the Top parameter to retrieve results
2122

2223
## Version 2.4.0
2324

src/ResourceManager/OperationalInsights/Commands.OperationalInsights.Test/Commands.OperationalInsights.Test.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@
222222
<None Include="SessionRecords\Microsoft.Azure.Commands.OperationalInsights.Test.SearchTests\TestSearchSetAndRemoveSavedSearches.json">
223223
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
224224
</None>
225-
<None Include="SessionRecords\Microsoft.Azure.Commands.OperationalInsights.Test.StorageInsightTests\TestStorageInsightCreateFailsWithoutWorkspace.json">
225+
<None Include="SessionRecords\Microsoft.Azure.Commands.OperationalInsights.Test.StorageInsightTests\TestStorageInsightCreateFailsNoWs.json">
226226
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
227227
</None>
228228
<None Include="SessionRecords\Microsoft.Azure.Commands.OperationalInsights.Test.StorageInsightTests\TestStorageInsightCreateUpdateDelete.json">
@@ -243,4 +243,4 @@
243243
</ItemGroup>
244244
<ItemGroup />
245245
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
246-
</Project>
246+
</Project>

src/ResourceManager/OperationalInsights/Commands.OperationalInsights.Test/ScenarioTests/StorageInsightTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ public void TestStorageInsightCreateUpdateDelete()
3535

3636
[Fact]
3737
[Trait(Category.AcceptanceType, Category.CheckIn)]
38-
public void TestStorageInsightCreateFailsWithoutWorkspace()
38+
public void TestStorageInsightCreateFailsNoWs()
3939
{
40-
RunPowerShellTest("Test-StorageInsightCreateFailsWithoutWorkspace");
40+
RunPowerShellTest("Test-StorageInsightCreateFailsNoWs");
4141
}
4242
}
4343
}

src/ResourceManager/OperationalInsights/Commands.OperationalInsights.Test/ScenarioTests/StorageInsightTests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ function Test-StorageInsightCreateUpdateDelete
9999
.SYNOPSIS
100100
Validate that storage insight creation fails without a valid parent workspace
101101
#>
102-
function Test-StorageInsightCreateFailsWithoutWorkspace
102+
function Test-StorageInsightCreateFailsNoWs
103103
{
104104
$wsname = Get-ResourceName
105105
$siname = Get-ResourceName
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@
362362
}
363363
],
364364
"Names": {
365-
"Test-StorageInsightCreateFailsWithoutWorkspace": [
365+
"Test-StorageInsightCreateFailsNoWs": [
366366
"onesdk4327",
367367
"onesdk2618",
368368
"onesdk7042",

src/ResourceManager/OperationalInsights/Commands.OperationalInsights/Client/OperationalInsightsClient.Search.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,18 @@ public virtual PSSearchGetSchemaResponse GetSchema(string resourceGroupName, str
6262
public virtual PSSearchGetSearchResultsResponse GetSearchResults(string resourceGroupName, string workspaceName, PSSearchGetSearchResultsParameters psParameters)
6363
{
6464
SearchGetSearchResultsParameters parameters = new SearchGetSearchResultsParameters();
65-
parameters.Top = psParameters.Top;
65+
6666
if (psParameters.Highlight != null)
6767
{
6868
parameters.Highlight = new Highlight();
6969
parameters.Highlight.Pre = psParameters.Highlight.Pre;
7070
parameters.Highlight.Post = psParameters.Highlight.Post;
7171
}
72+
73+
parameters.Top = psParameters.Top == 0 ? 10 : psParameters.Top;
7274
parameters.Query = psParameters.Query;
7375
parameters.Start = psParameters.Start;
74-
parameters.End = psParameters.End;
76+
parameters.End = psParameters.End.GetValueOrDefault(DateTime.UtcNow);
7577

7678
SearchGetSearchResultsResponse response = OperationalInsightsManagementClient.Search.GetSearchResults(resourceGroupName, workspaceName, parameters);
7779
PSSearchGetSearchResultsResponse searchResponse = new PSSearchGetSearchResultsResponse(response);

0 commit comments

Comments
 (0)