azure-managed-disk

An api to get azure disk filtered according to the Sku tier

岁酱吖の 提交于 2020-01-25 05:04:21
问题 Can anyone suggest a REST API to fetch all the disks in a subscription according to the disk tier( eg- ultra,standard) and return a list of disks having the same tier. 回答1: As far as I know, there is no such API that could retrieve disks by disk tier(SKU) directly . You should filter the result yourself. If you are using .net , use Azure management SDK will be a way that much easier to get the result you need than using REST API. I write a simple console app for you, try the code below :

Creating a managed disk from snapshot in different region (Azure)

試著忘記壹切 提交于 2019-12-06 16:16:44
问题 I seem to have a problem creating a managed disk from a snapshot. It appears that I can only create a disk in one region which is West US. Here is the PowerShell script I use: Get-AzureRmSubscription –SubscriptionName 'MySubscription' | Select-AzureRmSubscription $resourceGroupName = 'MyResourceGroup'; $diskName = 'MyNewDisk'; $location = 'West US'; $snapshotName = 'MySnapshot'; $snapshot = Get-AzureRmSnapshot -ResourceGroupName $resourceGroupName -SnapshotName $snapshotName; $diskConfig =

Creating a managed disk from snapshot in different region (Azure)

烈酒焚心 提交于 2019-12-04 20:45:14
I seem to have a problem creating a managed disk from a snapshot. It appears that I can only create a disk in one region which is West US. Here is the PowerShell script I use: Get-AzureRmSubscription –SubscriptionName 'MySubscription' | Select-AzureRmSubscription $resourceGroupName = 'MyResourceGroup'; $diskName = 'MyNewDisk'; $location = 'West US'; $snapshotName = 'MySnapshot'; $snapshot = Get-AzureRmSnapshot -ResourceGroupName $resourceGroupName -SnapshotName $snapshotName; $diskConfig = New-AzureRmDiskConfig -AccountType $storageType -Location $location -SourceResourceId $snapshot.Id

Azure Marketplace: Is it possible to use images in Managed Application offer?

只谈情不闲聊 提交于 2019-12-02 08:35:28
问题 I created Azure Managed Application. I used managed images in mainTemplate.json to create new VMs, like in example: { "type": "Microsoft.Compute/images", "apiVersion": "2018-04-01", "name": "front-image", "location": "[parameters('location')]", "properties": { "storageProfile": { "osDisk": { "osType": "linux", "osState": "Generalized", "blobUri": "[concat('https://sdfasdfasdf.blob.core.windows.net/images/myserver.vhd')]", "caching": "ReadWrite", "storageAccountType": "Standard_LRS" } } } }, {

Azure Marketplace: Is it possible to use images in Managed Application offer?

半世苍凉 提交于 2019-12-02 07:06:47
I created Azure Managed Application. I used managed images in mainTemplate.json to create new VMs, like in example: { "type": "Microsoft.Compute/images", "apiVersion": "2018-04-01", "name": "front-image", "location": "[parameters('location')]", "properties": { "storageProfile": { "osDisk": { "osType": "linux", "osState": "Generalized", "blobUri": "[concat('https://sdfasdfasdf.blob.core.windows.net/images/myserver.vhd')]", "caching": "ReadWrite", "storageAccountType": "Standard_LRS" } } } }, { "apiVersion": "2016-04-30-preview", "type": "Microsoft.Compute/virtualMachines", "name": "myserver",

Is there a way to view blobs of managed disks in Microsoft Azure Storage Explorer or the Azure Portal?

☆樱花仙子☆ 提交于 2019-11-30 23:37:20
When I create a VM using Azure Resource Manager with an unmanaged disk, I can view its .vhd in Microsft Azure Storage Explorer and/or the Azure Portal under the specified storage account's Blob Container in a sub-container called "vhds". When I create a VM using Azure Resource Manager with a managed disk, I can't find any storage container with anything related to this managed disk. I understand that Azure is "managing" this storage for me, per this Microsoft doc , and also that I can generate a "SAS Url" for this disk (which gives me no real info on where the blob is stored), but I believe

Is there a way to view blobs of managed disks in Microsoft Azure Storage Explorer or the Azure Portal?

▼魔方 西西 提交于 2019-11-30 17:57:43
问题 When I create a VM using Azure Resource Manager with an unmanaged disk, I can view its .vhd in Microsft Azure Storage Explorer and/or the Azure Portal under the specified storage account's Blob Container in a sub-container called "vhds". When I create a VM using Azure Resource Manager with a managed disk, I can't find any storage container with anything related to this managed disk. I understand that Azure is "managing" this storage for me, per this Microsoft doc, and also that I can generate