Skip to content

Commit 2e0f8ea

Browse files
authored
Merge branch 'master' into 7679
2 parents cee56bf + 4713c26 commit 2e0f8ea

File tree

7,065 files changed

+2467789
-1664386
lines changed

Some content is hidden

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

7,065 files changed

+2467789
-1664386
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ If this issue is a bug report:
77
- You can also install the latest version from the Releases section
88
- https://github.com/Azure/azure-powershell/releases
99
- Ensure that you repro the issue with $DebugPreference = "Continue" to receive the debug stream
10-
- If this bug involves an exception being thrown, please run Resolve-AzureRmError to receive extended information on the error
10+
- If this bug involves an exception being thrown, please run Resolve-AzError to receive extended information on the error
1111
- Fill out the below template
1212
1313
If this issue is not a bug report, please remove the below template

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ before_install:
2525
# https://github.com/travis-ci/travis-ci/issues/1066#issuecomment-383489298
2626
script:
2727
- sudo dotnet msbuild build.proj /t:BuildNetcore /p:Configuration=$CONFIG || travis_terminate 1
28-
- sudo dotnet src/Package/StaticAnalysis/StaticAnalysis.Netcore.dll -p $TRAVIS_BUILD_DIR/src/Package/$CONFIG -r $TRAVIS_BUILD_DIR/src/Package/StaticAnalysis -u || travis_terminate 1
2928
- sudo pwsh -NonInteractive -NoLogo -NoProfile -File tools/TestModuleLoading.ps1 || travis_terminate 1
3029
- sudo dotnet pack src/TestPrerequisites/Common.TestPrerequisites.sln --configuration $CONFIG || travis_terminate 1
3130
- sudo dotnet test src/Azure.PowerShell.Netcore.Test.sln --filter "AcceptanceType=CheckIn&RunType!=DesktopOnly" --configuration $CONFIG --framework netcoreapp2.0

