Manage App Service, SQL Database, and more – Azure Management Libraries for Java

One Java statement to create a Web App. One statement to create a SQL Server and another statement to create a SQL Database. One statement to create an Application Gateway, etc.

Beta 4 of the Azure Management Libraries for Java is now available. Beta 4 adds support for the following Azure services and features:

✓ App Service (Web Apps)

✓ SQL Database

✓ Application Gateway

✓ Traffic Manager

✓ DNS

✓ CDN

✓ Redis Cache

 
 

https://github.com/azure/azure-sdk-for-java

Add the following to your Maven POM file to use Beta 4:

<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure</artifactId>
<version>1.0.0-beta4.1</version>
</dependency>

Last year, we announced previews of the new, simplified Azure management libraries for Java. Our goal is to improve the developer experience by providing a higher-level, object-oriented API, optimized for readability and writability. Thank you for trying the libraries and providing us with plenty of useful feedback.

Create a Web App

You can create a Web app instance by using a define() … create() method chain.

WebApp webApp = azure.webApps()
.define(appName)
.withNewResourceGroup(rgName)
.withNewAppServicePlan(planName)
.withRegion(Region.US_WEST)
.withPricingTier(AppServicePricingTier.STANDARD_S1)
.create();

Create a SQL Database

You can create a SQL server instance by using another define() … create() method chain.

SqlServer sqlServer = azure.sqlServers().define(sqlServerName)
.withRegion(Region.US_EAST)
.withNewResourceGroup(rgName)
.withAdministratorLogin("adminlogin123")
.withAdministratorPassword("myS3cureP@ssword")
.withNewFirewallRule("10.0.0.1")
.withNewFirewallRule("10.2.0.1", "10.2.0.10")
.create();

Then, you can create a SQL database instance by using another define() … create() method chain.

SqlDatabase database = sqlServer.databases().define("myNewDatabase")
.create();

Create an Application Gateway

You can create an application gateway instance by using another define() … create() method chain.

ApplicationGateway applicationGateway = azure.applicationGateways().define("myFirstAppGateway")
.withRegion(Region.US_EAST)
.withExistingResourceGroup(resourceGroup)
// Request routing rule for HTTP from public 80 to public 8080
.defineRequestRoutingRule("HTTP-80-to-8080")
.fromPublicFrontend()
.fromFrontendHttpPort(80)
.toBackendHttpPort(8080)
.toBackendIpAddress("11.1.1.1")
.toBackendIpAddress("11.1.1.2")
.toBackendIpAddress("11.1.1.3")
.toBackendIpAddress("11.1.1.4")
.attach()
.withExistingPublicIpAddress(publicIpAddress)
.create();

Sample code

You can find plenty of sample code that illustrates management scenarios in Azure Virtual Machines, Virtual Machine Scale Sets, Storage, Networking, Resource Manager, SQL Database, App Service (Web Apps), Key Vault, Redis, CDN and Batch.

Service
Management Scenario

Virtual Machines

Manage virtual machine
Manage availability set
List virtual machine images
Manage virtual machines using VM extensions
Create virtual machines from generalized image or specialized VHD
List virtual machine extension images

Virtual Machines – parallel execution

Create multiple virtual machines in parallel
Create multiple virtual machines with network in parallel
Create multiple virtual machines across regions in parallel

Virtual Machine Scale Sets

Manage virtual machine scale sets (behind an Internet facing load balancer)

Storage

Manage storage accounts

Networking

Manage virtual network
Manage network interface
Manage network security group
Manage IP address
Manage Internet facing load balancers
Manage internal load balancers

Networking – DNS

Host and manage domains

Traffic Manager

Manage traffic manager profiles

Application Gateway

Manage application gateways
Manage application gateways with backend pools

SQL Database

Manage SQL databases
Manage SQL databases in elastic pools
Manage firewalls for SQL databases
Manage SQL databases across regions

Redis Cache

Manage Redis Cache

App Service – Web Apps

Manage Web apps
Manage Web apps with custom domains
Configure deployment sources for Web apps
Manage staging and production slots for Web apps
Scale Web apps
Manage storage connections for Web apps
Manage data connections (such as SQL database and Redis cache) for Web apps

Resource Groups

Manage resource groups
Manage resources
Deploy resources with ARM templates
Deploy resources with ARM templates (with progress)

Key Vault

Manage key vaults

CDN

Manage CDNs

Batch

Manage batch accounts

Give it a try

You can run the samples above or go straight to our GitHub repo. Give it a try and let us know what do you think (via e-mail or comments below), particularly –

Usability and effectiveness of the new management libraries for Java.
What Azure services you would like to see supported soon?
What additional scenarios should be illustrated as sample code?

Over the next few weeks, we will be adding support for more Azure services and applying finishing touches to the API.

You can find plenty of additional info about Java on Azure at http://azure.com/java.
Quelle: Azure

Tumblr Now Has Stickers And Filters For Mobile App

Tumblr is adding a feature to its mobile app where you can add stickers or filters to photos you upload. The feature will roll out to all users by tomorrow.

The sticker pack includes extremely relevant things like: a fried egg, a trash can, a yin yang, recycling logo, an alien, pizza slice, a baguette, a tombstone, and more. You can also add text.

The filters are mostly colored – think more acid trip than Instagram&;s “Nashville”.

These new photo features for mobile come after a big update last May where you could create GIFs directly in the app, even shoot video straight to GIF.

Here&039;s how the new feature works:

Choose “Photo” post in the mobile app. Then, once you&039;ve either taken a new photo or found the pic you want to upload, choose from the three buttons at the bottom of the edit page. Right here:

The squares are filters, the letters are text, and the magic wand is for stickers.

The squares are filters, the letters are text, and the magic wand is for stickers.

Here, I greatly improved this photo of my coworker Matt, to reveal his true self:

Here, I greatly improved this photo of my coworker Matt, to reveal his true self:

Here’s more info on it from the Tumblr blog:

Quelle: <a href="Tumblr Now Has Stickers And Filters For Mobile App“>BuzzFeed

SpaceX, Uber Reach New Heights In Lobbying Spending

Kena Betancur / AFP / Getty Images

With Martian ambitions but earthly pragmatism, SpaceX spent nearly $2 million on lobbying in 2016, a new high for the gravity defying upstart. The company met with Congress, the Defense Department, and NASA among other federal agencies to discuss issues central to its business like commercial space transportation and NASA funding.

SpaceX Founder Elon Musk was recently tapped by President Trump to serve as an economic advisor, along with Uber CEO Travis Kalanick. Musk met with Trump on Monday along with a cadre of industry chieftains that included Dell CEO Michael Dell and the head of Ford, Mark Fields. During the two-hour meeting, Trump asked the business leaders for ideas to grow the US economy and to list the obstacles preventing them from hiring more workers and expanding their operations, according to White House Press Secretary Sean Spicer.

In 2016, Uber spent nearly $1.4 million lobbying Congress, traffic safety regulators, and US trade officials, nearly tripling its expenditures from the year before, according to federal lobbying disclosures due Monday. The company dwarfed what it spent in 2015, which totaled $470,000.

Not only did Uber cross the $1 million mark for the first time, but it continues to tower over ride-hail rival Lyft, as far as lobbying money is concerned. Lyft spent $250,000 on federal lobbying last year, a significant increase from its 2015 total, at $30,000, but still a way&;s off from Uber.

AT&T, whose proposed merger with Time Warner was quickly denounced by Trump on the campaign trail, has also spent big in 2016. The media and communications titan racked up $16.4 in lobbying last year, topping its 2015 total by $1.5 million. In the months after the $85.4 billion mega-deal was announced, AT&T spent $3.7 million lobbying the House and the Senate on a wide range of issues including surveillance, arbitration in consumer contracts, and cybersecurity.

