Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
28 changes: 0 additions & 28 deletions .azure-pipelines/daily-build.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .azure-pipelines/powershell-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
displayName: Test
dependsOn: Build
condition: succeeded()
timeoutInMinutes: 180
timeoutInMinutes: 120
strategy:
matrix:
windows:
Expand Down
2 changes: 1 addition & 1 deletion .azure-pipelines/util/publish-artifacts-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ steps:
inputs:
artifactName: ${{ parameters.artifactName }}
targetPath: artifacts
condition: always()
condition: succeededOrFailed()
12 changes: 0 additions & 12 deletions .azure-pipelines/util/test-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,6 @@ steps:
parameters:
osName: ${{ parameters.osName }}

- task: UseDotNet@2
displayName: 'Use .NET Core sdk'
inputs:
packageType: sdk
version: 2.1.x

- task: UseDotNet@2
displayName: 'Use .NET Core sdk'
inputs:
packageType: sdk
version: 3.1.x

- task: DotNetCoreCLI@2
displayName: Test
inputs:
Expand Down
72 changes: 0 additions & 72 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,75 +1,3 @@
## 4.5.0 - August 2020
#### Az.Accounts
* Updated 'Connect-AzAccount' to accept parameter 'MaxContextPopulation' [#9865]
* Updated SubscriptionClient version to 2019-06-01 and display tenant domains [#9838]
* Supported home tenant and managedBy tenant information of subscription
* Corrected module name, version info in telemetry data
* Adjusted SqlDatabaseDnsSuffix and ServiceManagementUrl if environment metadata endpoint returns incompatible value

#### Az.Aks
* Removed 'ClientIdAndSecret' to 'ServicePrincipalIdAndSecret' and set 'ClientIdAndSecret' as an alias [#12381].
* Removed 'Get-AzAks'/'New-AzAks'/'Remove-AzAks'/'Set-AzAks' to 'Get-AzAksCluster'/'New-AzAksCluster'/'Remove-AzAksCluster'/'Set-AzAksCluster' and set the original ones as alias [#12373].

#### Az.ApiManagement
* Added new 'Add-AzApiManagementApiToGateway' cmdlet.
* Added new 'Get-AzApiManagementGateway' cmdlet.
* Added new 'Get-AzApiManagementGatewayHostnameConfiguration' cmdlet.
* Added new 'Get-AzApiManagementGatewayKey' cmdlet.
* Added new 'New-AzApiManagementGateway' cmdlet.
* Added new 'New-AzApiManagementGatewayHostnameConfiguration' cmdlet.
* Added new 'New-AzApiManagementResourceLocationObject' cmdlet.
* Added new 'Remove-AzApiManagementApiFromGateway' cmdlet.
* Added new 'Remove-AzApiManagementGateway' cmdlet.
* Added new 'Remove-AzApiManagementGatewayHostnameConfiguration' cmdlet.
* Added new 'Update-AzApiManagementGateway' cmdlet.
* Added new optional [-GatewayId] parameter to the 'Get-AzApiManagementApi' cmdlet.

#### Az.CognitiveServices
* Used 'Deny' specifically as NetworkRules default action.

#### Az.FrontDoor
* Fixed an issue where an exception is being thrown when Enum.Parse tries to coerce a null value to an Enabled or Disabled enum values [#12344]

#### Az.HDInsight
* Supported creating cluster with encryption in transit feature.
- Add new parameter 'EncryptionInTransit' to the cmdlet 'New-AzHDInsightCluster'
- Add new parameter 'EncryptionInTransit' to the cmdlet 'New-AzHDInsightClusterConfig'
* Supported creating cluster with private link feature:
- Add new parameter 'PublicNetworkAccessType' and 'OutboundPublicNetworkAccessType' to the cmdlet 'New-AzHDInsightCluster'
- Add new parameter 'PublicNetworkAccessType' and 'OutboundPublicNetworkAccessType' to the cmdlet 'New-AzHDInsightClusterConfig'
* Returned virtual network information when calling 'New-AzHDInsightCluster' or 'Get-AzHDInsightCluster'

#### Az.Network
* Added support for AddressPrefixType parameter to 'Remove-AzExpressRouteCircuitConnectionConfig'
* Added non-breaking changes: PeerAddressType functionality for Private Peering in 'Remove-AzExpressRouteCircutPeeringConfig'.
* Code changed to ignore case for AddressPrefixType and PeerAddressType parameter.
* Modified the warning message for 'New-AzLoadBalancerFrontendIpConfig', 'New-AzPublicIpAddress' and 'New-AzPublicIpPrefix'.

#### Az.OperationalInsights
* Added '-ForceDelete' option for 'Remove-AzOperationalInsightsworkspace'
* Added new cmdlet 'Get-AzOperationalInsightsDeletedWorkspace'
* Added new cmdlet 'Restore-AzOperationalInsightsWorkspace'

#### Az.RecoveryServices
* Improved the Azure Backup container/item discovery experience.

#### Az.Resources
* Added properties 'Condition', 'ConditionVersion' and 'Description' to 'New-AzRoleAssignment'
- This included all the relevant changes to the data models

#### Az.Sql
* Fixed potential server name case insensitive error in 'New-AzSqlServer' and 'Set-AzSqlServer'
* Fixed wrong database name returned on existing database error in 'New-AzSqlDatabaseSecondary'

#### Az.Storage
* Supported create container/blob Sas token with new permission x,t
- 'New-AzStorageBlobSASToken'
- 'New-AzStorageContainerSASToken'
* Supported create account Sas token with new permission x,t,f
- 'New-AzStorageAccountSASToken'
* Supported get single file share usage
- 'Get-AzRmStorageShare'

## 4.4.0 - July 2020
#### Az.Accounts
* Added new cmdlet 'Invoke-AzRestMethod'
Expand Down
2 changes: 1 addition & 1 deletion build.proj
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@
<RuntimeDllsIncludeList>Microsoft.Powershell.*.dll,System*.dll,Microsoft.VisualBasic.dll,Microsoft.CSharp.dll,Microsoft.CodeAnalysis.dll,Microsoft.CodeAnalysis.CSharp.dll</RuntimeDllsIncludeList>
<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>
</PropertyGroup>
<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;" />
<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;" />
<Exec Command="$(PowerShellCoreCommandPrefix) &quot;Get-ChildItem -Path $(RepoArtifacts)/$(Configuration) -Recurse -Include 'runtimes' | Remove-Item -Recurse -Force&quot;" Condition="'$(CodeSign)' == 'true'" />

<Exec Command="$(PowerShellCoreCommandPrefix) &quot;. $(RepoTools)/UpdateModules.ps1 -BuildConfig $(Configuration) -Scope $(Scope)&quot;" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,33 +155,3 @@ In addition, there should be no two parameters with the same position in the sam
Allowing the user to pipe an object from one cmdlet to another is a major scenario in PowerShell, but allowing multiple parameters in the same parameter set to accept their value from the pipeline can cause issues. From the remarks section of [_Parameter Attribute Declaration_](https://docs.microsoft.com/en-us/powershell/scripting/developer/cmdlet/parameter-attribute-declaration#remarks):

> _Only one parameter in a parameter set should declare ValueFromPipeline = true. Multiple parameters can define ValueFromPipelineByPropertyName = true._


## Appendix: Parameter Syntax

In PowerShell documentation, square brackets (`[]`) indicate optional.
Convention is as follows:

```powershell
command-name
-RequiredParameterName <RequiredParameterValue>
[-OptionalParameterName <OptionalParameterValue>]
[-OptionalSwitchParameters]
[-OptionalParameterName] <RequiredParameterValue>
```

Using `New-Alias` cmdlet as an example:

```powershell
New-Alias
[-Name] <string> -required 'positional' parameter
[-Value] <string>
[-Description <string>] -optional parameter
[-Force] -optional switch parameter (all switch parameters are optional, non-positional)
[-Option {None | ReadOnly | Constant | Private | AllScope}]
[-PassThru]
[-Scope <string>]
[-Confirm]
[-WhatIf]
[<CommonParameters>]
```
2 changes: 1 addition & 1 deletion setup/generate.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if( (-not (get-command -ea 0 light)) -or (-not (get-command -ea 0 heat)) -or (-n
$outputName ="Az-Cmdlets"

# generate the product name from the current month/year.
$productName = "Microsoft Azure PowerShell - August 2020"
$productName = "Microsoft Azure PowerShell - July 2020"

# where to put temp files
$tmp = Join-Path $env:temp azure-cmdlets-tmp
Expand Down
4 changes: 2 additions & 2 deletions src/Accounts/Accounts.Test/AzureRMProfileTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1081,15 +1081,15 @@ public void CanRenewTokenLogin()
Assert.Equal(keyVaultToken2, account.GetProperty(AzureAccount.Property.KeyVaultAccessToken));
var factory = new ClientFactory();
var rmClient = factory.CreateArmClient<MockServiceClient>(profile.DefaultContext, AzureEnvironment.Endpoint.ResourceManager);
var rmCred = rmClient.Credentials as RenewingTokenCredential;
var rmCred = rmClient.Credentials as TokenCredentials;
Assert.NotNull(rmCred);
var message = new HttpRequestMessage(HttpMethod.Get, rmClient.BaseUri.ToString());
rmCred.ProcessHttpRequestAsync(message, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult();
Assert.NotNull(message.Headers.Authorization);
Assert.NotNull(message.Headers.Authorization.Parameter);
Assert.Contains(accessToken2, message.Headers.Authorization.Parameter);
var graphClient = factory.CreateArmClient<MockServiceClient>(profile.DefaultContext, AzureEnvironment.Endpoint.Graph);
var graphCred = graphClient.Credentials as RenewingTokenCredential;
var graphCred = graphClient.Credentials as TokenCredentials;
Assert.NotNull(graphCred);
var graphMessage = new HttpRequestMessage(HttpMethod.Get, rmClient.BaseUri.ToString());
graphCred.ProcessHttpRequestAsync(graphMessage, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult();
Expand Down
Loading