def _Create(self): if not self.use_existing: # A resource group can own resources in multiple zones, but the # group itself needs to have a location. Therefore, # FLAGS.zones[0]. _, _, retcode = vm_util.IssueCommand([ azure.AZURE_PATH, 'group', 'create', '--name', self.name, '--location', self.location, '--tags' ] + util.GetTags(self.timeout_minutes)) if retcode: raise errors.Resource.RetryableCreationError( 'Error creating Azure resource group')
def _Create(self): """Creates the storage account.""" if not self.use_existing: create_cmd = [ azure.AZURE_PATH, 'storage', 'account', 'create', '--kind', self.kind, '--sku', self.storage_type, '--name', self.name, '--tags' ] + util.GetTags( self.resource_group.timeout_minutes) + self.resource_group.args if self.location: create_cmd.extend(['--location', self.location]) if self.kind == 'BlobStorage': create_cmd.extend(['--access-tier', self.access_tier]) vm_util.IssueCommand( create_cmd, raise_on_failure=self.raise_on_create_failure)