Skip to content

update #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 82 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
33bf3f0
Merge pull request #17746 from Azure/main
wyunchi-ms Apr 8, 2022
4b5f9b3
Fix a bug can't display the customipprefix in publicipprefix. (#17729)
gitlwh Apr 11, 2022
2ef7869
Powershell changes for supporting ExpressRoutePort authorization (#17…
utbarn-ms Apr 12, 2022
33a4fcc
Add hub routing preference in virtual hub, deprecated PreferredRoutin…
zaynchen115 Apr 15, 2022
7e014f1
Adding AuxiliaryMode property to New-AzNetworkInterface cmdlet (#17866)
pr-work Apr 25, 2022
3f72e3c
Replaced version number in 2021-08-01 api version branch (#17981)
MikhailTryakhov Apr 26, 2022
d3aa5d3
Fixed merge conflicts
MikhailTryakhov Apr 26, 2022
feb6808
Fix Az.PostgreSql Syntax Errors (#17748)
v-yuzhichen Apr 27, 2022
c75cff2
Fix Az.Security Syntax Errors (#17781)
v-yuzhichen Apr 27, 2022
a31337c
Fix Az.DeploymentManager Syntax Errors (#17570)
v-yuzhichen Apr 27, 2022
a229858
Add AksTestRunner and replace TestController (#17962)
Apr 27, 2022
bb4301a
Add AdvisorTestRunner and replace TestController (#17961)
Apr 27, 2022
8ed242c
Merge pull request #17989 from Azure/network-2021-08-01-final
VeryEarly Apr 27, 2022
a9fb18b
[Storage] show oauth token in debug log in debug build only (#17986)
blueww Apr 27, 2022
0beeece
Fix Az.PrivateDNS Syntax Errors (#17749)
v-yuzhichen Apr 27, 2022
64a914b
Virtual Wan P2S MultiPool feature changes (#17032)
Nilambari Apr 27, 2022
01237a7
[Smoketest]Add try 3 times with 30s sleeping time (#17848)
lijinpei2008 Apr 28, 2022
a8ac552
Update related link in Set-AzKeyVaultManagedStorageSasDefinition (#18…
CaptainFanZzz Apr 28, 2022
e761c69
fix parameter type for update-azcontainerregistryrepository (#17984)
VeryEarly Apr 29, 2022
28f8135
Keep docs align with the implementation of New-AzFirewallHubIpAddress…
CaptainFanZzz Apr 29, 2022
f2c1db6
Introducing Az.Security SecuritySolutionsReferenceData cmdlets (#17971)
ariklin Apr 29, 2022
97f4e92
Fixed dead link to the DCR Overview (#17998)
bb-froggy Apr 29, 2022
b2be3c7
Edit RMTestBase derived class into ApiManagementTestRunner class (#18…
Apr 29, 2022
aa62d5f
Update dependencies of Az.Tools.Predictor (#18013)
dingmeng-xue Apr 29, 2022
0b9b9c6
Az.ApiManagement update to sdk 8.0.0 / Api Version 2021-8-01 (#17827)
wpooley May 5, 2022
218d652
Introducing Az.Security SecuritySolution cmdlets (#18022)
ariklin May 5, 2022
7119d4f
Update documentation for Get-AzApiManagementSubscription cmdlet (#18027)
scottwtang May 5, 2022
8d08472
Delete unnecessary code (#18037)
May 5, 2022
3510359
Add AlertsManagementTestRunner and replace TestController (#18039)
CaptainFanZzz May 5, 2022
1635bbe
[EventHubs] Fixing Set-AzEventHubNetworkRuleSet (#18024)
damodaravadhani May 6, 2022
34473a1
[SQL] Add EndpointCertificate cmdlets (#17703)
ostojicb May 6, 2022
6b83de7
Added set-azcontent to managed identity example based on customer fee…
mikefrobbins May 6, 2022
2086a99
[NetAppFiles]Add 2021-10-01 changes (#17767)
audunn May 6, 2022
00e4082
[Az Eventgrid] Add new features for 2021-12-31 release (#17608)
rohkuma-microsoft May 6, 2022
c4f4848
Fix Az.CosmosDB Syntax Errors (#18009)
v-yuzhichen May 6, 2022
0248503
Added UploadedTimestamp when adding package to spark pool by 'Update-…
yanjungao718 May 6, 2022
b8accaf
Added Rotate into the list of permissions to keys (#18015)
BethanyZhou May 6, 2022
8728bc8
[DataFactory] Updated ADF .Net SDK version to 6.1.0 (#18035)
Jingshu923 May 6, 2022
70cae8b
Fix Az.StackEdge Syntax Errors (#17807)
v-yuzhichen May 6, 2022
7457dae
Fix Az.ServiceBus Syntax Errors (#17782)
v-yuzhichen May 6, 2022
110ffa7
Fix Az.SqlVirtualMachine Syntax Errors (#17806)
v-yuzhichen May 6, 2022
57b2f64
Fix Az.ServiceFabric Syntax Errors (#17790)
v-yuzhichen May 6, 2022
7195e34
Update Az.Databox Examples (#17779)
CaptainFanZzz May 6, 2022
224effc
Fixing Set-AzNetworkRuleSet and adding TrustedServiceAccess (#18018)
damodaravadhani May 7, 2022
c5385ee
Adding DisableIPsecProtection check(bool) to Virtual Network Gateway …
misbamustaqim May 7, 2022
d040327
Fix typos in Get-AzStaticWebApp.md (#18061)
SvenAelterman May 7, 2022
a148908
[SQL] Instance Link test changes (#18060)
ostojicb May 7, 2022
d7a6aa3
(AzureCXP) Fixes Azure/azure-powershell#17008 (#18058)
navba-MSFT May 7, 2022
e58799f
Fix Az.Peering Syntax Errors (#17738)
v-yuzhichen May 7, 2022
e905d00
Fix Az.ResoureMover Syntax Errors (#17754)
v-yuzhichen May 7, 2022
b37a887
Fix Az.Sql Syntax Errors (#17814)
v-yuzhichen May 7, 2022
78a154c
Fix Az.OperationalInsights Syntax Errors (#17733)
v-yuzhichen May 7, 2022
5f3ac3d
Fix Az.Network Syntax Errors (#17701)
CaptainFanZzz May 7, 2022
716a28f
Fix Az.MySql Syntax Errors (#17696)
v-yuzhichen May 7, 2022
ec6d26e
Fix Az.Monitor Syntax Errors (#17694)
v-yuzhichen May 7, 2022
45cc564
[Resources] Update Resources.ManagementGroups Module (#17728)
git-thomasdolan May 7, 2022
f6b28b8
Add CdnTestRunner and replace TestController (#18066)
CaptainFanZzz May 9, 2022
4b8c4e7
[HealthcareApis] move to generated codebase (#18004)
isra-fel May 9, 2022
1ed6933
Add BlueprintTestRunner and replace TestController (#18069)
CaptainFanZzz May 9, 2022
fdbc302
Fix comments in code to generate good XML file (#18072)
BethanyZhou May 9, 2022
b64ba29
Add CosmosDBTestRunner and replace TestController (#18073)
CaptainFanZzz May 9, 2022
ec77d18
Add ContainerRegistryTestRunner and replace TestController (#18071)
CaptainFanZzz May 9, 2022
81c1fea
Add AttestationTestRunner and replace AttestationController (#18076)
v-yuzhichen May 10, 2022
8886bdd
Add DataLakeAnalyticsTestRunner and replace AdlaTestsBase (#18090)
CaptainFanZzz May 10, 2022
81ec8cc
Add BatchTestRunner class (#18082)
May 10, 2022
12c25f9
Add CognitiveServicesTestRunner and replace TestController (#18077)
May 10, 2022
a235107
Add DataboxEdgeTestRunner to replace TestBase (#18091)
May 11, 2022
cf93cef
Fix missing creationDate in output (#18093)
audunn May 11, 2022
3085904
Fix: #18042: Updated `Get-AzWebApp` and `Get-AzWebAppSlot` to expose …
Kotasudhakarreddy May 11, 2022
2c6bbff
update Azure.Identity (#18083)
dingmeng-xue May 11, 2022
5a42518
Dtzemahweyl/Add new parameter -PrivateRange to New-AzFirewallPolicyIn…
diklatze May 12, 2022
9f76a2d
Update New-AzADDomainService.md (#18102)
BethanyZhou May 12, 2022
6c78b5c
Add DeploymentManagerTestRunner to replace DeploymentManagerControlle…
v-yuzhichen May 12, 2022
8c840b2
Add DataMigrationTestRunner to replace DataMigrationTestController (#…
v-yuzhichen May 12, 2022
b36224c
Add DataShareTestRunner to replace TestController (#18115)
May 12, 2022
3bf73ba
Add BillingTestRunner to replace TestController (#18079)
May 12, 2022
4597dd4
[ApplicationInsights] [BreakingChange] Replace applicationinsights cm…
VeryEarly May 12, 2022
2185ac9
[Network]Add Microsoft.Network/privateLinkServices configuration to s…
LucasYao93 May 12, 2022
baeb930
Fix Az.FrontDoor Syntax Errors (#17615)
CaptainFanZzz May 12, 2022
8c9a73f
Add DevSpacesTestRunner to replace TestController (#18109)
v-yuzhichen May 12, 2022
f0ebc25
Add EventGridTestRunner and replace Controller (#18122)
CaptainFanZzz May 12, 2022
42085ee
Add HDInsightTestRunner and replace TestController (#18127)
CaptainFanZzz May 12, 2022
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
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -1,63 +1,68 @@
## Applicability
Az.Network supports the retrieval of private link resource in `Get-AzPrivateLinkResource` as well as the management of private endpoint connection in `Approve-AzPrivateEndpointConnect`, `Deny-AzPrivateEndpointConnect`, `Remove-AzPrivateEndpointConnect` and `Set-AzPrivateEndpointConnect`.
Az.Network supports the retrieval of private link resource in `Get-AzPrivateLinkResource` as well as the management of private endpoint connection by `Get-AzPrivateEndpointConnection`, `Approve-AzPrivateEndpointConnection`, `Deny-AzPrivateEndpointConnection`, `Remove-AzPrivateEndpointConnection` and `Set-AzPrivateEndpointConnection`.

For providers who
- supports the features of private linke resource and private endpoint connection already
- and want to onboard these features in Azure PowerShell,
For provider who
- supports the features of private link resource or private endpoint connection already
- and wants to onboard these features in Azure PowerShell,
You need to register provider configuration in [ProviderConfiguration.cs](https://github.com/Azure/azure-powershell/blob/main/src/Network/Network/PrivateLinkService/PrivateLinkServiceProvider/ProviderConfiguration.cs#L12).

they need register provider configuration in [ProviderConfiguration.cs](https://github.com/Azure/azure-powershell/blob/main/src/Network/Network/PrivateLinkService/PrivateLinkServiceProvider/ProviderConfiguration.cs#L12).

Notes: No additional commands for the features of private linke resource and private endpoint connection need to be added.
Notes: No additional commands for the features of PrivateLinkResource and PrivateEndpointConnection need to be added.

## Prerequisite
We assume the API for `List` private link resource and `Get` private endpoint connection is available in the provider that claims to support private endpoint connection features. That means it supports following APIs:

```
# List Private Link Resource API
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{provider}/{Top-Level-Resource}/{Top-Level-Resource-Name}/privateLinkResources"
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{provider}/{topResourceType}/{topResourceName}/privateLinkResources"
```
```
# Get Private Endpoint Connection API
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{provider}/{Top-Level-Resource}/{Top-Level-Resource-Name}/privateEndpointConnections/{PrivateEndpointConnection-Name}"
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{provider}/{topResourceType}/{topResourceName}/privateEndpointConnections/{privateEndpointConnectionName}"
```

if "List Private Endpoint Connection API" is not available, `privateEndpointConnections` must be included in the properties of top resource returned by
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{provider}/{Top-Level-Resource}/{Top-Level-Resource-Name}". So that `Private Endpoint Connections` will be retrieved from the top resource.
if "List Private Endpoint Connection API" below is not available, `privateEndpointConnections` must be included in the properties of top resource returned by
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{provider}/{topResourceType}/{topResourceName}". So that `Get-AzPrivateEndpointConnect` will retrieve connections from the top resource.

```
# List Private Endpoint Connection API
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{provider}/{Top-Level-Resource}/{Top-Level-Resource-Name}/privateEndpointConnections"
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{provider}/{topResourceType}/{topResourceName}/privateEndpointConnections"
```

## Code Changes Needed
To 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), we need to follow
in following pattern:
To add corresponding {Provider}, {topResourceType} and {API-Version} into [ProviderConfiguration.cs](https://github.com/Azure/azure-powershell/blob/main/src/Network/Network/PrivateLinkService/PrivateLinkServiceProvider/ProviderConfiguration.cs#L12), we need to follow in following pattern:
```
RegisterConfiguration("{Provider}/{Top-Level-Resource}", "{API-Version}", bool hasPrivateEndppointConnectionsURI, bool hasPrivateLinkResourceURI)
RegisterConfiguration(string type, string apiVersion, bool hasConnectionsURI = false, bool supportGetPrivateLinkResource = false, bool supportPrivateLinkResource = true)
```
- "{Provider}/{Top-Level-Resource}" describes the type of provider. For example, "Microsoft.Sql/servers".
- "{API-Version}" specifies the API version to be used. For example, "2018-06-01-preview".
- `hasPrivateEndppointConnectionsURI` marks the provider whether provides "List Private Endpoint Connection API".
- `type` includes resource provider and resource type which supports PrivateLink feature. For example, "Microsoft.Sql/servers".
- `apiVersion` specifies the API version to be used. For example, "2018-06-01-preview".
- `hasConnectionsURI` marks whether the provider exposes "List Private Endpoint Connection API". Default value is false.
```
# Get Private Link Resource API
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{provider}/{Top-Level-Resource}/{Top-Level-Resource-Name}/privateLinkResources/{PrivateLinkResource-Name}"
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{provider}/{topResourceType}/{topResourceName}/privateLinkResources/{privateLinkResourceName}"
```
- `hasPrivateLinkResourceURI` marks the provider whether providers "Get Private Endpoint Connection API".
- `supportGetPrivateLinkResource` marks whether the provider supports Get API of PrivateLinkResource. Default value is false.

For instance, for provider "Microsoft.Sql/servers" with API version "2018-06-01-preview", it supports "List Private Endpoint Connection API" and "Get Private Endpoint Connection API". So it's registration configuration should be
For instance, for provider "Microsoft.Sql/servers" with API version "2018-06-01-preview", it supports "List Private Endpoint Connection API" and "Get Private Link Resource API". So its registration configuration should be:
```
RegisterConfiguration("Microsoft.Sql/servers", "2018-06-01-preview", true, true);
```

- `supportListPrivateLinkResource` marks whether the provider supports List API of PrivateLinkResource. Default value is true.

For instance, `Microsoft.Network/privateLinkServices` supports PrivateEndpointConnections but doesn't support resource type PrivateLinkResource (We assume List API is mandatory to resource support). Its configuration should be:
```
RegisterConfiguration("Microsoft.Network/privateLinkServices", "2020-05-01", true, false, false);
```

## End-To-End Test

### Item Needed

+ Top level resource
```
New-Az{Top-Level-Resource} -ResourceGroupName {rg_name} -Name {top_level_resource_name}
New-Az{topResourceType} -ResourceGroupName {rgName} -Name {topResourceName}

$TopLevelResource = Get-Az{Top-Level-Resource} -ResourceGroupName {rg_name} -Name {top_level_resource_name}
$TopLevelResource = Get-Az{topResourceType} -ResourceGroupName {rgName} -Name {topResourceName}
```

+ private link resource
Expand All @@ -67,24 +72,24 @@ $PrivateLinkResource = Get-AzPrivateLinkResource -PrivateLinkResourceId $TopLeve

+ subnet config (object in memory)
```
$SubnetConfig = New-AzVirtualNetworkSubnetConfig -Name {config_name} -AddressPrefix "11.0.1.0/24" -PrivateEndpointNetworkPolicies "Disabled"
$SubnetConfig = New-AzVirtualNetworkSubnetConfig -Name {configName} -AddressPrefix "11.0.1.0/24" -PrivateEndpointNetworkPolicies "Disabled"
```

+ virtual network
```
New-AzVirtualNetwork -ResourceGroupName {rg_name} -Name {vnet_name} -Location {location} -AddressPrefix "11.0.0.0/16" -Subnet $SubnetConfig
New-AzVirtualNetwork -ResourceGroupName {rgName} -Name {vnetName} -Location {location} -AddressPrefix "11.0.0.0/16" -Subnet $SubnetConfig

$VNet=Get-AzVirtualNetwork -ResourceGroupName {rg_name} -Name {vnet_name}
$VNet=Get-AzVirtualNetwork -ResourceGroupName {rgName} -Name {vnetName}
```

+ private link service connection (object in memory)
```
$PLSConnection = New-AzPrivateLinkServiceConnection -Name {pls_connection_name} -PrivateLinkServiceId $TopLevelResource.Id -GroupId $TopLevelResource.GroupId
$PLSConnection = New-AzPrivateLinkServiceConnection -Name {plsConnectionName} -PrivateLinkServiceId $TopLevelResource.Id -GroupId $TopLevelResource.GroupId
```

+ endpoint
```
New-AzPrivateEndpoint -ResourceGroupName {rg_name} -Name {endpoint_name} -Location {location} -Subnet $VNet.subnets[0] -PrivateLinkServiceConnection $PLSConnection -ByManualRequest
New-AzPrivateEndpoint -ResourceGroupName {rgName} -Name {endpointName} -Location {location} -Subnet $VNet.subnets[0] -PrivateLinkServiceConnection $PLSConnection -ByManualRequest
```

### step-by-step
Expand All @@ -99,7 +104,7 @@ $connection = Get-AzPrivateEndpointConnection -PrivateLinkResourceId $TopLevelRe

* To get the connection, if `list` for private endpoint connection was not supported,
```
$TopLevelResource = Get-Az{Top-Level-Resource} -ResourceGroupName {rg_name} -Name {top_level_resource_name}
$TopLevelResource = Get-Az{topResourceType} -ResourceGroupName {rgName} -Name {topResourceName}

$ConnectionId = $TopLevelResource.PrivateEndpointConnection[0].Id

Expand Down
16 changes: 16 additions & 0 deletions src/ADDomainServices/examples/New-AzADDomainService.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,20 @@ youriADdomain youriAddomain.com westus Enterprise

Create new ADDomainService

### Example 2: Create new ADDomainService with certificate
```powershell
# Variables
$replicaSet = New-AzADDomainServiceReplicaSet -Location westus -SubnetId /subscriptions/********-****-****-****-**********/resourceGroups/yishitest/providers/Microsoft.Network/virtualNetworks/aadds-vnet/subnets/default\
$certificateBytes = get-content "certificate.pfx" -AsByteStream
$base64String = [System.Convert]::ToBase64String($certificateBytes)
$ldaps_pfx_pass = "MyStrongPassword"
New-AzADDomainService -name youriADdomain -ResourceGroupName youriAddomain -DomainName youriAddomain.com -ReplicaSet $replicaSet -LdapSettingLdaps Enabled -LdapSettingPfxCertificate $base64String -LdapSettingPfxCertificatePassword $($ldaps_pfx_pass | ConvertTo-SecureString -Force -AsPlainText)
```

```output
Name Domain Name Location Sku
---- ----------- -------- ---
youriADdomain youriAddomain.com westus Enterprise
```

Create new ADDomainService with certificate
18 changes: 18 additions & 0 deletions src/ADDomainServices/help/New-AzADDomainService.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,24 @@ youriADdomain youriAddomain.com westus Enterprise

Create new ADDomainService

### Example 2: Create new ADDomainService with certificate
```powershell
# Variables
$replicaSet = New-AzADDomainServiceReplicaSet -Location westus -SubnetId /subscriptions/********-****-****-****-**********/resourceGroups/yishitest/providers/Microsoft.Network/virtualNetworks/aadds-vnet/subnets/default\
$certificateBytes = get-content "certificate.pfx" -AsByteStream
$base64String = [System.Convert]::ToBase64String($certificateBytes)
$ldaps_pfx_pass = "MyStrongPassword"
New-AzADDomainService -name youriADdomain -ResourceGroupName youriAddomain -DomainName youriAddomain.com -ReplicaSet $replicaSet -LdapSettingLdaps Enabled -LdapSettingPfxCertificate $base64String -LdapSettingPfxCertificatePassword $($ldaps_pfx_pass | ConvertTo-SecureString -Force -AsPlainText)
```

```output
Name Domain Name Location Sku
---- ----------- -------- ---
youriADdomain youriAddomain.com westus Enterprise
```

Create new ADDomainService with certificate

## PARAMETERS

### -AsJob
Expand Down
1 change: 1 addition & 0 deletions src/Accounts/Accounts/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

## Upcoming Release
* Upgraded System.Reflection.DispatchProxy on Windows PowerShell [#17856]
* Upgraded Azure.Identity to 1.6.0 and Azure.Core to 1.24.0

## Version 2.7.6
* Upgraded Microsoft.Rest.ClientRuntime to 2.3.24
Expand Down
7 changes: 4 additions & 3 deletions src/Accounts/Accounts/Common/ScopeHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,12 @@ public static ContextModificationScope GetContextModificationScopeForProcess(Deb
}

/// <summary>
/// Get the context modification scope for the current user. This will be 'Process' if changes should
/// only affect the current PowerShell session, or 'CurrentUser' if any changes should be global.
/// Get the context modification scope for the current user. This will be 'Process' if changes should
/// only affect the current PowerShell session, or 'CurrentUser' if any changes should be global.
/// </summary>
/// <param name="session"> The PowerShell session to be affected</param>
/// <param name="writer">A writer to write debug messages</param>
/// <returns>'Process' if all changes should only impact the current session, or 'CurrentUser' if
/// <returns>'Process' if all changes should only impact the current session, or 'CurrentUser' if
/// changes should be global.</returns>
public static ContextModificationScope GetContextModificationScopeForUser(IAzureSession session, DebugWriter writer)
{
Expand Down
16 changes: 8 additions & 8 deletions src/Accounts/Accounts/CommonModule/TelemetryProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,21 +102,21 @@ public static TelemetryProvider Create(bool collect, IEventStore store)
}

/// <summary>
/// Log a telemtry event
/// Log a telemetry event
/// </summary>
/// <param name="qosEvent">The event to log</param>
public virtual void LogEvent(string key)
/// <param name="qosEventKey">The event to log</param>
public virtual void LogEvent(string qosEventKey)
{
var dataCollection = _dataCollectionProfile.EnableAzureDataCollection;
var enabled = dataCollection.HasValue ? dataCollection.Value : true;

AzurePSQoSEvent qos;
if (this.TryGetValue(key, out qos))
AzurePSQoSEvent qosEvent;
if (this.TryGetValue(qosEventKey, out qosEvent))
{
qos.FinishQosEvent();
_helper.LogQoSEvent(qos, enabled, enabled);
qosEvent.FinishQosEvent();
_helper.LogQoSEvent(qosEvent, enabled, enabled);
_helper.FlushMetric();
this.Remove(key);
this.Remove(qosEventKey);
}
}

Expand Down
1 change: 1 addition & 0 deletions src/Accounts/Accounts/help/Connect-AzAccount.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ you sign into Azure from a virtual machine that has an assigned MSI.

```powershell
Connect-AzAccount -Identity
Set-AzContext -Subscription Subscription1
```

```Output
Expand Down
2 changes: 1 addition & 1 deletion src/Accounts/Authentication/Authentication.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Azure.Identity" Version="1.5.0" />
<PackageReference Include="Azure.Identity" Version="1.6.0" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ public static class CustomAssemblyResolver
private static IDictionary<string, Version> NetFxPreloadAssemblies =
new Dictionary<string, Version>(StringComparer.InvariantCultureIgnoreCase)
{
{"Azure.Core", new Version("1.22.0.0")},
{"Azure.Core", new Version("1.24.0.0")},
{"Microsoft.Bcl.AsyncInterfaces", new Version("1.1.1.0")},
{"Microsoft.Identity.Client", new Version("4.30.1.0") },
{"Microsoft.Identity.Client.Extensions.Msal", new Version("2.18.4.0") },
{"Microsoft.Identity.Client", new Version("4.39.0.0") },
{"Microsoft.Identity.Client.Extensions.Msal", new Version("2.19.3.0") },
{"Microsoft.IdentityModel.Clients.ActiveDirectory", new Version("3.19.2.6005")},
{"Microsoft.IdentityModel.Clients.ActiveDirectory.Platform", new Version("3.19.2.6005")},
{"Newtonsoft.Json", new Version("10.0.0.0")},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ static AzAssemblyLoadContextInitializer()
//TODO: Generate assembly version info into AzSharedAssemblies.json during build
var azSharedAssemblies = new Dictionary<string, Version>()
{
{"Azure.Core", new Version("1.22.0.0")},
{"Azure.Identity", new Version("1.5.0.0")},
{"Azure.Core", new Version("1.24.0.0")},
{"Azure.Identity", new Version("1.6.0.0")},
{"Microsoft.Bcl.AsyncInterfaces", new Version("1.1.1.0")},
{"Microsoft.Identity.Client", new Version("4.30.1.0") },
{"Microsoft.Identity.Client.Extensions.Msal", new Version("2.18.4.0") },
{"Microsoft.Identity.Client", new Version("4.39.0.0") },
{"Microsoft.Identity.Client.Extensions.Msal", new Version("2.19.3.0") },
{"System.Memory.Data", new Version("1.0.2.0")},
{"System.Text.Json", new Version("4.0.1.2")},
};
Expand Down
2 changes: 1 addition & 1 deletion src/Accounts/Authenticators/Authenticators.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Azure.Identity" Version="1.5.0" />
<PackageReference Include="Azure.Identity" Version="1.6.0" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
using Microsoft.WindowsAzure.Commands.Common;
using Microsoft.Identity.Client;
using Microsoft.Azure.PowerShell.Authenticators.Identity;
using ClientAssertionCredential = Microsoft.Azure.PowerShell.Authenticators.Identity.ClientAssertionCredential;

namespace Microsoft.Azure.PowerShell.Authenticators
{
Expand Down
54 changes: 54 additions & 0 deletions src/Advisor/Advisor.Test/ScenarioTests/AdvisorTestRunner.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// ----------------------------------------------------------------------------------

using System.Collections.Generic;
using Microsoft.Azure.Commands.TestFx;
using Microsoft.Azure.Internal.Subscriptions;
using Microsoft.Azure.Management.Advisor;
using Microsoft.Rest.ClientRuntime.Azure.TestFramework;
using Xunit.Abstractions;

namespace Microsoft.Azure.Commands.Advisor.Test.ScenarioTests
{
public class AdvisorTestRunner
{
protected readonly ITestRunner TestRunner;

protected AdvisorTestRunner(ITestOutputHelper output)
{
TestRunner = TestManager.CreateInstance (output)
.WithNewPsScriptFilename ($"{GetType().Name}.ps1")
.WithProjectSubfolderForTests ("ScenarioTests")
.WithCommonPsScripts (new[]
{
@"Common.ps1"
})
.WithNewRmModules (helper => new[]
{
helper.RMProfileModule,
helper.GetRMModulePath("Az.Advisor.psd1")
})
.WithNewRecordMatcherArguments (
userAgentsToIgnore: new Dictionary<string, string>(),
resourceProviders: new Dictionary<string, string>
{
{"Microsoft.Resources", null},
{"Microsoft.Features", null},
{"Microsoft.Authorization", null}
}
)
.Build();
}
}
}
Loading