-
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
Tags for Restore-AzSqlDatabase not working with the cross subscription restore #18435
Comments
ref #17474 fyi, this issue is not occuring for e.g, Restore-AzSynapseSqlPool -FromRestorePoint -RestorePoint $restorePoint.RestorePointCreationDate -TargetSqlPoolName $TargetSqlPoolName -ResourceGroupName $TargetResourceGroupName -WorkspaceName $TargetSynapseWorkspaceName -ResourceId $sourcesqlpooldatabaseId -PerformanceLevel $PerformanceLevel -Tag $tags |
@jayendranarumugam , it seems the message comes from policy setting. Please do below 2 steps and provide more information. You can see the request and response on PowerShell console. Please share the information to us. |
Thank you for your feedback. This has been routed to the support team for assistance. |
Here you go @dingmeng-xue . If you see the PUT Request is missing to pass the
|
[Hub Generated] Review request for Microsoft.Media to add version stable/2021-11-01 (Azure#18435) * Copy 2021-06-01 Account service files to 2021-11-01 folder with version change. can be ignored for review. * Update account service with the latest 2021-11-01 version with breaking change. * Add missing examples * fix tag name * add type array to the privateEndpointConnections.
Hi @dingmeng-xue , Is there any update on the issue ? We are currently unable to move forward with this bug. Is there any workaround for this ? |
@jayendranarumugam Apologies for the late reply. Thanks for reaching out to us and reporting this issue. We are looking into this issue and we will provide an update. |
@jayendranarumugam Could you please check and confirm if you have any Azure Policies configured in your subscription ? This error seems to be due to the Azure Policy which is blocking the resource creation due to incorrect tags.
|
Yes we have a policy to prevent from resources that doesn't have any tags. That why we are trying to restore the db along with the tags however looks like the tags we are given is not pass through the API . As i put here #18435 (comment) |
@jayendranarumugam Could you please confirm if you are using 3.10.0 version of the Az.SQL module ? If not, Could you please upgrade your Az.SQL module to this version and test again ? Awaiting your reply. |
@jayendranarumugam I wanted to do quick follow-up to check if you had a chance to look at my above comment. Please let us know if you are facing the same issue after upgrading to 3.10.0 version of the Az.SQL module. Awaiting your reply. |
Yep will test this today and let you know |
@navba-MSFT I can see this was fixed with #18475 and working as expected now. Feel free to link/close this issue |
@jayendranarumugam Thanks for getting back. We will now proceed with closure of this GitHub issue. If you need any further assistance on this issue in future, please feel free to reopen this thread. We would be happy to help. |
Description
We are trying to follow this tutorial trying to do the cross subscription
This script was finally failing on
Restore-AzSqlDatabase
where the tags is not getting applied to the new sqldbIssue script & Debug output
Environment data
Module versions
Error output
The text was updated successfully, but these errors were encountered: