Skip to content

Commit 6271f64

Browse files
authored
Merge pull request #6 from Azure/preview
Sync.
2 parents 010aaf2 + 715880a commit 6271f64

File tree

3,414 files changed

+2921776
-391195
lines changed

Some content is hidden

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

3,414 files changed

+2921776
-391195
lines changed

Azure.PowerShell.Netcore.sln

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,14 +139,16 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Commands.Storage.Netcore",
139139
EndProject
140140
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Common.KeyVault.Netcore", "src\Common\Commands.Common.KeyVault\Common.KeyVault.Netcore.csproj", "{836965C0-B198-4D01-B3D7-757DB62B49A0}"
141141
EndProject
142-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Commands.Common.Websites.Netcore", "src\Common\Commands.Common.Websites\Common.Websites.Netcore.csproj", "{592B3E1B-49E3-4F3C-BF6B-E5D4133B1443}"
142+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Common.Websites.Netcore", "src\Common\Commands.Common.Websites\Common.Websites.Netcore.csproj", "{592B3E1B-49E3-4F3C-BF6B-E5D4133B1443}"
143143
EndProject
144144
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Commands.UsageAggregates.Netcore", "src\ResourceManager\UsageAggregates\Commands.UsageAggregates\Commands.UsageAggregates.Netcore.csproj", "{AC30CFA4-0EC7-4303-ABC1-A60DFCA44B74}"
145145
EndProject
146146
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Commands.DeviceProvisioningServices.Netcore", "src\ResourceManager\DeviceProvisioningServices\Commands.DeviceProvisioningServices\Commands.DeviceProvisioningServices.Netcore.csproj", "{804B11B7-D7B5-4E0F-ADFB-4BCD61B23D55}"
147147
EndProject
148148
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Commands.PolicyInsights.Netcore", "src\ResourceManager\PolicyInsights\Commands.PolicyInsights\Commands.PolicyInsights.Netcore.csproj", "{A0574194-976A-486A-B589-07B2E50CA6EF}"
149149
EndProject
150+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Commands.Common.Aks.Netcore", "src\Common\Commands.Common.Aks\Commands.Common.Aks.Netcore.csproj", "{B3A55509-A1D4-4884-B86F-179551C65C81}"
151+
EndProject
150152
Global
151153
GlobalSection(SolutionConfigurationPlatforms) = preSolution
152154
Debug|Any CPU = Debug|Any CPU
@@ -1021,6 +1023,18 @@ Global
10211023
{A0574194-976A-486A-B589-07B2E50CA6EF}.Release|x64.Build.0 = Release|Any CPU
10221024
{A0574194-976A-486A-B589-07B2E50CA6EF}.Release|x86.ActiveCfg = Release|Any CPU
10231025
{A0574194-976A-486A-B589-07B2E50CA6EF}.Release|x86.Build.0 = Release|Any CPU
1026+
{B3A55509-A1D4-4884-B86F-179551C65C81}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
1027+
{B3A55509-A1D4-4884-B86F-179551C65C81}.Debug|Any CPU.Build.0 = Debug|Any CPU
1028+
{B3A55509-A1D4-4884-B86F-179551C65C81}.Debug|x64.ActiveCfg = Debug|Any CPU
1029+
{B3A55509-A1D4-4884-B86F-179551C65C81}.Debug|x64.Build.0 = Debug|Any CPU
1030+
{B3A55509-A1D4-4884-B86F-179551C65C81}.Debug|x86.ActiveCfg = Debug|Any CPU
1031+
{B3A55509-A1D4-4884-B86F-179551C65C81}.Debug|x86.Build.0 = Debug|Any CPU
1032+
{B3A55509-A1D4-4884-B86F-179551C65C81}.Release|Any CPU.ActiveCfg = Release|Any CPU
1033+
{B3A55509-A1D4-4884-B86F-179551C65C81}.Release|Any CPU.Build.0 = Release|Any CPU
1034+
{B3A55509-A1D4-4884-B86F-179551C65C81}.Release|x64.ActiveCfg = Release|Any CPU
1035+
{B3A55509-A1D4-4884-B86F-179551C65C81}.Release|x64.Build.0 = Release|Any CPU
1036+
{B3A55509-A1D4-4884-B86F-179551C65C81}.Release|x86.ActiveCfg = Release|Any CPU
1037+
{B3A55509-A1D4-4884-B86F-179551C65C81}.Release|x86.Build.0 = Release|Any CPU
10241038
EndGlobalSection
10251039
GlobalSection(SolutionProperties) = preSolution
10261040
HideSolutionNode = FALSE

