public SetAzurePlatformExtensionCmdletInfo(string imageName, string permission, string[] locations, ComputeImageConfig compCfg, MarketplaceImageConfig marketCfg)
        {
            this.cmdletName = Utilities.SetAzurePlatformExtensionCmdletName;
            this.cmdletParams.Add(new CmdletParam("ImageName", imageName));

            if (permission != null)
            {
                this.cmdletParams.Add(new CmdletParam("Permission", permission));
            }

            if (locations != null)
            {
                this.cmdletParams.Add(new CmdletParam("ReplicaLocations", locations));
            }

            if (compCfg != null)
            {
                this.cmdletParams.Add(new CmdletParam("PlatformComputeImageConfig", compCfg));
            }

            if (marketCfg != null)
            {
                this.cmdletParams.Add(new CmdletParam("PlatformMarketplaceImageConfig", marketCfg));
            }
        }
        protected override void ProcessRecord()
        {
            ServiceManagementProfile.Initialize();

            var result = new ComputeImageConfig
            {
                Offer = Offer,
                Sku = Sku,
                Version = Version
            };

            WriteObject(result);
        }