Skip to content

[HDInsight] Replace the referenced HDInsight .NET SDK from Microsoft. Azure. Management. HDInsight to Azure. ResourceManager. HDInsight#22428

Closed
yuc-Li wants to merge 34 commits intoAzure:mainfrom
yuc-Li:hdinsight-new-version-2023-04
Closed

[HDInsight] Replace the referenced HDInsight .NET SDK from Microsoft. Azure. Management. HDInsight to Azure. ResourceManager. HDInsight#22428
yuc-Li wants to merge 34 commits intoAzure:mainfrom
yuc-Li:hdinsight-new-version-2023-04

Conversation

@yuc-Li
Copy link
Contributor

@yuc-Li yuc-Li commented Jul 26, 2023

Description

  • Replace the referenced HDInsight .NET SDK from Microsoft.Azure.Management.HDInsight to Azure.ResourceManager.HDInsight(Here are some break changes).
  • New feature: added parameter EnableSecureChannel enable secure channel when create a cluster.
  • Fix bug: fixed cannot get storage account info when use gen2 type.

Fewer code changes for bug fix and new features, so opening more PR will not reduce the number of changed files.

Checklist

  • SHOULD select appropriate branch. Cmdlets from Autorest.PowerShell should go to generation branch.
  • SHOULD make the title of PR clear and informative, and in the present imperative tense.
  • SHOULD update ChangeLog.md file(s) appropriately
    • For any service, the ChangeLog.md file can be found at src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md
    • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header in the past tense. Add changelog in description section if PR goes into generation branch.
    • Should not change ChangeLog.md if no new release is required, such as fixing test case only.
  • SHOULD have approved design review for the changes in this repository (Microsoft internal only) with following situations
    • Create new module from scratch
    • Create new resource types which are not easy to conform to Azure PowerShell Design Guidelines
    • Create new resource type which name doesn't use module name as prefix
    • Have design question before implementation
  • SHOULD regenerate markdown help files if there is cmdlet API change. Instruction
  • SHOULD have proper test coverage for changes in pull request.
  • SHOULD NOT introduce breaking changes in Az minor release except preview version.
  • SHOULD NOT adjust version of module manually in pull request

@azure-client-tools-bot-prd
Copy link

azure-client-tools-bot-prd bot commented Jul 26, 2023

️✔️Az.Accounts
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
❌Az.HDInsight
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Breaking Change Check
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Signature Check
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
⚠️Help Example Check
⚠️PowerShell Core - Windows
Type Cmdlet Example Line RuleName Description Extent Remediation
⚠️ New-AzHDInsightCluster 9 20 Mismatched_Parameter_Value_Type ConvertTo-SecureString -[-String] $domainPassword is not an expected parameter value type. $domainPassword Use correct parameter value type. Expected Type is string. Now the type is securestring.(Command).
⚠️ New-AzHDInsightCluster 9 48 Mismatched_Parameter_Value_Type New-AzHDInsightCluster -SecurityProfile $config.SecurityProfile is not an expected parameter value type. -SecurityProfile Use correct parameter value type. Expected Type is Microsoft.Azure.Commands.HDInsight.Models.AzureHDInsightSecurityProfile. Now the type is .(Command).
⚠️ New-AzHDInsightCluster 11 25 Unassigned_Variable New-AzHDInsightIPConfiguration -SubnetId $subnetId is a null-valued parameter value. -SubnetId Assign value for $subnetId.
⚠️ New-AzHDInsightCluster 12 23 Mismatched_Parameter_Value_Type ConvertTo-SecureString -[-String] $databasePassword is not an expected parameter value type. $databasePassword Use correct parameter value type. Expected Type is string. Now the type is securestring.(Command).
⚠️ New-AzHDInsightClusterConfig 1 23 Unassigned_Variable Add-AzHDInsightStorage -StorageAccountKey $key2 is a null-valued parameter value. -StorageAccountKey Assign value for $key2.
⚠️Windows PowerShell - Windows
Type Cmdlet Example Line RuleName Description Extent Remediation
⚠️ New-AzHDInsightCluster 9 20 Mismatched_Parameter_Value_Type ConvertTo-SecureString -[-String] $domainPassword is not an expected parameter value type. $domainPassword Use correct parameter value type. Expected Type is string. Now the type is securestring.(Command).
⚠️ New-AzHDInsightCluster 9 48 Mismatched_Parameter_Value_Type New-AzHDInsightCluster -SecurityProfile $config.SecurityProfile is not an expected parameter value type. -SecurityProfile Use correct parameter value type. Expected Type is Microsoft.Azure.Commands.HDInsight.Models.AzureHDInsightSecurityProfile. Now the type is .(Command).
⚠️ New-AzHDInsightCluster 11 25 Unassigned_Variable New-AzHDInsightIPConfiguration -SubnetId $subnetId is a null-valued parameter value. -SubnetId Assign value for $subnetId.
⚠️ New-AzHDInsightCluster 12 23 Mismatched_Parameter_Value_Type ConvertTo-SecureString -[-String] $databasePassword is not an expected parameter value type. $databasePassword Use correct parameter value type. Expected Type is string. Now the type is securestring.(Command).
⚠️ New-AzHDInsightClusterConfig 1 23 Unassigned_Variable Add-AzHDInsightStorage -StorageAccountKey $key2 is a null-valued parameter value. -StorageAccountKey Assign value for $key2.
️✔️Help File Existence Check
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
⚠️File Change Check
⚠️PowerShell Core - Windows
Type Cmdlet Description Remediation
⚠️ AssemblyInfo.cs will be updated automatically. Please do not update it manually. Revert AssemblyInfo.cs to its last version.
⚠️Windows PowerShell - Windows
Type Cmdlet Description Remediation
⚠️ AssemblyInfo.cs will be updated automatically. Please do not update it manually. Revert AssemblyInfo.cs to its last version.
️✔️UX Metadata Check
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
❌Generated Sdk Check
❌PowerShell Core - Windows
Type Module Sdk Description Remediation
Az.HDInsight src/HDInsight/HDInsight.Management.Sdk Generated code for Az.HDInsight is not up to date or you have updated generated Sdk. You may need to rebase on the latest main, regenerate code accroding to README.md file under src/HDInsight/HDInsight.Management.Sdk, and make sure no more updates based on generated files.
❌Windows PowerShell - Windows
Type Module Sdk Description Remediation
Az.HDInsight src/HDInsight/HDInsight.Management.Sdk Generated code for Az.HDInsight is not up to date or you have updated generated Sdk. You may need to rebase on the latest main, regenerate code accroding to README.md file under src/HDInsight/HDInsight.Management.Sdk, and make sure no more updates based on generated files.
⚠️Test
⚠️ - Linux
Type Title Current Coverage Description
⚠️ Test Coverage Less Than 50% 0.00 % Test coverage for the module cannot be lower than 50%.
⚠️ - MacOS
Type Title Current Coverage Description
⚠️ Test Coverage Less Than 50% 0.00% Test coverage for the module cannot be lower than 50%.
⚠️PowerShell Core - Windows
Type Title Current Coverage Description
⚠️ Test Coverage Less Than 50% 0.00% Test coverage for the module cannot be lower than 50%.
⚠️Windows PowerShell - Windows
Type Title Current Coverage Description
⚠️ Test Coverage Less Than 50% 0.00% Test coverage for the module cannot be lower than 50%.
️✔️Az.ManagedServiceIdentity
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Az.OperationalInsights
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Az.Storage
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows

}

HDInsightManagementClient.DeleteCluster(ResourceGroupName, ClusterName);
HDInsightManagementClient.DeleteClusterAsync(ResourceGroupName, ClusterName);
Copy link
Member

Choose a reason for hiding this comment

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

please use the sync method to keep the same behavior with previous

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The behavior is the same as before, and the two names have been changed back

@yuc-Li yuc-Li changed the title Hdinsight new api version 2023-04 [HDInsight] Replace the referenced HDInsight .NET SDK from Microsoft. Azure. Management. HDInsight to Azure. ResourceManager. HDInsight Aug 4, 2023
@yuc-Li yuc-Li marked this pull request as ready for review August 7, 2023 01:27
@YanaXu YanaXu added the Contains Breaking Change This PR contains breaking change label Aug 8, 2023
@YanaXu
Copy link
Contributor

YanaXu commented Aug 11, 2023

Hi @yuc-Li, there are breaking changes in this PR. Could you hold this PR to the next major release and now add the breaking changes warnings?

@yuc-Li
Copy link
Contributor Author

yuc-Li commented Aug 14, 2023

Sure, I will first submit a PR to add warning messages.

@yuc-Li
Copy link
Contributor Author

yuc-Li commented Oct 27, 2023

Hi @YanaXu, please review this PR, we plan to complete it in the upcoming major release.

@VeryEarly VeryEarly self-assigned this Oct 30, 2023
@yuc-Li yuc-Li closed this Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Contains Breaking Change This PR contains breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants