Skip to content

Commit 54a26f7

Browse files
merge from preview
2 parents 526b4b7 + b8868f3 commit 54a26f7

File tree

157 files changed

+11780
-4196
lines changed

Some content is hidden

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

157 files changed

+11780
-4196
lines changed

documentation/Using-Azure-TestFramework.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ Instructions to manually download it are available on NuGet. However TestFramewo
3535

3636
## Setup prior to Record or Playback of tests
3737

38-
In order to Record/Playback a test, you need to setup a connection string that consists of various key/value pairs that provides information to the test environment. You have three options to set up the connection string: run the [New-TestCredential cmdlet](#new-testcredential) (recommended), run the [Set-TestEnvironment cmdlet](#set-testenvironment), or [manually set the environment variables](#manually-set-environment-variables).
38+
In order to Record/Playback a test, you need to setup a connection string that consists of various key/value pairs that provides information to the test environment. You have three options to set up the connection string: run the [New-TestCredential cmdlet](#new-testcredential) (recommended for PowerShell development), run the [Set-TestEnvironment cmdlet](#set-testenvironment), or [manually set the environment variables](#manually-set-environment-variables).
3939

4040
### New-TestCredential
4141

42-
This cmdlet, located in Repo-Tasks, will allow you to create a credentials file (located in C:/Users/\<currentuser\>/.azure/testcredentials.json) that will be used to set the environment variable when scenario tests are run. This credentials file will be used in all future sessions unless it is deleted or the environment variables are manually set.
42+
This cmdlet, located in Repo-Tasks, will allow you to create a credentials file (located in C:/Users/\<currentuser\>/.azure/testcredentials.json) that will be used to set the environment variable when scenario tests are run. This credentials file will be used in all future sessions unless it is deleted or the environment variables are manually set. This cmdlet is not currently available for .NET SDK development.
4343

4444
#### Create New Service Principal
4545

src/Common/Commands.Common.Authentication.Abstractions/AzureEnvironmentConstants.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public static class AzureEnvironmentConstants
8080
/// </summary>
8181
public const string AzureActiveDirectoryEndpoint = "https://login.microsoftonline.com/";
8282
public const string ChinaActiveDirectoryEndpoint = "https://login.chinacloudapi.cn/";
83-
public const string USGovernmentActiveDirectoryEndpoint = "https://login-us.microsoftonline.com/";
83+
public const string USGovernmentActiveDirectoryEndpoint = "https://login.microsoftonline.us/";
8484
public const string GermanActiveDirectoryEndpoint = "https://login.microsoftonline.de/";
8585

8686
/// <summary>

src/ResourceManager/AnalysisServices/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Current Release
21+
* Remove validate set of location into dynamic lookup so that all clouds are supported.
2122

2223
## Version 0.5.0
2324
* Fixed Synchronize-AzureAsInstance command to work with new AsAzure REST API for sync

src/ResourceManager/AnalysisServices/Commands.AnalysisServices/Commands/NewAzureRmAnalysisServicesServer.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,7 @@ public class NewAnalysisServicesServer : AnalysisServicesCmdletBase
4141
[Parameter(ValueFromPipelineByPropertyName = true, Position = 2, Mandatory = true,
4242
HelpMessage = "Azure region where the server should be created.")]
4343
[ValidateNotNullOrEmpty]
44-
[ValidateSet("North Central US", "South Central US", "Central US", "West Europe", "North Europe", "West US",
45-
"East US",
46-
"East US 2", "Japan East", "Japan West", "Brazil South", "Southeast Asia", "East Asia", "Australia East",
47-
"Australia Southeast", IgnoreCase = true)]
44+
[LocationCompleter("Microsoft.AnalysisServices/servers")]
4845
public string Location { get; set; }
4946

5047
[Parameter(ValueFromPipelineByPropertyName = true, Position = 3, Mandatory = true,

src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/AddAzureApiManagementRegion.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
namespace Microsoft.Azure.Commands.ApiManagement.Commands
1717
{
1818
using Microsoft.Azure.Commands.ApiManagement.Models;
19+
using ResourceManager.Common.ArgumentCompleters;
1920
using System.Management.Automation;
2021

2122
[Cmdlet(VerbsCommon.Add, "AzureRmApiManagementRegion"), OutputType(typeof(PsApiManagement))]
@@ -32,7 +33,7 @@ public class AddAzureApiManagementRegion : AzureApiManagementCmdletBase
3233
ValueFromPipelineByPropertyName = false,
3334
Mandatory = true,
3435
HelpMessage = "Location of the new deployment region.")]
35-
36+
[LocationCompleter("Microsoft.ApiManagement/service")]
3637
[ValidateNotNullOrEmpty]
3738
public string Location { get; set; }
3839

src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/NewAzureApiManagement.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public class NewAzureApiManagement : AzureApiManagementCmdletBase
3838
ValueFromPipelineByPropertyName = true,
3939
Mandatory = true,
4040
HelpMessage = "Location where want to create API Management.")]
41+
[LocationCompleter("Microsoft.ApiManagement/service")]
4142
[ValidateNotNullOrEmpty]
4243
public string Location { get; set; }
4344

src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/NewAzureApiManagementRegion.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.Commands
1717
{
1818
using Microsoft.Azure.Commands.ApiManagement.Models;
1919
using ResourceManager.Common;
20+
using ResourceManager.Common.ArgumentCompleters;
2021
using System;
2122
using System.Management.Automation;
2223

@@ -27,6 +28,7 @@ public class NewAzureApiManagementRegion : AzureRMCmdlet
2728
ValueFromPipelineByPropertyName = false,
2829
Mandatory = true,
2930
HelpMessage = "Location of the additional deployment region.")]
31+
[LocationCompleter("Microsoft.ApiManagement/service")]
3032
[ValidateNotNullOrEmpty]
3133
public string Location { get; set; }
3234

src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/NewAzureApiManagementVirtualNetwork.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.Commands
1717
{
1818
using Microsoft.Azure.Commands.ApiManagement.Models;
1919
using ResourceManager.Common;
20+
using ResourceManager.Common.ArgumentCompleters;
2021
using System;
2122
using System.Management.Automation;
2223

@@ -27,7 +28,7 @@ public class NewAzureApiManagementVirtualNetwork : AzureRMCmdlet
2728
ValueFromPipelineByPropertyName = false,
2829
Mandatory = true,
2930
HelpMessage = "Location of the virtual network.")]
30-
31+
[LocationCompleter("Microsoft.ApiManagement/service")]
3132
[ValidateNotNullOrEmpty]
3233
public string Location { get; set; }
3334

src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/RemoveAzureApiManagementRegion.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
namespace Microsoft.Azure.Commands.ApiManagement.Commands
1616
{
1717
using Microsoft.Azure.Commands.ApiManagement.Models;
18+
using ResourceManager.Common.ArgumentCompleters;
1819
using System.Management.Automation;
1920

2021
[Cmdlet(VerbsCommon.Remove, "AzureRmApiManagementRegion"), OutputType(typeof(PsApiManagement))]
@@ -31,6 +32,7 @@ public class RemoveAzureApiManagementRegion : AzureApiManagementCmdletBase
3132
ValueFromPipelineByPropertyName = true,
3233
Mandatory = true,
3334
HelpMessage = "Location of the deployment region to remove.")]
35+
[LocationCompleter("Microsoft.ApiManagement/service")]
3436
[ValidateNotNullOrEmpty]
3537
public string Location { get; set; }
3638

src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/UpdateAzureApiManagementDeployment.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public class UpdateAzureApiManagementDeployment : AzureApiManagementCmdletBase
5555
ValueFromPipelineByPropertyName = true,
5656
Mandatory = true,
5757
HelpMessage = "Location of master API Management deployment region.")]
58+
[LocationCompleter("Microsoft.ApiManagement/service")]
5859
public string Location { get; set; }
5960

6061
[Parameter(

0 commit comments

Comments
 (0)