-
Notifications
You must be signed in to change notification settings - Fork 4.1k
[Storage] Support Oauth/StaticWeb in Powershell official release #7081
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
Conversation
|
@markcowl , @MiYanni
|
|
@blueww Looks like it is related to this error: |
|
I have upgrade both Commands.Storage.Test.Netcore.csproj and Commands.Storage.Netcore.csproj to XSCL 9.3.0, but the error still happen. in .net, we only need to upgrade XSCL for storage project; but in netcore, seems we need to upgrade to many projects. Could we make it also only need upgrade XSCL for storage project? Thanks! |
|
@blueww In NetCore, every module has to rely on the same version of any dependency. The Storage dependency used in one place needs to be updated everywhere it is used. |
|
@MiYanni , @maddieclayton
The projects has been upgraded to XSCL 9.3 are following, any missing
|
|
@blueww Please do not change any Common files in this repo as they are not used. The equivalent files for the ones you changed are here in our azure-powershell-common repo: I will be removing Common code from this codebase within the next couple business days. I also plan on consolidating references to the Common packages in this codebase. If you make the changes to those files in azure-powershell-common, and create a build here, https://azuresdkci.westus2.cloudapp.azure.com/view/PowerShell/job/ps-common-sign/, you can drop the packages into the |
|
@MiYanni
And it seems I don't have direct write access to them. should I raise a PR for it? And would you please point out all Packages that I should get from https://azuresdkci.westus2.cloudapp.azure.com/view/PowerShell/job/ps-common-sign/, for XSCL , or "Microsoft.Azure.Management.Storage" upgrade. And is there any formal doc for this process? I still have many questions. I will schedule a meeting to discuss it with you. |
|
@blueww These are common SDK dlls for the Azure PowerShell runtime. The only difference is we moved the projects to a separate repo and are going to make them provided by a MyGet feed for this repo. For the azure-powershell-common repo, simply use https://azuresdkci.westus2.cloudapp.azure.com/view/PowerShell/job/ps-common-sign/ to make the packages, and follow the steps I mentioned above. You don't need a PR, just a fork to that repo for now. Prior to this PR being accepted, those changes would need to be accepted into azure-powershell-common. There is no documentation yet as this process is in-flux, as we are transitioning to making Az (NetCore/NetStandard) our primary focus. All documentation will be updated as we transition to Az. Additionally, the intent of azure-powershell-common is for us to use to manage the Azure PowerShell runtime of this repo. Services should not need to modify this repo often (if ever). The only reason you need to now is that WindowsAzure.Storage is referenced there. We have an open issue to remove WindowsAzure.Storage usage entirely from (almost) everything for Az. So many modules show not rely on it, or this situation happens. Only Storage modules should use this dll. It is an issue from when we were converting modules that we haven't resolved yet. Sorry for the inconvenience. |
|
Thanks @MiYanni for the reply! Just to confime:
|
|
@blueww 1. The current version number of the common packages in this repo, I believe, is 1.0.94. Right now, from the build from your fork, simply replace all common packages in LocalFeed. Then, for all of azure-powershell, just do a find/replace for 1.0.94 with your build number (it is created automatically from the sign build). We will have individual package replacement, but we don't do that yet (I'm working on it). |
|
I have tried to change all azure-powershell-common packages to 1.0.96, but build still fail. |
# Conflicts: # src/Common/Commands.Common.Storage.Management/Common.Storage.Management.Netcore.csproj # src/Common/Commands.Common.Storage/Common.Storage.Netcore.csproj
|
@azuresdkci Retest this please |
|
@MiYanni Please help to review and merge it ASAP. Let me know if any thing need change. |
| /// <summary> | ||
| /// Disable azure storage service StaticWebsite, currently only available on Blob service | ||
| /// </summary> | ||
| [Cmdlet(VerbsLifecycle.Disable, StorageNouns.ServiceStaticWebsite, SupportsShouldProcess = true), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs to be named Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageStaticWebsite"
| /// <summary> | ||
| /// Enable azure storage service StaticWebsite, currently only enabled on Blob service | ||
| /// </summary> | ||
| [Cmdlet(VerbsLifecycle.Enable, StorageNouns.ServiceStaticWebsite, SupportsShouldProcess = true), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs to be named Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageStaticWebsite"
|
|
||
| /// Azure storage Service Delete Retention Policy | ||
| /// </summary> | ||
| public const string ServiceStaticWebsite = "AzureStorageStaticWebsite"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These constants are not used for cmdlet names. No need to add a new constant.
Description
Oauth design pass review in: https://github.com/Azure/azure-powershell-cmdlet-review-pr/issues/37 , milestone 1
StaticWeb design pass review in Azure/azure-powershell-cmdlet-review-pr#88
Since the 2 features both need XSCL upgrade to 9.3, and most of the changes are on XSCL upgrade, so raise them in same PR. (actually the code change al ready pass review and merge to storage branch in #5960 and #6518)
Checklist
CONTRIBUTING.md[Wei] The breaking change is remove.
[Wei] Will add cases after #7037 is in.
platyPSmodule