While the AT&T-Time Warner deal undergoes a lengthy Justice Department review, the merger may ultimately serve as a major test of Trump&039;s campaign promises. In October, Trump condemned the merger, describing the deal as an undue concentration of media power. Since then, antitrust and media experts have been left pondering whether Trump&039;s initial statements would lead to a White House skeptical of mergers and inclined to shield consumer, or if Trump would simply revert to the traditionally Republican stance of de-regulation.

Earlier this month, Trump appeared to soften his position on the merger, even as he admitted to a lack of knowledge of the deal. “I have been on the record in the past of saying it&039;s too big and we have to keep competition,” he told Axios. “So, but other than that, I haven&039;t, you know, I haven&039;t seen any of the facts, yet. I&039;m sure that will be presented to me and to the people within government.”

With or without Trump&039;s blessing, AT&T must win the approval of the Justice Department to proceed, but it is unclear who will lead the agency&039;s antitrust division. Whoever is chosen to fill that role, like the attorney general, requires senate confirmation. Trump&039;s pick for the nation&039;s chief lawyer and law enforcement officer, Sen. Jeff Sessions, has not yet been approved by the Senate.

In the last quarter of 2016, only four corporations in the US spent more money lobbying than AT&T.

Google once again led the tech industry in beltway cash, spending over $3.5 million in the final months of the Obama era. Google was the 6th biggest spender of any corporation, behind only AT&T and a handful of industry giants that included Boeing and Comcast. In 2016 Google spent $15.4 million lobbying on issues like the Trans-Pacific Partnership (nixed by Trump on Monday), immigration, email privacy, and encryption.

Amazon and Microsoft came next. With lobbying expenditures of more than $2.6 million, Amazon ranked 13th overall and second only to Google in tech. The Treasury Department and the Federal Aviation Administration were among the agencies that Amazon lobbied in the fourth quarter of 2016. Amazon&039;s issues included corporate taxation, drone privacy, and . Microsoft ranked third in the tech industry and 16th overall, forking over $2.4 million.

Oracle followed, spending $2 million and ranking 27th overall. Hewlett Packard was close behind at $1.8 million and in the 31st position.

Facebook&039;s lobbying spend was down for both the fourth quarter (compared to 2015) and for the entire year of 2016. Facebook spent $1.7 in the last quarter of 2016 compared to $2.1 in 2015. And the social network tallied $8.7 million for all of 2016, while it spent just under $10 million in 2015. Facebook lobbied the White House, Congress, and federal agencies on high-tech worker visas , terrorism, and government surveillance, in addition to other concerns.

Apple&039;s spending for the quarter and the year roughly tracks its 2015 figures: about $1.4 million for the fourth quarter and $4.7 for the year. Apple&039;s disclosures listed energy efficiency standards, encryption, and the regulation of mobile medical apps as issues the company lobbied. The iPhone maker held meetings with the office of the President, Congress, Homeland Security, and the Commerce Department, among other federal agencies.

Quelle: <a href="SpaceX, Uber Reach New Heights In Lobbying Spending“>BuzzFeed

Centrally manage all your Google Cloud resources with Cloud Resource Manager

Google Cloud Platform (GCP) customers need an easy way to centrally manage and control GCP resources, projects and billing accounts that belong to their organization. As companies grow, it becomes progressively difficult to keep track of an ever-increasing number of projects, created by multiple users, with different access control policies and linked to a variety of billing instruments. Google Cloud Resource Manager allows you to group resource containers under the Organization resource, providing full visibility, centralized ownership and unified management of your company’s assets on GCP.

The Organization resource is now automatically assigned to all GCP users who have G Suite accounts, without any additional steps on their part. All you need to do is create a project within your company’s domain to unlock the Organization resource and all its benefits!

Since it was introduced in October 2016, hundreds of customers have successfully deployed Cloud Resource Manager’s Organization resource, and have provided positive feedback.

