Azure SQLDatabase Security - Cannot delete Dynamic Data Masking Rule from Portal - azure

I am trying to delete a Dynamic Data Masking Rule on Azure SQLDatabase form the portal, the portal says that the Rule got deleted successfully, but when i refresh the page, the rule is still there. Couple of my colleagues also ran into the same issue.
Is this a bug/quirk from the portal, or are we doing something wrong? Is there any other way to get this working (portal, powershell, cli)?
Thanks.

I am not able to reproduce the behavior with Dynamic Masking Rules on the portal but as a workaround you can try using PowerShell to remove the rule:
Remove-AzureRmSqlDatabaseDataMaskingRule -ResourceGroupName "ResourceGroup01"
-ServerName "Server01" -DatabaseName "Database01" -SchemaName "dbo"
-TableName "table1" -ColumnName "column1"

If you continue to encounter this issue, please open a support ticket with all the details (subscription, server, database) and we can investigate why this is happening. The mask should be successfully removed when you delete it - there aren't any known bugs in this area.

Related

Removing a custom domain from an Azure Static Web App

I'm trying to delete two custom domains from my Azure Static Web App. I'm getting notifications saying that the custom domains have been deleted.
But they still are stuck in the list view as Deleting.
Tried to delete several times but still they refuse to be removed from the list.
Does anyone know the reason behind this?
Sometimes it gets Stucks and takes long time to refresh the list to display the Added or deleted Custom Domains
We can confirm this by running command in Azure CLI
As per Get-AzStaticWebAppCustomDomain and Remove-AzStaticWebAppCustomDomain documents ,
To Get the list of Custom Domains of the Static Web App run below Command
Get-AzStaticWebAppCustomDomain -ResourceGroupName YourRGName -Name StaticWebAppName
If you are still seeing the custom domains list even after deleting them manually, run the below command to remove them
Remove-AzStaticWebAppCustomDomain -ResourceGroupName YourRGName -Name StaticWebAppName -DomainName YourdomainName
For me it is shown as Still deleting in progress, but with the Get-AzStaticWebAppCustomDomain I am not able to see the deleted custom domain.

Creating site in Azure using free subscription - The service is unavailable

I am new to azure and i am exploring it now, as first step i created a free azure account and in that i created a Resource group and an App service to that resource group.
When i try to access the Url https://azurehome.azurewebsites.net/ its giving an error 'The service is unavailable.'
any help on this ?
Please follow this document to troubleshoot:
https://learn.microsoft.com/en-us/azure/app-service/troubleshoot-http-502-http-503
By the way, this problem may be caused by the region you choose, trying to change the region may be effective. I'm using Central US and it works fine.
If it still doesn't resolve, please provide more information.
If you need support, you can click this link:
https://azure.microsoft.com/en-us/support/options/

How do I delete an sql database in Azure?

I have used the following powershell script to delete a database:
Remove-AzureRmSqlDatabase -ServerName $server -ResourceGroupName $rgname -DatabaseName $dbname
(first setting the variables)
and have tried using the Azure Portal
The port indicates a success in deletion, as does the activity logs, however
the resource is not being deleted?
Screenshot of activity log:
The deletes (on a number of occasions after the db comes back) show successful, however there is an audit policy that seems to be doing something.
There are no Locks on the resrouce group.
UPDATE:
I have deleted from SSMS, and is not showing there or in the portal anymore..
(will wait to see if it comes back, as it did when deleting via portal and powershell)
UPDATE 2:
Database is now back, so this is the database having been deleted 3 ways, portal, powershell and via SSMS.
It turns out the web application uses EF migrations which is recreating the database.
Note: The bigger issue is that the database is created on a much higher, and much more expensive tier.
Do you happen to have a rogue policy somewhere? It seems something is running a Policy Effect: deployIfNotExist on the resource. Without access to your environment, there's not much I could recommend.
Check the documentation here: https://learn.microsoft.com/en-us/azure/governance/policy/concepts/effects#audit

Azure Automation Update Managemet schedules can be removed using powershell, but they still exist in the portal

If I used Get-AzAutomationSchedule for my automation account, I get nothing in return because I used Remove-AzAutomationSchedule for all of them. But if I look in the portal, every schedule I've deployed is there present. If I select a schedule that I've removed using Powershell and then attempt to update the schedule in the portal, I get the crying rain cloud and it says
NewScheduleBladeV2
MICROSOFT_AZURE_AUTOMATION
NewScheduleBladeV2
The reacurrance is also listed as unknown in the list.
This is a problem not only for clarity when viewing in the portal, but if I attempt to run my ARM template again with the schedules there, I get an "Internal Server Error" code 500. I can't redeploy them if I delete them with Powershell.
Is there anyway to send something to Azure to update these? Not sure if I need to do some API call or some form of Set-Az cmdlet
Thanks
I have tried to reproduce the issue you are facing but all worked good for me when i used cmdlets Get-AzAutomationSchedule and Remove-AzAutomationSchedule of Az.Automation module versioned 1.2.1.
Is this still an issue at your end ? If yes, can you restart the browser after clearing the cache and deleting the cookies ?

Moved azure resource has disappeared

I just moved my WebApp from one subscription to another and now I can't find it in the azure portal.
However, I see that the web application still works.
It has not been deleted.
It is not listed in the result of the call to Get-AzureRmResource.
Do you have an idea to diagnose this problem?
Update
I found an error entry in the target Resource Group activity log:
"properties": {
"statusCode": "Conflict",
"statusMessage": "{\"error\":
{\"code\":\"ResourceMoveFailed\",\"message\":...
BUT my resource is not, either, in my old resource group !!!
It looks like you are experiencing an issue with the synchronization as mentioned in the following discussion thread, to fix this issue you may contact the support to perform a re-sync.
Let us know if you need further assistance on this issue.
Many of the operations you perform are scoped per subscription. For example, Get-AzureRmResource works against the currently selected subscription. You can run Get-AzureRmSubscription to view the subscriptions you have access to. You can then switch between subscriptions with something like this:
Set-AzureRmContext -SubscriptionName "Example Subscription Two"
In the portal, you can filter all the blades to show resources in one or more subscriptions.
As the image points out, if that doesn't work you can switch directories.
Try Azure Resource Explorer for furthermore information on resources.
https://azure.microsoft.com/en-us/blog/azure-resource-explorer-a-new-tool-to-discover-the-azure-api/

Resources