-
Notifications
You must be signed in to change notification settings - Fork 4k
sql registration fix #27772
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
sql registration fix #27772
Conversation
Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status. |
Thank you for your contribution @kumarutkarsh3b2166! We will review the pull request and get back to you soon. |
@@ -101,6 +101,7 @@ public override void ExecuteCmdlet() | |||
ResourceIdentifier resourceIdentifier = new ResourceIdentifier(VaultId); | |||
string vaultName = resourceIdentifier.ResourceName; | |||
string vaultResourceGroupName = resourceIdentifier.ResourceGroupName; | |||
string vmResourceGroupName = Container != null ? Container.Name : ResourceId.Split('/')[4]; |
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.
- why are we initializing the vmResourceGroupName = container.Name ?
- )[4] - we shouldn't use the index, we have common funtion to extract resourcegroupname from ARMIDs in general.
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.
corrected, using vault rg name by default now
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
|
@@ -12,6 +12,7 @@ | |||
</PropertyGroup> | |||
|
|||
<ItemGroup> | |||
<ProjectReference Include="..\..\Compute\Compute\Compute.csproj" /> |
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.
Please don't reference csproject of other modules in your non-test csproject. You can refer package directly
This PR was labeled "needs-revision" because it has unresolved review comments or CI failures. |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
{ | ||
AzureVmWorkloadContainer azureVmWorkloadContainer = (AzureVmWorkloadContainer)Container; | ||
Dictionary<UriEnums, string> keyValueDict = HelperUtils.ParseUri(azureVmWorkloadContainer.SourceResourceId); | ||
vmResourceGroupParsed = HelperUtils.GetResourceGroupNameFromId(keyValueDict, ResourceId); |
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.
pass SourceResourceId here instead of ResourceId
Description
This PR adds check to compare the VM resource group in the list of VMs returned for registration
Mandatory Checklist
Please choose the target release of Azure PowerShell. (⚠️ Target release is a different concept from API readiness. Please click below links for details.)
Check this box to confirm: I have read the Submitting Changes section of
CONTRIBUTING.md
and reviewed the following information:ChangeLog.md
file(s) appropriatelysrc/{{SERVICE}}/{{SERVICE}}/ChangeLog.md
.## Upcoming Release
header in the past tense.ChangeLog.md
if no new release is required, such as fixing test case only.