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.
Related
I have loads of migrated VMs which have got multiple Azure log analytic workspaces tagged/configured at VM level.
So what if I don't want to delete the LAW IDs configured at VM level (not in Azure portal) by giving the definite list as I don't have a pre-known list of those multiple LAW rather just keep needed one by matching it within list and delete rest. I don't find an option to do so in documentation! Only looking for doing this via powershell script
Thanks in advance!
By using a powershell script on Azure Doc. we are able to delete multiple LAW Ids by enlisting them, but then there are so many Vms and tenants that it is not possible to keep doing it like this.
After reproducing from my end, I could able to achieve your requirement using the below script.
$AllLaws=Get-AzureRmOperationalInsightsWorkspace
$Requiredlaws = "<Your_Required_LAW_1>","<Your_Required_LAW_2>"...
foreach($law in $AllLaws)
{
if($law.Name -NotIn $Requiredlaws)
{
Remove-AzOperationalInsightsWorkspace -ResourceGroupName $law.ResourceGroupName -Name $law.Name
}
}
RESULTS:
Background
Currently we are trying to trace the environment of a particular static site. (URL, Repo, Resource Group, etc.)
Question
Is there an existing cmdlet or aparticular way
to find a particular file in all our available Resource Groups or App Services?
For example, in all resource groups, find particularfile.html
What we've tried
We first tried to identify the location of our file by trying to identify here
At first we tried to identify all urls of all our sites by running the following command : Get-AzureRmWebApp | foreach-object {$_} | select-object SiteName, DefaultHostName, ResourceGroup
While we were able to get the urls, we realized that some redirected to different urls and was thus inaccurate. We still can't tell which resource group has our site..
so we are trying the approach where we look for the file itself. We know that particularfile.html itself exists in one of the resource groups or App Services.
Is there a command for it? or another approach to get the exact location of that file?
If you're just trying to look around, and see the various directories and files in your deployment, you can enter the site's "Kudu" dashboard, using the url format http://.scm.azurewebsites.net
This will give you a web-based dashboard, including a debug console (web-based) where you can explore your various directories (and the directories will show up visually as well).
you can check here for further information.
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 ?
I am attempting to create a SharePoint Server Farm using the option via the New menu in Azure. I've tried like 5 times now and each time, it fails after about an hour.
The error is so cryptic that I cannot figure out exactly what is going on.
The operation name is: Microsoft.ClassicCompute/virtualMachines/extensions/write
The status is: Failed
And then another,
The operation name is: Update deployment
The status is: Failed.
Thoughts?
I've had a similar experience using the "new" preview portal when deploying Databases. This portal uses Resource Manager to deploy it's resources which is a new way of doing things. Anyhow, I used the PowerShell command:
Get-AzureResourceGroupLog -Name ResourceGroupName
This provided me the detail to understand what was happening with the deployment. I had to adjust my Datacenter because the one I was trying to use was hot.
I talk a little more about the other options this command has here:
http://devian.co/?p=1181
I can't describe this problem but it happened after I restore a site collection from our development machine to the production server. I see the same error page also when I try to access the site collection.
I tried to set customErrors to Off on all web.config files on the server but no luck.
I deleted the Site collection and the web application of that site but nothing changed. other site collections are working just fine.
Please help.
This is what I see when trying to create a new Web Application.
Maybe One reason is There is already a web application with the same name or same port in Central Application ,
Confirm that that is not the case?
You can try to follow steps given below:
Go to Central Admin->System Settings->Mange Service on server
Check status of following service:
Microsoft SharePoint Foundation Web Application
If it is stuck at stopping state, follow the steps given below:
Open command Prompt
Navigate to 14 Hive/Bin path
Enter following command
stsadm -o provisionservice -action stop -servicetype spwebservice
perform IISRESET with "Noforce" attribute
Execute following command
stsadm -o provisionservice -action start -servicetype spwebservice
Perform IISRESEt with "Noforce" attribute
Hope this helps