Skip to content

Commit 906d3c7

Browse files
rakku-msLei Jin
andauthored
[AzureStack] update az accounts and tools, lib folder (#14810)
* update Accounts module from master * update dependencies and auth test * Remove myget from Nuget.config * fix static analysis * Remove culture from markdown files - update online url * Remove culture from markdown files - update the HelpGeneration File * fix static analysis lib issue * sync src/lib with master Co-authored-by: Lei Jin <[email protected]>
1 parent 60d066e commit 906d3c7

File tree

1,229 files changed

+12979
-26318
lines changed

Some content is hidden

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

1,229 files changed

+12979
-26318
lines changed

.github/ISSUE_TEMPLATE/azurerm-module-bug-report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ assignees: ''
1010
<!--
1111
1212
- The AzureRM module has been replaced by the Az module; please see the following document for more information:
13-
- https://docs.microsoft.com/en-us/powershell/azure/new-azureps-module-az
13+
- https://docs.microsoft.com/powershell/azure/new-azureps-module-az
1414
- If you are able to, please migrate to the Az module and see if the issue is reproducible
1515
- If so, please file an issue using the Az module template
1616
- Please search the existing issues to see if there has been a similar issue filed

ChangeLog.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1678,7 +1678,7 @@ to enable create Azure-SSIS IR with static public IP addresses.
16781678
- Set-AzScheduledQueryRule
16791679
- Update-AzScheduledQueryRule
16801680
- Remove-AzScheduledQueryRule
1681-
- [More](https://docs.microsoft.com/en-us/rest/api/monitor/scheduledqueryrules) information about SQR API
1681+
- [More](https://docs.microsoft.com/rest/api/monitor/scheduledqueryrules) information about SQR API
16821682
- Updated Az.Monitor.md to include cmdlets for GenV2(non classic) metric-based alert rule
16831683

16841684
#### Az.Network
@@ -1731,7 +1731,7 @@ to enable create Azure-SSIS IR with static public IP addresses.
17311731
### Highlights since the last major release
17321732
* General availability of `Az` module
17331733
* For more information about the `Az` module, please visit the following: https://aka.ms/azps-announce
1734-
* Added Location, ResourceGroup, and ResourceName completers: https://azure.microsoft.com/en-us/blog/completers-in-azure-powershell/
1734+
* Added Location, ResourceGroup, and ResourceName completers: https://azure.microsoft.com/blog/completers-in-azure-powershell/
17351735
* Added wildcard support to Get cmdlets for Az.Compute and Az.Network
17361736
* Added interactive and username/password authentication for Windows PowerShell 5.1 only
17371737
* Added support for Python 2 runbooks in Az.Automation
@@ -1835,7 +1835,7 @@ to enable create Azure-SSIS IR with static public IP addresses.
18351835
### Highlights since the last major release
18361836
* General availability of `Az` module
18371837
* For more information about the `Az` module, please visit the following: https://aka.ms/azps-announce
1838-
* Added Location, ResourceGroup, and ResourceName completers: https://azure.microsoft.com/en-us/blog/completers-in-azure-powershell/
1838+
* Added Location, ResourceGroup, and ResourceName completers: https://azure.microsoft.com/blog/completers-in-azure-powershell/
18391839
* Added wildcard support to Get cmdlets for Az.Compute and Az.Network
18401840
* Added interactive and username/password authentication for Windows PowerShell 5.1 only
18411841
* Added support for Python 2 runbooks in Az.Automation
@@ -1892,7 +1892,7 @@ to enable create Azure-SSIS IR with static public IP addresses.
18921892
### Highlights since the last major release
18931893
* General availability of `Az` module
18941894
* For more information about the `Az` module, please visit the following: https://aka.ms/azps-announce
1895-
* Added Location, ResourceGroup, and ResourceName completers: https://azure.microsoft.com/en-us/blog/completers-in-azure-powershell/
1895+
* Added Location, ResourceGroup, and ResourceName completers: https://azure.microsoft.com/blog/completers-in-azure-powershell/
18961896
* Added wildcard support to Get cmdlets for Az.Compute and Az.Network
18971897
* Added interactive and username/password authentication for Windows PowerShell 5.1 only
18981898
* Added support for Python 2 runbooks in Az.Automation
@@ -1949,7 +1949,7 @@ to enable create Azure-SSIS IR with static public IP addresses.
19491949
### Highlights since the last major release
19501950
* General availability of `Az` module
19511951
* For more information about the `Az` module, please visit the following: https://aka.ms/azps-announce
1952-
* Added Location, ResourceGroup, and ResourceName completers: https://azure.microsoft.com/en-us/blog/completers-in-azure-powershell/
1952+
* Added Location, ResourceGroup, and ResourceName completers: https://azure.microsoft.com/blog/completers-in-azure-powershell/
19531953
* Added wildcard support to Get cmdlets for Az.Compute and Az.Network
19541954
* Added interactive and username/password authentication for Windows PowerShell 5.1 only
19551955
* Added support for Python 2 runbooks in Az.Automation
@@ -2004,7 +2004,7 @@ to enable create Azure-SSIS IR with static public IP addresses.
20042004
### Highlights since the last major release
20052005
* General availability of `Az` module
20062006
* For more information about the `Az` module, please visit the following: https://aka.ms/azps-announce
2007-
* Added Location, ResourceGroup, and ResourceName completers: https://azure.microsoft.com/en-us/blog/completers-in-azure-powershell/
2007+
* Added Location, ResourceGroup, and ResourceName completers: https://azure.microsoft.com/blog/completers-in-azure-powershell/
20082008
* Added interactive and username/password authentication for Windows PowerShell 5.1 only
20092009
* Added support for Python 2 runbooks in Az.Automation
20102010
* Az.LogicApp: New cmdlets for Integration Account Assemblies and Batch Configuration
@@ -2078,7 +2078,7 @@ to enable create Azure-SSIS IR with static public IP addresses.
20782078
### Highlights since the last major release
20792079
* General availability of `Az` module
20802080
* For more information about the `Az` module, please visit the following: https://aka.ms/azps-announce
2081-
* Added Location, ResourceGroup, and ResourceName completers: https://azure.microsoft.com/en-us/blog/completers-in-azure-powershell/
2081+
* Added Location, ResourceGroup, and ResourceName completers: https://azure.microsoft.com/blog/completers-in-azure-powershell/
20822082
* Added interactive and username/password authentication for Windows PowerShell 5.1 only
20832083
* Added support for Python 2 runbooks in Az.Automation
20842084

@@ -2111,7 +2111,7 @@ General availability for Az.RecoveryServices module.
21112111
### Highlights since the last major release
21122112
* General availability of `Az` module
21132113
* For more information about the `Az` module, please visit the following: https://aka.ms/azps-announce
2114-
* Added Location, ResourceGroup, and ResourceName completers: https://azure.microsoft.com/en-us/blog/completers-in-azure-powershell/
2114+
* Added Location, ResourceGroup, and ResourceName completers: https://azure.microsoft.com/blog/completers-in-azure-powershell/
21152115
* Added interactive and username/password authentication for Windows PowerShell 5.1 only
21162116
* Added support for Python 2 runbooks in Az.Automation
21172117

@@ -2129,7 +2129,7 @@ General availability for Az.RecoveryServices module.
21292129
### Highlights since the last major release
21302130
* General availability of `Az` module
21312131
* For more information about the `Az` module, please visit the following: https://aka.ms/azps-announce
2132-
* Added Location, ResourceGroup, and ResourceName completers: https://azure.microsoft.com/en-us/blog/completers-in-azure-powershell/
2132+
* Added Location, ResourceGroup, and ResourceName completers: https://azure.microsoft.com/blog/completers-in-azure-powershell/
21332133
* Added interactive and username/password authentication for Windows PowerShell 5.1 only
21342134
* Added support for Python 2 runbooks in Az.Automation
21352135

@@ -2215,7 +2215,7 @@ General availability for Az.RecoveryServices module.
22152215
### Highlights since the last major release
22162216
* General availability of `Az` module
22172217
* For more information about the `Az` module, please visit the following: https://aka.ms/azps-announce
2218-
* Added Location, ResourceGroup, and ResourceName completers: https://azure.microsoft.com/en-us/blog/completers-in-azure-powershell/
2218+
* Added Location, ResourceGroup, and ResourceName completers: https://azure.microsoft.com/blog/completers-in-azure-powershell/
22192219

22202220
#### Az.Accounts
22212221
* Add 'Local' Scope to Enable-AzureRmAlias
@@ -2277,4 +2277,4 @@ General availability for Az.RecoveryServices module.
22772277
### Highlights since the last major release
22782278
* General availability of `Az` module
22792279
* For more information about the `Az` module, please visit the following: https://aka.ms/azps-announce
2280-
* Added Location, ResourceGroup, and ResourceName completers: https://azure.microsoft.com/en-us/blog/completers-in-azure-powershell/
2280+
* Added Location, ResourceGroup, and ResourceName completers: https://azure.microsoft.com/blog/completers-in-azure-powershell/

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ For detailed instructions on using Azure PowerShell, please refer to the [gettin
135135

136136
If you find any bugs when using the Azure PowerShell modules, please file an issue in our [GitHub issues][GitHubIssues] page. Please fill out the provided template with the appropriate information.
137137

138-
Alternatively, be sure to check out the [Azure Community Support](https://azure.microsoft.com/en-us/support/community/) if you have issues with the cmdlets or Azure services.
138+
Alternatively, be sure to check out the [Azure Community Support](https://azure.microsoft.com/support/community/) if you have issues with the cmdlets or Azure services.
139139

140140
### Feedback
141141

@@ -183,15 +183,15 @@ _This project has adopted the [Microsoft Open Source Code of Conduct][CodeOfCond
183183
[OpenCodeEmail]: mailto:[email protected]
184184

185185
<!-- Docs -->
186-
[MicrosoftAzureDocs]: https://docs.microsoft.com/en-us/azure/
187-
[PowerShellDocs]: https://docs.microsoft.com/en-us/powershell/
188-
189-
[InstallationGuide]: https://docs.microsoft.com/en-us/powershell/azure/install-az-ps
190-
[GettingStartedGuide]: https://docs.microsoft.com/en-us/powershell/azure/get-started-azureps
191-
[PersistedCredentialsGuide]: https://docs.microsoft.com/en-us/powershell/azure/context-persistence
192-
193-
[ConnectAzAccount]: https://docs.microsoft.com/en-us/powershell/module/az.accounts/connect-azaccount
194-
[GetAzContext]: https://docs.microsoft.com/en-us/powershell/module/az.accounts/get-azcontext
195-
[GetAzSubscription]: https://docs.microsoft.com/en-us/powershell/module/az.accounts/get-azsubscription
196-
[SetAzContext]: https://docs.microsoft.com/en-us/powershell/module/az.accounts/set-azcontext
197-
[SendFeedback]: https://docs.microsoft.com/en-us/powershell/module/az.accounts/send-feedback
186+
[MicrosoftAzureDocs]: https://docs.microsoft.com/azure/
187+
[PowerShellDocs]: https://docs.microsoft.com/powershell/
188+
189+
[InstallationGuide]: https://docs.microsoft.com/powershell/azure/install-az-ps
190+
[GettingStartedGuide]: https://docs.microsoft.com/powershell/azure/get-started-azureps
191+
[PersistedCredentialsGuide]: https://docs.microsoft.com/powershell/azure/context-persistence
192+
193+
[ConnectAzAccount]: https://docs.microsoft.com/powershell/module/az.accounts/connect-azaccount
194+
[GetAzContext]: https://docs.microsoft.com/powershell/module/az.accounts/get-azcontext
195+
[GetAzSubscription]: https://docs.microsoft.com/powershell/module/az.accounts/get-azsubscription
196+
[SetAzContext]: https://docs.microsoft.com/powershell/module/az.accounts/set-azcontext
197+
[SendFeedback]: https://docs.microsoft.com/powershell/module/az.accounts/send-feedback

build.proj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@
168168
<!-- Delete powershell runtime files -->
169169
<PropertyGroup>
170170
<RuntimeDllsIncludeList>Microsoft.Powershell.*.dll,System*.dll,Microsoft.VisualBasic.dll,Microsoft.CSharp.dll,Microsoft.CodeAnalysis.dll,Microsoft.CodeAnalysis.CSharp.dll</RuntimeDllsIncludeList>
171-
<RuntimeDllsExcludeList>System.Security.Cryptography.ProtectedData.dll,System.Configuration.ConfigurationManager.dll,System.Runtime.CompilerServices.Unsafe.dll,System.IO.FileSystem.AccessControl.dll,System.Buffers.dll,System.Text.Encodings.Web.dll,System.CodeDom.dll,System.Management.dll</RuntimeDllsExcludeList>
171+
<RuntimeDllsExcludeList>System.Security.Cryptography.ProtectedData.dll,System.Configuration.ConfigurationManager.dll,System.Runtime.CompilerServices.Unsafe.dll,System.IO.FileSystem.AccessControl.dll,System.Buffers.dll,System.Text.Encodings.Web.dll,System.CodeDom.dll,System.Management.dll,System.Text.Json.dll,System.Threading.Tasks.Extensions.dll</RuntimeDllsExcludeList>
172172
</PropertyGroup>
173173
<Exec Command="$(PowerShellCoreCommandPrefix) &quot;Get-ChildItem -Path $(RepoArtifacts)/$(Configuration) -Recurse -Include $(RuntimeDllsIncludeList) -Exclude $(RuntimeDllsExcludeList) | Where-Object {$_.FullName -notlike '*PreloadAssemblies*' -and $_.FullName -notlike '*NetCoreAssemblies*'} | Remove-Item -Force&quot;" />
174174
<Exec Command="$(PowerShellCoreCommandPrefix) &quot;Get-ChildItem -Path $(RepoArtifacts)/$(Configuration) -Recurse -Include 'runtimes' | Remove-Item -Recurse -Force&quot;" Condition="'$(CodeSign)' == 'true'" />

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ Here is a [link to our milestones](https://github.com/Azure/azure-powershell/mil
2929
) is a good resource on the various types of breaking changes authors can call out in a cmdlet.
3030

3131
### Send us feedback
32-
* Generic feedback : Use the [`Send-Feedback`](https://docs.microsoft.com/en-us/powershell/module/azurerm.profile/send-feedback?view=azurermps-6.11.0) cmdlet
32+
* Generic feedback : Use the [`Send-Feedback`](https://docs.microsoft.com/powershell/module/azurerm.profile/send-feedback?view=azurermps-6.11.0) cmdlet
3333
* A bug : Report issues in the [azure-powershell repository issue list](https://github.com/Azure/azure-powershell/issues)

documentation/development-docs/azure-powershell-developer-guide.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ The following prerequisites should be completed before contributing to the Azure
4646
- Install the [`platyPS` module](help-generation.md#Installing-platyPS)
4747
- Install the latest [**.NET Core SDK** and **.NET Framework Dev Pack 4.7.2**](https://dotnet.microsoft.com/download) or greater
4848
- Install [PowerShell Core](https://github.com/PowerShell/PowerShell/releases/latest)
49-
- Set the PowerShell [execution policy](https://technet.microsoft.com/en-us/library/ee176961.aspx) to **Unrestricted** for the following versions of PowerShell:
49+
- Set the PowerShell [execution policy](https://technet.microsoft.com/library/ee176961.aspx) to **Unrestricted** for the following versions of PowerShell:
5050
- `C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe`
5151
- `C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe`
5252
- `C:\Program Files\PowerShell\{{version}}\pwsh.exe`
@@ -237,7 +237,7 @@ For complete documentation, see [`help-generation.md`](help-generation.md) in th
237237

238238
# Adding Tests
239239

240-
_Note_: As mentioned in the prerequisites section, set the PowerShell [execution policy](https://technet.microsoft.com/en-us/library/ee176961.aspx) to **Unrestricted** for the following versions of PowerShell:
240+
_Note_: As mentioned in the prerequisites section, set the PowerShell [execution policy](https://technet.microsoft.com/library/ee176961.aspx) to **Unrestricted** for the following versions of PowerShell:
241241

242242
- `C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe`
243243
- `C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe`
@@ -287,7 +287,7 @@ CI in DevOps will happens under `Debug` folder. So you need to make sure that th
287287

288288
> **Important!**
289289
> 1. Be sure that you have set the `ExecutionPolicy` to `Unrestricted` on both 32-bit and 64-bit PowerShell environments, as mentioned in the [prerequisites](#prerequisites) at the top
290-
> 2. When recording tests, if you are using a Prod environment, use ServicePrincipalName (SPN) and ServicePrincipalSecret. For more information on creating an SPN, click [here](https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-create-service-principal-portal).
290+
> 2. When recording tests, if you are using a Prod environment, use ServicePrincipalName (SPN) and ServicePrincipalSecret. For more information on creating an SPN, click [here](https://docs.microsoft.com/azure/azure-resource-manager/resource-group-create-service-principal-portal).
291291
292292
### AD Scenario Tests
293293

documentation/development-docs/design-guidelines/cmdlet-best-practices.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@ The following are naming conventions to keep in mind when coming up with a name
66

77
#### Verb-Noun Format
88

9-
Cmdlet names should follow the _Verb-Noun_ format, where the verb is from the [list of approved PowerShell verbs](https://docs.microsoft.com/en-us/powershell/developer/cmdlet/approved-verbs-for-windows-powershell-commands), and the noun is a specific noun describing a resource within your service.
9+
Cmdlet names should follow the _Verb-Noun_ format, where the verb is from the [list of approved PowerShell verbs](https://docs.microsoft.com/powershell/developer/cmdlet/approved-verbs-for-windows-powershell-commands), and the noun is a specific noun describing a resource within your service.
1010

1111
#### Noun Prefix
1212

1313
For ARM cmdlets, the noun must be prefixed with `Az`.
1414

1515
#### Pascal Case
1616

17-
From the [_Strongly Encouraged Development Guidelines_](https://docs.microsoft.com/en-us/powershell/developer/cmdlet/strongly-encouraged-development-guidelines#use-pascal-case-for-cmdlet-names-sd02):
17+
From the [_Strongly Encouraged Development Guidelines_](https://docs.microsoft.com/powershell/developer/cmdlet/strongly-encouraged-development-guidelines#use-pascal-case-for-cmdlet-names-sd02):
1818

1919
> _Use Pascal case for cmdlet names. In other words, capitalize the first letter of the verb and all terms used in the noun. For example, "Clear-ItemProperty"._
2020
2121
#### Specific Noun and Noun Singularity
2222

23-
From the [_Strongly Encouraged Development Guidelines_](https://docs.microsoft.com/en-us/powershell/developer/cmdlet/strongly-encouraged-development-guidelines#use-a-specific-noun-for-a-cmdlet-name-sd01):
23+
From the [_Strongly Encouraged Development Guidelines_](https://docs.microsoft.com/powershell/developer/cmdlet/strongly-encouraged-development-guidelines#use-a-specific-noun-for-a-cmdlet-name-sd01):
2424

2525
> _Nouns used in cmdlet naming need to be very specific so that the user can discover your cmdlets. Prefix generic nouns such as "server" with a shortened version of the product name. For example, if a noun refers to a server that is running an instance of Microsoft SQL Server, use a noun such as "SQLServer". The combination of specific nouns and the short list of approved verbs enable the user to quickly discover and anticipate functionality while avoiding duplication among cmdlet names._
2626
>
@@ -56,7 +56,7 @@ For example, the `Get-AzVM` cmdlet uses the .NET SDK to retrieve objects of the
5656

5757
In the case where your cmdlet doesn't return any output (_e.g._, deleting, starting, stopping a resource), the cmdlet should implement the `-PassThru` parameter and the `OutputType` should be set to `bool`. The `-PassThru` parameter is a `SwitchParameter` set by the user to signal that they would like to receive output from a cmdlet which does not return anything. If the `-PassThru` parameter is provided, you should return the value `true` so the user is made aware that the operation was successful. If the operation was unsuccessful, then the cmdlet should throw an exception.
5858

59-
From the [_Strongly Encouraged Development Guidelines_](https://docs.microsoft.com/en-us/powershell/developer/cmdlet/strongly-encouraged-development-guidelines#support-the-passthru-parameter):
59+
From the [_Strongly Encouraged Development Guidelines_](https://docs.microsoft.com/powershell/developer/cmdlet/strongly-encouraged-development-guidelines#support-the-passthru-parameter):
6060

6161
> _By default, many cmdlets that modify the system, such as the `Stop-Process` cmdlet, act as "sinks" for objects and do not return a result. These cmdlet should implement the `-PassThru` parameter to force the cmdlet to return an object._
6262
@@ -120,7 +120,7 @@ The `-Force` parameter is reserved for special scenarios where additional confir
120120
121121
### `AsJob`
122122

123-
All long running operations must implement the `-AsJob` parameter, which will allow the user to create jobs in the background. For more information about PowerShell jobs and the `-AsJob` parameter, read [this doc](https://docs.microsoft.com/en-us/powershell/azure/using-psjobs).
123+
All long running operations must implement the `-AsJob` parameter, which will allow the user to create jobs in the background. For more information about PowerShell jobs and the `-AsJob` parameter, read [this doc](https://docs.microsoft.com/powershell/azure/using-psjobs).
124124

125125
To implement the `-AsJob` parameter, simply add the parameter to the end of the parameter list:
126126

0 commit comments

Comments
 (0)