Skip to content

Commit fc906b1

Browse files
committed
Merge branch 'master' of https://github.com/Azure/azure-powershell into remove-nonCanonical-cmdlet-in-AzureRM.Example.psm1#9737
2 parents 4538a2b + a590205 commit fc906b1

File tree

200 files changed

+93226
-50470
lines changed

Some content is hidden

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

200 files changed

+93226
-50470
lines changed

ChangeLog.md

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,93 @@
1+
## 2.8.0 - October 2019
2+
### General
3+
* Az.HealthcareApis 1.0.0 release
4+
5+
#### Az.Accounts
6+
* Update telemetry and url rewriting for generated modules, fix windows unit tests.
7+
8+
#### Az.ApiManagement
9+
* **Set-AzApiManagementApi** - Added support for Updating Api into ApiVersionSet
10+
- Fix for issue https://github.com/Azure/azure-powershell/issues/10068
11+
12+
#### Az.Automation
13+
* Fixed New-AzureAutomationSoftwareUpdateConfiguration cmdlet for Linux reboot setting parameter.
14+
15+
#### Az.Batch
16+
* **Get-AzBatchNodeAgentSku** is deprecated and will be replaced by **Get-AzBatchSupportImage** in version 2.0.0.
17+
18+
#### Az.Compute
19+
* Add Priority, EvictionPolicy, and MaxPrice parameters to New-AzVM and New-AzVmss cmdlets
20+
* Fix warning message and help document for Add-AzVMAdditionalUnattendContent and Add-AzVMSshPublicKey cmdlets
21+
* Fix -skipVmBackup exception for Linux VMs with managed disks for Set-AzVMDiskEncryptionExtension.
22+
* Fix bug in update encryption settings in Set-AzVMDiskEncryptionExtension, two pass scenario.
23+
24+
#### Az.DataFactory
25+
* Adding CRUD commands for ADF V2 data flow: Set-AzDataFactoryV2DataFlow, Remove-AzDataFactoryV2DataFlow, and Get-AzDataFactoryV2DataFlow.
26+
* Adding action commands for ADF V2 data flow debug Session: Start-AzDataFactoryV2DataFlowDebugSession, Get-AzDataFactoryV2DataFlowDebugSession, Add-AzDataFactoryV2DataFlowDebugSessionPackage, Invoke-AzDataFactoryV2DataFlowDebugSessionCommand and Stop-AzDataFactoryV2DataFlowDebugSession.
27+
* Update ADF .Net SDK version to 4.2.0
28+
29+
#### Az.DataLakeStore
30+
* Fix account validation so that accounts with '-' can be passed without domain
31+
32+
#### Az.HealthcareApis
33+
* Updated the powershell version to 1.0.0
34+
* Updated the SDK version to 1.0.2
35+
* Update in tests to refer to new SDK version
36+
* Updated the output structure from nested to flattened.
37+
38+
#### Az.IotHub
39+
* Add new routing source: DigitalTwinChangeEvents
40+
* Minor bug fix: Get-AzIothub not returning subscriptionId
41+
42+
#### Az.Monitor
43+
* New action group receivers added for action group
44+
-ItsmReceiver
45+
-VoiceReceiver
46+
-ArmRoleReceiver
47+
-AzureFunctionReceiver
48+
-LogicAppReceiver
49+
-AutomationRunbookReceiver
50+
-AzureAppPushReceiver
51+
* Use common alert schema enabled for the receivers. This is not applicable for SMS, Azure App push , ITSM and Voice recievers
52+
* Webhooks now supports Azure active directory authentication .
53+
54+
#### Az.Network
55+
* Add new cmdlet Get-AzAvailableServiceAlias which can be called to get the aliases that can be used for Service Endpoint Policies.
56+
* Added support for the adding traffic selectors to Virtual Network Gateway Connections
57+
- New cmdlets added:
58+
- New-AzureRmTrafficSelectorPolicy
59+
- Cmdlets updated with optional parameter -TrafficSelectorPolicies
60+
-New-AzureRmVirtualNetworkGatewayConnection
61+
-Set-AzureRmVirtualNetworkGatewayConnection
62+
* Add support for ESP and AH protocols in network security rule configurations
63+
- Updated cmdlets:
64+
- Add-AzNetworkSecurityRuleConfig
65+
- New-AzNetworkSecurityRuleConfig
66+
- Set-AzNetworkSecurityRuleConfig
67+
* Improve handling of exceptions in Cortex cmdlets
68+
* New Generations and SKUs for VirtualNetworkGateways
69+
- Introduce new Generations for VirtualNetworkGateways.
70+
- Introduce new high throughput SKUs for VirtualNetworkGateways.
71+
72+
#### Az.RedisCache
73+
* Updated 'Set-AzRedisCache' reference documentation to include missing values for '-Size' parameter
74+
75+
#### Az.Sql
76+
* Add support for setting Active Directory Administrator on Managed Instance
77+
78+
#### Az.Storage
79+
* Upgrade Storage Client Library to 11.1.0
80+
* List containers with Management plane API, will list with NextPageLink
81+
- Get-AzRmStorageContainer
82+
* List Storage accounts from subscription, will list with NextPageLink
83+
- Get-AzStorageAccount
84+
85+
#### Az.StorageSync
86+
* Fix Issue 9810 in Reset-AzStorageSyncServerCertificate.
87+
88+
#### Az.Websites
89+
* Set-AzWebApp updating ASP of an app was failing
90+
191
## 2.7.0 - September 2019
292
#### Az.ApiManagement
393
* Update '-Format' parameter description in 'Set-AzApiManagementPolicy' reference documentation

