Skip to content

Commit

Permalink
providers/azure: add support for azure gen2 VMs
Browse files Browse the repository at this point in the history
  • Loading branch information
sohankunkerkar committed Jun 21, 2021
1 parent 450f880 commit 4f40454
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions internal/providers/azure/azure.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,15 @@ func FetchFromOvfDevice(f *resource.Fetcher, ovfFsTypes []string) (types.Config,
logger := f.Logger
logger.Debug("waiting for config DVD...")

device, err := execUtil.GetUdfBlockDevice()
if err != nil {
logger.Debug("falling back to gen1 config path")
}

if err == nil {
logger.Info("VM configured with gen2 settings")
devicePath = device
}
waitForCdrom(logger, devicePath)

fsType, err := checkOvfFsType(logger, devicePath, ovfFsTypes)
Expand Down

0 comments on commit 4f40454

Please sign in to comment.