ChangeLog.md

Lines changed: 86 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,89 @@
1-
## 6.5.0 - July 2018
1+
## 6.6.0 - July 2018
2+
#### General
3+
* Updated all help files to include full parameter types and correct input/output types.
4+
5+
#### AzureRM.Profile
6+
* Updated Common.Strategy library to be able to validate that the current config for a resource is compatible with the target resource. Default is always true, individual resources and overridet the default.
7+
* Added ps1xml types to Common.Storage
8+
9+
#### Azure.Storage
10+
* Support get Storage Context from DefaulfProfile
11+
* Add Ps1XmlAttribute to cmdlets output types properties.
12+
13+
#### AzureRM.ApiManagement
14+
* Fixed issue https://github.com/Azure/azure-powershell/issues/6370
15+
- Fixed bug in Automapper to translate PsApiManagementApi to ApiContract
16+
* Fixed issue https://github.com/Azure/azure-powershell/issues/6515
17+
- Fixed bug in File.Save to not overload with Encoding Type
18+
* Fixed issue https://github.com/Azure/azure-powershell/issues/6560
19+
- Upgraded to 4.0.3 Nuget version which fixes the pattern exception on apiId
20+
21+
#### AzureRM.Compute
22+
* Fix issue with creating a vm using DiskFileParameterSet in New-AzureRmVm failing because of PremiumLRS storage account type renaming.
23+
* Fix Invoke-AzureRmVMRunCommand cmdlet
24+
* Update Get-AzureRmAvailabilitySet to enable list all availability sets in a subscription. (ResouceGroupName parameter is now optional.)
25+
* Update SimpleParameterSet of 'New-AzureRmVm' to enable Accelerated Network on qualifying vms.
26+
* Update New-AzureRmVmss simple parameter set to fail creating the vmss when a user specified LB already exists.
27+
* Update example for New-AzureRmDisk
28+
* Add example for 'New-AzureRmVM'
29+
* Update description for Set-AzureRmVMOSDisk
30+
* Update Example 1 for Set-AzureRmVMBginfoExtension to correct spelling and prefix.
31+
32+
#### AzureRM.DataFactoryV2
33+
* Updated the ADF .Net SDK version to 1.1.0.
34+
* Support self-hosted integration runtime sharing across data factories.
35+
- Add new parameter -SharedIntegrationRuntimeResourceId to Set-AzureRmDataFactoryV2IntegrationRuntime cmdlet.
36+
- Add new optional parameter -LinkedDataFactoryName to Remove-AzureRmDataFactoryV2IntegrationRuntime cmdlet.
37+
38+
#### AzureRM.DataLakeStore
39+
* Updated the DataPlane SDK (Microsoft.Azure.DataLake.Store) version to 1.1.9
40+
41+
#### AzureRM.EventHub
42+
* Updated piping for InputObject and ResourceId in remove cmdlets
43+
44+
#### AzureRM.Insights
45+
* Fixed formatting of OutputType in help files
46+
* Using Microsoft.Azure.Management.Monitor SDK 0.19.1-preview
47+
48+
#### AzureRM.KeyVault
49+
* Fix piping issue in Set-AzureRmKeyVaultAccessPolicy
50+
51+
#### AzureRM.Network
52+
* Added examples for LoadBalancerInboundNatPoolConfig cmdlets.
53+
54+
#### AzureRM.Resources
55+
* Fix issue when providing both tag name and value for 'Get-AzureRmResource'
56+
- https://github.com/Azure/azure-powershell/issues/6765
57+
* Fix piping scenario with 'Set-AzureRmResource'
58+
59+
#### AzureRM.ServiceBus
60+
* Updated piping for InputObject and ResourceId in remove cmdlets
61+
* fixed few issues
62+
- https://github.com/Azure/azure-powershell/issues/3780
63+
- https://github.com/Azure/azure-powershell/issues/4340
64+
65+
#### AzureRM.Sql
66+
* Adding Server Advanced Threat Protection support with the following cmdlets:
67+
- Enable-AzureRmSqlServerAdvancedThreatProtection; Disable-AzureRmSqlServerAdvancedThreatProtection; Get-AzureRmSqlServerAdvancedThreatProtectionPolicy
68+
* Adding Vulnerability Assessment support with the following cmdlets:
69+
- Update-AzureRmSqlDatabaseVulnerabilityAssessmentSettings; Get-AzureRmSqlDatabaseVulnerabilityAssessmentSettings; Clear-AzureRmSqlDatabaseVulnerabilityAssessmentSettings
70+
- Set-AzureRmSqlDatabaseVulnerabilityAssessmentRuleBaseline; Get-AzureRmSqlDatabaseVulnerabilityAssessmentRuleBaseline; Clear-AzureRmSqlDatabaseVulnerabilityAssessmentRuleBaseline
71+
- Convert-AzureRmSqlDatabaseVulnerabilityAssessmentScan; Get-AzureRmSqlDatabaseVulnerabilityAssessmentScanRecord; Start-AzureRmSqlDatabaseVulnerabilityAssessmentScan
72+
* Fixed example in Remove-AzureRmSqlServerFirewallRule
73+
* Fix datetime handling incorrectly for non-us base culture in Get-AzureSqlSyncGroupLog
74+
75+
#### AzureRM.Storage
76+
* Add Ps1XmlAttribute to cmdlets output types properties
77+
* Show StorageAccount cmdlet output in table view
78+
- Get-AzureRmStorageAccount
79+
- New-AzureRmStorageAccount
80+
- Set-AzureRmStorageAccount
81+
82+
#### AzureRM.Tags
83+
* Remove incorrect statement from Tag cmdlet help
84+
- https://github.com/Azure/azure-powershell/issues/3878
85+
86+
## 6.5.0 - July 2018
287
#### AzureRM.Profile
388
* Updated help for 'Get-AzureRmContextAutosaveSetting'
489