src/ApiManagement/ApiManagement/Az.ApiManagement.psd1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 9/19/2019
6+
# Generated on: 10/11/2019
77
#
88

99
@{
@@ -12,7 +12,7 @@
1212
# RootModule = ''
1313

1414
# Version number of this module.
15-
ModuleVersion = '1.3.1'
15+
ModuleVersion = '1.3.2'
1616

1717
# Supported PSEditions
1818
CompatiblePSEditions = 'Core', 'Desktop'
@@ -189,8 +189,8 @@ PrivateData = @{
189189
# IconUri = ''
190190

191191
# ReleaseNotes of this module
192-
ReleaseNotes = '* Update ''-Format'' parameter description in ''Set-AzApiManagementPolicy'' reference documentation
193-
* Removed references of deprecated cmdlet ''Update-AzApiManagementDeployment'' from reference documentation. Use ''Set-AzApiManagement'' instead.'
192+
ReleaseNotes = '* **Set-AzApiManagementApi** - Added support for Updating Api into ApiVersionSet
193+
- Fix for issue https://github.com/Azure/azure-powershell/issues/10068'
194194

195195
# Prerelease string of this module
196196
# Prerelease = ''

src/ApiManagement/ApiManagement/ChangeLog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
22+
## Version 1.3.2
2123
* **Set-AzApiManagementApi** - Added support for Updating Api into ApiVersionSet
2224
- Fix for issue https://github.com/Azure/azure-powershell/issues/10068
2325

src/ApiManagement/ApiManagement/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@
4141
// You can specify all the values or you can default the Build and Revision Numbers
4242
// by using the '*' as shown below:
4343

44-
[assembly: AssemblyVersion("1.3.1")]
45-
[assembly: AssemblyFileVersion("1.3.1")]
44+
[assembly: AssemblyVersion("1.3.2")]
45+
[assembly: AssemblyFileVersion("1.3.2")]

src/Automation/Automation/Az.Automation.psd1

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 9/19/2019
6+
# Generated on: 10/11/2019
77
#
88

99
@{
@@ -12,7 +12,7 @@
1212
# RootModule = ''
1313

1414
# Version number of this module.
15-
ModuleVersion = '1.3.3'
15+
ModuleVersion = '1.3.4'
1616

1717
# Supported PSEditions
1818
CompatiblePSEditions = 'Core', 'Desktop'
@@ -168,9 +168,7 @@ PrivateData = @{
168168
# IconUri = ''
169169

170170
# ReleaseNotes of this module
171-
ReleaseNotes = '* Fixed example typo in reference documentation for ''Register-AzAutomationDscNode''
172-
* Added clarification on OS restriction to Register-AzAutomationDSCNode
173-
* Fixed Start-AzAutomationRunbook cmdlet Null reference exception for -Wait option.'
171+
ReleaseNotes = '* Fixed New-AzureAutomationSoftwareUpdateConfiguration cmdlet for Linux reboot setting parameter. '
174172

175173
# Prerelease string of this module
176174
# Prerelease = ''

src/Automation/Automation/ChangeLog.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,14 @@
1919
-->
2020
## Upcoming Release
2121

22+
## Version 1.3.4
23+
24+
* Fixed New-AzureAutomationSoftwareUpdateConfiguration cmdlet for Linux reboot setting parameter.
25+
2226
## Version 1.3.3
2327
* Fixed example typo in reference documentation for `Register-AzAutomationDscNode`
2428
* Added clarification on OS restriction to Register-AzAutomationDSCNode
2529
* Fixed Start-AzAutomationRunbook cmdlet Null reference exception for -Wait option.
26-
* Fixed New-AzureAutomationSoftwareUpdateConfiguration cmdlet for Linux reboot setting parameter.
2730

2831
## Version 1.3.2
2932
* Fixed miscellaneous typos across module

src/Automation/Automation/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
// You can specify all the values or you can default the Build and Revision Numbers
4444
// by using the '*' as shown below:
4545

46-
[assembly: AssemblyVersion("1.3.3")]
47-
[assembly: AssemblyFileVersion("1.3.3")]
46+
[assembly: AssemblyVersion("1.3.4")]
47+
[assembly: AssemblyFileVersion("1.3.4")]
4848
#if !SIGN
4949
[assembly: InternalsVisibleTo("Microsoft.Azure.PowerShell.Cmdlets.Automation.Test")]
5050
#endif

src/Batch/Batch/Az.Batch.psd1

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 8/22/2019
6+
# Generated on: 10/11/2019
77
#
88

99
@{
@@ -12,7 +12,7 @@
1212
# RootModule = ''
1313

1414
# Version number of this module.
15-
ModuleVersion = '1.1.1'
15+
ModuleVersion = '1.1.2'
1616

1717
# Supported PSEditions
1818
CompatiblePSEditions = 'Core', 'Desktop'
@@ -152,8 +152,7 @@ PrivateData = @{
152152
# IconUri = ''
153153

154154
# ReleaseNotes of this module
155-
ReleaseNotes = '* Fixed typo in help message and documentation to capitalize Windows
156-
* Fixed miscellaneous typos across module'
155+
ReleaseNotes = '* **Get-AzBatchNodeAgentSku** is deprecated and will be replaced by **Get-AzBatchSupportImage** in version 2.0.0.'
157156

158157
# Prerelease string of this module
159158
# Prerelease = ''

src/Batch/Batch/ChangeLog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
-->
2020

2121
## Upcoming Release
22+
23+
## Version 1.1.2
2224
* **Get-AzBatchNodeAgentSku** is deprecated and will be replaced by **Get-AzBatchSupportImage** in version 2.0.0.
2325

2426
## Version 1.1.1

src/Batch/Batch/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
[assembly: ComVisible(false)]
2626
[assembly: CLSCompliant(false)]
2727
[assembly: Guid("ed102280-3577-49bf-93dd-11b6e3a44a57")]
28-
[assembly: AssemblyVersion("1.1.1")]
29-
[assembly: AssemblyFileVersion("1.1.1")]
28+
[assembly: AssemblyVersion("1.1.2")]
29+
[assembly: AssemblyFileVersion("1.1.2")]
3030
#if !SIGN
3131
[assembly: InternalsVisibleTo("Microsoft.Azure.PowerShell.Cmdlets.Batch.Test")]
3232
#endif

src/Blueprint/Blueprint/Cmdlets/BlueprintAssignment/BlueprintAssignmentCmdletBase.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,5 +240,21 @@ protected void ThrowIfAssignmentNotExist(string scope, string name)
240240
throw new Exception(string.Format(Resources.AssignmentNotExist, name, scope));
241241
}
242242
}
243+
244+
/// <summary>
245+
/// Checks if an assignment uses user assigned identity.
246+
/// </summary>
247+
/// <param name="identity"></param>
248+
/// <returns></returns>
249+
protected bool IsUserAssignedIdentity(ManagedServiceIdentity identity)
250+
{
251+
if (String.IsNullOrEmpty(identity?.Type))
252+
{
253+
throw new Exception(Resources.IdentityTypeNotProvided);
254+
}
255+
256+
return identity.Type.Equals(ManagedServiceIdentityType.UserAssigned, StringComparison.OrdinalIgnoreCase);
257+
258+
}
243259
}
244260
}

src/Blueprint/Blueprint/Cmdlets/BlueprintAssignment/NewAzureRMBlueprintAssignment.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class NewAzureRmBlueprintAssignment : BlueprintAssignmentCmdletBase
3838
[ValidateNotNullOrEmpty]
3939
public string Name { get; set; }
4040

41-
[Parameter(ParameterSetName = ParameterSetNames.CreateBlueprintAssignmentByFile, Mandatory = true, HelpMessage = BlueprintConstants.ParameterHelpMessages.BlueprintObject)]
41+
[Parameter(ParameterSetName = ParameterSetNames.CreateBlueprintAssignmentByFile, Mandatory = false, HelpMessage = BlueprintConstants.ParameterHelpMessages.BlueprintObject)]
4242
[Parameter(ParameterSetName = ParameterSetNames.CreateBlueprintAssignment, Mandatory = true, ValueFromPipeline = true, HelpMessage = BlueprintConstants.ParameterHelpMessages.BlueprintObject)]
4343
[ValidateNotNull]
4444
public PSBlueprintBase Blueprint { get; set; }
@@ -151,8 +151,15 @@ public override void ExecuteCmdlet()
151151
// Register Blueprint RP
152152
RegisterBlueprintRp(subscription);
153153

154-
if (!this.IsParameterBound(c => c.UserAssignedIdentity))
154+
if (!IsUserAssignedIdentity(assignmentObject.Identity))
155155
{
156+
// If user assigned identity is defined as the identity in the assignment
157+
// we consider the user assigned MSI, otherwise system assigned MSI.
158+
//
159+
// Assign owner permission to Blueprint SPN only if assignment is being done using
160+
// System assigned identity.
161+
// This is a no-op for user assigned identity.
162+
156163
var spnObjectId = GetBlueprintSpn(scope, Name);
157164
AssignOwnerPermission(subscription, spnObjectId);
158165
}

src/Blueprint/Blueprint/Properties/Resources.Designer.cs

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Blueprint/Blueprint/Properties/Resources.resx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@
159159
<data name="DeleteBlueprintFolderContentsProcessString" xml:space="preserve">
160160
<value>Folder '{0}' already exists. This operation will replace contents of the folder with specified blueprint and its artifacts. Would you like to continue?</value>
161161
</data>
162+
<data name="IdentityTypeNotProvided" xml:space="preserve">
163+
<value>Can't determine the identity to be used with the assignment. Make sure the assignment file contains Identity property and identity Type property.</value>
164+
</data>
162165
<data name="OverwriteExistingOutputFileContinueMessage" xml:space="preserve">
163166
<value>Overwriting the output file.</value>
164167
</data>

src/Compute/Compute.Test/ScenarioTests/StrategiesVirtualMachineTests.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,5 +169,12 @@ public void TestSimpleNewVmPpgId()
169169
{
170170
TestRunner.RunTestScript("Test-SimpleNewVmPpgId");
171171
}
172+
173+
[Fact]
174+
[Trait(Category.AcceptanceType, Category.CheckIn)]
175+
public void TestSimpleNewVmBilling()
176+
{
177+
TestRunner.RunTestScript("Test-SimpleNewVmBilling");
178+
}
172179
}
173180
}

0 commit comments

Comments
 (0)