Skip to content

Add property State in additional to ProvisioningState #3406

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

Merged
merged 14 commits into from
Feb 16, 2017

Conversation

shihying
Copy link
Contributor

@shihying shihying commented Jan 19, 2017

Add property State in additional to ProvisioningState
We introduced State as suggested by ARM-Architect to provide more custom state outside of provisioning.

Currently value set for State would be same as ProvisioiningState until service side make further change.

Description


This checklist is used to make sure that common guidelines for a pull request are followed. You can find a more complete discussion of PowerShell cmdlet best practices here.

General Guidelines

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.
  • The pull request does not introduce breaking changes (unless a major version change occurs in the assembly and module).

Testing Guidelines

  • Pull request includes test coverage for the included changes.
  • PowerShell scripts used in tests should do any necessary setup as part of the test or suite setup, and should not use hard-coded values for locations or existing resources.

Cmdlet Signature Guidelines

  • New cmdlets that make changes or have side effects should implement ShouldProcess and have SupportShouldProcess=true specified in the cmdlet attribute. You can find more information on ShouldProcess here.
  • Cmdlet specifies OutputType attribute if any output is produced - if the cmdlet produces no output, it should implement a PassThru parameter.

Cmdlet Parameter Guidelines

  • Parameter types should not expose types from the management library - complex parameter types should be defined in the module.
  • Complex parameter types are discouraged - a parameter type should be simple types as often as possible. If complex types are used, they should be shallow and easily creatable from a constructor or another cmdlet.
  • Cmdlet parameter sets should be mutually exclusive - each parameter set must have at least one mandatory parameter not in other parameter sets.

@azurecla
Copy link

Hi @shihying, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!


It looks like you're working at Microsoft (shic). If you're full-time, we DON'T require a contribution license agreement.



If you are a vendor, DO please sign the electronic contribution license agreement. It will take 2 minutes and there's no faxing! https://cla.azure.com.

TTYL, AZPRBOT;

@azuresdkci
Copy link

Can one of the admins verify this patch?

Copy link
Contributor

@athipp athipp left a comment

Choose a reason for hiding this comment

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

You might have to add a changelog file indicating the nature of the change in this version.
You also have to increment the minor version of the module in the app.config and AnalysisServices.psd1 file.

@@ -95,13 +98,15 @@ function Test-AnalysisServicesServer
Suspend-AzureRmAnalysisServicesServer -ResourceGroupName $resourceGroupName -Name $serverName
[array]$serverGet = Get-AzureRmAnalysisServicesServer -ResourceGroupName $resourceGroupName -Name $serverName
$serverGetItem = $serverGet[0]
Assert-True {$serverGetItem.State -like "Paused"}
Copy link
Contributor

Choose a reason for hiding this comment

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

Add a comment saying that this is to ensure backward compatibility. The breaking server changes will be done after this is released.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@shihying
Copy link
Contributor Author

shihying commented Jan 19, 2017

@athipp
AS SDK module version bumped
Change log updated

@shihying
Copy link
Contributor Author

power shell admin : please do not merge until SDK repo merge PR for this chagne

@shihying
Copy link
Contributor Author

shihying commented Jan 20, 2017

Ping, thx
+@markcowl
+@shahabhijeet

@markcowl
Copy link
Member

@shihying you must publish your new library and update the nuget package reference for your cmdlets

@shihying
Copy link
Contributor Author

@markcowl
Library 1.0.2-preview is published, package reference is updated already., thanks

@@ -18,6 +18,8 @@
- Additional information about change #1
-->
## Current Release
* Added State property in additional to ProvisioningState
Copy link
Member

Choose a reason for hiding this comment

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

You need to be more specific about this change. Which cmdlets will be affected, how would the user use the new State property. How is it different than Provinsioning State?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@markcowl , I have added more information about this change.
Currently ASPAAS service still return same for both State and ProvisioningState, we could not tell the user the actual different example until service side make change in future.

I already provided the difference in intention

@shihying
Copy link
Contributor Author

@markcowl @shahabhijeet
Can you take a look on my updated ChangeLog.md? thanks

@shahabhijeet
Copy link
Contributor

@azuresdkci add to whitelist

@shihying
Copy link
Contributor Author

shihying commented Feb 4, 2017

@shahabhijeet @markcowl ping....

@cormacpayne
Copy link
Member

@markcowl @shahabhijeet ping

@shahabhijeet
Copy link
Contributor

@shihying If the service is not ready with providing more info for the State property, is there a point in adding this property before the service enables it.
Also what is the time frame for the service team to enable this property from server side?
is it happening in 1 month... 6 months?

@shihying
Copy link
Contributor Author

@shahabhijeet
The service side already provide this property in the response but the value would be same as ProvisioningState - I think we want to let the powershell to be compatible with latest service response :)

There is no exact plan yet - but I think it must happen in 1month..6months..thanks

@markcowl
Copy link
Member

on demand run: http://azuresdkci.cloudapp.net/view/1-AzurePowerShell/job/powershell-demand/1395/

LGTM once the build passes

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.

7 participants