-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Add support for creating cross-subscription Geo-replicated databases #26598
Add support for creating cross-subscription Geo-replicated databases #26598
Conversation
️✔️Az.Accounts
️✔️Az.Compute
️✔️Az.EventHub
️✔️Az.KeyVault
️✔️Az.ManagedServiceIdentity
️✔️Az.Monitor
️✔️Az.Network
️✔️Az.OperationalInsights
️✔️Az.PrivateDns
|
Type | Cmdlet | Example | Line | RuleName | Description | Extent | Remediation |
---|---|---|---|---|---|---|---|
New-AzSqlDatabaseSecondary | 1 | 1 | Unassigned_Variable | Get-AzSqlDatabase -DatabaseName $databasename is a null-valued parameter value. | -DatabaseName | Assign value for $databasename. | |
New-AzSqlDatabaseSecondary | 1 | 1 | Unassigned_Variable | Get-AzSqlDatabase -ResourceGroupName $primaryresourcegroupname is a null-valued parameter value. | -ResourceGroupName | Assign value for $primaryresourcegroupname. | |
New-AzSqlDatabaseSecondary | 1 | 1 | Unassigned_Variable | Get-AzSqlDatabase -ServerName $primaryservername is a null-valued parameter value. | -ServerName | Assign value for $primaryservername. | |
New-AzSqlDatabaseSecondary | 1 | 2 | Unassigned_Variable | New-AzSqlDatabaseSecondary -PartnerResourceGroupName $secondaryresourcegroupname is a null-valued parameter value. | -PartnerResourceGroupName | Assign value for $secondaryresourcegroupname. | |
New-AzSqlDatabaseSecondary | 1 | 2 | Unassigned_Variable | New-AzSqlDatabaseSecondary -PartnerServerName $secondaryservername is a null-valued parameter value. | -PartnerServerName | Assign value for $secondaryservername. | |
New-AzSqlDatabaseSecondary | 2 | 1 | Unassigned_Variable | Get-AzSqlDatabase -DatabaseName $databasename is a null-valued parameter value. | -DatabaseName | Assign value for $databasename. | |
New-AzSqlDatabaseSecondary | 2 | 1 | Unassigned_Variable | Get-AzSqlDatabase -ResourceGroupName $primaryresourcegroupname is a null-valued parameter value. | -ResourceGroupName | Assign value for $primaryresourcegroupname. | |
New-AzSqlDatabaseSecondary | 2 | 1 | Unassigned_Variable | Get-AzSqlDatabase -ServerName $primaryservername is a null-valued parameter value. | -ServerName | Assign value for $primaryservername. | |
New-AzSqlDatabaseSecondary | 2 | 2 | Unassigned_Variable | New-AzSqlDatabaseSecondary -PartnerResourceGroupName $secondaryresourcegroupname is a null-valued parameter value. | -PartnerResourceGroupName | Assign value for $secondaryresourcegroupname. | |
New-AzSqlDatabaseSecondary | 2 | 2 | Unassigned_Variable | New-AzSqlDatabaseSecondary -PartnerServerName $secondaryservername is a null-valued parameter value. | -PartnerServerName | Assign value for $secondaryservername. | |
New-AzSqlDatabaseSecondary | 2 | 2 | Unassigned_Variable | New-AzSqlDatabaseSecondary -PartnerDatabaseName $secondarydatabasename is a null-valued parameter value. | -PartnerDatabaseName | Assign value for $secondarydatabasename. |
⚠️ Windows PowerShell - Windows
Type | Cmdlet | Example | Line | RuleName | Description | Extent | Remediation |
---|---|---|---|---|---|---|---|
New-AzSqlDatabaseSecondary | 1 | 1 | Unassigned_Variable | Get-AzSqlDatabase -DatabaseName $databasename is a null-valued parameter value. | -DatabaseName | Assign value for $databasename. | |
New-AzSqlDatabaseSecondary | 1 | 1 | Unassigned_Variable | Get-AzSqlDatabase -ResourceGroupName $primaryresourcegroupname is a null-valued parameter value. | -ResourceGroupName | Assign value for $primaryresourcegroupname. | |
New-AzSqlDatabaseSecondary | 1 | 1 | Unassigned_Variable | Get-AzSqlDatabase -ServerName $primaryservername is a null-valued parameter value. | -ServerName | Assign value for $primaryservername. | |
New-AzSqlDatabaseSecondary | 1 | 2 | Unassigned_Variable | New-AzSqlDatabaseSecondary -PartnerResourceGroupName $secondaryresourcegroupname is a null-valued parameter value. | -PartnerResourceGroupName | Assign value for $secondaryresourcegroupname. | |
New-AzSqlDatabaseSecondary | 1 | 2 | Unassigned_Variable | New-AzSqlDatabaseSecondary -PartnerServerName $secondaryservername is a null-valued parameter value. | -PartnerServerName | Assign value for $secondaryservername. | |
New-AzSqlDatabaseSecondary | 2 | 1 | Unassigned_Variable | Get-AzSqlDatabase -DatabaseName $databasename is a null-valued parameter value. | -DatabaseName | Assign value for $databasename. | |
New-AzSqlDatabaseSecondary | 2 | 1 | Unassigned_Variable | Get-AzSqlDatabase -ResourceGroupName $primaryresourcegroupname is a null-valued parameter value. | -ResourceGroupName | Assign value for $primaryresourcegroupname. | |
New-AzSqlDatabaseSecondary | 2 | 1 | Unassigned_Variable | Get-AzSqlDatabase -ServerName $primaryservername is a null-valued parameter value. | -ServerName | Assign value for $primaryservername. | |
New-AzSqlDatabaseSecondary | 2 | 2 | Unassigned_Variable | New-AzSqlDatabaseSecondary -PartnerResourceGroupName $secondaryresourcegroupname is a null-valued parameter value. | -PartnerResourceGroupName | Assign value for $secondaryresourcegroupname. | |
New-AzSqlDatabaseSecondary | 2 | 2 | Unassigned_Variable | New-AzSqlDatabaseSecondary -PartnerServerName $secondaryservername is a null-valued parameter value. | -PartnerServerName | Assign value for $secondaryservername. | |
New-AzSqlDatabaseSecondary | 2 | 2 | Unassigned_Variable | New-AzSqlDatabaseSecondary -PartnerDatabaseName $secondarydatabasename is a null-valued parameter value. | -PartnerDatabaseName | Assign value for $secondarydatabasename. |
️✔️Help File Existence Check
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️File Change Check
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️UX Metadata Check
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
⚠️ Test
⚠️ - Linux
Type Title Current Coverage Last Coverage Description ⚠️ Test Coverage Less Than 80% 62.15 % 62.22% Test coverage cannot be lower than the number of the last release.
⚠️ - MacOS
Type Title Current Coverage Last Coverage Description ⚠️ Test Coverage Less Than 80% 62.15% 62.22% Test coverage cannot be lower than the number of the last release.
⚠️ PowerShell Core - Windows
Type Title Current Coverage Last Coverage Description ⚠️ Test Coverage Less Than 80% 62.15% 62.22% Test coverage cannot be lower than the number of the last release.
⚠️ Windows PowerShell - Windows
Type Title Current Coverage Last Coverage Description ⚠️ Test Coverage Less Than 80% 62.15% 62.22% Test coverage cannot be lower than the number of the last release.
️✔️Az.Storage
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
@alecbain Please update the help doc. |
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). |
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.
LGTM
/azp run azure-powershell - security-tools |
Azure Pipelines successfully started running 1 pipeline(s). |
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.
LGTM
…26598) * add cross subscription support for NewAzSqlDatabaseSecondary cmdlet * run replication tests to validate cross-sub change * update changelog * fix typo on resource group assert * update help document with new param * Sanitize data --------- Co-authored-by: Vincent Dai <[email protected]>
* update readme and generate sdk * modifications to match generated code * update polling method * testbasic cluster sfmc * more test recordings * apptype test recordings * add managed service test * adding managedapptypeversion recording * add manaegdApp recording * add managedAppType recording * update readme * undo breaking changes * undo breaking change * Fix Readme.md * generate code * update commands * undo generated code changes * remove unnecessary cast * remove unnecessary casting * update iptag * revert iptag change * unchanged sdk * updates * update sdk * generate sfrp sdk * update test recordings * update resource values * update all tests * updated sdk * update sfmc sdk * Update README.md * Update README.md * add breaking.csv file * update breakinchanges.csv * more updates * target Pr * Update ChangeLog.md * Az.service fabric preview (#25124) * update readme and generate sdk * modifications to match generated code * update polling method * testbasic cluster sfmc * more test recordings * apptype test recordings * add managed service test * adding managedapptypeversion recording * add manaegdApp recording * add managedAppType recording * update readme * undo breaking changes * undo breaking change * Fix Readme.md * generate code * update commands * undo generated code changes * remove unnecessary cast * remove unnecessary casting * update iptag * revert iptag change * unchanged sdk * updates * update sdk * generate sfrp sdk * update test recordings * update resource values * update all tests * updated sdk * update sfmc sdk * Update README.md * Update README.md * add breaking.csv file * update breakinchanges.csv * more updates * target Pr * Update ChangeLog.md --------- Co-authored-by: Lei Jin <[email protected]> Co-authored-by: NoriZC <[email protected]> * upgrade servicefabric to 4.0.0-preview * sanitize password in example * resolve bad merge * Adding examples for constrained role delegation Adding examples to showcase how constrained role delegation can be done with PowerShell. * Remove GitHub Token From CI Pipeline (#26602) Remove GitHub Token From CI Pipeline * Migrate ConnectedKubernetes from generation to main (#26630) * Move ConnectedKubernetes to main * Update ChangeLog.md * Update ChangeLog.md * Update ChangeLog.md --------- Co-authored-by: azure-powershell-bot <[email protected]> Co-authored-by: NoriZC <[email protected]> * add new sdk and test recordings * Migrate DevCenter from generation to main (#26626) * Move DevCenter to main * Add change log and suppress breaking change --------- Co-authored-by: azure-powershell-bot <[email protected]> Co-authored-by: Vincent Dai <[email protected]> * Add support for creating cross-subscription Geo-replicated databases (#26598) * add cross subscription support for NewAzSqlDatabaseSecondary cmdlet * run replication tests to validate cross-sub change * update changelog * fix typo on resource group assert * update help document with new param * Sanitize data --------- Co-authored-by: Vincent Dai <[email protected]> * Update a string value in Get PR Changed Files Script (#26637) * Update get-pr-changed-files.yml * Update get-pr-changed-files.yml * [Storage] Mirgate Storage file cmdlets to Track2 SDK (#26575) (#26594) * [Storage] Mirgate Storage file cmdlets to Track2 SDK (#26575) * REsolve merge conflicts * Resolve merge conflicts * remove breaking change warnings * Update changelog * Add breaking change exception * Remove unused file InvalidCLoudFileShare.cs * Update RemoveFilePathTrailingDot helper function per comments --------- Co-authored-by: yifanz7 <[email protected]> Co-authored-by: Yifan Zhang <[email protected]> * Downgrade the servity of didn't find defined parameter in path to 2 (#26639) * Migrate Astro from generation to main (#26643) * Move Astro to main * Update ChangeLog.md --------- Co-authored-by: azure-powershell-bot <[email protected]> Co-authored-by: Vincent Dai <[email protected]> * update chagelog * Fix JSON format issue (#26646) * Migrate App from generation to main (#26644) * Move App to main * update changelog and BreakingChangeIssues.csv --------- Co-authored-by: azure-powershell-bot <[email protected]> Co-authored-by: Jinpei Li <[email protected]> * Migrate NeonPostgres from generation to main (#26647) * Move NeonPostgres to main * Update Az.NeonPostgres.psd1 --------- Co-authored-by: azure-powershell-bot <[email protected]> Co-authored-by: Vincent Dai <[email protected]> * [Key Vault] Add Secret URI Parameter to Key Vault Secret Cmdlets (#26222) * Added secretUri support for all the 'secret' cmdlets * Updated Changelog * Added ResourceId aliases for backwards compatibility * Added Tests, Secret Data Class * Updated Help Docs * Use Typed varaibles * Add example usages in help docs * Error Suppression * Change Data Class Accessibility * Move Split Logic to Constructor * Added uri format to help docs * [Accounts] Add Long-Running Operation (LRO) Support to Invoke-AzRestMethod (#26225) * Refactored existing code * Added general LRO support * Removed excess log statements * Updated Changelog * Added comments * Removed log statements * Regression Compatiblility * Removed debug logs * Updated the help docs * Update param name, Add use case example * Updated help docs * Updated description * Update to add ArgumentCompleter * Delay the Get-AzAccessToken Breaking Change (#26625) * Delay the Get-AzAccessToken breaking change * Update the doc of Get-AzAccessToken * Address review comments * Address review comments --------- Co-authored-by: Vincent Dai <[email protected]> * Update azure-powershell-modules.md (#26650) * Update azure-powershell-modules.md * Update azure-powershell-modules.md * Update azure-powershell-modules.md * Bump up version for ConnectedKubernetes (#26635) * remove secrets * Migrate ConnectedMachine from generation to main (#26657) * Move ConnectedMachine to main * Update ChangeLog.md * Fix signature issues. --------- Co-authored-by: azure-powershell-bot <[email protected]> Co-authored-by: Vincent Dai <[email protected]> * Remove ProgressAction and tweak the change log (#26661) * [Devtestlabs] Migrated DevTestLabs SDK to generated SDK (#26648) * generate DevTestLabs by autorest v2 * add DevTestLabs.Management.Sdk * use 2016-05-15 api vesion * migrate DevTestLabs to autorest.powershell * update and record the test * Update ChangeLog.md * Revert "Update ChangeLog.md" This reverts commit 4788e93. * Update ChangeLog.md --------- Co-authored-by: Yabo Hu <[email protected]> * Changing to two simple roles for examples The built-in roles have the same GUID in every tenant. * Remove get-github-token-steps.yml (#26660) * Update code-gen.yml * Delete .azure-pipelines/util/get-github-token-steps.yml * Add engineer docs for example analyzer (#26663) * Create example-analyzer.md * refine docs * debug way * Migrate DesktopVirtualization from generation to release-2024-11-19 (#26668) * Move DesktopVirtualization to release-2024-11-19 * Remove ProgressAction --------- Co-authored-by: Vincent Dai <[email protected]> * Remove alias for cmdlet Resolve-AzError (#26666) * Remove alias for cmdlet Resolve-AzError * Suppress breaking change * Update ChangeLog.md --------- Co-authored-by: Yabo Hu <[email protected]> * Fixed overriding of Bicep parameters in Deployment Stack cmdlets to support SecureString parameters. (#26670) * Fixed overriding of Bicep parameters in Deployment Stack cmdlets to support SecureString parameters. * Added session record. --------- Co-authored-by: Dante DG <test> * Migrate ConnectedKubernetes from generation to main (#26675) * Move ConnectedKubernetes to main * Update ChangeLog.md --------- Co-authored-by: Yabo Hu <[email protected]> * Migrate DnsResolver from generation to release-2024-11-19 (#26676) * Move DnsResolver to release-2024-11-19 * Update change log and suppress breaking changes * Updated change log --------- Co-authored-by: Vincent Dai <[email protected]> * Updated verbose status log in deployment stacks deployment. (#26681) * Updated verbose status log in deployment stacks deployment. * Update ChangeLog.md --------- Co-authored-by: Dante DG <test> Co-authored-by: Yabo Hu <[email protected]> * Migrate ContainerInstance from generation to release-2024-11-19 (#26690) * Move ContainerInstance to release-2024-11-19 * Remove ProgressAction and update change log * Reset recording --------- Co-authored-by: Vincent Dai <[email protected]> * Bump up version for ConnectedKubernetes (#26686) * [DataFactory]Powershell Release (#26702) * release-2024-11-19 (#26706) * bump minor versions at least to distinguish with LTS * Bump a major version for Az.Compute * Remove BreakingChangeIssues.csv for bumping major version * Bump Version for Az 13.0.0 * add community contributors * SyntaxChangeLog-Az13.md * add community contributors in changelog.md * Update Start-AzNetAppFilesPeerExternalCluster.md (#26684) * Resolve the solutions with dependencies (#26710) * Update model creation parameter location or order * Add migration guide * Update documentation/migration-guides/Az.13.0.0-migration-guide.md Co-authored-by: yifanz7 <[email protected]> * Update documentation/migration-guides/Az.13.0.0-migration-guide.md Co-authored-by: yifanz7 <[email protected]> * Update documentation/migration-guides/Az.13.0.0-migration-guide.md Co-authored-by: yifanz7 <[email protected]> * Update ChangeLog.md * Update documentation/migration-guides/Az.13.0.0-migration-guide.md Co-authored-by: Wei Wei <[email protected]> * Update ExampleIssues.csv * remove secrets * Updating migration guide typos for Az 13.0.0 (#26722) * Fixing migration guide for SQL DAG. * Chaning string to lowercase. --------- Co-authored-by: jovancevic123 <[email protected]> * Update migration guide. (#26723) * update file * update * update * remove secrets * remove more secrets * remove more secrests * remove passwords * Update CredScanSuppressions.json * Update CredScanSuppressions.json --------- Co-authored-by: Lei Jin <[email protected]> Co-authored-by: NoriZC <[email protected]> Co-authored-by: Yabo Hu <[email protected]> Co-authored-by: Sebastian Claesson <[email protected]> Co-authored-by: Yan Xu <[email protected]> Co-authored-by: azure-pipelines[bot] <36771401+azure-pipelines[bot]@users.noreply.github.com> Co-authored-by: azure-powershell-bot <[email protected]> Co-authored-by: Vincent Dai <[email protected]> Co-authored-by: alecbain <[email protected]> Co-authored-by: yifanz7 <[email protected]> Co-authored-by: Yifan Zhang <[email protected]> Co-authored-by: Yunchi Wang <[email protected]> Co-authored-by: Jinpei Li <[email protected]> Co-authored-by: Yash <[email protected]> Co-authored-by: Jin Lei <[email protected]> Co-authored-by: NanxiangLiu <[email protected]> Co-authored-by: JoyerJin <[email protected]> Co-authored-by: Beisi Zhou <[email protected]> Co-authored-by: Dante <[email protected]> Co-authored-by: Jingshu918 <[email protected]> Co-authored-by: Wei Wei <[email protected]> Co-authored-by: jovancevic123 <[email protected]> Co-authored-by: jovancevic123 <[email protected]> Co-authored-by: lijinpei2008 <[email protected]>
Description
This changeset adds an optional parameter to the New-AzSqlDatabaseSecondary cmdlet to allow creating a geo-secondary database on a server in a different subscription id.
If the optional PartnerSubscriptionId parameter is passed, it will attempt to start the database copy on the server specified using that subscription id. The user making the call will still need proper permissions on the second subscription, which are validated and checked in the backend API.
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.