“At Qubit, we love the flexibility of GCP resource containers including Organizations and Projects. We use the Organization resource to maintain centralized visibility of our projects and GCP IAM policies to ensure consistent access controls throughout the company. This gives our developers the capabilities they need to put security at the forefront throughout our migration to the cloud.” — Laurie Clark-Michalek, Infrastructure Engineer at Qubit.

Understanding the Cloud Resource Manager Organization resource
The Cloud Resource Manager Organization resource is the root of the GCP resource hierarchy and is a critical component for all enterprise use cases, from social media to financial services, from gaming to e-commerce, to name a few. Here are a few benefits offered by the Organization resource:

Tie ownership of GCP projects to your company, so they remain available when a user leaves the organization.
Allow GCP admins to define IAM policies that apply horizontally across the entire organization.
Provide central visibility and control over billing for effective cost allocation and reporting.
Enable new policies and features for improved security.

The diagram below illustrates the GCP resource hierarchy and its link with the G Suite account.

G Suite, our set of intelligent productivity apps, is currently a prerequisite to access the Cloud Resource Manager Organization resource in GCP. It represents your company by providing ownership, lifecycle control, identities and a recovery mechanism. If you don’t already have a G Suite account, you can sign up to obtain one here. (You can request a GCP account that does not require G Suite to use the Cloud Resource Manager Organization resource. For more information, contact your sales representative.)

Getting started with the Cloud Resource Manager Organization resource

Unlocking the benefits of the Cloud Resource Manager Organization resource is easy; it’s automatically provisioned for your organization the first time a GCP user in your domain creates a GCP project or billing account. The Organization resource display name is automatically synchronized with your G Suite organization name and is visible in the Cloud Console UI picker, as shown in the picture below. The Organization resource is also accessible via gcloud and the Cloud Resource Manager API.

Because of the ownership and lifecycle implications explained above, the G Suite super admin is granted full control over GCP by default. Usually, different departments in an organization manage G Suite and GCP. Thus, the first and most important step for the G Suite super admin overseeing a GCP account is to identify and assign the IAM Organization Admin role to the relevant users in their domain. Once assigned, the Organization Admins can manage IAM policies, project ownership and billing centrally, via Cloud Console, gcloud or the Cloud Resource Manager API.

All new GCP projects and billing accounts will belong to the Cloud Resource Manager Organization resource by default, and it’s easy to migrate existing GCP Projects there too. Existing projects that have not migrated under the Organization resource are visible under the “No Organization” hierarchy.

How to manage your Cloud Resource Manager Organization resource with gcloud

The following script summarizes the steps to start using the Cloud Resource Manager Organization resource.

# Query your Organization ID
> gcloud organizations list
DISPLAY_NAME ID DIRECTORY_CUSTOMER_ID
MyOrganization 123456789 C03ryezon

# Access Organization details
> gcloud organizations describe [ORGANIZATION_ID]
creationTime: ‘2016-11-15T04:42:33.042Z’
displayName: MyOrganization
lifecycleState: ACTIVEname: organizations/123456789
owner: directoryCustomerId: C03ryezon

# How to assign the Organization Admin role
# Must have Organization Admin or Super Admin permissions
> gcloud organizations add-iam-policy-binding [ORGANIZATION_ID]
–member=[MEMBER_ID] –roleroles/resourcemanager.organizationAdmin

# How to migrate an existing project into the Organization
> gcloud alpha projects move [PROJECT_ID] –organization [ORGANIZATION_ID]

# How to list all projects in the Organization
> gcloud projects list –filter ‘parent.id=[ORGANIZATION_ID] AND
parent.type=organization’

What’s next

The Cloud Resource Manager Organization resource is the root of the GCP hierarchy and is key to centralized control, management and improving security. By assigning the CRM Organization resource to all G Suite users, we’re setting the stage for more innovation. Stay tuned for new capabilities that rely on the Cloud Resource Manager Organization resource as they become available in 2017. And for a deep dive into the Cloud Resource Manager and the latest in GCP security, join us at a security bootcamp at Next ’17 in San Francisco this March.
Quelle: Google Cloud Platform