Ejemplo n.º 1
0
        ///GENMHASH:981FA7F7C88705FACC2675A0E796937F:791F75E9324E0F8CD9B54F2D9EF56E3D
        public FluentImplT WithNewAppServicePlan(string name)
        {
            appServicePlan = (AppServicePlanImpl)Manager.AppServicePlans.Define(name);
            string id = ResourceUtils.ConstructResourceId(Manager.SubscriptionId,
                                                          ResourceGroupName, "Microsoft.Web", "serverFarms", name, "");

            Inner.ServerFarmId = id;
            return((FluentImplT)this);
        }
Ejemplo n.º 2
0
        private AppServicePlanImpl NewDefaultAppServicePlan()
        {
            String             planName       = SdkContext.RandomResourceName(Name + "plan", 32);
            AppServicePlanImpl appServicePlan = (AppServicePlanImpl)(this.Manager.AppServicePlans
                                                                     .Define(planName))
                                                .WithRegion(RegionName);

            if (newGroup != null && IsInCreateMode)
            {
                appServicePlan = appServicePlan.WithNewResourceGroup(newGroup) as AppServicePlanImpl;
            }
            else
            {
                appServicePlan = appServicePlan.WithExistingResourceGroup(ResourceGroupName) as AppServicePlanImpl;
            }
            return(appServicePlan);
        }