ModuleMappings.json

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,9 @@
134134
"src/ResourceManager/Profile/": [
135135
"AzureRM.Profile"
136136
],
137-
"src/ResourceManager/RecoveryServices.Backup/": [
138-
"AzureRM.RecoveryServices.Backup"
139-
],
140137
"src/ResourceManager/RecoveryServices/": [
141-
"AzureRM.RecoveryServices"
138+
"AzureRM.RecoveryServices",
139+
"AzureRM.RecoveryServices.Backup"
142140
],
143141
"src/ResourceManager/RedisCache/": [
144142
"AzureRM.RedisCache"
@@ -155,6 +153,9 @@
155153
"src/ResourceManager/Scheduler/": [
156154
"AzureRM.Scheduler"
157155
],
156+
"src/ResourceManager/Search/": [
157+
"AzureRM.Search"
158+
],
158159
"src/ResourceManager/ServiceBus/": [
159160
"AzureRM.ServiceBus"
160161
],
@@ -191,6 +192,9 @@
191192
"src/Storage/Commands.Storage/": [
192193
"Azure.Storage"
193194
],
195+
"src/ResourceManager/StorageSync/": [
196+
"AzureRM.StorageSync"
197+
],
194198
"tools/": [
195199
]
196-
}
200+
}

TestMappings.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,9 @@
164164
"src/ResourceManager/Scheduler/": [
165165
".\\src\\ResourceManager\\Scheduler\\Commands.Scheduler.Test\\bin\\Debug\\Microsoft.Azure.Commands.Scheduler.Test.dll"
166166
],
167+
"src/ResourceManager/Search/": [
168+
".\\src\\ResourceManager\\Search\\Commands.Management.Search.Test\\bin\\Debug\\Microsoft.Azure.Commands.Management.Search.Test.dll"
169+
],
167170
"src/ResourceManager/ServiceBus/": [
168171
".\\src\\ResourceManager\\ServiceBus\\Commands.ServiceBus.Test\\bin\\Debug\\Microsoft.Azure.Commands.ServiceBus.Test.dll"
169172
],
@@ -176,6 +179,9 @@
176179
"src/ResourceManager/Storage/Commands.Management.Storage.Test/": [
177180
".\\src\\ResourceManager\\Storage\\Commands.Management.Storage.Test\\bin\\Debug\\Microsoft.Azure.Commands.Management.Storage.Test.dll"
178181
],
182+
"src/ResourceManager/StorageSync": [
183+
".\\src\\ResourceManager\\StorageSync\\Commands.StorageSync.Test\\bin\\Debug\\Microsoft.Azure.Commands.StorageSync.Test.dll"
184+
],
179185
"src/ResourceManager/StreamAnalytics/": [
180186
".\\src\\ResourceManager\\StreamAnalytics\\Commands.StreamAnalytics.Test\\bin\\Debug\\Microsoft.Azure.Commands.StreamAnalytics.Test.dll"
181187
],
@@ -192,6 +198,9 @@
192198
"src/ResourceManager/Websites/": [
193199
".\\src\\ResourceManager\\LogicApp\\Commands.LogicApp.Test\\bin\\Debug\\Microsoft.Azure.Commands.LogicApp.Test.dll",
194200
".\\src\\ResourceManager\\Websites\\Commands.Websites.Test\\bin\\Debug\\Microsoft.Azure.Commands.Websites.Test.dll"
201+
],
202+
"src/ResourceManager/ManagementPartner/": [
203+
".\\src\\ResourceManager\\ManagementPartner\\Commands.Partner.Test\\bin\\Debug\\Microsoft.Azure.Commands.ManagementPartner.Test.dll"
195204
],
196205
"src/ServiceManagement/": [
197206
".\\src\\ServiceManagement\\Common\\Commands.Common.Test\\bin\\Debug\\Microsoft.WindowsAzure.Commands.Common.Test.dll",

build.proj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,8 @@
260260
<Target Name="Build" DependsOnTargets="RestoreNugetPackages;BuildMsBuildTask;FilterBuild">
261261

262262
<Message Importance="high" Text="Building Cmdlets for scope $(Scope)..." />
263-
<CallTarget targets="ChangeLogCheck" ContinueOnError="false" />
263+
<!-- Investigate why the ChangeLogCheck target removes the 8080th character -->
264+
<!-- <CallTarget targets="ChangeLogCheck" ContinueOnError="false" /> -->
264265

265266
<MakeDir Directories="$(PackageDirectory)"
266267
Condition="'$(Scope)' != 'Stack'" />
@@ -666,7 +667,8 @@
666667
<MSBuild Projects="build.proj"
667668
Targets="InvokeXUnit"
668669
Properties="XUnitTests=%(XUnitTests.Identity);TestOutputDirectory=$(TestOutputDirectory)"
669-
ContinueOnError="false" />
670+
Condition="'@(XunitTests->Count())' != '0'"
671+
ContinueOnError="false" />
670672

671673
<CallTarget Targets="TestFailureCheck" />
672674
</Target>

documentation/development-docs/azure-powershell-design-guidelines.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@
4141
- [InputObject](#inputobject)
4242
- [AsJob Parameter](#asjob-parameter)
4343

44+
## Expected Patterns for Standard Cmdlets
45+
46+
For information and examples on standard cmdlet implementation (`Get-*`, `New-*`, `Remove-*` and `Set/Update-*`) for resources and child resources, please see our [Expected Patterns for Standard Cmdlets](./patterns-for-standard-cmdlets.md) document.
47+
4448
## Cmdlet Guidelines
4549

4650
### Cmdlet Naming Conventions
@@ -154,7 +158,7 @@ Parameters of type `bool` are _strongly_ discouraged in PowerShell. The `SwitchP
154158
If there is a closed set of values applicable for a given parameter, use either a `ValidateSet`, enumeration type, or an `ArgumentCompleter`. This functionality allows users to tab through the different values they can provide. From the [Strongly Encouraged Development Guidelines](https://msdn.microsoft.com/en-us/library/dd878270(v=vs.85).aspx):
155159

156160
> _There are two ways to create a parameter whose value can be selected from a set of options._
157-
>
161+
>
158162
> - _Define an enumeration type (or use an existing type) that specifies the valid values. Then, use the enumeration type to create a parameter of that type._
159163
> - _Add the **ValidateSet** attribute to the parameter declaration._
160164
@@ -192,7 +196,7 @@ For PowerShell to determine which parameter set a user is intending to use with
192196

193197
It is possibile to call a PowerShell cmdlet without providing the parameter names, but just the values you would like to pass through. This is done by specifying the position at which the value of each parameter should be provided by using the `Position` property for a parameter. However, when there are too many positional parameters in a single parameter set, it can be difficult for the user to remember the exact ordering in which the parameter values should be provided. From the remarks section of [Parameter Attribute Declaration](https://msdn.microsoft.com/en-us/library/ms714348(v=vs.85).aspx):
194198

195-
> _When you specify positional parameters, limit the number of positional parameters in a parameter set to less than five. And, positional parameters do not have to be contiguous. Positions 5, 100, and 250 work the same as positions 0, 1, and 2._
199+
> _When you specify positional parameters, limit the number of positional parameters in a parameter set to less than five. And, positional parameters do not have to be contiguous. Positions 5, 100, and 250 work the same as positions 0, 1, and 2._
196200
197201
In addition, there should be no two parameters with the same position in the same parameter set. From the remarks section of [Parameter Attribute Declaration](https://msdn.microsoft.com/en-us/library/ms714348(v=vs.85).aspx):
198202

@@ -218,7 +222,7 @@ The interactive parameter set **will always be the default parameter set** for a
218222

219223
This parameter set should be implemented by _every_ cmdlet - the user is able to provide a `ResourceId` string or GUID from the Azure Portal, or from one of the generic resources cmdlets (more information about that below in the piping section), and act upon the given resource associated with the id. The typical `Name` and `ResourceGroupName` parameters are replaced by a single `ResourceId` parameter of type string.
220224

221-
#### InputObject Parameter Set
225+
#### InputObject Parameter Set
222226

223227
This parameter should be implemented by _most_ cmdlets - the user is able to take the object returned from the `Get`, `New`, or `Set` cmdlets (or other cmdlets that return the common resource) and provide it to the `InputObject` parameter for a cmdlet that acts upon the same resource. The typical `Name` and `ResourceGroupName` parameters are retrieved from the `InputObject` that the user is passing through.
224228

@@ -236,7 +240,7 @@ In this scenario, the user is able to pipe the result of a generic resources cmd
236240
Find-AzureRmResource -ResourceType Microsoft.Foo/foo | Remove-AzureRmFoo
237241
```
238242

239-
For more information on enabling the `ResourceId` piping scenario and more examples, please see the ["Using the `ResourceId` parameter"](./piping-in-powershell.md#using-the-resourceid-parameter) section of the _Piping in PowerShell_ document.
243+
For more information on enabling the `ResourceId` piping scenario and more examples, please see the ["Using the `ResourceId` parameter"](./piping-in-powershell.md#using-the-resourceid-parameter) section of the _Piping in PowerShell_ document.
240244

241245
### InputObject
242246

documentation/development-docs/help-generation.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ $PathToHelpFolder = "../../help" # Full path to help folder containing markdown
6565
Update-MarkdownHelpModule -Path $PathToHelpFolder -RefreshModulePage -AlphabeticParamsOrder
6666
```
6767

68+
Because the -UseFullTypeName parameter is not yet available in Update-MarkdownHelpModule (it will be enabled in the upcoming release of PlatyPS), you will need to run this command to modify the help files to use full type names:
69+
```
70+
Get-ChildItem -Path $PathToHelpFolder | Update-MarkdownHelp -AlphabeticParamsOrder -UseFullTypeName
71+
```
72+
6873
This will update all of the markdown files with public interface changes made to corresponding cmdlets, add markdown files for any new cmdlets, remove markdown files for any deleted cmdlets, and update the module page (_e.g.,_ `AzureRM.Profile.md`) with any added or removed cmdlets.
6974

7075
#### Updating a single markdown file
@@ -76,7 +81,7 @@ $PathToModuleManifest = "../../<module>.psd1" # Full path to the module manifest
7681
Import-Module -Name $PathToModuleManifest
7782
7883
$PathToMarkdownFile = "../../<cmdlet>.md" # Full path to the markdown file to be updated
79-
Update-MarkdownHelp -Path $PathToMarkdownFile -AlphabeticParamsOrder
84+
Update-MarkdownHelp -Path $PathToMarkdownFile -AlphabeticParamsOrder -UseFullTypeName
8085
```
8186

8287
#### Generating and viewing the MAML help
@@ -101,4 +106,4 @@ $help = Get-HelpPreview -Path $PathToMAML
101106
102107
# Get the help for a specific cmdlet
103108
$help | where { $_.Name -eq "<cmdlet>" }
104-
```
109+
```

0 commit comments

Comments
 (0)