Skip to content

Commit a9eae47

Browse files
authored
Merge branch main into Az.RecoveryServices-preview (#15268)
[Do Not Squash] Merge branch main into Az.RecoveryServices-preview
2 parents e7a9d37 + 9950a3e commit a9eae47

File tree

1,437 files changed

+397158
-350091
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,437 files changed

+397158
-350091
lines changed

.azure-pipelines/daily-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ schedules:
55
displayName: Daily Midnight Build
66
branches:
77
include:
8-
- master
8+
- main
99

1010
pr: none
1111

ChangeLog.md

Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,133 @@
1+
## 6.1.0 - June 2021
2+
#### Az.Accounts
3+
* Added cmdlet 'Open-AzSurveyLink'
4+
* Supported certificate file as input parameter of Connect-AzAccount
5+
6+
#### Az.Aks
7+
* Fixed the issue that 'Set-AzAks' will fail in Automation Runbook. [#15006]
8+
9+
#### Az.ApplicationInsights
10+
* Fixed issue that 'ResourcegroupName' is missed when executing below cmdlets with 'InputObject' parameter [#14848]
11+
* 'Get-AzApplicationInsightsLinkedStorageAccount'
12+
* 'New-AzApplicationInsightsLinkedStorageAccount'
13+
* 'Update-AzApplicationInsightsLinkedStorageAccount'
14+
* 'Remove-AzApplicationInsightsLinkedStorageAccount'
15+
16+
#### Az.Cdn
17+
* Fixed profile missing issue in 'Remove-AzCdnProfile' cmdlet
18+
19+
#### Az.Compute
20+
* Updated Compute module to use the latest .Net SDK version 47.0.0.
21+
22+
#### Az.ContainerInstance
23+
* Removed the display of file share credential [#15224]
24+
25+
#### Az.DataFactory
26+
* Updated ADF .Net SDK version to 4.19.0
27+
28+
#### Az.EventHub
29+
* Added functionality to accept input from pipeline for 'Get-AzEventHub' from 'Get-AzEventHubNamespace'.
30+
31+
#### Az.HDInsight
32+
* Support new azure monitor feature in HDInsight:
33+
- Add cmdlet 'Get-AzHDInsightAzureMonitor' to allow customer to get the Azure Monitor status of HDInsight cluster.
34+
- Add cmdlet 'Enable-AzHDInsightAzureMonitor' to allow customer to enable the Azure Monitor in HDInsight cluster.
35+
- Add cmdlet 'Disable-AzHDInsightAzureMonitor' to allow customer to disable the Azure Monitor in HDInsight cluster.
36+
37+
#### Az.KeyVault
38+
* Removed duplicate list item in 'Get-AzKeyVault' [#15164]
39+
* Added 'SecretManagement' tag to 'Az.KeyVault' module [#15173]
40+
41+
#### Az.Network
42+
* Updated cmdlets for route server for a more stable way to add IP configuration.
43+
* Added support for getting a single private link resource.
44+
* Added more detailed description about GroupId in 'New-AzPrivateLinkServiceConnection'
45+
* Updated cmdlets to enable setting of PrivateRange on AzureFirewallPolicy.
46+
- 'New-AzFirewallPolicy'
47+
- 'Set-AzFirewallPolicy'
48+
* Updated cmdlets to add NatRules in VirtualNetworkGateway and BgpRouteTranslationForNat.
49+
- 'New-AzVirtualNetworkGateway'
50+
- 'Set-AzVirtualNetworkGateway'
51+
* Updated cmdlets to add EngressNatRules and EgressNatRules in VirtualNetworkGateway Connection.
52+
- 'New-AzVirtualNetworkGatewayConnection'
53+
- 'Set-AzVirtualNetworkGatewayConnection'
54+
* Updated cmdlet to enable setting of FlowTimeout in VirtualNetwork.
55+
- 'New-AzVirtualNetwork'
56+
* Added cmdlets for Get/Create/Update/Delete VirtualNetworkGatewayNatRules.
57+
- 'New-AzVirtualNetworkGatewayNatRule'
58+
- 'Update-AzVirtualNetworkGatewayNatRule'
59+
- 'Get-AzVirtualNetworkGatewayNatRule'
60+
- 'Remove-AzVirtualNetworkGatewayNatRule'
61+
* Added a new cmdlet for Sync on VirtualNetworkPeering
62+
- 'Sync-AzVirtualNetworkPeering'
63+
* Updated cmdlets to add new properties and redefined an existing property in the VirtualNetworkPeering
64+
- 'Add-AzVirtualNetworkPeering'
65+
- 'Get-AzVirtualNetworkPeering'
66+
* Updated cmdlets to enable setting of PreferredRoutingGateway on VirtualHub.
67+
- 'New-AzVirtualHub'
68+
- 'Update-AzVirtualHub'
69+
* Updated cmdlets to expose two read-only properties of client certificate.
70+
- 'Get-AzApplicationGatewayTrustedClientCertificate'
71+
72+
#### Az.RecoveryServices
73+
* Added cross tenant DS Move.
74+
* Removed restriction to fetch recovery points only for a 30 days time range.
75+
* Enabled CRR for new regions.
76+
77+
#### Az.Resources
78+
* Allowed naming the deployment when testing deployments [#11497]
79+
80+
#### Az.SignalR
81+
* Changed to 'Allow' and 'Deny' parameters of 'Update-AzSignalRNetworkAcl' cmdlet:
82+
- Accepted 'Trace' as a valid value.
83+
- Accepted '@()' as empty collection to clear the list.
84+
* Supported 'ResourceGroupCompleter' and 'ResourceNameCompleter' in the applicable cmdlets.
85+
* Deprecated the 'HostNamePrefix' property of output type 'PSSignalRResource' of following cmdlets:
86+
- 'Get-AzSignalR'
87+
- 'New-AzSignalR'
88+
- 'Update-AzSignalR'
89+
90+
#### Az.Sql
91+
* Added option to support short version of maintenance configuration id for Managed Instance in 'New-AzSqlInstance' and 'Set-AzSqlInstance' cmdlets
92+
* Added HighAvailabilityReplicaCount to 'New-AzSqlDatabaseSecondary'
93+
* Added External Administrator and AAD Only Properties to AzSqlServer and AzSqlInstance
94+
- Added option to specify '-ExternalAdminName', '-ExternalAdminSid', '-EnableActiveDirectoryOnlyAuthentication' in 'New-AzSqlInstance' and 'Set-AzSqlInstance' cmdlets
95+
- Added option to expand external administrators information using '-ExpandActiveDirectoryAdministrator' in 'Get-AzSqlServer' and 'Get-AzSqlInstance' cmdlets
96+
* Fixed 'Set-AzSqlDatabase' to no longer default ReadScale to Disabled when not specified
97+
* Fixed 'Set-AzSqlServer' and 'Set-AzSqlInstance' for partial PUT with only identity and null properties
98+
* Added parameters related to UMI in 'New-AzSqlServer', 'New-AzSqlInstance', 'Set-AzSqlServer' and 'Set-AzSqlInstance' cmdlets.
99+
* Added -AutoRotationEnabled parameter to following cmdlets:
100+
- 'Set-AzSqlServerTransparentDataEncryptionProtector'
101+
- 'Get-AzSqlServerTransparentDataEncryptionProtector'
102+
- 'Set-AzSqlInstanceTransparentDataEncryptionProtector'
103+
- 'Get-AzSqlInstanceTransparentDataEncryptionProtector'
104+
105+
#### Az.Storage
106+
* Supported create file share with NFS/SMB enabledEnabledProtocol and RootSquash, and update share with RootSquash
107+
- 'New-AzRmStorageShare'
108+
- 'Update-AzRmStorageShare'
109+
* Supported enable Smb Multichannel on File service
110+
- 'Update-AzStorageFileServiceProperty'
111+
* Fixed copy inside same account issue by access source with anonymous credential, when copy Blob inside same account with Oauth credential
112+
* Removed StorageFileDataSmbShareOwner from value set of parameter DefaultSharePermission in create/update storage account
113+
- 'New-AzStorageAccount'
114+
- 'Set-AzStorageAccount'
115+
116+
#### Az.Websites
117+
* Fixed issue that prevented removing rules by name and unique identifier in 'Remove-AzWebAppAccessRestrictionRule'
118+
* Fixed issue that defaults AlwaysOn to false in 'Set-AzWebAppSlot'
119+
120+
### Thanks to our community contributors
121+
* Andy Roberts (@andyr8939), Removing unused TimeGrain variable from example (#15062)
122+
* Ashley Roll (@AshleyRoll), Remove Write-Host leaking file share credentials (#15225)
123+
* Kailash Mandal (@KaishM), Update New-AzPublicIpAddress.md (#15040)
124+
* Olivier Miossec (@omiossec), Update Get-AzExpressRouteCircuitRouteTable.md (#15054)
125+
* Scott (@S-T-S), Update Set-AzNetworkInterface.md (#15112)
126+
* @sohaibMSFT, Application Gateway AutoScale Example (#15071)
127+
* @Srihsu, Update Split-AzReservation.md (#15049)
128+
* @srozemuller, typo in examples resourcegroup parameter (#15146)
129+
130+
1131
## 6.0.0 - May 2021
2132
Az 6.0.0 (Az.Accounts 2.3.0) is only supported on Windows PowerShell 5.1, PowerShell 7.0 version 7.0.6 or greater and PowerShell 7.1 version 7.1.3 or greater, open https://aka.ms/install-powershell to learn how to upgrade. For further information, go to http://aka.ms/azpslifecyle.
3133

documentation/Debugging-StaticAnalysis-Errors.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ _Note_: Sometimes the error listed in the .csv file can be a false positive (for
4242
We take breaking changes very seriously, so please be mindful about the violations that you suppress in our repo.
4343

4444
### Signature Issues
45-
Signature issues occur when your cmdlets do not follow PowerShell standards. Please check the [_Cmdlet Best Practices_](https://github.com/Azure/azure-powershell/blob/master/documentation/development-docs/design-guidelines/cmdlet-best-practices.md) and the [_Parameter Best Practices_](https://github.com/Azure/azure-powershell/blob/master/documentation/development-docs/design-guidelines/parameter-best-practices.md) documents to ensure you are following PowerShell guidelines. Issues with severity 0 or 1 must be addressed, while issues with severity 2 are advisory. If you have an issue with severity 0 or 1 that has been approved by the Azure PowerShell team, you can suppress them following these steps:
45+
Signature issues occur when your cmdlets do not follow PowerShell standards. Please check the [_Cmdlet Best Practices_](https://github.com/Azure/azure-powershell/blob/main/documentation/development-docs/design-guidelines/cmdlet-best-practices.md) and the [_Parameter Best Practices_](https://github.com/Azure/azure-powershell/blob/main/documentation/development-docs/design-guidelines/parameter-best-practices.md) documents to ensure you are following PowerShell guidelines. Issues with severity 0 or 1 must be addressed, while issues with severity 2 are advisory. If you have an issue with severity 0 or 1 that has been approved by the Azure PowerShell team, you can suppress them following these steps:
4646

4747
- Download the `SignatureIssues.csv` file from the Jenkins build
4848
- Open the file using a text editor (such as VS Code) and copy each of the errors you'd like to suppress
@@ -51,4 +51,4 @@ Signature issues occur when your cmdlets do not follow PowerShell standards. Pl
5151
- Push the changes to the .csv file and ensure the errors no longer show up in the `SignatureIssues.csv` file output from the Jenkins build.
5252

5353
### Help Issues
54-
Most help issues that cause StaticAnalysis to fail occur when help has not been added for a particular cmdlet. If you have not generated help for your new cmdlets, please follow the instructions [here](https://github.com/Azure/azure-powershell/blob/master/documentation/development-docs/help-generation.md). If this is not the issue, follow the steps listed under "Remediation" for each violation listed in HelpIssues.csv.
54+
Most help issues that cause StaticAnalysis to fail occur when help has not been added for a particular cmdlet. If you have not generated help for your new cmdlets, please follow the instructions [here](https://github.com/Azure/azure-powershell/blob/main/documentation/development-docs/help-generation.md). If this is not the issue, follow the steps listed under "Remediation" for each violation listed in HelpIssues.csv.

documentation/azure-powershell-modules.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ Custom Resource Providers | `Az.CustomProviders`
4242
Data Box | `Az.DataBox` | [![DataBox]][DataBoxGallery]
4343
Data Box Edge (Stack Edge) | `Az.DataBoxEdge` | [![DataBoxEdge]][DataBoxEdgeGallery]
4444
Databricks | `Az.Databricks` | [![Databricks]][DatabricksGallery]
45+
DataDog | `Az.DataDog` | [![DataDog]][DataDogGallery]
4546
Data Factory | `Az.DataFactory` | [![DataFactory]][DataFactoryGallery]
4647
Data Lake Analytics | `Az.DataLakeAnalytics` | [![DataLakeAnalytics]][DataLakeAnalyticsGallery]
4748
Data Lake Store | `Az.DataLakeStore` | [![DataLakeStore]][DataLakeStoreGallery]

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ You now be able to create your own branches, commit changes, and push commits to
7676
git remote add upstream https://github.com/Azure/azure-powershell.git
7777
```
7878

79-
Then, to pull changes from the **master** branch in _Azure/azure-powershell_ into your local working branch, run the following command:
79+
Then, to pull changes from the **main** branch in _Azure/azure-powershell_ into your local working branch, run the following command:
8080

8181
```
82-
git pull upstream master
82+
git pull upstream main
8383
```
8484

8585
## Building the Environment

documentation/development-docs/cleaning-up-commits.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ For more information on squashing, click [here](https://git-scm.com/book/en/v2/G
6060

6161
If you want to merge specific commits from another branch into the current one you are working from, use **cherry-picking**.
6262

63-
For example, if you're working on the **master** branch and want to pull commit X (the commit-hash) from the **feature** branch, you may run the following commands:
63+
For example, if you're working on the **main** branch and want to pull commit X (the commit-hash) from the **feature** branch, you may run the following commands:
6464

6565
```
66-
git checkout master
66+
git checkout main
6767
git cherry-pick X -n
6868
```
6969

@@ -73,7 +73,7 @@ Now, if you want to cherry-pick a range of commits, say X through Y, from the **
7373

7474
```
7575
git checkout -b temp-branch X
76-
git rebase --onto master Y^
76+
git rebase --onto main Y^
7777
```
7878

7979
For more information on cherry-picking, click [here](https://git-scm.com/docs/git-cherry-pick).

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ $job | Wait-Job
139139
$subscriptions = $job | Receive-Job
140140
````
141141

142-
To set a custom job name, please use [`SetBackgroupJobDescription`](https://github.com/Azure/azure-powershell-common/blob/master/src/Common/AzurePSCmdlet.cs#L810). The default job description is: "Long Running Operation for '{cmdlet name}' on resource '{resource name}'"
142+
To set a custom job name, please use [`SetBackgroupJobDescription`](https://github.com/Azure/azure-powershell-common/blob/main/src/Common/AzurePSCmdlet.cs#L810). The default job description is: "Long Running Operation for '{cmdlet name}' on resource '{resource name}'"
143143

144144
### Required Parameter Sets
145145

documentation/development-docs/examples/private-link-resource-example.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,18 @@ if "List Private Endpoint Connection API" is not available, `Private Endpoint Co
2323
`privateEndpointConnections` need to be defined under this API
2424

2525
## Code Changes Needed
26-
Add corresponding {Provider}, {Top-Level-Resource} and {API-Version} into [ProviderConfiguration.cs](https://github.com/Azure/azure-powershell/blob/master/src/Network/Network/PrivateLinkService/PrivateLinkServiceProvider/ProviderConfiguration.cs#L12)
26+
Add corresponding {Provider}, {Top-Level-Resource} and {API-Version} into [ProviderConfiguration.cs](https://github.com/Azure/azure-powershell/blob/main/src/Network/Network/PrivateLinkService/PrivateLinkServiceProvider/ProviderConfiguration.cs#L12)
2727
in following pattern:
2828
```
2929
RegisterConfiguration("{Provider}/{Top-Level-Resource}", "{API-Version}")
3030
```
3131
For example:
3232

33-
if "List Private Endpoint Connection API" is [available](https://github.com/Azure/azure-powershell/blob/master/src/Network/Network/PrivateLinkService/PrivateLinkServiceProvider/GenericProvider.cs#L74),
33+
if "List Private Endpoint Connection API" is [available](https://github.com/Azure/azure-powershell/blob/main/src/Network/Network/PrivateLinkService/PrivateLinkServiceProvider/GenericProvider.cs#L74),
3434
```
3535
RegisterConfiguration("Microsoft.Sql/servers", "2018-06-01-preview")
3636
```
37-
if "List Private Endpoint Connection API" is [not available](https://github.com/Azure/azure-powershell/blob/master/src/Network/Network/PrivateLinkService/PrivateLinkServiceProvider/GenericProvider.cs#L93), provide extra bool parameter 'false'
37+
if "List Private Endpoint Connection API" is [not available](https://github.com/Azure/azure-powershell/blob/main/src/Network/Network/PrivateLinkService/PrivateLinkServiceProvider/GenericProvider.cs#L93), provide extra bool parameter 'false'
3838
```
3939
RegisterConfiguration("Microsoft.Storage/storageAccounts", "2019-06-01", false)
4040
```

documentation/development-docs/generate-format.ps1xml-file.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Our team trends to make the cmdlets output more convenient and consistent across
1414

1515
# How table view output works by default.
1616

17-
As an example let's consider [Get-AzSubscription](https://github.com/Azure/azure-powershell/blob/master/src/Accounts/Accounts/Subscription/GetAzureRMSubscription.cs) cmdlet.
17+
As an example let's consider [Get-AzSubscription](https://github.com/Azure/azure-powershell/blob/main/src/Accounts/Accounts/Subscription/GetAzureRMSubscription.cs) cmdlet.
1818

1919
The cmdlet class specifies the ```PSAzureSubscription``` class as an output type with the **OutputType attribute**:
2020

@@ -31,7 +31,7 @@ namespace Microsoft.Azure.Commands.Profile
3131
// omitted for brevity the rest of the definition.
3232
```
3333

34-
The [PSAzureSubscription](https://github.com/Azure/azure-powershell-common/blob/master/src/Authentication.ResourceManager/Models/PSAzureSubscription.cs) class contains several public properties.
34+
The [PSAzureSubscription](https://github.com/Azure/azure-powershell-common/blob/main/src/Authentication.ResourceManager/Models/PSAzureSubscription.cs) class contains several public properties.
3535
3636
* Id
3737
* Name
@@ -122,7 +122,7 @@ To provide a better PowerShell Azure cmdlets output experience we worked out a m
122122

123123
# Ps1XmlAttribute attribute.
124124

125-
The key element of the mechanism is the **Ps1XmlAttribute** attribute located in the [Commands.Common](https://github.com/Azure/azure-powershell-common/blob/master/src/Common/Attributes/Ps1XmlAttribute.cs) project. Below is the attribute definition:
125+
The key element of the mechanism is the **Ps1XmlAttribute** attribute located in the [Commands.Common](https://github.com/Azure/azure-powershell-common/blob/main/src/Common/Attributes/Ps1XmlAttribute.cs) project. Below is the attribute definition:
126126
127127
```Cs
128128
namespace Microsoft.WindowsAzure.Commands.Common.Attributes
@@ -223,7 +223,7 @@ namespace Microsoft.Azure.Commands.Profile.Models
223223
```
224224
* If **Label** is not specified - the property name will be used.
225225

226-
* Since the **Ps1Xml attribute** definition is located in the [Commands.Common](https://github.com/Azure/azure-powershell-common/tree/master/src/Common) project and the Command.Common project is likely referenced from your project - to make the attribute visible - you only need to add ```using Microsoft.WindowsAzure.Commands.Common.Attributes;``` statement.
226+
* Since the **Ps1Xml attribute** definition is located in the [Commands.Common](https://github.com/Azure/azure-powershell-common/tree/main/src/Common) project and the Command.Common project is likely referenced from your project - to make the attribute visible - you only need to add ```using Microsoft.WindowsAzure.Commands.Common.Attributes;``` statement.
227227
228228
## Properties of complex types.
229229

@@ -425,12 +425,12 @@ c9cbd920-c00c-427c-852b-c329e824c3a8 Azure SDK Powershell Test Enabled 72f988bf-
425425

426426
**Note:** All the paths used in the example in the section are under **_azure-powershell/src/Accounts_**
427427

428-
1. Copy the generated file into your project source folder. In our example this is [src/Accounts/Accounts](https://github.com/Azure/azure-powershell/tree/master/src/Accounts/Accounts) folder.
428+
1. Copy the generated file into your project source folder. In our example this is [src/Accounts/Accounts](https://github.com/Azure/azure-powershell/tree/main/src/Accounts/Accounts) folder.
429429
430-
2. Reference the generated format.ps1xml file form your project. In our example this is [Accounts.csproj](https://github.com/Azure/azure-powershell/blob/master/src/Accounts/Accounts/Accounts.csproj) file.
430+
2. Reference the generated format.ps1xml file form your project. In our example this is [Accounts.csproj](https://github.com/Azure/azure-powershell/blob/main/src/Accounts/Accounts/Accounts.csproj) file.
431431
- **Note**: This is now automatically referenced based on `Az.props` being imported in your csproj file.
432432

433-
3. Add the generated format.ps1xml file to your source module manifest **FormatsToProcess** variable. In our example this is [src/Accounts/Az.Accounts.psd1](https://github.com/Azure/azure-powershell/blob/master/src/Accounts/Az.Accounts.psd1) file:
433+
3. Add the generated format.ps1xml file to your source module manifest **FormatsToProcess** variable. In our example this is [src/Accounts/Az.Accounts.psd1](https://github.com/Azure/azure-powershell/blob/main/src/Accounts/Az.Accounts.psd1) file:
434434
```Powershell
435435
# script omitted for brevity
436436

0 commit comments

Comments
 (0)