Azure.PowerShell.Netcore.sln

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Microsoft Visual Studio Solution File, Format Version 12.00
22
# Visual Studio 15
3-
VisualStudioVersion = 15.0.27130.2027
3+
VisualStudioVersion = 15.0.27130.2020
44
MinimumVisualStudioVersion = 10.0.40219.1
55
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Commands.Profile.Netcore", "src\ResourceManager\Profile\Commands.Profile\Commands.Profile.Netcore.csproj", "{31044C50-5F29-4CB4-9E7C-8E0123FA6B77}"
66
EndProject
@@ -148,8 +148,14 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Commands.SignalR.Netcore",
148148
EndProject
149149
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Commands.DevSpaces.Netcore", "src\ResourceManager\DevSpaces\Commands.DevSpaces\Commands.DevSpaces.Netcore.csproj", "{6EBD1E1B-12D1-451D-B284-ED35A91D6C8C}"
150150
EndProject
151+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Commands.FrontDoor.Netcore", "src\ResourceManager\FrontDoor\Commands.FrontDoor\Commands.FrontDoor.Netcore.csproj", "{9207944C-6E48-4845-BC58-85C7EFAA0E28}"
152+
EndProject
151153
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Commands.IotCentral.Netcore", "src\ResourceManager\IotCentral\Commands.IotCentral\Commands.IotCentral.Netcore.csproj", "{18B8B354-6920-4329-AB6B-DC98790B7A5A}"
152154
EndProject
155+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Commands.Security.Netcore", "src\ResourceManager\Security\Commands.Security\Commands.Security.Netcore.csproj", "{FA322448-E646-4221-9FEA-3C1C8CC81B99}"
156+
EndProject
157+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Commands.StorageSync.Netcore", "src\ResourceManager\StorageSync\Commands.StorageSync\Commands.StorageSync.Netcore.csproj", "{4C2F89E4-A0E0-4ECB-A5DA-A583EDF1ED62}"
158+
EndProject
153159
Global
154160
GlobalSection(SolutionConfigurationPlatforms) = preSolution
155161
Debug|Any CPU = Debug|Any CPU
@@ -1035,6 +1041,18 @@ Global
10351041
{6EBD1E1B-12D1-451D-B284-ED35A91D6C8C}.Release|x64.Build.0 = Release|Any CPU
10361042
{6EBD1E1B-12D1-451D-B284-ED35A91D6C8C}.Release|x86.ActiveCfg = Release|Any CPU
10371043
{6EBD1E1B-12D1-451D-B284-ED35A91D6C8C}.Release|x86.Build.0 = Release|Any CPU
1044+
{9207944C-6E48-4845-BC58-85C7EFAA0E28}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
1045+
{9207944C-6E48-4845-BC58-85C7EFAA0E28}.Debug|Any CPU.Build.0 = Debug|Any CPU
1046+
{9207944C-6E48-4845-BC58-85C7EFAA0E28}.Debug|x64.ActiveCfg = Debug|Any CPU
1047+
{9207944C-6E48-4845-BC58-85C7EFAA0E28}.Debug|x64.Build.0 = Debug|Any CPU
1048+
{9207944C-6E48-4845-BC58-85C7EFAA0E28}.Debug|x86.ActiveCfg = Debug|Any CPU
1049+
{9207944C-6E48-4845-BC58-85C7EFAA0E28}.Debug|x86.Build.0 = Debug|Any CPU
1050+
{9207944C-6E48-4845-BC58-85C7EFAA0E28}.Release|Any CPU.ActiveCfg = Release|Any CPU
1051+
{9207944C-6E48-4845-BC58-85C7EFAA0E28}.Release|Any CPU.Build.0 = Release|Any CPU
1052+
{9207944C-6E48-4845-BC58-85C7EFAA0E28}.Release|x64.ActiveCfg = Release|Any CPU
1053+
{9207944C-6E48-4845-BC58-85C7EFAA0E28}.Release|x64.Build.0 = Release|Any CPU
1054+
{9207944C-6E48-4845-BC58-85C7EFAA0E28}.Release|x86.ActiveCfg = Release|Any CPU
1055+
{9207944C-6E48-4845-BC58-85C7EFAA0E28}.Release|x86.Build.0 = Release|Any CPU
10381056
{18B8B354-6920-4329-AB6B-DC98790B7A5A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
10391057
{18B8B354-6920-4329-AB6B-DC98790B7A5A}.Debug|Any CPU.Build.0 = Debug|Any CPU
10401058
{18B8B354-6920-4329-AB6B-DC98790B7A5A}.Debug|x64.ActiveCfg = Debug|Any CPU
@@ -1047,6 +1065,30 @@ Global
10471065
{18B8B354-6920-4329-AB6B-DC98790B7A5A}.Release|x64.Build.0 = Release|Any CPU
10481066
{18B8B354-6920-4329-AB6B-DC98790B7A5A}.Release|x86.ActiveCfg = Release|Any CPU
10491067
{18B8B354-6920-4329-AB6B-DC98790B7A5A}.Release|x86.Build.0 = Release|Any CPU
1068+
{FA322448-E646-4221-9FEA-3C1C8CC81B99}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
1069+
{FA322448-E646-4221-9FEA-3C1C8CC81B99}.Debug|Any CPU.Build.0 = Debug|Any CPU
1070+
{FA322448-E646-4221-9FEA-3C1C8CC81B99}.Debug|x64.ActiveCfg = Debug|Any CPU
1071+
{FA322448-E646-4221-9FEA-3C1C8CC81B99}.Debug|x64.Build.0 = Debug|Any CPU
1072+
{FA322448-E646-4221-9FEA-3C1C8CC81B99}.Debug|x86.ActiveCfg = Debug|Any CPU
1073+
{FA322448-E646-4221-9FEA-3C1C8CC81B99}.Debug|x86.Build.0 = Debug|Any CPU
1074+
{FA322448-E646-4221-9FEA-3C1C8CC81B99}.Release|Any CPU.ActiveCfg = Release|Any CPU
1075+
{FA322448-E646-4221-9FEA-3C1C8CC81B99}.Release|Any CPU.Build.0 = Release|Any CPU
1076+
{FA322448-E646-4221-9FEA-3C1C8CC81B99}.Release|x64.ActiveCfg = Release|Any CPU
1077+
{FA322448-E646-4221-9FEA-3C1C8CC81B99}.Release|x64.Build.0 = Release|Any CPU
1078+
{FA322448-E646-4221-9FEA-3C1C8CC81B99}.Release|x86.ActiveCfg = Release|Any CPU
1079+
{FA322448-E646-4221-9FEA-3C1C8CC81B99}.Release|x86.Build.0 = Release|Any CPU
1080+
{4C2F89E4-A0E0-4ECB-A5DA-A583EDF1ED62}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
1081+
{4C2F89E4-A0E0-4ECB-A5DA-A583EDF1ED62}.Debug|Any CPU.Build.0 = Debug|Any CPU
1082+
{4C2F89E4-A0E0-4ECB-A5DA-A583EDF1ED62}.Debug|x64.ActiveCfg = Debug|Any CPU
1083+
{4C2F89E4-A0E0-4ECB-A5DA-A583EDF1ED62}.Debug|x64.Build.0 = Debug|Any CPU
1084+
{4C2F89E4-A0E0-4ECB-A5DA-A583EDF1ED62}.Debug|x86.ActiveCfg = Debug|Any CPU
1085+
{4C2F89E4-A0E0-4ECB-A5DA-A583EDF1ED62}.Debug|x86.Build.0 = Debug|Any CPU
1086+
{4C2F89E4-A0E0-4ECB-A5DA-A583EDF1ED62}.Release|Any CPU.ActiveCfg = Release|Any CPU
1087+
{4C2F89E4-A0E0-4ECB-A5DA-A583EDF1ED62}.Release|Any CPU.Build.0 = Release|Any CPU
1088+
{4C2F89E4-A0E0-4ECB-A5DA-A583EDF1ED62}.Release|x64.ActiveCfg = Release|Any CPU
1089+
{4C2F89E4-A0E0-4ECB-A5DA-A583EDF1ED62}.Release|x64.Build.0 = Release|Any CPU
1090+
{4C2F89E4-A0E0-4ECB-A5DA-A583EDF1ED62}.Release|x86.ActiveCfg = Release|Any CPU
1091+
{4C2F89E4-A0E0-4ECB-A5DA-A583EDF1ED62}.Release|x86.Build.0 = Release|Any CPU
10501092
EndGlobalSection
10511093
GlobalSection(SolutionProperties) = preSolution
10521094
HideSolutionNode = FALSE

ChangeLog.md

Lines changed: 69 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,72 @@
1-
## 6.12.0 - November 2018
1+
## 6.13.0 - November 2018
2+
#### AzureRM.Profile
3+
* Update common code to use latest version of ClientRuntime
4+
5+
#### AzureRM.ApiManagement
6+
* Update dependencies for type mapping issue
7+
8+
#### AzureRM.Automation
9+
* Swagger based Azure Automation cmdlets
10+
* Added Update Management cmdlets
11+
* Added Source Control cmdlets
12+
* Added Remove-AzureRmAutomationHybridWorkerGroup cmdlet
13+
* Fixed the DSC Register Node command
14+
15+
#### AzureRM.Compute
16+
* Fixed identity issue for SystemAssigned identity
17+
* Update dependencies for type mapping issue
18+
19+
#### AzureRM.ContainerInstance
20+
* Update dependencies for type mapping issue
21+
22+
#### AzureRM.MarketplaceOrdering
23+
* update the examples description for marketplace cmdlets
24+
25+
#### AzureRM.Network
26+
* Added cmdlet New-AzureRmApplicationGatewayCustomError, Add-AzureRmApplicationGatewayCustomError, Get-AzureRmApplicationGatewayCustomError, Set-AzureRmApplicationGatewayCustomError, Remove-AzureRmApplicationGatewayCustomError, Add-AzureRmApplicationGatewayHttpListenerCustomError, Get-AzureRmApplicationGatewayHttpListenerCustomError, Set-AzureRmApplicationGatewayHttpListenerCustomError, Remove-AzureRmApplicationGatewayHttpListenerCustomError
27+
* Added ICMP back to supported AzureFirewall Network Protocols
28+
* Update cmdlet Test-AzureRmNetworkWatcherConnectivity, add validation on destination id, address and port.
29+
* Fix issues with memory usage in VirtualNetwork map
30+
31+
#### AzureRM.RecoveryServices.Backup
32+
* Fix for modifying policy for a protected file share.
33+
* Converted policy timezone to uppercase.
34+
35+
#### AzureRM.RecoveryServices.SiteRecovery
36+
* Corrected example in New-AzureRmRecoveryServicesAsrProtectableItem
37+
* Update dependencies for type mapping issue
38+
39+
#### AzureRM.Relay
40+
* Added optional Parameter -KeyValue to New-AzureRmRelayKey cmdlet, which enables user to provide KeyValue.
41+
42+
#### AzureRM.Resources
43+
* Update help documentation for resource identity related parameters in `New-AzureRmPolicyAssignment` and `Set-AzureRmPolicyAssignment`
44+
* Add an example for New-AzureRmPolicyDefinition that uses -Metadata
45+
* Fix to allow case preservation in Tag keys in NetStandard: #7678 #7703
46+
47+
#### AzureRM.ServiceFabric
48+
* Add deprecation messages for upcoming breaking changes
49+
50+
#### AzureRM.Sql
51+
* Added new cmdlets for CRUD operations on Azure Sql Database Managed Instance and Azure Sql Managed Database
52+
- Get-AzureRmSqlInstance
53+
- New-AzureRmSqlInstance
54+
- Set-AzureRmSqlInstance
55+
- Remove-AzureRmSqlInstance
56+
- Get-AzureRmSqlInstanceDatabase
57+
- New-AzureRmSqlInstanceDatabase
58+
- Restore-AzureRmSqlInstanceDatabase
59+
- Remove-AzureRmSqlInstanceDatabase
60+
* Enabled Extended Auditing Policy management on a server or a database.
61+
- New parameter (PredicateExpression) was added to enable filtering of audit logs.
62+
- Cmdlets were modified to use SQL clients instead of Legacy clients.
63+
- Set-AzureRmSqlServerAuditing.
64+
- Get-AzureRmSqlServerAuditing.
65+
- Set-AzureRmSqlDatabaseAuditing.
66+
- Get-AzureRmSqlDatabaseAuditing.
67+
* Fixed issue with using Update-AzureRmSqlDatabaseVulnerabilityAssessmentSettings with storage account name parameter set
68+
69+
## 6.12.0 - November 2018
270
#### AzureRM.Profile
371
* Update common code to use latest version of ClientRuntime
472
* Rename param TenantId in cmdlet Connect-AzureRmAccount to Tenant and add an alias for TenantId

README.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -67,53 +67,53 @@ For more detailed instructions on using Azure PowerShell, please refer to the [g
6767

6868
### Log in to Azure
6969

70-
To connect to Azure, use the [`Connect-AzureRmAccount`](https://docs.microsoft.com/en-us/powershell/module/azurerm.profile/connect-azurermaccount) cmdlet.
70+
To connect to Azure, use the [`Connect-AzAccount`](https://docs.microsoft.com/en-us/powershell/module/azurerm.profile/connect-Azaccount) cmdlet.
7171

7272
```powershell
7373
# Interactive login - you will get a dialog box asking for your Azure credentials
74-
Connect-AzureRmAccount
74+
Connect-AzAccount
7575
7676
# Non-interactive login - you will need to use a service principal
77-
Connect-AzureRmAccount -ServicePrincipal -ApplicationId "http://my-app" -Credential $PSCredential -TenantId $TenantId
77+
Connect-AzAccount -ServicePrincipal -ApplicationId "http://my-app" -Credential $PSCredential -TenantId $TenantId
7878
```
7979

8080
To log into a specific cloud (_AzureChinaCloud_, _AzureCloud_, _AzureGermanCloud_, _AzureUSGovernment_), use the `Environment` parameter:
8181

8282
```powershell
8383
# Log into a specific cloud - in this case, the Azure China cloud
84-
Connect-AzureRmAccount -Environment AzureChinaCloud
84+
Connect-AzAccount -Environment AzureChinaCloud
8585
```
8686

8787
### Getting and setting your session context
8888

89-
To view the context you are using in the current session, which contains the subscription and tenant, use the [`Get-AzureRmContext`](https://docs.microsoft.com/en-us/powershell/module/azurerm.profile/get-azurermcontext) cmdlet:
89+
To view the context you are using in the current session, which contains the subscription and tenant, use the [`Get-AzContext`](https://docs.microsoft.com/en-us/powershell/module/azurerm.profile/get-Azcontext) cmdlet:
9090

9191
```powershell
9292
# Get the context you are currently using
93-
Get-AzureRmContext
93+
Get-AzContext
9494
9595
# List all available contexts in the current session
96-
Get-AzureRmContext -ListAvailable
96+
Get-AzContext -ListAvailable
9797
```
9898

99-
To get the subscriptions in a tenant, use the [`Get-AzureRmSubscription`](https://docs.microsoft.com/en-us/powershell/module/azurerm.profile/get-azurermsubscription) cmdlet:
99+
To get the subscriptions in a tenant, use the [`Get-AzSubscription`](https://docs.microsoft.com/en-us/powershell/module/azurerm.profile/get-azurermsubscription) cmdlet:
100100

101101
```powershell
102102
# Get all of the subscriptions in your current tenant
103-
Get-AzureRmSubscription
103+
Get-AzSubscription
104104
105105
# Get all of the subscriptions in a specific tenant
106-
Get-AzureRmSubscription -TenantId $TenantId
106+
Get-AzSubscription -TenantId $TenantId
107107
```
108108

109-
To change the subscription that you are using for your current context, use the [`Set-AzureRmContext`]() cmdlet:
109+
To change the subscription that you are using for your current context, use the [`Set-AzContext`]() cmdlet:
110110

111111
```powershell
112112
# Set the context to a specific subscription
113-
Set-AzureRmContext -Subscription $SubscriptionName -Name "MyContext"
113+
Set-AzContext -Subscription $SubscriptionName -Name "MyContext"
114114
115115
# Set the context using piping
116-
Get-AzureRmSubscription -SubscriptionName $SubscriptionName | Set-AzureRmContext -Name "MyContext"
116+
Get-AzSubscription -SubscriptionName $SubscriptionName | Set-AzContext -Name "MyContext"
117117
```
118118

119119
### Discovering cmdlets
@@ -136,17 +136,17 @@ Get-Command -Module AzureRM.Compute -Name "*VM*"
136136
To view the help content for a cmdlet, use the `Get-Help` cmdlet:
137137

138138
```powershell
139-
# View the basic help content for Get-AzureRmSubscription
140-
Get-Help -Name Get-AzureRmSubscription
139+
# View the basic help content for Get-AzSubscription
140+
Get-Help -Name Get-AzSubscription
141141
142-
# View the examples for Get-AzureRmSubscription
143-
Get-Help -Name Get-AzureRmSubscription -Examples
142+
# View the examples for Get-AzSubscription
143+
Get-Help -Name Get-AzSubscription -Examples
144144
145-
# View the full help content for Get-AzureRmSubscription
146-
Get-Help -Name Get-AzureRmSubscription -Full
145+
# View the full help content for Get-AzSubscription
146+
Get-Help -Name Get-AzSubscription -Full
147147
148-
# View the help content for Get-AzureRmSubscription on https://docs.microsoft.com
149-
Get-Help -Name Get-AzureRmSubscription -Online
148+
# View the help content for Get-AzSubscription on https://docs.microsoft.com
149+
Get-Help -Name Get-AzSubscription -Online
150150
```
151151

152152
## Reporting Issues and Feedback

build.proj

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@
8888
<LocalBuildTasks Include="$(LibraryToolsFolder)\RepoTasks\RepoTasks.sln" Condition="'$(NetCore)' == 'false'" />
8989
<StackSolution Include="$(LibrarySourceFolder)\StackAdmin\Stack.sln" Condition="'$(Scope)' == 'All' or '$(Scope)' == 'Stack'" />
9090
<StaticAnalysis Include=".\tools\StaticAnalysis\StaticAnalysis.sln" />
91+
<StaticAnalysisNetcore Include=".\tools\StaticAnalysis\StaticAnalysisNetcore.sln" />
9192
<LocalBuildTasks Include="$(LibraryToolsFolder)\BuildPackagesTask\Microsoft.Azure.Build.Tasks.sln" />
9293
<LocalBuildTasks Include="$(LibraryToolsFolder)\RepoTasks\RepoTasks.sln" Condition="'$(NetCore)' == 'false'" />
9394
</ItemGroup>
@@ -268,9 +269,9 @@
268269
Condition="'$(Scope)' == 'All' or '$(Scope)' == 'Stack'"
269270
ContinueOnError="false" />
270271

271-
<Exec Command="$(PowerShellCommandPrefix) &quot;$ProgressPreference = 'SilentlyContinue';. $(LibraryToolsFolder)\GenerateHelp.ps1 -ValidateMarkdownHelp -GenerateMamlHelp -BuildConfig $(Configuration) -FilteredModules '@(ModulesChanged)' &quot;"
272+
<!--<Exec Command="$(PowerShellCommandPrefix) &quot;$ProgressPreference = 'SilentlyContinue';. $(LibraryToolsFolder)\GenerateHelp.ps1 -ValidateMarkdownHelp -GenerateMamlHelp -BuildConfig $(Configuration) -FilteredModules '@(ModulesChanged)' &quot;"
272273
Condition="'$(SkipHelp)' == 'false'"
273-
ContinueOnError="false"/>
274+
ContinueOnError="false"/>-->
274275

275276
<Exec Command="$(PowerShellCommandPrefix) &quot;. $(LibraryToolsFolder)\UpdateModules.ps1 -BuildConfig $(Configuration) -Scope $(Scope) &quot;"
276277
Condition="'$(CodeSign)' == 'false'"/>
@@ -281,9 +282,9 @@
281282
Command="&quot;$(PowerShellCommand)&quot; -NonInteractive -NoLogo -NoProfile -Command &quot; . $(LibraryToolsFolder)\NewOutputTypeIndex.ps1 -OutputFile $(PackageDirectory)\outputtypes.json -BuildConfig $(Configuration) &quot;"
282283
Condition="('$(Scope)' == 'All' or '$(Scope)' == 'Latest') and $(CodeSign) == 'true'" />
283284

284-
<Message Importance="high" Text="Running Static Analyser" />
285+
<!--<Message Importance="high" Text="Running Static Analyser" />
285286
<CallTarget targets="DependencyAnalysis" ContinueOnError="ErrorAndContinue" />
286-
<Exec Command="$(PowerShellCommandPrefix) &quot;. $(LibraryToolsFolder)\CheckAssemblies.ps1 -BuildConfig $(Configuration) &quot;" />
287+
<Exec Command="$(PowerShellCommandPrefix) &quot;. $(LibraryToolsFolder)\CheckAssemblies.ps1 -BuildConfig $(Configuration) &quot;" />-->
287288
<Exec Command="$(PowerShellCommandPrefix) &quot;. $(LibraryToolsFolder)\CleanupBuild.ps1 -BuildConfig $(Configuration) &quot;" />
288289

289290
<Exec ContinueOnError="false"
@@ -355,9 +356,12 @@
355356
ContinueOnError="false" />
356357
<!-- Generate the Help -->
357358
<Exec Command="$(PowerShellCoreCommandPrefix) &quot;Set-Variable -Name ProgressPreference -Value 'SilentlyContinue';. $(LibraryToolsFolder)\GenerateHelp.ps1 -ValidateMarkdownHelp -GenerateMamlHelp -BuildConfig $(Configuration) &quot;"
358-
Condition="'$(SkipHelp)' == 'false'"
359+
Condition="'$(SkipHelp)' == 'false' And '$(RunStaticAnalysis)' == 'true'"
359360
ContinueOnError="false"/>
360361

362+
<CallTarget targets="DependencyAnalysisNetcore" ContinueOnError="ErrorAndContinue" Condition="'$(RunStaticAnalysis)' == 'true'" />
363+
<Exec Command="$(PowerShellCommandPrefix) &quot;. $(LibraryToolsFolder)\CheckAssemblies.ps1 -BuildConfig $(Configuration) &quot;" Condition="'$(RunStaticAnalysis)' == 'true'" />
364+
361365
<!-- Cleanup extraneous files. -->
362366
<Exec Command="$(PowerShellCoreCommandPrefix) &quot;. $(LibraryToolsFolder)\CleanupBuild.ps1 -BuildConfig $(Configuration) &quot;" />
363367

@@ -548,6 +552,25 @@
548552
<OnError ExecuteTargets="StaticAnalysisErrorMessage"/>
549553
</Target>
550554

555+
<!-- Run Validation -->
556+
<Target Name="DependencyAnalysisNetcore"
557+
Condition="'$(SkipDependencyAnalysis)' == 'false'">
558+
559+
<MSBuild Projects="@(StaticAnalysisNetcore)"
560+
Targets="Build"
561+
Properties="Configuration=Debug;Platform=Any CPU"
562+
ContinueOnError="false" />
563+
564+
<Message Importance="high" Text="Running dependency analysis..." />
565+
566+
<PropertyGroup>
567+
<SkipHelpValue Condition=" '$(SkipHelp)' == 'true' ">-s</SkipHelpValue>
568+
</PropertyGroup>
569+
<Exec Command="dotnet $(MSBuildProjectDirectory)\src\Package\StaticAnalysis.Netcore.dll -p $(MSBuildProjectDirectory)\src\Package\$(Configuration) -r $(MSBuildProjectDirectory)\src\Package $(SkipHelpValue) -u -m @(ModulesChanged)" />
570+
571+
<OnError ExecuteTargets="StaticAnalysisErrorMessage"/>
572+
</Target>
573+
551574
<Target Name="StaticAnalysisErrorMessage">
552575
<Error Text="StaticAnalysis has failed. Please follow the instructions on this doc: https://github.com/Azure/azure-powershell/blob/preview/documentation/Debugging-StaticAnalysis-Errors.md"/>
553576
</Target>

documentation/breaking-changes/breaking-changes-tool-help.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ To add an alias to the original cmdlet name, use the `Alias` attribute for the c
5959
If you need to, you can add multiple aliases for cmdlets that need to be renamed twice.
6060

6161
```cs
62-
[Cmdlet(VerbsCommunications.Connect, "AzureRmAccount")]
63-
[Alias("Login-AzureRmAccount", "Login-AzAccount", "Add-AzureRmAccount")]
62+
[Cmdlet(VerbsCommunications.Connect, "AzAccount")]
63+
[Alias("Login-AzAccount", "Add-AzAccount")]
6464
public class ConnectAzureRmAccount : Cmdlet
6565
{
6666
protected override void BeginProcessing()

0 commit comments

Comments
 (0)