Skip to content
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

Restructure Analysis Services dataplane cmdlets to use Az module login. #8900

Merged
merged 45 commits into from
Apr 3, 2019

Conversation

pychuang
Copy link
Contributor

@pychuang pychuang commented Mar 29, 2019

Description

  • Refactored dataplane cmdlets to inherit from a common Analysis Services cmdlet base.
  • Added classes to use authentication credentials from the Az module.
  • Made Add-AzureASAccount a wrapper of Connect-AzAccount to avoid a breaking change. Add-AzureASAccount is deprecated.
  • Removed the implementation of classes used to save Analysis Services independent credentials. Several classes remain existing to avoid a breaking change.
  • Updated Add-AzEnvironment and Set-AzEnvironment to accept AzureAnalysisServicesEndpointResourceId to allow test environment log in.

Checklist

Remove username/password authentication.
Get login credentials from Az module, instead of AddAzureASAccount.

This is currently a work in progress.
-pt2 resolving conflicts
# Conflicts:
#	src/AnalysisServices/AnalysisServices.Dataplane/Commands/AddAzureASAccount.cs
#	src/AnalysisServices/AnalysisServices.Dataplane/Models/ASAzureContext.cs
#	src/AnalysisServices/AnalysisServices.Dataplane/Models/AsAzureAccount.cs
#	src/AnalysisServices/AnalysisServices.Dataplane/Models/AsAzureAuthenticationProvider.cs
#	src/AnalysisServices/AnalysisServices.Dataplane/Models/AsAzureClientSession.cs
#	src/AnalysisServices/AnalysisServices.Dataplane/Models/AsAzureEndpoints.cs
#	src/AnalysisServices/AnalysisServices.Dataplane/Models/AsAzureProfile.cs
#	src/AnalysisServices/AnalysisServices.Test/InMemoryTests/AddAzureASAccountTests.cs
#	src/ResourceManager/AnalysisServices/Commands.AnalysisServices.Dataplane/Models/AsAzureAccount.cs
Remove unnecessary BeginProcessing() methods in child classes.
…o longer a partial class.

Changed organizational #region name to include CallGet and CallPost method overloads.
Remove unused code in SendRequestAsync().
Add null check for Instance field.
…it is not used in any other derived classes.
Remove unnecessary BaseUri public set in AsAzureDataplaneClient.
Remove unused argument parameterizedBaseUri in method AsAzureDataplaneCmdletBase.CreateAsAzureDataplaneClient().
It is no longer needed, since the cmdlet is now called with the full server name.

Move public field DefaultRetryIntervalForPolling below private fields.
# Conflicts:
#	src/AnalysisServices/AnalysisServices.Dataplane/Commands/AddAzureASAccount.cs
Added aliases to ConnectAzureRmAccount.cs to replace AddAzureASAccount.cs.
Fixed documentation to include parameters which were moved to a base class.
…esEndpoint

Since the Endpoint Suffix is not used for anything else, it can be ommitted. This will also help simplify the code paths.
@pychuang
Copy link
Contributor Author

pychuang commented Apr 2, 2019

Need to test the cmdlets with ":rw" in instance name

@pychuang
Copy link
Contributor Author

pychuang commented Apr 2, 2019

Need to test the cmdlets with ":rw" in instance name

Tested. Sync works.

@pychuang pychuang closed this Apr 2, 2019
@pychuang pychuang reopened this Apr 2, 2019
Copy link
Member

@markcowl markcowl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one minor change, otherwise lgtm

@markcowl markcowl assigned pychuang and unassigned markcowl Apr 2, 2019
@markcowl markcowl changed the base branch from master to release-2019-04-09 April 2, 2019 23:28
@pychuang pychuang removed their assignment Apr 2, 2019
@cormacpayne cormacpayne merged commit 8f5c01e into Azure:release-2019-04-09 Apr 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants