Skip to content

Commit 1afea3b

Browse files
authored
Merge pull request #15097 from Azure/internal/release-v2
[Do not squash] merge release-2021-05-25 to master
2 parents 4603a70 + 8a8bbf8 commit 1afea3b

File tree

897 files changed

+464149
-314346
lines changed

Some content is hidden

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

897 files changed

+464149
-314346
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ launchSettings.json
226226
/ModuleMappings.json
227227
/tools/Modules/tmp
228228
/tools/Az/Az.psm1
229+
/tools/AzPreview/AzPreview.psm1
229230
/Azure.PowerShell.sln
230231

231232
# Added due to scan

ChangeLog.md

Lines changed: 170 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,173 @@
1+
## 6.0.0 - May 2021
2+
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.
3+
4+
#### Az.Accounts
5+
* Upgraded Azure.Identity to 1.4 and MSAL to 4.30.1
6+
* Removed obsolete parameters 'ManagedServiceHostName', 'ManagedServicePort' and 'ManagedServiceSecret' of cmdlet 'Connect-AzAccount', environment variables 'MSI_ENDPOINT' and 'MSI_SECRET' could be used instead
7+
* Customize display format of PSAzureRmAccount to hide secret of service principal [#14208]
8+
* Added optional parameter 'AuthScope' to 'Connect-AzAccount' to support enhanced authentication of data plane features
9+
* Set retry times by environment variable [#14748]
10+
* Supported subject name issuer authentication
11+
12+
#### Az.Compute
13+
* Added 'Invoke-AzVmInstallPatch' to support patch installation in VMs using PowerShell.
14+
* Updated Compute module to use the latest .Net SDK version 46.0.0.
15+
* Added optional parameter '-EdgeZone' to the following cmdlets:
16+
- 'Get-AzVMImage
17+
- 'Get-AzVMImageOffer'
18+
- 'Get-AzVMImageSku'
19+
- 'New-AzDiskConfig'
20+
- 'New-AzImageConfig'
21+
- 'New-AzSnapshotConfig'
22+
- 'New-AzVM'
23+
- 'New-AzVmssConfig'
24+
- 'New-AzVMSS'
25+
26+
#### Az.ContainerInstance
27+
* Added new cmdlets: 'Start-AzContainerGroup', 'Stop-AzContainerGroup' [#10773], 'Invoke-AzContainerInstanceCommand' [#7648], 'Update-AzContainerGroup', 'Add-AzContainerInstanceOutput', 'Get-AzContainerInstanceCachedImage', 'Get-AzContainerInstanceCapability', 'Get-AzContainerInstanceUsage', 'New-AzContainerGroupImageRegistryCredentialObject', 'New-AzContainerGroupPortObject', 'New-AzContainerGroupVolumeObject', 'New-AzContainerInstanceEnvironmentVariableObject', 'New-AzContainerInstanceInitDefinitionObject', 'New-AzContainerInstanceObject', 'New-AzContainerInstancePortObject' and 'New-AzContainerInstanceVolumeMountObject'
28+
* Supported Log Analytics parameters in 'New-AzContainerGroup' [#11117]
29+
* Added support to specify network profile and the name of Azure File Share in 'New-AzContainerGroup' [#9993] [#12218]
30+
* Added support to specify environment variables as SecureValue [#10110] [#10640]
31+
32+
#### Az.ContainerRegistry
33+
* Fixed username and password issue in 'Import-AzContainerRegistryImage' [#14971]
34+
* Fixed data plane operations (repository, tag, manifest) failed cross registry in single Powershell session [#14849]
35+
36+
#### Az.CosmosDB
37+
* Introduced support for Sql data plane RBAC, allowing the creation, updating, removal, and retrieval of Role Definitions and Role Assignments
38+
- The following cmdlets are added:
39+
- Get-AzCosmosDBSqlRoleDefinition, Get-AzCosmosDBSqlRoleAssignment,
40+
- New-AzCosmosDBSqlRoleDefinition, New-AzCosmosDBSqlRoleAssignment,
41+
- Remove-AzCosmosDBSqlRoleDefinition, Remove-AzCosmosDBSqlRoleAssignment,
42+
- Update-AzCosmosDBSqlRoleDefinition, Update-AzCosmosDBSqlRoleAssignment,
43+
- New-AzCosmosDBSqlPermission
44+
45+
#### Az.DesktopVirtualization
46+
* Upgraded api version to 2021-02-01-preview.
47+
48+
#### Az.Functions
49+
* Added support in function app creation for Python 3.9 and Node 14 function apps
50+
* Removed support in function app creation for V2, Python 3.6, Node 8, and Node 10 function apps
51+
* Updated IdentityID parameter from string to string array in Update-AzFunctionApp. This is to be consistent with New-AzFunctionApp which has the same parameter as a string array
52+
* Updated FullyQualifiedErrorId for an invalid Functions version from FunctionsVersionIsInvalid to FunctionsVersionNotSupported
53+
* When creating a Node.js function app, if no runtime version is specified, the default runtime version is set to 14 instead of 12
54+
55+
#### Az.KeyVault
56+
* Provided key size for RSA key [#14819]
57+
58+
#### Az.Kusto
59+
* Bumped API version to stable 2021-01-01
60+
61+
#### Az.Maintenance
62+
* Bumped API version to stable 2021-05-01
63+
64+
#### Az.Migrate
65+
* Fixed an issue in Initialize-AzMigrateReplicationInfrastructure.ps1
66+
67+
#### Az.Network
68+
* Updated validation to allow passing zero value for saDataSizeKilobytes parameter
69+
- 'New-AzureRmIpsecPolicy'
70+
* Added optional parameter '-EdgeZone' to the following cmdlets:
71+
- 'New-AzNetworkInterface'
72+
- 'New-AzPublicIpAddress'
73+
- 'New-AzVirtualNetwork'
74+
75+
#### Az.RecoveryServices
76+
* Fixed security issue with SQL restore, this is a necessary breaking change. TargetContainer becomes mandatory for Alternate Location Restore.
77+
* Removed Set-AzRecoveryServicesBackupProperties cmdlet alias, Set-AzRecoveryServicesBackupProperty is supported.
78+
* Removed Get-AzRecoveryServicesBackupJobDetails cmdlet alias, Get-AzRecoveryServicesBackupJobDetail is supported.
79+
* Added support for cross subscription DS Move.
80+
* Azure Site Recovery support for VMware to Azure disaster recovery scenarios using RCM as the control plane.
81+
82+
#### Az.Resources
83+
* Changed '-IdentifierUris' in 'New-AzADApplication' to optional parameter
84+
* Removed generated 'DisplayName' of ADApplication created by 'New-AzADServicePrincipal'
85+
* Updated SDK to 3.13.1-preview to use GA TemplateSpecs API version
86+
* Added 'AdditionalProperties' to PSADUser and PSADGroup [#14568]
87+
* Supported 'CustomKeyIdentifier' in 'New-AzADAppCredential' and 'Get-AzADAppCredential' [#11457], [#13723]
88+
* Changed 'MainTemplate' to be shown by the default formatter for Template Spec Versions
89+
90+
#### Az.SecurityInsights
91+
* GA release for `Az.SecurityInsights`
92+
93+
#### Az.ServiceFabric
94+
* Removed deprecated cluster certificate commands:
95+
- 'Add-AzServiceFabricClusterCertificate'
96+
- 'Remove-AzServiceFabricClusterCertificate'
97+
* Changed PSManagedService model to avoid using the properties parameter directly from sdk.
98+
* Removed deprecated parameters for managed cmdlets:
99+
- 'ReverseProxyEndpointPort'
100+
- 'InstanceCloseDelayDuration'
101+
- 'ServiceDnsName'
102+
- 'InstanceCloseDelayDuration'
103+
- 'DropSourceReplicaOnMove'
104+
* Fixed 'Update-AzServiceFabricReliability' to update correctly the vm instance count of the primary node type on the cluster resource.
105+
106+
#### Az.Sql
107+
* Updated 'Set-AzSqlDatabaseVulnerabilityAssessmentRuleBaseline' documentation to include example of define array of array with one inner array.
108+
* Added cmdlet 'Copy-AzSqlDatabaseLongTermRetentionBackup'
109+
- Copy LTR backups to different servers
110+
* Added cmdlet 'Update-AzSqlDatabaseLongTermRetentionBackup'
111+
- Update Backup Storage Redundancy values for LTR backups
112+
* Added CurrentBackupStorageRedundancy, RequestedBackupStorageRedundancy to 'Get-AzSqlDatabase', 'New-AzSqlDatabase', 'Set-AzSqlDatabase', 'New-AzSqlDatabaseSecondary', 'Set-AzSqlDatabaseSecondary', 'New-AzSqlDatabaseCopy'
113+
- Changed BackupStorageRedundancy value to CurrentBackupStorageRedundancy, RequestedBackupStorageRedundancy to reflect both the current value and what has been requested if a change was made
114+
115+
#### Az.Storage
116+
* Supported file share snapshot
117+
- 'New-AzRmStorageShare'
118+
- 'Get-AzRmStorageShare'
119+
- 'Remove-AzRmStorageShare'
120+
* Supported remove file share with it's snapshot (leased and not leased), by default remove file share will fail when share has snapshot
121+
- 'Remove-AzRmStorageShare'
122+
* Supported Set/Get/Remove blob inventory policy
123+
- 'New-AzStorageBlobInventoryPolicyRule'
124+
- 'Set-AzStorageBlobInventoryPolicy'
125+
- 'Get-AzStorageBlobInventoryPolicy'
126+
- 'Remove-AzStorageBlobInventoryPolicy'
127+
* Supported DefaultSharePermission in create/update storage account
128+
- 'New-AzStorageAccount'
129+
- 'Set-AzStorageAccount'
130+
* Supported AllowCrossTenantReplication in create/update storage account
131+
- 'New-AzStorageAccount'
132+
- 'Set-AzStorageAccount'
133+
* Supported Set Object Replication Policy with SourceAccount/DestinationAccount as Storage account resource Id
134+
- 'Set-AzStorageObjectReplicationPolicy'
135+
* Supported set SasExpirationPeriod as TimeSpan.Zero
136+
- 'New-AzStorageAccount'
137+
- 'Set-AzStorageAccount
138+
* Make sure the correct account name is used when create account credential
139+
- 'New-AzStorageContext'
140+
141+
#### Az.StorageSync
142+
* Deprecated 'Invoke-AzStorageSyncFileRecall'
143+
- Customers should instead use 'Invoke-StorageSyncFileRecall', a cmdlet that is shipped with the Azure File Sync agent.
144+
* Removed offline data transfer feature in 'New-AzStorageSyncServerEndpoint'.
145+
146+
#### Az.StreamAnalytics
147+
* Bumped API version to 2017-04-01-preview
148+
* Added StreamAnalytics Cluster support
149+
150+
#### Az.Websites
151+
* updated 'Set-AzAppServicePlan' to keep existing Tags when adding new Tags
152+
* Fixed 'Set-AzWebApp' to set the AppSettings
153+
* updated 'Set-AzWebAppSlot' to set FtpsState
154+
* Added support for StaticSites.
155+
156+
### Thanks to our community contributors
157+
* @corichte, Update New-AzVirutalNetworkGatewayConnection Ex 1 (#14858)
158+
* Hiroshi Yoshioka (@hyoshioka0128)
159+
* Typo "Azure SQL database"→"Azure SQL Database" (#14883)
160+
* Typo "Azure SQL managed instance"→"Azure SQL Managed Instance" (#14891)
161+
* Typo "Azure SQL managed instance"→"Azure SQL Managed Instance" (#14892)
162+
* Typo "Azure SQL managed instance"→"Azure SQL Managed Instance" (#14902)
163+
* Typo "Azure SQL managed instance"→"Azure SQL Managed Instance" (#14901)
164+
* Typo "Azure SQL managed instance"→"Azure SQL Managed Instance" (#14900)
165+
* Typo "Azure SQL managed instance"→"Azure SQL Managed Instance" (#14898)
166+
* Typo "Azure SQL managed instance"→"Azure SQL Managed Instance" (#14899)
167+
* Jay Zelos (@jzelos), Updated example 3 to use correct parameter (#14852)
168+
* @StevePantol, Update New-AzVMwarePrivateCloud.md (#14996)
169+
170+
1171
## 5.9.0 - May 2021
2172
#### Az.Aks
3173
* Added support 'AcrNameToAttach' in 'Set-AzAksCluster'. [#14692]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Run the following command in an elevated PowerShell session to install the rollu
2525
Install-Module -Name Az
2626
```
2727

28-
This module runs on Windows PowerShell with [.NET Framework 4.7.2][DotNetFramework] or greater, or [PowerShell Core][PowerShellCore]. The `Az` module replaces `AzureRM`. You should not install `Az` side-by-side with `AzureRM`.
28+
This module runs on Windows PowerShell with [.NET Framework 4.7.2][DotNetFramework] or greater, or [the latest version of PowerShell 7][PowerShellCore]. The `Az` module replaces `AzureRM`. You should not install `Az` side-by-side with `AzureRM`.
2929

3030
If you have an earlier version of the Azure PowerShell modules installed from the PowerShell Gallery and would like to update to the latest version, run the following commands in an elevated PowerShell session:
3131

documentation/announcing-az-module.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Announcing New Module 'Az'
2-
In August 2018 we released a new module, 'Az' which combines the functionality of the AzureRM and AzureRM.Netcore modules. Az will go to version 1.0 on 12/18/2018. Az runs on both Windows PowerShell 5.1 and PowerShell Core. 'Az' ensures that the Windows PowerShell and PowerShell Core cmdlets for managing Azure resources will always be in sync and up to date. In addition, Az will simplify and regularize the naming of Azure cmdlets, and the organization of Azure modules. Az is intended as a replacement for the AzureRM.Netcore and AzureRM modules.
2+
In August 2018 we released a new module, 'Az' which combines the functionality of the AzureRM and AzureRM.Netcore modules. Az goes to version 1.0 on 12/18/2018. Az runs on both Windows PowerShell 5.1 and PowerShell 7. 'Az' ensures that the Windows PowerShell and PowerShell 7 cmdlets for managing Azure resources will always be in sync and up to date. In addition, Az will simplify and regularize the naming of Azure cmdlets, and the organization of Azure modules. Az is intended as a replacement for the AzureRM.Netcore and AzureRM modules.
33

44
Az currently ships in Cloud Shell, and can be found on the PowerShell Gallery [here](https://www.powershellgallery.com/packages/Az/)
55

66
Az is a new module, and reorganizing and simplifying cmdlet names involves breaking changes, so we have [added features to Az to make it easier to transition to the simplified, normalized names in your existing scripts](#migrating-from-azurerm).
77

88
## New Features
9-
- Windows PowerShell 5.1 and PowerShell Core support in the same module
10-
- PowerShell Core and Windows PowerShell cmdlets are always in sync and up to date with latest Azure capabilities
9+
- Windows PowerShell 5.1 and PowerShell 7 support in the same module
10+
- PowerShell 7 and Windows PowerShell cmdlets are always in sync and up to date with latest Azure capabilities
1111
- Shortened and normalized cmdlet names - all cmdlets use the noun prefix 'Az'
1212
- Simplified and normalized module organization - data plane and management plane cmdlets in the same module for each service
1313
- Enhanced authentication for Netcore
@@ -17,8 +17,7 @@ Az is a new module, and reorganizing and simplifying cmdlet names involves break
1717

1818
## Supported Platforms
1919
- PowerShell 5.1 with .Net Framework 4.7.2 or later [Windows only]
20-
- PowerShell Core 6.0 - Windows, Linux, macOS
21-
- PowerShell Core 6.1 - Windows, Linux, macOS
20+
- PowerShell 7 - Windows, Linux, macOS
2221

2322
## Timeline
2423

@@ -170,12 +169,12 @@ For scripts that import modules directly, or use ```#Requires``` statements to s
170169
### Installing Az and AzureRM Side-by-Side
171170

172171
Az and AzureRM cannot be imported side-by-side into the same PowerShell session. If you do not want to migrate your scripts from AzureRM to Az right away, there are two main options:
173-
- Install Az in PowerShell Core, and leave AzureRM in Windows PowerShell
172+
- Install Az in PowerShell 7, and leave AzureRM in Windows PowerShell
174173
- Install Az and AzureRM side-by-side in Windows PowerShell and ensure scripts do not mix the modules
175174

176-
#### Install Az in PowerShell Core
177-
You can follow the instructions in [Installing PowerShell Core on Windows](https://docs.microsoft.com/powershell/scripting/install/installing-powershell-core-on-windows?view=powershell-6
178-
) to install PowerShell Core, then use ```Install-Module Az``` in PowerShell Core to acquire the Az module. Since Windows PowerShell and PowerShell Core can exist side-by-side and do not share module directories, this will effectively isolate the two modules.
175+
#### Install Az in PowerShell 7
176+
You can follow the instructions in [Installing PowerShell 7 on Windows](https://docs.microsoft.com/powershell/scripting/install/installing-powershell-core-on-windows
177+
) to install PowerShell 7, then use ```Install-Module Az``` in PowerShell 7 to acquire the Az module. Since Windows PowerShell and PowerShell 7 can exist side-by-side and do not share module directories, this will effectively isolate the two modules.
179178

180179
#### Install Az and AzureRM Side-by-Side
181180
If you need to have both modules installed:

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ The following prerequisites should be completed before contributing to the Azure
4848
- Install the latest version of [Git](https://git-scm.com/downloads)
4949
- Install the [`platyPS` module](help-generation.md#Installing-platyPS)
5050
- Install the latest [**.NET Core SDK** and **.NET Framework Dev Pack 4.7.2**](https://dotnet.microsoft.com/download) or greater
51-
- Install [PowerShell Core](https://github.com/PowerShell/PowerShell/releases/latest)
51+
- Install [PowerShell 7](https://github.com/PowerShell/PowerShell/releases/latest)
5252
- Set the PowerShell [execution policy](https://technet.microsoft.com/en-us/library/ee176961.aspx) to **Unrestricted** for the following versions of PowerShell:
5353
- `C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe`
5454
- `C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe`
@@ -92,7 +92,7 @@ After cloning the repository to your local machine, you want to ensure that you
9292
msbuild build.proj
9393
```
9494

95-
Alternatively, you can open any command prompt (Command Prompt, Windows PowerShell, or PowerShell Core), navigate to the root of the repository, and run:
95+
Alternatively, you can open any command prompt (Command Prompt, Windows PowerShell, or PowerShell 7), navigate to the root of the repository, and run:
9696

9797
```powershell
9898
PS C:\azure-powershell> dotnet msbuild build.proj
@@ -124,7 +124,7 @@ Launch `VS Developer Command Prompt` and run the following command (from the roo
124124
msbuild build.proj /t:Test
125125
```
126126

127-
Alternatively, you can open any command prompt (Command Prompt, Windows PowerShell, or PowerShell Core), navigate to the root of the repository, and run:
127+
Alternatively, you can open any command prompt (Command Prompt, Windows PowerShell, or PowerShell 7), navigate to the root of the repository, and run:
128128

129129
```powershell
130130
PS C:\azure-powershell> dotnet msbuild build.proj /t:Test

documentation/migration-guides/Az.1.0.0-migration-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ RequiredModules = @(@{ModuleName="Az.Accounts"; ModuleVersion="1.0.0"})
142142
The tooling for these services are no longer actively supported. Customers are encouraged to move to alternative services as soon as it is convenient.
143143

144144
### Windows PowerShell 5.1 and .NET Framework 4.7.2
145-
- Using Az with Windows PowerShell 5.1 requires the installation of .NET Framework 4.7.2. However, using Az with PowerShell Core does not require .NET Framework 4.7.2.
145+
- Using Az with Windows PowerShell 5.1 requires the installation of .NET Framework 4.7.2. However, using Az with PowerShell 7 does not require .NET Framework 4.7.2.
146146

147147
### Temporary removal of User login using PSCredential
148148
- Due to changes in the authentication flow for .NET Standard, we are temporarily removing user login via PSCredential. This capability will be re-introduced in the 1/15/2019 release for Windows PowerShell 5.1. This is discussed in detail in [this issue.](https://github.com/Azure/azure-powershell/issues/7430)

0 commit comments

Comments
 (0)