My recovery vault is in the West US 2 region, and I cannot see the option to enable a Cross region restore as seen in the Azure documentation here.
Screenshot from documentation shows this option:
My Azure UI:
Question: Why is this feature not available to be enabled for me? The documentation doesn't have any details about the eligibility for support.
Have you registered this feature?
Before you begin, you must register it through PowerShell. Also keep in mind it is a preview feature (have a look at this page).
Register-AzProviderFeature -FeatureName CrossRegionRestore -ProviderNamespace Microsoft.RecoveryServices
FeatureName ProviderName RegistrationState
----------- ------------ -----------------
CrossRegionRestore Microsoft.RecoveryServices Registering
It might take up to 48 hours, you can check status.
Get-AzProviderFeature -FeatureName CrossRegionRestore -ProviderNamespace Microsoft.RecoveryServices
FeatureName ProviderName RegistrationState
----------- ------------ -----------------
CrossRegionRestore Microsoft.RecoveryServices Registered
Related
I'm trying to build a custom report showing the cost savings figures from Azure Cost Advisor, using the get-azadvisorrecommendation cmdlet. I can get the VM reservation savings amount, but for right-sizing advice it doesn't give me the savings amounts, however these show in the portal.
There is an extendedproperties value, but this only gives:
--- -----
MaxCpuP95 9
MaxTotalNetworkP95 0
MaxMemoryP95 38
deploymentId 02538ce8-c03d-4fa9-b2bc-136096896b64
roleName GW-BRS-2ivi
currentSku Standard_F4s
targetSku Standard_B4ms
How can I get the Savings amount values?
We have tested our local environment, our local environment has the azure advisor recommendations for cosmos db.
Based on the azure advisor recommendations we have used the below PowerShell cmdlet to pull the saving cost using the get-azureadvisorrecommendations cmdlet
Get-AzAdvisorRecommendation -Category Cost | Where-Object {$_.ImpactedField -eq "microsoft.documentdb/databaseaccounts"} | Select-Object -ExpandProperty ExtendedProperties
Here is the sample output for reference :
Alternatively, You can use use MSGraph to accomplish this.
Azure Advisor API documentation contains Reccomendations Operation Category which will give you ability to programmatically get Azure Advisor Recommendations.
There is also an official Microsoft.Graph module available on the PowerShell Gallery.
Here is the reference output pulling the savings cost using the resource graph explorer from portal.
Here is the reference SO Thread.
Note : If my answer is helpful for you, you can accept it as answer( click on the check mark beside the answer to toggle it from greyed out to filled in.). This can be beneficial to other community members. Thank you
I want to add tag to every new resource that gets created in my azure subscription automatically. I want that tag to be ------ id - "createdby" and value - "id of associate or name of that associate who is creatinf that resource"
Is that possible in microsoft azure?
It is possible in Azure, but for this requirement, it is not possible if you just use Azure policy. Here is a solution that could meet your requirement provided by Microsoft engineer which uses Azure Function and Azure policy. For details see this blog.
I've following the steps in the article mentioned below, however, the section where it describes how to Create a P2S configuration can't be followed because I don't see an option for Add point-to-site config under the Virtual WAN architecture. Each service is listed as Registered. My VWANs previously existed prior to enabling the point to site configuration and I've even created a brand new VWAN but do not see the option to add a P2S configuration on any of them. Any ideas?
https://learn.microsoft.com/en-us/azure/virtual-wan/virtual-wan-point-to-site-portal
PS C:\WINDOWS\system32> Get-AzureRmProviderFeature -ProviderNamespace Microsoft.Network -FeatureName AllowP2SCortexAccess
FeatureName ProviderName RegistrationState
----------- ------------ -----------------
AllowP2SCortexAccess Microsoft.Network Registered
PS C:\WINDOWS\system32> Get-AzureRmProviderFeature -ProviderNamespace Microsoft.Network -FeatureName AllowVnetGatewayOpenVpnProtocol
FeatureName ProviderName RegistrationState
----------- ------------ -----------------
AllowVnetGatewayOpenVpnProtocol Microsoft.Network Registered
PS C:\WINDOWS\system32> Register-AzureRmResourceProvider -ProviderNamespace Microsoft.Network
ProviderNamespace : Microsoft.Network
RegistrationState : Registered
ResourceTypes : {virtualNetworks, publicIPAddresses, networkInterfaces, interfaceEndpoints...}
Locations : {West US, East US, North Europe, West Europe...}
Currently, creating a point-to-site connection using Azure Virtual WAN is Preview version. You need to navigate to the Azure portal (Preview) and sign in with your Azure account. You will see it.
Besides, there is an important NOTE:
This public preview is provided without a service level agreement and
should not be used for production workloads. Certain features may not
be supported, may have constrained capabilities, or may not be
available in all Azure locations. See the Supplemental Terms of Use for Microsoft Azure Previews for details.
I would like to get the currently assigned Active Directory admin name for a specific Azure SQL server with PowerShell script.
I thought that it will shows in the Resource properties but unfortunately not and I did not find any specific command for that.
Is there any way to get this information?
PowerShell command to get this information is Get-AzureRmSqlServerActiveDirectoryAdministrator
Example from Microsoft docs -
Get-AzureRmSqlServerActiveDirectoryAdministrator -ResourceGroupName "ResourceGroup01" -ServerName "Server01"
ResourceGroupName ServerName DisplayName ObjectId
----------------- ---------- ----------- --------
ResourceGroup01 Server01 DBAs 40b79501-b343-44ed-9ce7-da4c8cc7353b
https://learn.microsoft.com/en-us/powershell/module/azurerm.sql/get-azurermsqlserveractivedirectoryadministrator?view=azurermps-6.7.0
Also, at least in your screenshot you don't have any admin set for the server. If you want to set that up first, before reading that info from PowerShell command, then follow the guidance here - https://learn.microsoft.com/en-us/azure/sql-database/sql-database-aad-authentication-configure
With this reference, https://learn.microsoft.com/en-us/bot-framework/deploy-bot-local-git
I executed command as follows.
$ azure site create --git my-app-name
Then, an error message appeared.
info: Executing command site create
error: The server failed to authenticate the request. Verify that the certificate is valid and is associated with this subscription.
error: Error information has been recorded to C:\Users\yokoyamt\.azure\azure.err
error: site create command failed
I've tried in another azure account, which I have "power-user", then
A new Resource group was created and the app service was deployed in it.
But in this time, I haven't enough role to create new resource group.
So I guessed If I had specify resource group when I create app via azure-cli.
Can anyone put some light on this?
> az account list --output table
Name CloudName SubscriptionId State IsDefault
-------- ----------- ------------------------------------ ------- -----------
従量課金 AzureCloud my-subscription-id Enabled True
azure site is a classic(asm) mode resource, azure web is a arm mode resource. You should give your account co-admin permission in classic Portal. New Portal does not work on it. Please refer to this question.
According to your description, you want to deploy a web app on Azure. You could use Azure CLI 2.0 to do this. Please refer to this link.